I have created three heroes, each that use the Goliath sprite and turret. I also have three normal units that use the Goliath sprite and turret. The three normal units have their respective turrets. However, the heroes do not. Using DatEdit I directed the heroes to use the same turrets as the normal units because I don't have enough spaces left to make three new turrets. However, for some reason the heroes turrets do not appear, while the regular units' do. Just to make sure I put both the hero Goliaths and the regular Goliaths next to each other. The turrets do not appear on the heroes. What could be wrong?
None.
Compare the image.dat entries of the normal units with those of the heroes. I have a hunch that a missing LO? file is the issue.
None.
How do I compare that?
EDIT: By the way. I forgot to mention this, but, when I run my mod in StarEdit the heroes appear with their proper turrets, but in-game, not the same. Does this help?
None.
The same way you'd compare anything. Look at each one individually and keep an eye out for differences.
I think it crashes if the .lo? file is missing in images.dat for a unit that has a turret assigned. The issue is probably somewhere in units.dat, since you didn't say that it crashes.
By the way, the reason it shows in StarEdit is that it knows nothing about turrets; they just used a workaround to draw an overlay in the iscript in StarEdit. This means that it will draw a turret in StarEdit if you use the same base graphic as another unit that has its turret drawn in StarEdit, regardless of whether it actually has that turret.
Did you assign the turret to them in units.dat? This is done on "Subunit 1" under the advanced tab.
Post has been edited 1 time(s), last time on Oct 15 2009, 12:28 am by ShadowFlare.
None.
Normal Unit - Excalibur (Subunit 1: Excalibur Turret)
Hero Unit - Alan Jacobs (Subunit 1: Excalibur Turret)
Yes, unit "Excalibur Turret" does have a check in the "Subunit" box as well.
Just another idea - does Firegraft have anything to do with it? I am using it to modify the buttons of the buildings.
None.
That's weird.....
If you are using the same graphics for all the units (as the Terran Goliat and Alan Schezar do), the images.dat LO? issue is inadmissible..... they are the same!!
I think the problem is in the units.dat. ShadowFlare wasn't referring to the "Subunit" checkbox, but to the tab "Subunit 1:", where you must indicate what unit is the corresponding subunit.
What I think is happenning (I haven't tested it, however) is that the turrets can only be assigned to an unique unit entry.
If not, I'm clueless, because I suppose you copied the bases entries to other unit entries, making them identical except the "Hero" property, same for the turrets (none of them are hero.....), so the whole lot should be functional.......
Maybe, in FG, you should change the "Status Preset" for all the units.dat entries you used. Turrets are different from normal units.....
None.
ShadowFlare wasn't referring to the "Subunit" checkbox, but to the tab "Subunit 1:", where you must indicate what unit is the corresponding subunit.
I know that. I've double and triple checed it and the unit in the Subunit 1 list is the turret that I need it to be.
Maybe, in FG, you should change the "Status Preset" for all the units.dat entries you used. Turrets are different from normal units.....
What would I change them to? I loaded a new file just to see if I could compare, but the entry for the default turrets are "Unselectable" and that's what I have on my turrets. Should I just try to find three unused slots and make three turrets for the heroes? Is there no other way to resolve this problem?
None.
What happens if you just copy and paste one of the working ones over one that isn't working (in units.dat)? Does it still not work?
None.
Copy what? The turret or base?
None.
This is very curious, as I made some tests and they worked. Same turret for heroes and normal units (even a SCV.....which has so many LO? files that it worked immediatly, and was funny.....), no matter what FG Status Preset I used.
To make a lot of space for units which need to have all the sounds, I moved every turret to unused buildings entries. At first test, I failed to put the different turret to all the units and used the saem for all (Goliat, Alan, Tank, Siege Tank, Duke and Siege Duke), and all of them got the Goliat turret, so it worked perfectly (but that was an stupid error.......).
I don't know what are you doing wrong. You are associating the same turret to two (or more) units, and it doesn't work when you put it on a hero...... but it works for me, and I did the same as you.
Thinking.......
None.
Should I send you my mpq and Firegraft .exe so you can take a look at it? Maybe you can find the problem, since I can't seem to.
None.