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.
Black box weapons!
-
- Posts: 138
- Joined: Thu Mar 28, 2013 9:56 am
- R4V3-0N
- Posts: 1291
- Joined: Sun Oct 06, 2013 11:44 am
Re: Black box weapons!
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.
next time, post this there.
Sorry I am bad at things such at this. can't help you to much.
R4V3-0N, a dreamer.
- Kieve
- Posts: 952
- Joined: Tue Sep 18, 2012 2:21 pm
Re: Black box weapons!
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:
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.
- RAD-82
- Posts: 796
- Joined: Sat Nov 09, 2013 12:16 am
Re: Black box weapons!
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.
{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.
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.
- R4V3-0N
- Posts: 1291
- Joined: Sun Oct 06, 2013 11:44 am
Re: Black box weapons!
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.
-
- Posts: 138
- Joined: Thu Mar 28, 2013 9:56 am
Re: Black box weapons!
You won't believe how much I appreciate your help guys!
If I manage to fix the problem, FTL Experimental Warfare will be up in less than a month.
If I manage to fix the problem, FTL Experimental Warfare will be up in less than a month.