JarquaFelmu
05-10-2005, 11:17 PM
Does anyone know what overlay the Terran Nuke uses to show the explosian. If anyone knows, could you post where to find it here? thanks in advance.
I know this is might be a hard question to answer. But does someone know the number of that sprite? Or if there is one even that is not hardcoded into the unit like the firebat's Flames are?
If this can be found out, then I would be very grateful, thanks.
BSTRhino
05-12-2005, 5:11 AM
Hey Jarqa, I think I had better teach you how to find out these things for yourself.
You'll need Arsenal Zero. You will also need to replace some of the formats in your Arsenal Zero\formats folder with the ones I've attached in the zip. The difference with the ones in the ZIP and the originals is I have edited the unit format and possibly some others to include searchable ID numbers, which you will need for this.
Convert your units.dat, weapons.dat, flingy.dat, sprites.dat and images.dat to text files using Arsenal Zero.
Go to Arsenal III, find the unit ID in question. For example, go to Arsenal III's unit editor, select the Terran Nuke (I think it's under Terran > Air Units) and then look in the bottom right to see its ID. The Nuclear Missile has a unit ID of 14.
Open up units.txt (converted from units.dat using Arsenal Zero) and search for "14:" but don't include the quotes.
You'll jump straight to unit ID 14. In this case, your format just happens to say "14:Nuclear Missile" but this is not always the case. Sometimes the name next to it is wrong. Always trust the unit ID, if you got it right in Arsenal III, then it will be right 100% of the time.
Look for the line Graphic=<some number> in that section. It says "Graphic=109" in mine. The number 109 means, unit ID 14 corresponds to flingy ID 109.
Go to flingy.txt. Search for "109:" without the quotes. You'll jump straight to flingy ID 109. It also happens to say Nuclear Missile next to it. That's lucky.
Look for the line Sprite=<some number> in that section. It says "Sprite=266" in my flingy.txt. That means, flingy ID 109 corresponds to sprite ID 266.
Go to sprites.txt and search for "266:" without the quotes. You'll jump straight to sprite ID 266. Getting the hang of it?
Look for the line that says Image=<some number> in that section. Mine says "Image=316" which means that sprite ID 266 corresponds to image ID 316.
Go to images.txt and search for "316:" without the quotes. You'll jump straight to images ID 316.
Find the iscript ID by looking for the line Iscript ID=<some number>. It says Iscript ID=131 for my nuclear missile. This means images.dat ID 316 corresponds to iscript ID 131.
Now, I presume you're using ICE. So, go into ICE, and go File > Load Default.
In the box that says "Header ID Tag" type in 131 and click "Search by Header". You'll jump straight to iscript ID 131, and you'll see that the drop-down menu displays "Terran Nuclear Missile" just like you'd expect it to.
The nuke's explosion will be created in one of its animations. Search around the animations. I've found that "Other Animation?" looks very promising, because it has a "Cast Spell" command, which looks like where the nuke explosion should be created. Go to that animation.
There are two lines of code here which could be what you're looking for. "Place active overlay (images.dat) 428" and "Place independent overlay (sprites.dat) 267" could both be creating the nuke explosion. However, if you double click each of them and look at the GRP preview, it is obvious that the second one relates to the explosion. So there you go, the nuke explosion is sprite ID 267.
So there you go. The question isn't actually hard to answer if you know how to get it. If you're looking for a weapon, just do the same thing, except find your weapons.dat ID first using Arsenal III, search for it in weapons.txt, and use the number given by "Missile Sprite=<some number>" as your flingy ID. You can just continue drilling down from there like before. You might like to practice searching for the firebat flame graphic yourself.
JarquaFelmu
05-12-2005, 7:14 PM
Awesome! Thank you so much! that does help a ton with that knowledge, i've now done in like 2seconds that stumped me and King for like 2+ days, awesome:).
I know you can find images going that path, but how do you find where the sounds are used? I know that the death sounds are used in the unit.dat thing, but where are birth sounds accessed from? or how do you find them? I have some crazy ideas for my mod but i need to know this:D ty in advanced again!
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.