Staredit Network > Forums > SC1 UMS Theory and Ideas > Topic: Setting pauses remaining
Setting pauses remaining
Aug 27 2015, 10:59 pm
By: Neiv  

Aug 27 2015, 10:59 pm Neiv Post #1



Hello. Today I'm going to tell how to modify the amount of pauses remaining with an obscure buffer overflow.

The overflow is triggered by running an ai script "Set player to ally/enemy here", which either unallies or allies all players at the location specified. If the location contains units owned by extended players, Starcraft will happily write 0 (enemy) or 2 (ally) to memory past the alliance status.

Sadly, there are only 244 bytes reachable with this overflow, and most of them are either leaderboard data (which can be modified with normal actions) or unused pre-bw location data. There seem to be only 2 interesting values: Start location coordinates of players - which are mostly useless, but seem to affect AI expansion pattern (or something related), and the amount of pauses each player has remaining.

So we can write either 0 or 2 to remaining pauses for each player, by placing units for extended players at location, and using "Set player to ally/enemy here" ai script on that location. The player running the script needs to be computer player, but each player can be used to do same things, the extended player used is just different.
  • Player 1 uses players 228-235
  • Player 2 uses players 216-223
  • Player 3 uses players 204-211
  • Player 4 uses players 192-199
  • Player 5 uses players 180-187
  • Player 6 uses players 168-175
  • Player 7 uses players 156-163
  • Player 8 uses players 144-151

So to set player 1's pauses to 0, you can run Set player to enemy here for player 1 at location which contains an unit owned by player 228, or run the same script for player 7 at location which contains an unit owned by player 156.
Player 6's pauses can be set to 2 by running Set player to ally here for player 3 at location containing player 209's unit and so on.

Demo: https://www.dropbox.com/s/79sc1w2xd8afkwj/Pause%20demo.scm?dl=1



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:18 am]
Symmetry -- Make maps for the memes :hurr:
[08:19 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: damn, if that doesn't scream UV, I don't know what does. https://staredit.net/382067/
hah yeah in the past that might've been up my alley. haven't really been mapping lately, been too busy with everything else. and kinda lost interest too tbh. just not enough people left on SC to feel worth investing the time personally.
[2026-10-30. : 8:03 pm]
lil-Inferno -- u
[2026-10-30. : 7:38 am]
NudeRaider -- damn, if that doesn't scream UV, I don't know what does. https://staredit.net/382067/
[2026-10-30. : 6:55 am]
UndeadStar -- :wob:
[2026-10-30. : 2:28 am]
Symmetry -- :wob:
[2026-10-29. : 9:17 pm]
RIVE -- :wob:
[2026-10-29. : 7:03 pm]
CoCo( -- OK, click here if any1 is interested in this $ making opportunity https://staredit.net/topic/18952/
[2026-10-29. : 4:39 pm]
NudeRaider -- sure, make a post in ums assistance
[2026-10-29. : 6:44 am]
CoCo( -- anyone willing to help fix a few triggers on a new "impossible" map? Please
Please log in to shout.


Members Online: Roy, anoeth47, Symmetry, Milestone