Black box weapons!

Discuss and distribute tools and methods for modding. Moderator - Grognak
TheNewbie
Posts: 138
Joined: Thu Mar 28, 2013 9:56 am

Black box weapons!

Postby TheNewbie » Sun Dec 15, 2013 12:27 pm

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/3o1wu9skvhm8zmi/ion_super_shot.ftl
2.Not working with black box weapon image, nonexistant projectile and no sound:https://www.dropbox.com/s/l3tgf2yan2rp2hs/ion_super_shot.ftl

That's all folks.
User avatar
R4V3-0N
Posts: 1291
Joined: Sun Oct 06, 2013 11:44 am

Re: Black box weapons!

Postby R4V3-0N » Sun Dec 15, 2013 12:42 pm

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.
R4V3-0N, a dreamer.
User avatar
Kieve
Posts: 952
Joined: Tue Sep 18, 2012 2:21 pm

Re: Black box weapons!

Postby Kieve » Mon Dec 16, 2013 12:47 am

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.
User avatar
RAD-82
Posts: 796
Joined: Sat Nov 09, 2013 12:16 am

Re: Black box weapons!

Postby RAD-82 » Mon Dec 16, 2013 1:55 am

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.
Last edited by RAD-82 on Fri May 22, 2015 11:14 pm, edited 1 time in total.
User avatar
R4V3-0N
Posts: 1291
Joined: Sun Oct 06, 2013 11:44 am

Re: Black box weapons!

Postby R4V3-0N » Mon Dec 16, 2013 2:38 am

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.
R4V3-0N, a dreamer.
TheNewbie
Posts: 138
Joined: Thu Mar 28, 2013 9:56 am

Re: Black box weapons!

Postby TheNewbie » Mon Dec 16, 2013 4:06 am

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.