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.
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
[2024-4-17. : 1:52 am]
Vrael -- hah do you think I was born yesterday?
Please log in to shout.


Members Online: eksxo