Subunit help
- Ardis
- Terran Nuclear Silo Safety Inspector

- Posts: 228
- Joined: Tue Sep 05, 2006 5:03 pm
- Location: Ohio, USA
Subunit help
Alright, for a while, I've been working on my mod, but on the side, I made a mod for experimenting with weird stuff.
One thing I found during that time was that the Valkyrie could not have a subunit attached to it, but just about every other air unit can. Is there a reason for this?
One thing I found during that time was that the Valkyrie could not have a subunit attached to it, but just about every other air unit can. Is there a reason for this?
I'm not unstable.
Unstable implies that I could BECOME more dangerous than I am now.
Unstable implies that I could BECOME more dangerous than I am now.
- IskatuMesk
- Xel'naga World Shaper

- Posts: 8332
- Joined: Sat Feb 07, 2009 1:40 pm
- Location: M͈̙̞͍͞ͅE̹H̨͇̰͈͕͇̫Ì̩̳CO̼̩̤͖͘ జ్ఞా
- Contact:
Re: Subunit help
I remember hks or someone attaching two subunits to the valkyrie. Maybe just 1.5 breaking even more things?
Or maybe it's hardcoded and I am hallucinating but I know I saw a screenshot of it.
Or maybe it's hardcoded and I am hallucinating but I know I saw a screenshot of it.
Gameproc
Though we stand alone, stand we shall.
Though we stand alone, stand we shall.
- Durandal-Thoth
- Terran Factory Worker

- Posts: 71
- Joined: Wed Jul 04, 2007 4:19 pm
- Location: Where the grass grows.
Re: Subunit help
I thought no one on the planet knew how to attach two sub-units to a unit.
Did he ever exhibit this in a mod, or just a screenshot?
Did he ever exhibit this in a mod, or just a screenshot?
Google is your FRIEND.
- Ardis
- Terran Nuclear Silo Safety Inspector

- Posts: 228
- Joined: Tue Sep 05, 2006 5:03 pm
- Location: Ohio, USA
Re: Subunit help
I never got the second subunit field to do anything. Even DatEdit says it does nothing:
I've got a testing mod where I attached a subunit to most of the battle cruiser heroes and a civilian using a wraith sprite because the civilian is just where I insert my weird units.
Or maybe the person who made DatEdit didn't really know how to use the second subunit field. I don't know much about how subunits actually work, I just know how to add them onto a unit and make them attack.Secondary subunit. Unused. [pointer to units.dat]
I've got a testing mod where I attached a subunit to most of the battle cruiser heroes and a civilian using a wraith sprite because the civilian is just where I insert my weird units.
I'm not unstable.
Unstable implies that I could BECOME more dangerous than I am now.
Unstable implies that I could BECOME more dangerous than I am now.
- IskatuMesk
- Xel'naga World Shaper

- Posts: 8332
- Joined: Sat Feb 07, 2009 1:40 pm
- Location: M͈̙̞͍͞ͅE̹H̨͇̰͈͕͇̫Ì̩̳CO̼̩̤͖͘ జ్ఞా
- Contact:
Re: Subunit help
I don't see why it would be hard. Spawn two overlays, use two subunit slots. I never tried it personally but I don't see why it wouldn't work.Durandal-Thoth wrote:
I thought no one on the planet knew how to attach two sub-units to a unit.
Did he ever exhibit this in a mod, or just a screenshot?
Gameproc
Though we stand alone, stand we shall.
Though we stand alone, stand we shall.
- Lingerance
- Terran Refinery Attendant

- Posts: 20
- Joined: Fri Aug 24, 2007 7:46 am
- Location: St. Albert
Re: Subunit help
No, DatEdit does esactly like it should and all it's predecessors did, subunits are controlled through units.dat (another dat file might be infolved, can't remember) also a bin file, lol (iirc) file iscript, maybe more, thats just for one unit to have thier subunit changed or have one added.Phantom wrote:Or maybe the person who made DatEdit didn't really know how to use the second subunit field. I don't know much about how subunits actually work, I just know how to add them onto a unit and make them attack.
PS: It's 3 AM, I don't care about the red squiglies and thier mispelt lies.
Penguin?
The asterisk pony plays poker every Tuesday except after Mondays and only if the moon is pink. His tell is he will always bluff while wearing a plaid tutu, the clouds are never monochromatic, catch them while white and fluffy, the black ones taste like robots.
The asterisk pony plays poker every Tuesday except after Mondays and only if the moon is pink. His tell is he will always bluff while wearing a plaid tutu, the clouds are never monochromatic, catch them while white and fluffy, the black ones taste like robots.
- IskatuMesk
- Xel'naga World Shaper

- Posts: 8332
- Joined: Sat Feb 07, 2009 1:40 pm
- Location: M͈̙̞͍͞ͅE̹H̨͇̰͈͕͇̫Ì̩̳CO̼̩̤͖͘ జ్ఞా
- Contact:
Re: Subunit help
aw fuck my brainPS: It's 3 AM, I don't care about the red squiglies and thier mispelt lies.
Gameproc
Though we stand alone, stand we shall.
Though we stand alone, stand we shall.
- ShadowFlare
- Terran Science Facility Guinea Pig

- Posts: 213
- Joined: Thu Jul 19, 2007 11:12 pm
- Contact:
Re: Subunit help
I've never had anything with that second subunit field ever working and I've never seen anything by anyone else where it worked.Lingerance wrote:No, DatEdit does esactly like it should and all it's predecessors did, subunits are controlled through units.dat (another dat file might be infolved, can't remember) also a bin file, lol (iirc) file iscript, maybe more, thats just for one unit to have thier subunit changed or have one added.Phantom wrote:Or maybe the person who made DatEdit didn't really know how to use the second subunit field. I don't know much about how subunits actually work, I just know how to add them onto a unit and make them attack.
PS: It's 3 AM, I don't care about the red squiglies and thier mispelt lies.
There are two files with settings related to subunits, but iscript.bin is not one of them. The files are units.dat and images.dat. The subunit is added through units.dat and there is a setting in images.dat that is needed to make it work; the base unit needs a certain category of .lo* file assigned to it in images.dat for it to work, otherwise Starcraft will crash.
The part of the iscript animation where you would see it spawn the image for the subunit is only for the map editor. The last version of IceCC that I have uploaded has it mislabeled as InitTurret.
Last edited by ShadowFlare on Sat Sep 08, 2007 11:51 am, edited 1 time in total.
Don't point that camera at me!


- Durandal-Thoth
- Terran Factory Worker

- Posts: 71
- Joined: Wed Jul 04, 2007 4:19 pm
- Location: Where the grass grows.
Re: Subunit help
Well, that clarified things a bit.
Maybe he just mounted one turret and put an offset in iScript? I've never been aware of mounting two sub-units either. Maybe the blizz devs themselves might know about it. I remember once while zooming through Units.dat with arsenal zero, I noticed that the Marine entry had the option for THREE subunits. I never played around with that, but could the LO* file itself have something to do with the second offset, rather then just units.dat and images.dat?
Maybe he just mounted one turret and put an offset in iScript? I've never been aware of mounting two sub-units either. Maybe the blizz devs themselves might know about it. I remember once while zooming through Units.dat with arsenal zero, I noticed that the Marine entry had the option for THREE subunits. I never played around with that, but could the LO* file itself have something to do with the second offset, rather then just units.dat and images.dat?
Google is your FRIEND.
- ShadowFlare
- Terran Science Facility Guinea Pig

- Posts: 213
- Joined: Thu Jul 19, 2007 11:12 pm
- Contact:
Re: Subunit help
Hmm, probably not, since it crashes with the lack of the .lo* file, it does not just have no turret. Although, I have never tried that.
Don't point that camera at me!


- Ardis
- Terran Nuclear Silo Safety Inspector

- Posts: 228
- Joined: Tue Sep 05, 2006 5:03 pm
- Location: Ohio, USA
Re: Subunit help
So, with proper Iscripting, you could make the Valkyrie work with a subunit, possibly more?
I'm not unstable.
Unstable implies that I could BECOME more dangerous than I am now.
Unstable implies that I could BECOME more dangerous than I am now.
- IskatuMesk
- Xel'naga World Shaper

- Posts: 8332
- Joined: Sat Feb 07, 2009 1:40 pm
- Location: M͈̙̞͍͞ͅE̹H̨͇̰͈͕͇̫Ì̩̳CO̼̩̤͖͘ జ్ఞా
- Contact:
Re: Subunit help
Maybe. Maybe not. The latest versions broke a lot of things in starcraft, especially in relations to Iscript. Things that worked 100% perfectly in 1.10 in my HK TC are broken in 1.15.
Gameproc
Though we stand alone, stand we shall.
Though we stand alone, stand we shall.
- Taeradun
- Protoss Khalai Missionary

- Posts: 1028
- Joined: Thu Sep 07, 2006 6:08 pm
- Location: AU
- Contact:
Re: Subunit help
So if that units.dat field has never been able to be set to have a second subunit in any historic version of StarCraft that anyone is aware of, it's basically an "unused" field that was only labeled as "Subunit 2" by someone by mistake somewhere along the way? 

- Ardis
- Terran Nuclear Silo Safety Inspector

- Posts: 228
- Joined: Tue Sep 05, 2006 5:03 pm
- Location: Ohio, USA
Re: Subunit help
Okay, I see what you mean. The Valkyrie doesn't have an Overlay 1 or three which the Battlecruiser does. It seems like subunits are linked to the .lol file, overlay 3 because the wraith doesn't have an overlay 1, but it does have a three.
I'm still not quite sure what these overlays are.
I'm still not quite sure what these overlays are.
I'm not unstable.
Unstable implies that I could BECOME more dangerous than I am now.
Unstable implies that I could BECOME more dangerous than I am now.
- IskatuMesk
- Xel'naga World Shaper

- Posts: 8332
- Joined: Sat Feb 07, 2009 1:40 pm
- Location: M͈̙̞͍͞ͅE̹H̨͇̰͈͕͇̫Ì̩̳CO̼̩̤͖͘ జ్ఞా
- Contact:
Re: Subunit help
Do you mean images.dat? I am not sure of the exact function of those overlays, but they are responsible for fire graphics on damaged buildings. They can also cause crashes, because said fire graphics really, REALLY hate animation changes on buildings and will often crash if they are so much as touched the wrong way.
Gameproc
Though we stand alone, stand we shall.
Though we stand alone, stand we shall.
