Loading...
  OR  Zero-K Name:    Password:   

Problem/Guide: How to open manually a replay from local disk?

7 posts, 1220 views
Post comment
Filter:    Player:  
sort

10 years ago
coming form

quote:
After downloading a replay, how can i replay the replay (using ZKL, Windows)?


quote:

If it's a manual download there's currently no way to handle it in ZKL at present, you open it manually with spring.exe.


(im on windows 7x64)
i had the same problem yesterday with opening a replay from disk. the usual binding to open the file with zk is gone somehow.

@anarchid told me to do the following:
1)open CMD.exe
2)navigate to your gam data folder (find it when you press in zkl->settings->open game data folder)
3)navigate into the subfolder "engine\96.0" (when replay uses 96.0)
4)type spring.exe "replayname" - where the last part is the location to your replay. usually all your own replays are in the demo folder in gamedata
5)hit enter

what should happen now is that spring/(or zkl?) loads the replay. also, no ZKL must be running at this point.

this was not happening. zkl opened but a popup said it could not find the corresponding map file.

i tried to copy both, replay and map file directly into the "engine" and "gamedata" folder, no effect. additionally, my spring installation on my second HDD (e:\spring), i might have some incomplete uninstalls at the default installation path at myDocuments.

so it seems the process is broken somehow. this is especially bad for an admin like me to review replays. for any assistance im very thankful. maybe others have the same issue.
+0 / -0
quote:
what should happen now is that spring/(or zkl?) loads the replay. also, no ZKL must be running at this point.

It should be spring launching directly.

Here's the run-down of why it fails (based on what DErankAdminmojjj reported yesterday):
1) ZKL specifies a content-directory for its own stuff somewhere on your hard drive.
2) It uses an environment variable (SPRING_DATADIR) to set this content-directory to some obscure folder (probably in mygames on windows?) so that the data can be reused between multiple engines.
3) When launched directly, Spring assumes that you're launching in portable mode, and assumes the SPRING_DATADIR to be equal to the directory where it is downloaded (in /engines/96.0/)

Possible solutions:
1) (ugly) copy or symlink the relevant datadir subfolders to engine subfolders
2) (1337) instead of "spring.exe replay.sdf", use this:
quote:
SPRING_DATADIR="C:\path\to\zklobby\datadir" spring.exe path\to\replay.sdf

If i'm not horribly mistaken, this should set the env variable so that spring can find your content. You can find or change the content-directory value somewhere in ZKL settings.

More info: http://springrts.com/phpbb/viewtopic.php?f=12&t=30044
+1 / -0


10 years ago
> using windows
> screwing around with CLI

Short Windows GUI version: drag replay icon on to spring.exe of correct version; done.
+1 / -0
quote:
drag replay icon on to spring.exe

Supposedly that was tried, and i'd guess it results in silent content-not-found error.
+0 / -0
quote:
drag replay icon on to spring.exe

I can confirm that this works on linux too. Replays are stored in ~/.spring/demos. You pick the one you want then drag and drop it onto the spring executable in ~/.spring/engine/xx.x. You know which engine version to use because it says in the replay's file name.
+0 / -0
10 years ago
quote:
Short Windows GUI version: drag replay icon on to spring.exe of correct version; done.
<- this works for me, thx.
+0 / -0
i think the problem with this
quote:
Short Windows GUI version: drag replay icon on to spring.exe of correct version; done.

at my installation is, that my zk-data dir is not at the default location (C:\Users\username\Documents\My Games\Spring). it looks there for the replay data like map, some cache things and so on. this leads to funny error msges like
.
+0 / -0