Stacked Units
Aug 20 2009, 4:06 pm
By: New-Guy  

Aug 20 2009, 4:06 pm New-Guy Post #1



In my RPG that I'm making for the Last Stand Contest, I was hoping to use some stacked units in my combat system.
Exe. I have a civilian walking around, and I want a firebat stacked on top of him, so that he is able to attack.

My problem is that I can't figure out how to achieve this effect. I've looked at several maps, and I can kinda work out the triggers, but I still don't understand any of it. Can anybody help me out here?



None.

Aug 20 2009, 8:26 pm Jack Post #2

>be faceless void >mfw I have no face

http://www.staredit.net/files/270/

Post has been edited 1 time(s), last time on Aug 20 2009, 8:29 pm by zany_001. Reason: Phalanx of Light



Red classic.

"In short, their absurdities are so extreme that it is painful even to quote them."

Aug 20 2009, 11:10 pm Falkoner Post #3



Place a disabled sprite, the process is explained here, and in-game use the Enable Doodad State action on it, order it once, and then it should be stable, and stacked, although that is not guaranteed with all units, some units crash no matter what. Also, the stackability varies depending on the map, so you just have to test them out, I've had units stack fine on one map, then crash in another.



None.

Aug 21 2009, 1:58 am New-Guy Post #4



Quote from Falkoner
Place a disabled sprite, the process is explained here, and in-game use the Enable Doodad State action on it, order it once, and then it should be stable, and stacked, although that is not guaranteed with all units, some units crash no matter what. Also, the stackability varies depending on the map, so you just have to test them out, I've had units stack fine on one map, then crash in another.

Are all of the effects of the disabled sprites listed there 100% accurate?



None.

Aug 21 2009, 3:03 am rockz Post #5

ᴄʜᴇᴇsᴇ ɪᴛ!

No, they are 95% accurate. (which means you should always double check them)



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Aug 21 2009, 3:18 am New-Guy Post #6



Alright! I got it to work now, thanks Falk.
I might have another question coming up really soon.



None.

Aug 21 2009, 3:38 am Falkoner Post #7



Quote
Are all of the effects of the disabled sprites listed there 100% accurate?

Their effects change between patches, and from what I've seen, depending on the map, so while usually they remain constant, like rockz said, don't rely on that map, test it yourself first, it's just a good reference to maybe get ideas in the first place, or do initial planning.



None.

Aug 21 2009, 4:26 am MadZombie Post #8



Just some words of advice if your using Scmdraft.

When you set Sprites/Unit Sprites/etc one thing that really killed me which was so obvious was that when you click a sprite and have its property window come up, you need to manual click the sprite from the list before checking the "Active/Disabled?" check box. Unlike... EVERYTHING else in scmdraft, when you click on units and get their property window up, the units themselves are already highlighted like

Terran scv(###,###)
Terran Medic(####,###)

and they both would be highlighted. With sprites they are never highlighted and when you do manually highlight them you can only do it one by one. I spent hours figuring out why my units weren't disabled because i would check the "active/disabled?" check box but since none of them where highlighted when i did that (because i assumed they were) the second i closed the property window, it was like I never checked anything.

Just throwing that out their because its something I overlooked and wasted A LOT of time on. Something so simple D:

And looking at the process crashes sc, starting with disabled sprites and all.



None.

Aug 21 2009, 4:31 am Falkoner Post #9



Quote
And looking at the process crashes sc, starting with disabled sprites and all.

Well, the disabled sprites don't necessarily crash it(although they might), but the enabling almost always does.



None.

Aug 21 2009, 4:36 am MadZombie Post #10



Quote from Falkoner
Quote
And looking at the process crashes sc, starting with disabled sprites and all.

Well, the disabled sprites don't necessarily crash it(although they might), but the enabling almost always does.
Sorry I wasn't specific. The way i said it you could assume I'm saying ALL disabled sprites crash SC. For me it was Disabled Marines and I'm not sure if it was before or after I used a disabled Jim Raynor also.



None.

Aug 21 2009, 2:00 pm New-Guy Post #11



Quote from Falkoner
Quote
And looking at the process crashes sc, starting with disabled sprites and all.

Well, the disabled sprites don't necessarily crash it(although they might), but the enabling almost always does.

Well, just working on a test map last night, I've figured this much out on my own.



None.

Aug 22 2009, 7:44 am Heinermann Post #12

SDE, BWAPI owner, hacker.

Terms:
iscript - The file that stores animation scripts for graphics in Starcraft.
overflow script - A script that doesn't exist for a graphic. Most commonly Doodad State scripts.
opcode - An instruction in the iscript file.

Regarding changes during patches:
This trick uses constant values for each patch. The only time the effects change over a patch is when scripts\iscript.bin changes, which has been almost never.

Regarding stability:
Some overflow scripts have a random jump with a small percentage, others use an opcode that performs an action based on the tileset, but I'm sure that those don't affect the stability of the unit.

Performing the trick:
Make sure players do not have vision of the area the trick is being performed in. A hostile computer player would probably be best for anything related to enabling doodad states. Perform whatever disable/enable sequence you like, then order the unit to move or attack something. It's important that another iscript be activated to interrupt the overflow script. Otherwise, the unit will crash your game when it is drawn on the screen.




Aug 22 2009, 1:14 pm New-Guy Post #13



Quote from Heinermann
overflow script - A script that doesn't exist for a graphic. Most commonly Doodad State scripts.
What do you mean by a script that doesn't exist? Wouldn't this script, well, not exist?



None.

Aug 22 2009, 1:28 pm Clokr_ Post #14



Quote from New-Guy
Quote from Heinermann
overflow script - A script that doesn't exist for a graphic. Most commonly Doodad State scripts.
What do you mean by a script that doesn't exist? Wouldn't this script, well, not exist?

Lazy blizzard programmers didn't add checks for missing animations. So SC will still try to play it reading wrong data instead which has unpredictable results.



?????

Aug 22 2009, 1:33 pm New-Guy Post #15



And the unpredictable results results in crashing SC?



None.

Aug 22 2009, 2:13 pm Clokr_ Post #16



Quote from New-Guy
And the unpredictable results results in crashing SC?

More often that you'd think.



?????

Aug 22 2009, 2:57 pm Heinermann Post #17

SDE, BWAPI owner, hacker.

It's the most common crash.

Disabled sprite-units call the "construction animation" AKA "almost built animation".
Disabling a unit calls its own private animation.
Enabling a unit also calls its own private animation.
An exploit that trains(train unit) interceptors/scarabs instead of using its proper order tries to call the "building working" animation.
Attacking, burrowing, moving, turning, anything with the hallucinated powerup glitch follows the main graphic's iscript animations(a Drone that burrows holding a goliath turret will call the goliath turret's burrow animation).
Unused units such as cantina, cave-in, etc. don't have proper animations.
Killing units like start locations and map revealers will crash the game because there is no death animation.
Any crash that involves having to look somewhere, or a rock sprite, has to do with iscript.

The biggest fault is the playframe opcode, playing a unit frame(from GRP[graphic file]) that doesn't exist.




Aug 22 2009, 4:33 pm New-Guy Post #18



Is it possible to do with with a protoss unit? Like, say, a Zealot? Or will it just crash?



None.

Aug 22 2009, 6:27 pm poison_us Post #19

Back* from the grave

Quote from New-Guy
Is it possible to do with with a protoss unit? Like, say, a Zealot? Or will it just crash?

From what Heiney said, you might be able to use a disabled Archon fine, but other than that...more than likely crash.




Aug 23 2009, 1:27 am New-Guy Post #20



Okay, I've got another question for all of you.
I've gotten the units to stack, and now I want them to cloak.
I've seen a test map by Loveless where there was a (cloaked) rine stacked on top of a Civilian. I'm trying to achieve this effect. How do I get the units to "cloak" though?



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:27 am]
m.0.n.3.y -- Maybe because it's an EUD map?
[03:27 am]
m.0.n.3.y -- Can't upload maps to the DB. Error says "The action you have performed caused an Error". Any word?
[2024-4-25. : 7:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
Please log in to shout.


Members Online: jjf28