[WCS EU] Season 1 Finals -…
[SPL] Round 5 Week 3 Revie…
[GSTL] Week 10 - Prime Tim…
[WCS KR] Innovation vs. Sy…
[WCS AM] Ro16 Group D Prev…
This Week in Starcraft 2: …
TL Site Changes
[WCS EU] Grubby, MMA, Ret …
Pizza: All Tiers Reached
Vici and RisingStars Advan…
Up&Down groups for 2013 WC…
HerO, Revival Interviews -…
Get 50% off Papa John's pi…
TL Advertising Features
US Politics Megathread
My Little Pony: Friendsh…
The Big Programming Thread
Arrested development - n…
Korean Music Discussion
TL Site Changes
DC/VA/MD Weekly Nerd Dinne…
Barcraft Adelaide - June 1…
The Automated Ban List
Ask TL Staff Anything
The Startale_Life Fanclub
The Neo.G_Soulkey Fanclub
[Stream] dRaW
[Stream] High School Starl…
The Ultimate Mouse Thread
Getting a new Mouse! Any R…
Computer Build Resource Th…
What mouse/pad does your f…
Simple Questions Simple An…
Guardian UK article abou…
This Week in Starcraft 2
IdrA signs with eMG
Incredible Miracle spons…
Watch the SPL VODs with …
Never Miss An Inject? W…
[WCS EU] Finals Day 1 Prem…
Ottawa's Got Game! Estimat…
[WCS EU] Finals Day 2 Prem…
Albuquerue vs. Chicago Thr…
[HSL] Season 2 Playoffs
[G] TheCore - Advanced Key…
[G] The MAN Train: Immorta…
The HotS Terran Help Me Th…
[D] MVPs build order vs TL…
[!] The Pro Zerg Strategy …
Work In Progress Melee Maps
OneGoal: A better SC2 [Pro…
[A] Starbow
Map Jam & Challenge #5
[M] (2) Oasis 9
Looking at Alliance Draf…
The Great Dota 2 Key Req…
General Discussion
Dota 2 QQ thread
[Stream] Fachh[P]worstpl…
DotA 2 Team Recruitment …
[G-1] LAN Finals
[D2L] Fnatic vs. Mouz
RaidCall EMS One Americas …
Starladder Season 6
Dota 2 General LR thread
Simple Questions, Simple A…
[G]uide to Lifestealer
Question: Luna Item Build
Newly ported Hero discussi…
[G] In-Game Dota Guide for…
snipealots 24/7 afreeca …
[D] New BW Server
broodwar merchandise
SC SUM - StarCraft Super…
2 Artificial Intelligenc…
sGs New Player/Low Level…
[TLS2] Results and Standings
[R&S] 13th SOSPA Ranking T…
[GC S3] Gambit's Cup Semif…
D Ranks Teamleague Season 4
Gambit's Cup Season 3 Roun…
Simple Questions, Simple A…
Increasing APM/EAPM
Practice Partner Thread
Challenger map on Starcraf…
Quick few WC3 tips plz?
Civilization V + DLC's, …
UFC 160: Velasquez vs Bi…
Champions League/Europa …
World of Tanks
Carnival Cruise Mafia
[T] Bastard "Mini" Mafia!
Newbie Mini Mafia XLII
Running Thread
The Injuries Thread
General nutrition recommen…
Leta - Movie
Michael - skyline
Anytime - Beast
By.Hero - Shuttle
Anytime - Pusan
Customize Sidebar...

Website Feedback

Closed Threads


IRC Web Chat

TeamSpeak 3 (93 users)


Active: 6884 users

Program to resume games from replays

Forum Index > StarCraft 2 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 All
 
 TheSuperCow   April 13 2012 14:06. Posts 12
Profile # 
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
Last edit: 2012-04-19 17:21:39
Old Post

 
 Soft`Soap   Canada. April 13 2012 14:09. Posts 860
Profile # 
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^^
Old Post

 
 VashTS   United States. April 13 2012 14:10. Posts 1537
Profile # 
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!
Last edit: 2012-04-13 14:10:39
VashTS; 330; Random -- Ranked #9 Pokemon Video Game Player in the World in 2009
Old Post

 
 Soft`Soap   Canada. April 13 2012 14:10. Posts 860
Profile # 
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^^
Old Post

 
 VashTS   United States. April 13 2012 14:11. Posts 1537
Profile # 

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
Old Post

 
 ReachTheSky   United States. April 13 2012 14:11. Posts 2342
Profile # 
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.
Internet Police
Old Post

 
 TheSilverfox   Sweden. April 13 2012 14:12. Posts 1902
Profile # 
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
Old Post

 
 Severian   Australia. April 13 2012 14:14. Posts 1887
Profile # 
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.
 
Old Post

 
 Veldril   Thailand. April 13 2012 14:14. Posts 1597
Profile # 

On April 13 2012 14:11 VashTS wrote:

Show nested quote +


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
Old Post

 
 MamiyaOtaru   United States. April 13 2012 14:14. Posts 1651
Profile Blog # 
this would have been neat for something like the Flash vs Jaedong disconnect incident (wrong game, but you get the idea).
 
Old Post

  thrawn2112   United States. April 13 2012 14:14. Posts 3599Profile Blog # 
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
Old Post

 
 iPAndi   Costa Rica. April 13 2012 14:15. Posts 2205
Profile Blog # 
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.
Old Post

 
 BigBirdy90   Canada. April 13 2012 14:19. Posts 111
Profile # 
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...
 
Old Post

 
 acrimoneyius   United States. April 13 2012 14:21. Posts 973
Profile Blog # 
This looks really fishy.
Old Post

 
 zhurai   United States. April 13 2012 14:22. Posts 5561
Profile Blog # 

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 | Streamer, Translator (JP->EN) | Staff at Fuwanovel and Assistant Manager for FXO.NA SC2 |
Old Post

 
 Azzur   Australia. April 13 2012 14:22. Posts 5852
Profile Blog # 
Someone have a look at the source code!

Great job if it all works!
 
Old Post

 
 Yoshi Kirishima   United States. April 13 2012 14:26. Posts 9003
Profile Blog # 
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."
Old Post

 
 Soft`Soap   Canada. April 13 2012 14:29. Posts 860
Profile # 

On April 13 2012 14:22 zhurai wrote:

Show nested quote +


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^^
Old Post

 
 jeeneeus   April 13 2012 14:31. Posts 1101
Profile Blog # 
Well hasn't SALT been out for a while? Blizzard hasn't done anything regarding using this function.
Old Post

 
 Kiyo.   United States. April 13 2012 14:32. Posts 2212
Profile # 
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.
Last edit: 2012-04-13 15:08:37
KT Rolster & StarTale <3 | twitter.com/RayFoxII - twitch.tv/RayFoxII - ESFI Writer/Correspondent
Old Post

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 All
Please log in or register to reply.
 

» Recent SC2 Results
» Premier SC2 Tournaments

The Little App Factory