Page 1 of 1

Missile Appearance File

Posted: Mon May 31, 2010 6:44 am
by w03
While modifying weapons.xml, I noticed that missiles have a specific appearance file. As I was making my own new missile, I decided to make a new appearance file at all. However, when I use my added appearance file, hit detection doesn't work for some reason, and missiles don't hit anything (even at almost point blank range)! :x This is very frustrating!

Can anyone help? Please!

Thanks.

Here is my appearance file line in units.csv

Code: Select all

"antimiss","./weapons/torpedo","FS_Antimatter_Missile",,"FIXME","HEAVYMISSILE","WRITEME","missile-hud.spr",2.4,,,,,"{heatseek.bfxm;;}",,,,,,,2.5,2.5,0.21,5,50,50,50,50,5,5,5,5,,,,,,,,,,,,100,10,FALSE,,,,,
1,4,870.45,877.47,870.45,30,30,30,2000,1500,500,200,200,200,200,1600,1600,TRUE,TRUE,
300000000,5,180,10,,,,,,,,0,0,0,"1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1",
"1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1;1",1,1,1,1,1,1,1,1,0,0,,,,,,";;;;;;","{supernova.bmp.bfxm;0;0;-2.30000023841858;.8;;;;;}",,,,,,"antiexpl.ani",,,,,,,,,
klauss: edited to put the CSV entry in a code box, to avoid screwing up the page.

Re: Missile Appearance File

Posted: Mon May 31, 2010 2:50 pm
by klauss
1) hit detection doesn't work all that well with the original missiles either
2) it may be that your mesh is too weird in some sense. Faces could be facing the wrong direction, for instance. Check that your mesh is sound.

Re: Missile Appearance File

Posted: Mon May 31, 2010 3:43 pm
by w03
Actually, I am using the same mesh as the standard torpedoes; I made a new appearance file because I wanted a different explosion animation.'

By the way, thanks for the code box edit. :wink:

Update: I tried watching a missile as I fired it at an asteroid fighter base. The first time I tried, the missile AI missed pathetically, actually flying straight toward the fighter base before taking a curved "evasive path" above it. This happened multiple times before I took off the AI and made the new missile unguided. This time, the missile flew straight through one side of the base, went inside the base, bounced off the hull several times, and broke through the other side, eventually flying far away. Hit detection is present, but the missile doesn't detonate!

Re: Missile Appearance File

Posted: Mon May 31, 2010 4:33 pm
by klauss
Hm... in that case I'd compare your CSV entry to the original one, finding for subtle notation mistakes.

If all you changed is the ani file, you shouldn't have different behavior. Perhaps there's an extra/missing brace, or space, or something like that.

Re: Missile Appearance File

Posted: Wed Jun 02, 2010 4:05 am
by w03
I checked the line, and there are no mistakes whatsoever (I copied and pasted). I also tried copying the "torpedo" line, pasting it in a row directly below, and renaming it "torpedo2". This creates the same glitch that I experienced earlier.

Re: Missile Appearance File

Posted: Wed Jun 02, 2010 4:38 pm
by klauss
Weird.

I'll try to reproduce when I have the time.

Re: Missile Appearance File

Posted: Wed Jun 02, 2010 8:34 pm
by Neskiairti
is there possibly an issue with \n and \r?

Re: Missile Appearance File

Posted: Mon Jun 14, 2010 5:51 am
by w03
This may be sort of a dumb question, but what are /n and /r?

Re: Missile Appearance File

Posted: Mon Jun 14, 2010 10:59 am
by Neskiairti
they are forms of newlines..
\r is CR carriage return,
\n is LF linefeed

different operating systems use different methods to denote a newline..

there are a few others as well.. but those are the primary ones.. Windows uses \r\n linux uses \n
commodor and mac before 10 used \r now i think it uses \n

Re: Missile Appearance File

Posted: Fri Nov 26, 2010 4:55 pm
by w03
Thanks for all the help! I eventually found that the problem was due to the fact I had not made a .xai file for my missile, leading to the code for missile ai being unexpressed.