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.
[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: IlyaSnopchenko, Roy, jun3hong