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.
[07:47 pm]
Ultraviolet -- Yeah, I suppose there's something to that
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[2024-5-06. : 3:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[2024-5-06. : 12:51 am]
Oh_Man -- definitely EUD
[2024-5-05. : 9:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[2024-5-05. : 9:35 pm]
Vrael -- that is insane
[2024-5-05. : 9:35 pm]
Vrael -- damn is that all EUD effects?
[2024-5-04. : 10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
Please log in to shout.


Members Online: NudeRaider, Lost_Angel