Clientside workaround for coop replays
See original GitHub issueIntro
This is a a sort of mini-guide on how to launch coop replays manually. I’m creating this as a github issue because I think it should be pretty simple to get the client to do this automatically. In the mean time people will need to do the set up themselves.
Why don’t coop replays work?
Coop maps are not stored in the vault like regular maps. This means that the replay server doesn’t recognize coop map names, and instead just write none
into the fafreplay
header. When the client goes to download the map we see an exception like this:
java.io.FileNotFoundException: https://content.faforever.com/faf/vault/maps/none.zip
How to launch coop replays manually
First off, you will want to have the legacy client installed as it will handle updating to the correct version of FA for the replay: https://github.com/FAForever/client/releases
-
Download the replay from the vault. An easy way to do this is to hit the “play” button on the coop tab, and cancel when you see the error, just be aware that it is downloaded into
C:\ProgramData\FAForever\cache\temp.fafreplay
. -
Change the replay extension from
.fafreplay
to.coop.fafreplay
. This will tell the legacy client that it should update for thecoop
game mode. -
Right click the replay and open it with the legacy client. It is probably called
Forged Alliance Forever - Lobby Client
. The legacy client should now update the necessary files, but it will most likely fail with an error message like “Map not found” or a timeout error. -
Start the replay from the command line. Open
cmd
orpowershell
and paste in the following command:
C:\ProgramData\FAForever\bin\ForgedAlliance.exe /init init_coop.lua /nobugreport /log C:\ProgramData\FAForever\logs\game.log /replay C:\ProgramData\FAForever\cache\temp.scfareplay
Client workaround
I think we should modify the replay launching code so that it skips the map download for coop maps. That way the user can set up their maps directory manually before launching the replay. We should also make sure that the client downloads the correct version of the FA for the replay, as it stands I think it tries to always download the most recent version (the legacy client handles this correctly).
Criteria for closing this issue
I want to be able to click the “play” button on the coop leaderboard and have the client download and successfully launch the replay. The client should update the faf
featured mod to the correct version, but may assume that:
- The map is already present and at the right version
- The
coop
featured mod is at the right version
Wanna have the bug fixed quickly? Visit Issue hunt…
IssueHunt Summary
sheikah45 has been rewarded.
Backers (Total: $10.00)
- askaholic ($10.00)
Submitted pull Requests
Tips
- Checkout the Issuehunt explorer to discover more funded issues.
- Need some help from other developers? Add your repositories on IssueHunt to raise funds.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:7 (5 by maintainers)
Top GitHub Comments
@axel1200 has rewarded $9.00 to @sheikah45. See it on IssueHunt
@askaholic has funded $10.00 to this issue.