Some of you might allready know how to do this, but ive seen a few asking about it and you can't do it "out of the box" with the editor so i thought it would maybe be interesting for some.
So....
For my AC130 map i wanted to speed down during upgrade UI interaction and also during some cut-scenes (slowmotion/bullet time effect).
I was like super annoyed when i found out that blizzard have not included a function in the editor that allowed you to change the game-speed yourself.
You do have a option to set it to 5 predefined modes that are very close to each-other and is not very help full for anything beyond what they are being used for today (set normal playspeed).
I dumped a list of functions and found out that it is in fact supported.
The gamespeed is a fun function since gamespeed 1 is super super fast while gamespeed 4000 is super slowmotion.
(seem like it does not diplay properly here... try this one: )
the sound isn't effected because the data for its timing is kept elsewhere, which IMHO is better that way you can play the sound at the offset you need and also get it to sound exactly how you want. Anyway great find Malu
Well, i don't got it right here but just dump the list from sc2.exe using a debugger and look for "speed" (can't remember the exact name) there is only 1 argument which is speed (int) so it should be easy to find.
Well, i don't got it right here but just dump the list from sc2.exe using a debugger and look for "speed" (can't remember the exact name) there is only 1 argument which is speed (int) so it should be easy to find.
I don't know about the other guys here, but I wouldn't know how to dump anything from anywhere.
Well, i don't got it right here but just dump the list from sc2.exe using a debugger and look for "speed" (can't remember the exact name) there is only 1 argument which is speed (int) so it should be easy to find.
Would it not have taken you less keystrokes to simply type out the function name? What the fuck?
Well, i don't got it right here but just dump the list from sc2.exe using a debugger and look for "speed" (can't remember the exact name) there is only 1 argument which is speed (int) so it should be easy to find.
This may be OT, but, what kind of other hidden functions are there in sc2.exe. For example, would it be worth my time to invest into learning how to "debugg" this exe to learn how to recreate mouse functions like highlighting and unit clicking.
I would greatly appreciate it if you tell us what the function is, I've been trying to edit the game speed beyond the preset values with no success so far.
sorry for necro but i have to anser this (just searched for it myself).
the function is called GameSetGlobalTimescale(1.0); 1.0 is default, higher values are faster, also available in GUI
Played around with this a bit. Found some interest things.
It appears that units can't handle issued orders if the global time scale is below 0.001.
You can get a pretty cool bullet time thing going by setting the global time scale to 0.01, giving all units but your hero a behavior that sets their time scale to 0.01, and then giving your bullet time unit a behavior that sets his time scale to 10.0
i guess you hit the bottom :d
i am using this to increase the speed in my Maze/TD each 5th wave, but somehow, cannot nail it down yet, the behaviour is different and really devastating for air units (air units fly in circles never reach their target, seems like the turning speed isn't scaled).
my guess is that the game time in triggers also doesn't scale to it.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Some of you might allready know how to do this, but ive seen a few asking about it and you can't do it "out of the box" with the editor so i thought it would maybe be interesting for some.
So.... For my AC130 map i wanted to speed down during upgrade UI interaction and also during some cut-scenes (slowmotion/bullet time effect). I was like super annoyed when i found out that blizzard have not included a function in the editor that allowed you to change the game-speed yourself. You do have a option to set it to 5 predefined modes that are very close to each-other and is not very help full for anything beyond what they are being used for today (set normal playspeed).
I dumped a list of functions and found out that it is in fact supported. The gamespeed is a fun function since gamespeed 1 is super super fast while gamespeed 4000 is super slowmotion.
(seem like it does not diplay properly here... try this one: )
@malu05: Go
So...what's the function? :P
Apparently it's not this:
Too bad the sound isn't affected by the speed either...
Would be really nice if you actually shared how you did it. Personally I have no need for it but I am sure there are many people out there who do.
the sound isn't effected because the data for its timing is kept elsewhere, which IMHO is better that way you can play the sound at the offset you need and also get it to sound exactly how you want. Anyway great find Malu
You're seriously going to post this and not post the function?
@rrowland: Go
Well, i don't got it right here but just dump the list from sc2.exe using a debugger and look for "speed" (can't remember the exact name) there is only 1 argument which is speed (int) so it should be easy to find.
I don't know about the other guys here, but I wouldn't know how to dump anything from anywhere.
Just tell us how to do it. Or give us the map to see for ourselves.
Would it not have taken you less keystrokes to simply type out the function name? What the fuck?
This may be OT, but, what kind of other hidden functions are there in sc2.exe. For example, would it be worth my time to invest into learning how to "debugg" this exe to learn how to recreate mouse functions like highlighting and unit clicking.
I dumped all the raw strings in SC2.exe with the word 'speed' in it, can't find anything that works though.
@Wahoa: Go
You can trace it back from the cvar:
C_VAR 0.16.0.15449 GameSpeed(int) - 0x02F6A064
I would greatly appreciate it if you tell us what the function is, I've been trying to edit the game speed beyond the preset values with no success so far.
So has anyone accomplished this yet?
Whatever you do, wholeheartedly, moment by heartfelt moment, becomes a tool for the expression of your very soul.
@GnaReffotsirk: Go
sorry for necro but i have to anser this (just searched for it myself).
the function is called GameSetGlobalTimescale(1.0); 1.0 is default, higher values are faster, also available in GUI
@FunkyUserName: Go
Played around with this a bit. Found some interest things.
It appears that units can't handle issued orders if the global time scale is below 0.001.
You can get a pretty cool bullet time thing going by setting the global time scale to 0.01, giving all units but your hero a behavior that sets their time scale to 0.01, and then giving your bullet time unit a behavior that sets his time scale to 10.0
@PirateArcade | I make games | Ask me things on Discord
@greythepirate: Go
i guess you hit the bottom :d
i am using this to increase the speed in my Maze/TD each 5th wave, but somehow, cannot nail it down yet, the behaviour is different and really devastating for air units (air units fly in circles never reach their target, seems like the turning speed isn't scaled).
my guess is that the game time in triggers also doesn't scale to it.