Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: [SOLVED] Invisible units and buildings?
[SOLVED] Invisible units and buildings?
This topic is locked. You can no longer write replies here.
Jan 5 2012, 12:07 pm
By: c(O.Oc)  
Polls

Jan 5 2012, 12:07 pm c(O.Oc) Post #1



As the title explains, the concept of an invisible building is quite awesome, but I don't know how to get one. I've played the new TS map called G3c or something and a few random Korean maps that imply the use of mysterious cloaked buildings and magically cloaked units with no arbiters in sight :wtfage: I would normally try to figure something like this out by myself, but I have no idea where to start so I came here. Thanks in advance peoples of SEN.



None.

Jan 5 2012, 3:10 pm Roy Post #2

An artist's depiction of an Extended Unit Death

This trick is done by disabling and enabling the doodad state of qualifying units. Here's a list:

http://www.staredit.net/starcraft/Set_Doodad_State

To do the trick, just have a trigger that disables the unit, waits, enables the unit, and then orders the unit to move. While this process is happening, generally the player is not allowed to look at the unit or they will crash. Once the procedure is complete, however, you should have a functional, cloaked unit.




Jan 5 2012, 6:48 pm c(O.Oc) Post #3



Oh, Thank you so much!

Edit:
Wellp, I've managed to cloak a few buildings, but every time I try to cloak a unit the game crashes when I look at it. I managed to create a functioning cloaked Marine once, but when I tried again it crashed. Any suggestions?

Post has been edited 1 time(s), last time on Jan 5 2012, 8:10 pm by c(O.Oc).



None.

Jan 5 2012, 9:03 pm jjf28 Post #4

Cartography Artisan

Quote
While this process is happening, generally the player is not allowed to look at the unit or they will crash
So make sure the unit is not visible until you've finished the Disable-Disable-Enable-Move, marines should consistantly cloak

Btw, you can also use the arbiter-burrow cloak glitch for many zerg units (example attatched)

Attachments:
arb cloak.scm
Hits: 1 Size: 40.97kb

Post has been edited 1 time(s), last time on Jan 5 2012, 9:38 pm by jjf28.



TheNitesWhoSay - Clan Aura - github

Reached the top of StarCraft theory crafting 2:12 AM CST, August 2nd, 2014.

Jan 5 2012, 9:13 pm Biophysicist Post #5



You need to put the unit you want to cloak somewhere where the player can't see it, and then give it a move order via trigger.

...The following is based on memory and guesswork. I think that this issue arises because of something called iscript. A file called iscript.bin defines all the animations that a unit can do; this includes enable and disable animations, which are used for the Installation doors/traps doing stuff. Now, when a unit is told to use an animation it does not have, the game crashes; a fairly common modding mistake is forgetting to add new animations to iscript when giving a unit new capabilities it didn't normally have. Therefore, enabling or disabling units that don't have the associated animation would cause a crash. Another possibility is that the cloaking process sets the unit to an invalid frame; this also causes a crash. Either way, however, telling the unit to move will make it display its movement animation, which also changes the frame the unit is displaying, fixing both of these issues. (As to why it doesn't crash if you can't see the unit, I have no idea. Iirc, it should...)

Anyway, just give it a move order before it can be seen.



None.

Jan 5 2012, 9:39 pm Vrael Post #6



Once the cloaking processes is complete, in order for it to fully cloak the other players must have a detector detect it or have shared vision for a moment. Otherwise they'll see a non-cloaked unit with no shadow until they detect it. They won't be able to attack it like a cloaked unit, but they will be able to see the unit.



None.

Jan 5 2012, 9:40 pm Lanthanide Post #7



Here's a step-by-step outline of what to do. Basically each trigger cycle will need it's own separate trigger with the specified actions, and you can use DCs to step through them in order.

Trigger cycle 1:
Create unit somewhere that the player does not have vision
Order unit to move to another location, basically this just gives the unit a specific directional graphic (optional, but can't hurt)
Disable doodad state on the unit

Trigger cycle 2:
Enable doodad state on the unit
Order unit to move to another location, to refresh the unit graphics

Trigger cycle 3:
Move unit to your desired location

You can probably smoosh cycle 3 into cycle 2, but this is just a precautionary system. Note that when you do this trick it will create a 'rock sprite' about 5-6 tiles above the unit when you disable doodad state on it. If you do this action near the top of the map I believe the sprites will fall off the edge and not be visible; but the whole area you do this needs to not be visible anyway.

Not all units can be cloaked (they'll crash the game no matter what you do). Cloakability seems to have some tileset basis as well where some units will cloak in some tilesets but not others.

Further to Vrael above, one interesting result of this is that it's not a true cloak. For example I have used this on mutalisks in the ashworld tileset and after other players have been briefly given vision, they will then see a cloaked/blurry mutalisk outline with a crisp black shadow beneath it at all times. So players will still be able to see the shadow and know the cloaked unit is there, but will need a detector to be able to attack it. Other units and other tilesets may vary. I can also morph the mutalisk into a guardian or devourer and it will stay cloaked (not sure about the shadow), whereas attempting to cloak those units directly results in a crash.



None.

Jan 6 2012, 8:45 pm c(O.Oc) Post #8



Hey it works now :D Thanks a bundle Lanthanide for that tutorial.



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: Roy, Ultraviolet