Making new ship, some questions:

Discuss and distribute tools and methods for modding. Moderator - Grognak
User avatar
Kieve
Posts: 952
Joined: Tue Sep 18, 2012 2:21 pm

Re: Making new ship, some questions:

Postby Kieve » Fri Jan 04, 2013 2:08 am

When you say it isn't working, what exactly happens? Does the game crash (indicating a syntax error in code), does the sprite not appear / appear as a /!\ warning symbol, does the weapon not fire at all...?
DryEagle
Posts: 363
Joined: Thu Oct 04, 2012 11:17 am

Re: Making new ship, some questions:

Postby DryEagle » Fri Jan 04, 2013 3:00 am

The weapon shows up, charges with the right animation, fires with the right sounds, and does the damage etc correctly.
The only thing missing is there is no projectile sprite, like the 'bullet' just doesn't show up.
All ships I have created include custom weapons, graphics etc:
Image
ImageImageImageImage
User avatar
Kieve
Posts: 952
Joined: Tue Sep 18, 2012 2:21 pm

Re: Making new ship, some questions:

Postby Kieve » Fri Jan 04, 2013 3:07 am

Sounds like you may have made a typo in the weapon blueprints then. Double-check your <image> tag and make sure it's reading your projectile's name exactly right.
DryEagle
Posts: 363
Joined: Thu Oct 04, 2012 11:17 am

Re: Making new ship, some questions:

Postby DryEagle » Fri Jan 04, 2013 4:25 am

Ah finally figured it out, you have to give the projectiles and the turrets separate animation sheet names.
All ships I have created include custom weapons, graphics etc:
Image
ImageImageImageImage
User avatar
Kieve
Posts: 952
Joined: Tue Sep 18, 2012 2:21 pm

Re: Making new ship, some questions:

Postby Kieve » Fri Jan 04, 2013 4:30 am

That's for the animations.xml
I mean the <weaponblueprint> section in your blueprints.xml
If the only thing that happens is, the projectile isn't appearing, that's likely something in your blueprints. I can't see anything wrong with the animation itself either.
DryEagle
Posts: 363
Joined: Thu Oct 04, 2012 11:17 am

Re: Making new ship, some questions:

Postby DryEagle » Fri Jan 04, 2013 4:54 am

ok, this ship is almost done now, just made a bunch of gibs, any trick to getting the right X / Y coordinates for the gibs in the XML file to be in the right spots? Don't exactly feel like doing 50 restarts of the game just to die and try and figure out how to align them right...
going to just leave a transparent layer there for now, might figure something out later
All ships I have created include custom weapons, graphics etc:
Image
ImageImageImageImage
DryEagle
Posts: 363
Joined: Thu Oct 04, 2012 11:17 am

Re: Making new ship, some questions:

Postby DryEagle » Fri Jan 04, 2013 6:10 am

The Viper is now available to download and play at viewtopic.php?f=11&t=10439
All ships I have created include custom weapons, graphics etc:
Image
ImageImageImageImage