• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 17:42
CEST 23:42
KST 06:42
  • 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
International Contenders: Of Myths and Champions0[ASL14] Ro8 Preview Pt.2 : Vacant Throne7Code S Season 3 - RO10 Group A Preview (Day 1)1Team Liquid Map Contest #1724[ASL14] Ro8 Preview Pt.1 : The Hard Part17
Community News
ESL Open Cup #140: Solar, HeroMarine, ByuN win1$15,000 AfreecaTV Champions Cup (1280 EPT Points)16Code S Season 3 - RO10 Groups Announced30ESL Open #139: Cure, MaxPax, trigger win5[TSL 9] Replay Pack8
StarCraft 2
General
SCFusion - WoL, HotS & LotV Build Order Optimizer Team Liquid Map Contest #17 [TSL 9] $1000 IMC Bracket Contest on Liquipedia ESL Open #139: Cure, MaxPax, trigger win Code S Season 3 - RO10 Group A Preview (Day 1)
Tourneys
WTL 2022 Winter: Qualifiers, WTL League-A, 2v2 Sparkling Tuna Cup - Weekly Open Tournament [GSL 2022] Code S:Season 3 - Ro10 Group A $15,000 AfreecaTV Champions Cup (1280 EPT Points) ITaX Trovo Series#27 - Classic, soO, Dark & ByuN
Strategy
Terran Mule Timing wankery [G] YAKS LOTV: Yet Another hotKey Setup - zerg Simple Questions Simple Answers The Core 4 Macro CG Setup
Custom Maps
Alternate Melee | Extension Mod – Multiplayer LotV [A] SC Real Scale StarLance | Extension Mod – Multiplayer LotV [M](4) Underrock
External Content
Mutation # 335 Inner Power Mutation # 334 Radiation Zone Mutation # 333 Distant Threat Mutation # 332 Specter of Death
Brood War
General
[ASL14] Ro8 Preview Pt.2 : Vacant Throne New season has started! BNET is Broken Again BW General Discussion Toxic Cyber Bully on US WEST
Tourneys
[ASL14] Ro8 Day 3 [BSL] 2v2 ProLeague FINALS - Sunday 20:00 on Trovo BWCL season 57 starts September 25th! [ASL14] Ro8 Day 2
Strategy
Questions about DT builds Soma's Paid Membership Videos ENG subs up Simple Questions, Simple Answers [PvP] How to defend vs. 2 gate zealot into nexus
Other Games
General Games
Diablo IV Nintendo Switch Thread The XBox Thread The PlayStation 5 Go Igo Weiqi Baduk
Dota 2
Official Dota and Chess General Discussion The International 2022 - Regional Qualifiers ESL One Malaysia 2022 Give away contest: Couriers Dota 2 7.32
League of Legends
What do you think of the animated series Arcane? [Summer Split] LoL Esports General Discussion [Patch Notes] Release General Discussion
Heroes of the Storm
International Contenders: Of Myths and Champions HotS: WP and Funny Moments QQ/Rage Thread. Evolution Never Over: The Way of the Meta
Hearthstone
TL Mafia
Chezinu streak(s) Mafia Newbie Student Mafia XXX Chezinu streak(s) vote thread Liquid Arcanon News [0]Paper TL Mafia Community Thread
Community
General
US Politics Mega-thread YouTube Thread Russo-Ukrainian War Thread NASA and the Private Sector The Letting Off Steam Thread
Fan Clubs
The Scarlett Fan Club The IdrA Fan Club The Flash Fan Club
Media & Entertainment
Korean Music Discussion Anime Discussion Thread [TV] HBO House of the Dragon [Manga] One Piece [Manga] Bleach
Sports
2021 NFL/CFB Season NBA General Discussion 2022 - 2023 Football Thread UFC/MMA Discussion Thread Formula 1 Discussion
Tech Support
Computer Build, Upgrade & Buying Resource Thread FPS when play League Of Legend on laptop The Ultimate Mouse Thread
TL Community
TL.net Ten Commandments The Automated Ban List Recent Gifted Posts
Blogs
Trying to create a g…
waywardstrategy
Good games i watched recently …
Topin
Transition: Five Years …
plasmidghost
So I got a WTL Gift Box…
TheOneAboveU
Tricked into dissatisfactio…
your mom
iCCup server maintenance no…
Mutaller
Cyberpunk Anime & Lofi Musi…
Jubinell
A decade of SC2: 2013 Blizza…
Nakajin
Customize Sidebar...

Website Feedback

Closed Threads



Active: 889 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
Canada865 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 States1675 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
Canada865 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 States1675 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 States3294 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.
TL+ Member
TheSilverfox
Profile Joined December 2010
Sweden1928 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
Australia2052 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
Thailand1817 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 Rica2273 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
Canada135 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 States5660 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
Australia6142 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 States9573 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
Canada865 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
1168 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 States2284 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
OSC
20:00
Masters Cup #146
davetesta68
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft445
IndyStarCraft 234
Nathanias 205
JuggernautJason 202
ProTech105
WinterStarcraft93
StarCraft: Brood War
Bonyth 127
nyoken 101
Dota 2
BananaSlamJamma3472
canceldota819
Pyrionflax665
monkeys_forever29
League of Legends
Trikslyr240
Counter-Strike: Global Offensive
FalleN 8714
Coldzera 1209
Super Smash Bros
C9.Mang0358
Other Games
JimRising 4541
summit1g4314
Stewie2K2758
shahzam2114
Beastyqt1160
Mlord265
MaximusBlack104
Organizations
Counter-Strike: Global Offensive
ESL CS:GO1054
Dota 2
BeyondTheSummit235
StarCraft 2
Esl_sc285
ESL.tv85
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 23 non-featured ]
StarCraft 2
• Response 47
• musti20045 26
• -Miszu- 21
• Adagramus 16
• Gussbus
• iNuTV
• IndyKCrew
• Kozan
• Migwel
• aXEnki
• intothetv
• Laughngamez YouTube
• Alpha X_
• Poblha
• LaughNgamez Trovo
StarCraft: Brood War
• sscaitournament1
• STPLYoutube
• BSLYoutube
• AfreecaTV YouTube
League of Legends
• TFBlade3708
Other Games
• imaqtpie1755
• Scarra1059
• Shiphtur809
Upcoming Events
Deathfate Pro Team League
2h 49m
Sparkling Tuna Cup
12h 19m
Afreeca Starleague
12h 19m
Snow vs hero
WardiTV European League
13h 39m
OSC
16h 19m
Senthex Events
19h 19m
PSISTORM Gaming Misc
1d 1h
Deathfate Pro Team League
1d 2h
WardiTV European League
1d 18h
PassionCraft
1d 19h
[ Show More ]
Online Event
2 days
Ultimate Battle
2 days
Snow vs Mong
WardiTV European League
2 days
OSC
2 days
PSISTORM Gaming Misc
3 days
WardiTV European League
3 days
ESPOT SC2 Circuit
3 days
ESL Pro Tour
4 days
WardiTV European League
4 days
PassionCraft
4 days
BSL 2v2 ProLeague
4 days
ESL Pro Tour
5 days
ESL Pro Tour
6 days
Liquipedia Results

Completed

ToL: Substitute Tournament
TSL 9
Heroes Int. - NA LC Qual.
Fragadelphia 17

Ongoing

FS Mania
Deathfate Pro Team League 2
GAN Race Survival Season 5
DSSL 16
KCM Ladies Race Survival 2022 Season 3
ASL Season 14
KCM Race Survival 2022 Season 3
BSL 2v2 ProLeague #1
Screw Me Up Bro
2022 GSL S3: Code S
Calamity Cup Division A - Season 4
NGS Storm Division S5
ESL Challenger League S42 EU
ESL Challenger League S42 NA
ESL Challenger League S42 AP
ESL Pro League Season 16

Upcoming

China StarCraft Anchor Qualifying Season 4
BWCL Season 57
StarClash 0925 CHN vs KOR Week14
CWCL Season 5
Hongtu Solo League S4
Tournament of Legends
Ultimate Battle: Snow vs Mong
2022 GSL: ST 2
DH Masters Atlanta
AfreecaTV Champions Cup
DHM Atlanta: CN
DHM Atlanta: NA
WTL 2022 Winter
DHM Atlanta: TW
DHM Atlanta: OC
DHM Atlanta: LA
DHM Atlanta: EU
Heroes International
IEM Rio Major 2022
BLAST Premier Fall Showdown
ESL Challenger Rotterdam 2022
FiReLEAGUE 2022
IEM Rio 2022: APAC RMR
IEM Rio 2022: AME RMR
IEM Rio 2022: EU RMR B
IEM Rio 2022: EU RMR A
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 © 2022 TLnet. All Rights Reserved.