Replay Switcher Tool - Making replays "Just Work™"

Everything about mods can be found here.

Moderator: Morax

Replay Switcher Tool - Making replays "Just Work™"

Postby uberge3k » 28 Oct 2011, 18:34

Update 11/11/2011: V2 is now released, featuring a massively streamlined setup process. The download link has been updated!

Credit to ToejamS for coming up with the idea for this!

1. What is this?

The FA Replay Switcher is an application which is used to ease the managing of replays of SCFA games when one has replays both from GPGNet games and FAF games.

After installing this tool, you can simply double click on any replay in Windows Explorer. The tool will automatically launch the proper FA executable depending on the version of the replay. This is necessary due to the fact that FAF uses a new patch, and thus the FAF ForgedAlliance.exe cannot be used with replays from 3599, and vice versa.

2. How does it work?

The FA Replay Switcher (hereafter referred to as 'FARS' for brevity) is a simple C# console application, which takes a replay path as an argument. It then opens the replay file and scans the first few bytes of it to determine which patch version it is running from the header. If it is 3599, it will launch the 3599 ForgedAlliance.exe with the replay as a paramater, immediately starting the replay. Otherwise, it launches the FAF ForgedAlliance.exe, also immediately starting the replay. Therefore, you no longer need to figure out which replay is using what patch and launch ForgedAlliance yourself, and use it's cumbersome interface to find the replay you wanted to watch.

3. How do I install it?

1) Unzip the file to the location of your choosing.
2) Launch Setup.exe.
3) Enjoy.

Now you can double click any .scfareplay file and it will automagically launch the proper ForgedAlliance.exe!

4. I used a prior version of FARS! Will this still work?

Yes! :)
Simply follow the instructions as per normal, and if you get a dialog box telling you that .scfareplay files have already been assigned, tell it OK to automatically update them to point to the new tool.

Get it here:
FAReplaySwitcher.zip
(144.68 KiB) Downloaded 2268 times


Happy replay viewing!
Last edited by uberge3k on 11 Nov 2011, 21:12, edited 3 times in total.
Ze_PilOt wrote:If you want something to happen, do it yourself.
User avatar
uberge3k
Supreme Commander
 
Posts: 1034
Joined: 04 Sep 2011, 13:46
Has liked: 2 times
Been liked: 48 times
FAF User Name: TAG_UBER

Re: Replay Switcher Tool - Making replays "Just Work™"

Postby Zock » 28 Oct 2011, 18:44

that doesnt work for me, the program is crashing when i start a replay/when it opens.

i followed excatly the instructions.
gg no re

ohh! what a pretty shining link! https://www.youtube.com/c/Zockyzock
User avatar
Zock
Supreme Commander
 
Posts: 1395
Joined: 31 Aug 2011, 22:44
Has liked: 173 times
Been liked: 397 times
FAF User Name: Zock

Re: Replay Switcher Tool - Making replays "Just Work™"

Postby FunkOff » 28 Oct 2011, 19:16

yay it works, thank you
FunkOff
Supreme Commander
 
Posts: 1863
Joined: 26 Aug 2011, 17:27
Has liked: 14 times
Been liked: 43 times
FAF User Name: FakeOff

Re: Replay Switcher Tool - Making replays "Just Work™"

Postby uberge3k » 28 Oct 2011, 19:35

After some debugging, I discovered that Zock's problem was due to bad input. I've uploaded a new build which has additional error handling and helpful messages in case you enter invalid input.
Ze_PilOt wrote:If you want something to happen, do it yourself.
User avatar
uberge3k
Supreme Commander
 
Posts: 1034
Joined: 04 Sep 2011, 13:46
Has liked: 2 times
Been liked: 48 times
FAF User Name: TAG_UBER

Re: Replay Switcher Tool - Making replays "Just Work™"

Postby Moritz » 28 Oct 2011, 20:17

3) A folder to use for temporary storage of the replay you are watching. This CANNOT, repeat CANNOT, have spaces in the filename due to some strangeness in how FA handles filenames. C:\replays\ is a good choice.


My replay launcher doesn't have this problem, are you first copying the replay to the temp folder to launch it?
Moritz
Avatar-of-War
 
Posts: 175
Joined: 25 Aug 2011, 21:05
Has liked: 0 time
Been liked: 4 times
FAF User Name: Moritz

Re: Replay Switcher Tool - Making replays "Just Work™"

Postby FunkOff » 28 Oct 2011, 20:21

I think you should make it more user friendly so it's easy to setup without reading the readme. I actually had to read that for this installation and I consider that a grave error of the design team ;-p
FunkOff
Supreme Commander
 
Posts: 1863
Joined: 26 Aug 2011, 17:27
Has liked: 14 times
Been liked: 43 times
FAF User Name: FakeOff

Re: Replay Switcher Tool - Making replays "Just Work™"

Postby Ze_PilOt » 28 Oct 2011, 20:28

You can use the registry key used by FAF to get the FA folder, and complete the /bin and /binFAF from there.
Nossa wrote:I've never played GPG or even heard of FA until FAF started blowing up.
User avatar
Ze_PilOt
Supreme Commander
 
Posts: 8985
Joined: 24 Aug 2011, 18:41
Location: fafland
Has liked: 18 times
Been liked: 376 times
FAF User Name: Ze_PilOt

Re: Replay Switcher Tool - Making replays "Just Work™"

Postby Moritz » 03 Nov 2011, 12:17

You can load any replay from anywhere without copying it to a folder without spaces, you can use " in the command line (can't you?):

"C:\Program Files.....\ForgedAlliance.exe" /replay "C:\Downloaded Replays\Folder with spaces\My game.SCFAReplay"
Moritz
Avatar-of-War
 
Posts: 175
Joined: 25 Aug 2011, 21:05
Has liked: 0 time
Been liked: 4 times
FAF User Name: Moritz

Re: Replay Switcher Tool - Making replays "Just Work™"

Postby uberge3k » 06 Nov 2011, 19:52

Moritz wrote:You can load any replay from anywhere without copying it to a folder without spaces, you can use " in the command line (can't you?):

"C:\Program Files.....\ForgedAlliance.exe" /replay "C:\Downloaded Replays\Folder with spaces\My game.SCFAReplay"


Thanks for the tip - I did not know to include quotes in the path I sent in the parameter. I'll add this in.
Ze_PilOt wrote:If you want something to happen, do it yourself.
User avatar
uberge3k
Supreme Commander
 
Posts: 1034
Joined: 04 Sep 2011, 13:46
Has liked: 2 times
Been liked: 48 times
FAF User Name: TAG_UBER

Re: Replay Switcher Tool - Making replays "Just Work™"

Postby uberge3k » 11 Nov 2011, 20:45

The new version is finished. I've updated the original post with new (simpler!) instructions.

Thanks to Moritz and Ze_PilOt for the tips! :D
Ze_PilOt wrote:If you want something to happen, do it yourself.
User avatar
uberge3k
Supreme Commander
 
Posts: 1034
Joined: 04 Sep 2011, 13:46
Has liked: 2 times
Been liked: 48 times
FAF User Name: TAG_UBER

Next

Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest