• Log InLog In
  • Register
Liquid`
TeamLiquid Liquipedia LiquidDota LiquidLegends
EST 15:33
CET 21:33
KST 05:33
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
IEM Katowice - RO24 Group B Preview9IEM Katowice 2021 - RO24 Group A Preview14[ASTL2] Playoffs R2 - Carariyo vs LOGINmedia4[TQ] Best of the Best Tour W2 Recap3IEM Katowice 2021 - RO36 Preview2
Community News
BSL Season 11 - RO24 Group Stage - 26, 27 & 28 Feb11IEM Katowice - TY, Maru, Clem advance from Group A18IEM Katowice RO36 concludes, RO24 groups completed17IEM Preview w/ Lambo "I wouldn't be surprised to see any of the Koreans [outperform] expectations."21GTC to start in March - TL, Afreeca, NV, Shopify possibly joining23
StarCraft 2
General
IEM Katowice - RO24 Group B Preview IEM Katowice - TY, Maru, Clem advance from Group A IEM Preview w/ Lambo "I wouldn't be surprised to see any of the Koreans [outperform] expectations." IEM Katowice 2021 - RO24 Group A Preview IEM Katowice RO36 concludes, RO24 groups completed
Tourneys
[IEM 2021] Katowice World Championship - RO24 Group B [IEM 2021] Katowice World Championship - RO24 Group C [IEM 2021] Katowice World Championship - RO24 Group A $4,000 WardiTV Winter Championship 2021 [IEM 2021] Katowice World Championship - RO36 Day 2
Strategy
[G] PvZ Cheese: PartinG's "Adios Amigo" Build Simple Questions Simple Answers HuShang Tutorials Select Larvae + Morph unit Rapidfire
Custom Maps
Re-created map Ghost Tower Re-created map Wasteland
External Content
Mutation # 253 World on Fire Mutation #252 Triple Threat Mutation #251 Burning Legion Mutation #250 Out of Order
Brood War
General
When Sparkyz Team-house Flooded Underwater Pt.2 2021 ACS Season 1 Announced Blizzconline: Starcraft Legends event BSL - Season 11 [StarCastTV] Update Thread
Tourneys
Jeez Weekly 2021 [BWCL] Season 52 - Main Page Small VOD Thread 2.0 BSL Season 11 - RO24 Group Stage - 26, 27 & 28 Feb
Strategy
Defusion by terrain – interesting Mine behaviour Try My great strategy game Sorry's TvP lategame Ghost strategies? How many drones to a base?
Other Games
Heroes of the Storm
[HotS] 2020: A Year in the Nexus HotS: WP and Funny Moments Hots Newbie here
General Games
Nintendo Switch Thread Genshin Impact - Coop RPG Path of Exile Final Fantasy XIV Vampire: The Masquerade - Bloodlines 2
TL Mafia
TL Mafia Community Thread [M][N] Mafia Mafia: Mafia Edition {FlaSh}[Mini] Raceday [M][N] I'm a cop you idiot! - Round 4
Hearthstone
Is Hearthstone Gambling?
LoL General
LoL Tournaments
LoL Strategy
Community
General
US Politics Mega-thread Coronavirus and You Trading/Investing Thread Planets that can potentially support life... Tesla Motors
Fan Clubs
The TY Fan Club DongRaeGu Fan Club The Scarlett Fan Club
Media & Entertainment
Korean Music Discussion Movie Discussion! Dragon Ball Super Discussion [Manga] Shingeki no Kyojin [Manga] One Piece
Sports
2020 - 2021 Football Thread NHL 21: Tony DeActivito Did Nazi That Coming UFC/MMA Discussion Thread Formula1 2019 NBA Season 2019-2020
Tech Support
Computer Build, Upgrade & Buying Resource Thread How do you decide if mobo/cpu dead? Stutter feeling...
TL Community
The Automated Ban List Ask TL Staff Anything
Blogs
Balance Discussion
NonY
Yucatán Peninsula Travel Highl…
Tak3r
Singing "publically" for the…
JieXian
A Look Back At GSL Sea…
TheRealNanMan
A decade of Starcraft 2: 201…
Nakajin
IsoRTS Code
ChristianS
Sen Got Married.
BreAKerTV
Hot Takes
imBLIND
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1320 users

Program to resume games from replays

Forum Index > SC2 General
Post a Reply
1 2 3 4 5 37 38 39 Next All
TheSuperCow
Profile Joined February 2011
12 Posts
Last Edited: 2012-04-19 08:21:39
April 13 2012 05:06 GMT
#1
I wrote a program that allows games to be resumed (eg. after a disconnect) by using the replay to recreate the game up to a certain point and then resuming play as normal.

This is just a hack and meant merely as a demonstration of how easy it is to implement technically, though through my limited testing it has worked fine to resume multiplayer games.

Note that this is a 3rd party program, it does modify Starcraft 2 in memory, and I provide no warranty; use at your own risk.

[image loading]

How to use the thing:

First you need to hit 'Inject' (provided SC2 is running). The program then loads itself into SC2.

The resume time textbox specifies the time (in minutes:seconds) at which the game will be resumed; when the game starts, it will quickly progress up until the specified time, then play will resume as normal. Do not perform any actions in-game while the game is progressing, or things might get screwed up

The 'Resume replay' button makes it so the next replay that is viewed in SC2 will be resumed with the player playing as the player who saved the replay the host of the original game. There will be no replay UI as there usually is. Not really a very useful feature, but it was easy to implement, so why not.

The 'Resume game' button will resume the next regular game played. This requires a replay to be specified (using the Browse button). It is important that the game settings (map, number of players and races) are the same as in the replay, or things will not go as planned.
This can be used, for instance, to resume a disconnected multiplayer game, if all players specify either the exact same replay or their respective replays from the same game, and exactly the same resume time.



A feature to resume disconnected games is needed in Starcraft 2. It's not hard to make. One can only hope that Blizzard realizes this.

edit:

I made it so it pauses the game upon reaching the specified time, and it disables user input until then. I also included the code contained in util.lib, since people have been requesting it. StormLibRAS.lib is, well, StormLib.
It does not wait for all players to finish fast-forwarding, however, so it be best to confirm all players are ready before unpausing.



There is of course a few issues, the most notable right now is that it seems to matter who hosted/which order people joined. Most likely, the order joined/slot occupied by player must match with the originals from the replay, this is again most likely due to simple unit numbering internally in SC2, where the host's units are created first and so forth.

Oh, and control groups are not restored. At least not with regards to the user interface.
There should be no issues with spawn positions as this is indirectly determined by the random seed, which is overridden.

If anyone actually wants to use this, or if Blizzard would approve of use of this program, then I would need to make a better version.

edit: I fixed control groups, yey.

edit: Okay, I fixed the whole join in the right order thing. You should now play as the player who was in your spot, regardless of which order you joined in. It also sets your race. I hope I didn't break anything :D

edit: I fixed unicode support in the UI. It turns out koreans play this game, too.

Download: http://www.mediafire.com/?2lj5cjbzc9wgbxr
Source code: http://www.mediafire.com/?iy2i6la3ommq1o4
Soft`Soap
Profile Joined March 2011
Canada864 Posts
April 13 2012 05:09 GMT
#2
I think that putting a link to download hacks is against the tl.net code
I think that leaving your findings is fine, but you should probably delete the download links.
MiXyass DjLadyDana SoftSoap RightClick DigicidaL l)H[Zodiak] 58^^
VashTS
Profile Joined September 2010
United States1584 Posts
Last Edited: 2012-04-13 05:10:39
April 13 2012 05:10 GMT
#3
I find this very interesting, but I'm not risking neither my game nor my computer on something somebody with 1 post says.

I really, really hope this works, though. Maybe Blizzard can buy it from you and you can make a pretty penny. =) GL!
VashTS; 330; Random -- Ranked #9 Pokemon Video Game Player in the World in 2009
Soft`Soap
Profile Joined March 2011
Canada864 Posts
April 13 2012 05:10 GMT
#4
On a side note, this is a cool concept and if it sounds so easy to implement, it makes me wonder, why hasn't Blizzard done something like this?
MiXyass DjLadyDana SoftSoap RightClick DigicidaL l)H[Zodiak] 58^^
VashTS
Profile Joined September 2010
United States1584 Posts
April 13 2012 05:11 GMT
#5
On April 13 2012 14:10 Soft`Soap wrote:
On a side note, this is a cool concept and if it sounds so easy to implement, it makes me wonder, why hasn't Blizzard done something like this?

What's simple for somebody may not be so simple for others. Maybe Blizz simply never thought of this method.
VashTS; 330; Random -- Ranked #9 Pokemon Video Game Player in the World in 2009
ReachTheSky
Profile Joined April 2010
United States3110 Posts
April 13 2012 05:11 GMT
#6
Interesting but i can't see how this would actually be of use. Maybe, just maybe for tournaments but then again i can't see organizers allowing a third party program like this. Who knows though. Maybe you should add a poll to the OP to get the communities opinion on the matter.
Zerg is hands down the easiest race to play.
TL+ Member
TheSilverfox
Profile Joined December 2010
Sweden1920 Posts
April 13 2012 05:12 GMT
#7
Oh, this looks really interesting, I will definitely test it!

One quick question. Say that a game have two players and one observer - is it enough if only the observer have this hack implemented, or is it required for all of the players/observers to have this installed?
Also known as Joinsimon on Twitter/Reddit
Severian
Profile Joined September 2010
Australia2045 Posts
April 13 2012 05:14 GMT
#8
Pfft. In the time it took you to write that program, Blizzard could have easily made chat windows resizable in both the x and y dimensions.
Veldril
Profile Joined August 2010
Thailand1806 Posts
April 13 2012 05:14 GMT
#9
On April 13 2012 14:11 VashTS wrote:
Show nested quote +
On April 13 2012 14:10 Soft`Soap wrote:
On a side note, this is a cool concept and if it sounds so easy to implement, it makes me wonder, why hasn't Blizzard done something like this?

What's simple for somebody may not be so simple for others. Maybe Blizz simply never thought of this method.


Maybe Blizz might hire him to implement this function officially
Without love, we can't see anything. Without love, the truth can't be seen. - Umineko no Naku Koro Ni
MamiyaOtaru
Profile Blog Joined September 2008
United States1687 Posts
April 13 2012 05:14 GMT
#10
this would have been neat for something like the Flash vs Jaedong disconnect incident (wrong game, but you get the idea).
thrawn2112
Profile Blog Joined June 2010
United States6918 Posts
April 13 2012 05:14 GMT
#11
sounds like some of you havent ever used the internet before... i thought everyone learned their lesson about downloading random programs from unverified sources a long time ago
"People think they know all these things about other people, and if you ask them why they think they know that, it'd be hard for them to be convincing." ES
andiCR
Profile Blog Joined March 2008
Costa Rica2271 Posts
April 13 2012 05:15 GMT
#12
Wow man... never thought I'd see this day lol

Great to keep as a reference! I hope blizzard can see this and try adding some kind of stuff to it.

I would love to see this integrated with replay "group" session. Imagine opening a replay with a friend, setting it up for a big engagement he screwed up, and replaying it once and again, until you can figure out how to best deal with a certain situation. OH MAN THAT WOULD BE AWESOME
Nightmare1795 wrote: I played a guy in bronze who said he was Japanese. That was the only game I ever dropped a nuke, which was purely coincidental.
BigBirdy90
Profile Joined August 2010
Canada120 Posts
April 13 2012 05:19 GMT
#13
This can be used, for instance, to resume a disconnected multiplayer game, if all players specify either the exact same replay or their respective replays from the same game, and exactly the same resume time.

I haven't tested this at all, but how do you network them back together. I highly doubt this works..I wouldn't test a guy with one post guys...
acrimoneyius
Profile Blog Joined June 2010
United States983 Posts
April 13 2012 05:21 GMT
#14
This looks really fishy.
zhurai
Profile Blog Joined September 2010
United States5645 Posts
April 13 2012 05:22 GMT
#15
On April 13 2012 14:09 Soft`Soap wrote:
I think that putting a link to download hacks is against the tl.net code
I think that leaving your findings is fine, but you should probably delete the download links.

there are multiple meanings of "hack" you know.
Twitter: @zhurai | Site: http://zhurai.com
Azzur
Profile Blog Joined July 2010
Australia6091 Posts
April 13 2012 05:22 GMT
#16
Someone have a look at the source code!

Great job if it all works!
Yoshi Kirishima
Profile Blog Joined July 2009
United States9395 Posts
April 13 2012 05:26 GMT
#17
This looks really interesting, wow so it IS that simple?

Though caution like others have said, only 1 post.


Wait so how does the second person also play?
Mid-master streaming MECH ONLY + commentary www.twitch.tv/yoshikirishima +++ "If all-in fails, all-in again."
Soft`Soap
Profile Joined March 2011
Canada864 Posts
April 13 2012 05:29 GMT
#18
On April 13 2012 14:22 zhurai wrote:
Show nested quote +
On April 13 2012 14:09 Soft`Soap wrote:
I think that putting a link to download hacks is against the tl.net code
I think that leaving your findings is fine, but you should probably delete the download links.

there are multiple meanings of "hack" you know.


It's still a 3rd party program that Blizzard doesn't approve of
MiXyass DjLadyDana SoftSoap RightClick DigicidaL l)H[Zodiak] 58^^
jeeneeus
Profile Blog Joined September 2010
1158 Posts
April 13 2012 05:31 GMT
#19
Well hasn't SALT been out for a while? Blizzard hasn't done anything regarding using this function.
Kiyo.
Profile Joined November 2010
United States2212 Posts
Last Edited: 2012-04-13 06:08:37
April 13 2012 05:32 GMT
#20
Took a quick look through the source code and don't see anything too suspicious. However, it does inject itself into SC2 so Warden may flag it as a hack. Use at your own risk, I wouldn't recommend using it though as of right now. Hopefully R1CH or someone else with more knowledge can come and confirm.
KT Rolster & StarTale <3 | twitter.com/RayFoxII - twitch.tv/RayFoxII
1 2 3 4 5 37 38 39 Next All
Please log in or register to reply.
Live Events Refresh
maraleague
17:00
Gruppe B
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
elazer 677
LamboSC2 316
Kas 161
JuggernautJason140
UpATree 139
TKL 123
-ZergGirl 74
Railgan 24
StarCraft: Brood War
Calm 2372
Shuttle 1003
LaStScan 226
CadenZie 133
MisO 50
scan(afreeca) 36
Oya187 20
Counter-Strike: Global Offensive
XANTAREScN7738
x6flipin3484
fl0m2300
Fnx 1088
StaRiX155
bouly24
Super Smash Bros
Mew2King255
PPMD246
Westballz94
Other Games
Destiny2532
Grubby1805
Happy384
crisheroes327
Trikslyr235
Hui .212
QueenE55
PainUser55
KnowMe50
EmSc Tv 50
RuFF_SC223
Organizations
Counter-Strike: Global Offensive
ESL CS:GO4210
StarCraft 2
ESL.tv3599
Other Games
B2W.Neo1507
StarCraft 2
OGamingTV SC2 1023
SC2 Vod Archives67
Other Games
EmSc Tv 50
StarCraft 2
EmSc2Tv 50
Blizzard YouTube
[ Show 22 non-featured ]
StarCraft 2
• Moistchipxx 87
• zuka 63
• team pheeniX 12
• gerald23 12
• D4rkn0ob1k 10
• PlayArcher 3
• Laughngamez YouTube
• Genesis Gaming
• Tree_Stump
• AlphaB_SC2
• Matiz_pl
• LaughNgamez Trovo
• Alpha X_
• IndyKCrew
• Kozan
• intothetv
• aXEnki
SC2: Legacy of the Void
• KarlJayG
StarCraft: Brood War
• HerbMon 29
• Michael_bg 12
• sscaitournament6
• AfreecaTV YouTube
Upcoming Events
OSC
12h 27m
Challenger's Cup
13h 27m
Percival vs Zoun
Vanya vs Cham
KCM Race Survival
13h 27m
maraleague
20h 27m
Queen's Gambit
21h 27m
The NA Apprentice
1d 3h
eXoN event
1d 5h
ITaX Super Series
1d 13h
Zoun vs DongRaeGu
ByuN vs Armani
maraleague
1d 20h
BWCL
1d 22h
iRk- vs aSh.
[ Show More ]
Online Event
2 days
KCM Ladies Race Survival
2 days
Ultimate Battle
2 days
Stork vs EffOrt
BSL
2 days
trutaCz vs Tech
Michael vs SneazeL
TerrOr vs UltrA
BoA vs vOddy
Best of the Best Tour
3 days
vOddy vs Sziky
StRyKeR vs trutaCz
The NA Apprentice
3 days
Grand Platypus Open
3 days
Afreeca Challengers Sta…
3 days
BeAsT Cup
3 days
BSL
3 days
Avi-Love vs StRyKeR
KwarK vs Cross
Sziky vs Ziggy
g0rynich vs Dandy
Alpha X Junior Champion…
3 days
Best of the Best Tour
4 days
DragOn vs StRyKeR
kogeT vs TerrOr
Dewalt vs OyAji
AfreecaTV Starcraft Tea…
4 days
Afreeca Challengers Sta…
4 days
BSL
4 days
Casper vs Yugox
Hawk vs DragOn
Gosudark vs MadiNho
spx vs OctZerg
BSL
4 days
Alpha Pro Series
4 days
Starkiller vs Garitos
OlimoLeague
6 days
Liquipedia Results

Completed

Ultimate Battle: Rush vs Stork
WardiTV 2021
Rive: Love HotS
BLAST Premier Spring Groups

Ongoing

Best of the Best Tour
KCM Race Survival 2021 Season 1
Rogue City Rumble
Shinhan Tank Proleague S4
BWCL Season 52
BWCL Season 52: Div-A
ASTL Season 2
IEM Katowice 2021
NGS Storm Division S2
30k/CM Off-S. Tour
ESEA S36 - NA Premier
ESEA S36 - EU Premier
ESEA S36 - AU Premier
Snow Sweet Snow #2
IEM Katowice 2021

Upcoming

BWCL Season 53
BW Jeez Weekly 101
King of Kings 52
2021 ACS Season 1
Deathfate Pro League
Ultimate Battle: Stork vs EffOrt
Bombastic StarLeague 11
DH Masters Summer: Finals
DHM Summer: China
DHM Summer: NA
DHM Summer: Oceania
DHM Summer: Asia
DHM Summer: LatAm
DHM Summer: Europe
2021 GSL Season 1
Masters Clash Champ. 2021
IEM Summer 2021
DH Masters Spring 2021
BLAST Premier Spring Showd.
DreamHack Open Mar 2021
ESL Pro League Season 13
Pinnacle Cup
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2021 TLnet. All Rights Reserved.