Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: [SOLVED] disabling doodad state?
[SOLVED] disabling doodad state?
This topic is locked. You can no longer write replies here.
Apr 27 2011, 12:18 am
By: iCCup.xboi209  

Apr 27 2011, 12:18 am iCCup.xboi209 Post #1



How come when you disable doodad state on a unit, you crash? I thought you crash when you see the unit but I tested using a p12 marine and it crashed without me looking at it.



None.

Apr 27 2011, 12:27 am Dem0n Post #2

ᕕ( ᐛ )ᕗ

Some disabled units will make the game crash. Some won't. That's just how it is. I'm sure there's a reason as to why certain ones make you crash, but I don't know it. :awesome: I think there's a list somewhere that lists what most disabled units do.




Apr 27 2011, 12:32 am DevliN Post #3

OVERWATCH STATUS GO

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



\:devlin\: Currently Working On: \:devlin\:
My Overwatch addiction.

Apr 27 2011, 9:45 pm iCCup.xboi209 Post #4



I put a marine in a map and it crashes but when I look at the list on the second link, it says a terran marine cloaks.



None.

Apr 27 2011, 10:14 pm DevliN Post #5

OVERWATCH STATUS GO

Perhaps you didn't disable it correctly?



\:devlin\: Currently Working On: \:devlin\:
My Overwatch addiction.

Apr 27 2011, 10:15 pm iCCup.xboi209 Post #6



umm what you mean disable it correctly? It just needs the disable doodad state trigger



None.

Apr 27 2011, 10:52 pm jjf28 Post #7

Cartography Artisan

as i recall terran marine doesen't cloak easily, just disabling will cause it to play a strange animation that will usually crash in a few seconds... i'll see if i can find an example trigger



TheNitesWhoSay - Clan Aura - github

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

Apr 27 2011, 11:02 pm Roy Post #8

An artist's depiction of an Extended Unit Death

Quote from jjf28
as i recall terran marine doesen't cloak easily, just disabling will cause it to play a strange animation that will usually crash in a few seconds...
Part of this is untrue.

You have to do the disable-enable trick to have a functional cloaked marine. Just disabling will cloak it in an animated state (and no, that will not crash the game).

I don't know if there's a link that describes D-E, but it's basically disabling the unit, waiting, enabling it, and then ordering it to move. After that, you won't crash from looking at the unit.

Post has been edited 1 time(s), last time on Aug 27 2011, 8:02 pm by Roy.




Apr 27 2011, 11:08 pm jjf28 Post #9

Cartography Artisan

Credit to Helms 1.3x, though likely stolen from v. Haldir ;)


The Regular Marine was pre-placed for player 11 out of everyones view

Trigger
Players
None specified.
Conditions
  • Always
  • Actions
  • Disable doodad state for Marine for player 11 at Cloak
  • Wait for 85 miliseconds
  • Enable doodad state for Marine for player 11 at Cloak
  • Wait for 85 miliseconds
  • Enable doodad state for Marine for player 11 at Cloak
  • Wait for 85 miliseconds
  • Issue order to all marine owned by player 11 move to anywhere
  • Wait for 85 miliseconds
  • Give 1 Marine owned by player 11 at Cloak to current Player
  • Move 1 Marine owned by Player 11 at Cloak to Spawn
  • Issue order to all Marine owned by current player at Spawn move to Anywhere




  • TheNitesWhoSay - Clan Aura - github

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

    Apr 28 2011, 12:18 am UnholyUrine Post #10



    That's pretty much exactly what Roy said.
    nice.

    Another thing to point out is.. do NOT use waits in your map.
    It'll just cause pain and frustration with Wait blocks: http://www.staredit.net/?p=oldwiki&s=2
    try using Death counts instead: http://www.staredit.net/?p=oldwiki&s=20



    None.

    Apr 28 2011, 4:14 am Heinermann Post #11

    SDE, BWAPI owner, hacker.

    You don't actually need to wait any more than 1ms. The exception is with the wait after ordering the unit to move. For more stability you should only move the unit after it has successfully executed the order. Additionally, enabling the unit twice is meaningless. Once enabled, subsequent enables have no effect at all. You can only enable if the unit is disabled, and disable if the unit is enabled. Also to avoid potential crashes, give the unit to the player after you've moved it.


    ... though it's been quite a while since I've been accustumed to set doodad state.




    Apr 28 2011, 5:54 am Lanthanide Post #12



    It's best to do this in a part of the map that the player cannot see, because often with many units if you view them during the process, before they have moved, you will crash. So keep an area of your map that players will never normally be able to view to perform the disabling and enabling, and move the unit to your final destination later.

    Note that in my experiments with this, I found that even some units which are not supposed to crash, very very occasionally do. I was trying to make multiple cloaked mutalisks which I would then store in a unit pen for distributing out later during the map. I never really pinned down the exact nature of the problem, it's possible that my triggers simply sometimes disabled the same unit twice causing a crash, but I did get a small handful of memory error crashes after I added the cloaked mutalisk feature to my map, even though I wasn't looking at the mutas during the process etc.



    None.

    Apr 29 2011, 6:01 pm O)FaRTy1billion[MM] Post #13

    👻 👾 👽 💪

    Disable/Enable almost always crashes if it is visible. Marines are fairly stable (they shouldn't do what Lanthanide described).

    Looking at your triggers, you should give after you move it ... not that it makes a difference, but it prevents vision in the cloaking region.

    This is how I'd do it, even though my changes are not important or significant.
    Trigger
    Players
    None specified.
    Conditions
  • Always
  • Actions
  • Disable doodad state for Marine for player 11 at Cloak
  • Wait for 1 miliseconds
  • Enable doodad state for Marine for player 11 at Cloak
  • Wait for 1 miliseconds
  • Issue order to all marine owned by player 11 move to anywhere Make sure it is able to actually move somewhere ... if it is restricted at all this might not work
  • Wait for 1 miliseconds
  • Move 1 Marine owned by Player 11 at Cloak to Spawn
  • Give 1 Marine owned by player 11 at Cloak to current Player
  • Issue order to all Marine owned by current player at Spawn move to Anywhere Unnecessary, but probably safer for testing


  • Oh, and one last thought ... If you are using any other waits (especially hypertriggers), that might be causing a wait block after the enable which would lead to a crash.



    TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
    EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
    EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
    MapSketch - New image->map generator!
    EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
    SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
    \:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

    Apr 29 2011, 11:50 pm rockz Post #14

    ᴄʜᴇᴇsᴇ ɪᴛ!

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



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

    Aug 17 2011, 11:35 pm IAGG Post #15



    question about disabling a protoss assimilator. Im assuming it wont actually need a pylon around it before i disable it. The list givin above said it would cloak the building. is there anything else i need to know about disabling an assimilator? i plan to have it disabled when a certain unit goes near it in a game.

    I managed to get the assimilator working perfectly but the photon cannon, im still having trouble with. i know that the phton cannon needs to be powered up, but is there a way to detect whether or not the photon cannon is powered up. it would also need to be done without preplacing the photon cannons.

    Figured it out. Enable the photon cannon and then disable the photon cannon right after, and I wont need to check to see if its powered up.

    Post has been edited 2 time(s), last time on Aug 18 2011, 4:27 am by IAGG.



    None.

    Options
      Back to forum
    Please log in to reply to this topic or to report it.
    Members in this topic: None.
    [07: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
    [2024-4-20. : 8:09 pm]
    Vrael -- woo baby talk about a time crunch
    [2024-4-20. : 8:08 pm]
    Vrael -- 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
    so that gives me approximately 27 more years to finish tenebrous before you get to it?
    Please log in to shout.


    Members Online: Revenant