Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Known causes of EUD crashes
Known causes of EUD crashes
Mar 25 2018, 1:46 am
By: Lanthanide  

Mar 25 2018, 1:46 am Lanthanide Post #1



With SCR supporting EUD editing, we have new abilities that has not been widely used before, so there is limited knowledge about the things that will cause crashes in SCR. So this thread aims to consolidate any discoveries made about EUD changes that will cause SCR to crash or freeze.

Setting unit vision to 12 or greater
The maximum vision distance for any unit is 11. Setting it to 12 or greater will result in a crash.

Changing unit size for units already in the map
This occurs for pre-placed units, and perhaps also units that you create, then subsequently change the size of (untested). This, along with the crash below, was one of the infamous freeze/crash bugs in the map I was working on, that I bored many people in Discord with. I spent about 45 hours testing to get to the bottom of this problem.

The actual crashes/freezes seem to be with the Unit Finder code, which is what is used to determine if units are at a particular location, for any of the unit-location based trigger actions and conditions (move unit from location to location, kill unit at location, bring unit to location etc). There are two algorithms used for the unit finder depending on the size of the location being referenced. Small locations (8x4 tiles or smaller) are vulnerable to a variety of freeze/crash issues, eg if you pre-place a unit X on the map and change the size of that unit via EUDs, then bring that unit to a small location that is being used for other trigger purposes (moving unit Y to that location), the presence of unit X at that location can cause SC to freeze.

Units that are newly created after the unit size is changed are not affected. It also seems that if you create a new unit of the same type after changing the size, that the original units of that type will no longer cause freezes. This needs to be confirmed with more testing though.

Setting any unit dimension to 0
Similar to the above, a unit which has a dimension of 0 can interfere with the unit finder algorithm and result in a crash or freeze in Starcraft. I don't have a 100% clear understanding of what is required for this to cause freezes, but it was definitely happening in my map.




I have a test map that demonstrates the freezes you get with small size locations when a pre-placed unit has its size changed. The map also demonstrates a freeze that seems to be related to a unit having a dimension of 0, but the mechanics behind this freeze are a little weird.

Download link for 0-dimension freeze example map: http://www.staredit.net/sc1db/file/4041/

See the map description for how to reproduce the freezes and how to edit the map to see some more weird behaviour.

Post has been edited 5 time(s), last time on Mar 26 2018, 4:23 am by Lanthanide.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2026-10-11. : 6:02 am]
Donald -- Samase
[2026-10-09. : 2:53 am]
Mr.BurnLiquid -- Symmetry
Symmetry shouted: I'll check it out this weekend!
Thanks
[2026-10-09. : 2:47 am]
Symmetry -- I'll check it out this weekend!
[2026-10-09. : 2:40 am]
Mr.BurnLiquid -- Symmetry
Symmetry shouted: Another map maker? Damn we really ARE back
I invite you to try out the map I modified. I don't have the creativity to create maps from scratch, but I do have the know-how to modify existing ones; my project is to tweak community campaigns (specifically those with errors—to make them playable.
[2026-10-09. : 2:27 am]
Symmetry -- Another map maker? Damn we really ARE back
[2026-10-09. : 1:51 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Now that I wanted to change my avatar, the error image is showing up, haha.
[2026-10-09. : 1:34 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Mr.BurnLiquid
Mr.BurnLiquid shouted: Ultraviolet Thanks; I'm new to the site and a Spanish speaker. I must have missed the part where it was prohibited—I'll change it now.
I invite you to try out a mission I'm modifying from *StarCraft Reversed*; I'm trying to make it more playable and challenging.
[2026-10-09. : 1:33 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Thanks; I'm new to the site and a Spanish speaker. I must have missed the part where it was prohibited—I'll change it now.
[2026-10-09. : 1:31 am]
Ultraviolet -- Mr.BurnLiquid
Mr.BurnLiquid shouted: Ultraviolet Is it forbidden to have a large avatar?
actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Please log in to shout.


Members Online: Symmetry, Butch, Ultraviolet