question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clientside workaround for coop replays

See original GitHub issue

Issuehunt badges

Intro

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

  1. 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.

  2. Change the replay extension from .fafreplay to .coop.fafreplay. This will tell the legacy client that it should update for the coop game mode.

  3. 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. image

  4. Start the replay from the command line. Open cmd or powershell 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:

  1. The map is already present and at the right version
  2. The coop featured mod is at the right version

Wanna have the bug fixed quickly? Visit Issue hunt… Issue hunt


IssueHunt Summary

sheikah45 sheikah45 has been rewarded.

Backers (Total: $10.00)

Submitted pull Requests


Tips

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
issuehunt-app[bot]commented, Oct 4, 2020

@axel1200 has rewarded $9.00 to @sheikah45. See it on IssueHunt

  • 💰 Total deposit: $10.00
  • 🎉 Repository reward(0%): $0.00
  • 🔧 Service fee(10%): $1.00
1reaction
issuehunt-app[bot]commented, Jun 1, 2020

@askaholic has funded $10.00 to this issue.


Read more comments on GitHub >

github_iconTop Results From Across the Web

Clientside workaround for coop replays. #1676 - Issuehunt
Right click the replay and open it with the legacy client. It is probably called Forged Alliance Forever - Lobby Client . The...
Read more >
Insurgency: Sandstorm Community Server Discussion
I have a dedicated server running coop checkpoint maps. At the end of the game ( client side ) there is a list...
Read more >
Replay file not showing/working for all coop maps #1560
I joined a random guy to play coop on "Black Day". Local replay file for coop game does not exist, log does not...
Read more >
Can a programmer explain if/why it's difficult to have 2 ... - Reddit
I think the problem lies in that all games are played from battle.net servers, but replays are pure local and sc2 has no...
Read more >
Halo Infinite's campaign co-op preview kicks off in July
Up to four players will be able to team up in a party. We don't know exactly when campaign co-op and mission replay...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found