Page 1 of 1

Black box weapons!

Posted: Sun Dec 15, 2013 12:27 pm
by TheNewbie
I'm making a weapon, but I have three issues"

1.Weapon appears as a black box.

2.Projectile nonexistant.

3.Shooting sound doesn't work.

Links to dropbox: 1.Working with Basic Laser image and black box projectile ala no sound:https://www.dropbox.com/s/3o1wu9skvhm8z ... r_shot.ftl
2.Not working with black box weapon image, nonexistant projectile and no sound:https://www.dropbox.com/s/l3tgf2yan2rp2 ... r_shot.ftl

That's all folks.

Re: Black box weapons!

Posted: Sun Dec 15, 2013 12:42 pm
by R4V3-0N
http://www.ftlgame.com/forum/viewtopic.php?f=12&t=17442

next time, post this there.
Sorry I am bad at things such at this. can't help you to much.

Re: Black box weapons!

Posted: Mon Dec 16, 2013 12:47 am
by Kieve
R4V3-0N wrote:http://www.ftlgame.com/forum/viewtopic.php?f=12&t=17442

next time, post this there.
Sorry I am bad at things such at this. can't help you to much.
Not everything has to be dumped in the Q&A thread, Rave. Specific questions on functionality are fine, if a mod-maker needs help getting their mod to work.

TheNewbie, to answer your questions:
TheNewbie wrote:1.Weapon appears as a black box.
2.Projectile nonexistant.
3.Shooting sound doesn't work.
Your issues are basically caused by faulty code and poor file structure.

Code: Select all

<plasmaPew volume="3">ion_super_shot/audio/waves/plasma_bam.wav</plasmaPew>
Compare with the code for a heavy-laser shot:

Code: Select all

<heavyLaser1 volume="2">weapons/bp_laser_heavy_1.ogg</heavyLaser1>
Right now your actual sound-file is arranged as shown on the left:
3_audio.jpg
This is what the code would look like:

Code: Select all

<plasmaPew volume="3">plasma_bam.wav</plasmaPew>
The file structure on the right is "suggested," and helps keep things organized. The code would look like this.

Code: Select all

<plasmaPew volume="3">weapons/ion_super_shot/plasma_bam.wav</plasmaPew>
Notice the pattern yet? The secret is that sound FX basically ignore the "audio/waves" portion in resources.dat.
You have the same issues for your projectile and weapon art - your code is telling the game to look one place when your art is in another.

Re: Black box weapons!

Posted: Mon Dec 16, 2013 1:55 am
by RAD-82
I looked at the first download and noticed that file structure problem. I think Kieve did a decent job explaining that.

Once that black box issue is fixed, I noticed that the actual graphics and the animation sheets aren't going to match up. You'll likely need to fix those.

Code: Select all

<animSheet name="ion_gun" w="111" h="76" fw="37" fh="76">weapons/ion_super_cannon.png</animSheet>
{Attachment broke, image lost}

I think the animSheet should look like that for the image I altered and attached here. You'll still need to deal with the ion_gun weaponAnim and the projectile animations.

Re: Black box weapons!

Posted: Mon Dec 16, 2013 2:38 am
by R4V3-0N
Kieve wrote:
R4V3-0N wrote:http://www.ftlgame.com/forum/viewtopic.php?f=12&t=17442

next time, post this there.
Sorry I am bad at things such at this. can't help you to much.
Not everything has to be dumped in the Q&A thread, Rave. Specific questions on functionality are fine, if a mod-maker needs help getting their mod to work.
I thought anything minor such as graphics or weapons or drones goes to Q&A and larger things such as overhauls, unique / different, or larger issues go have there own thread, sorry.

I had this exact same question before on a new thread and was redirected to Q&A. apologies.

Re: Black box weapons!

Posted: Mon Dec 16, 2013 4:06 am
by TheNewbie
You won't believe how much I appreciate your help guys! :D
If I manage to fix the problem, FTL Experimental Warfare will be up in less than a month.