Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replays fail to start on Windows due to missing directory. #3008

Open
alexcthomas opened this issue Jul 5, 2023 · 1 comment
Open

Replays fail to start on Windows due to missing directory. #3008

alexcthomas opened this issue Jul 5, 2023 · 1 comment
Labels

Comments

@alexcthomas
Copy link

When launching replays on windows, the following error message appears

"C:\ProgramData\FAForever\replaydata\bin\ForgedAlliance.exe" (in directory "C:\ProgramData\FAForever\bin"): CreateProcess error=267, The directory name is invalid
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1143)
at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1073)
at com.faforever.client.fa.ForgedAllianceService.launch(ForgedAllianceService.java:159)
at com.faforever.client.fa.ForgedAllianceService.startReplay(ForgedAllianceService.java:96)
at com.faforever.client.game.GameService.lambda$runWithReplay$35(GameService.java:431)

To Reproduce

  • Under windows
  • Completely uninstall FAF client
  • Delete C:\ProgramData\FAForever
  • Reinstall FAF client
  • Download and try to run a replay

Fix
Manually create the directory:
C:\ProgramData\FAForever\bin
Then replays run fine.

Solution
FAF client should check for the existence of C:\ProgramData\FAForever\bin on startup.
If not present, it should be created.

@alexcthomas alexcthomas added the bug label Jul 5, 2023
@Sheikah45
Copy link
Member

Really replays should run from the replay data subfolder bin so that needs to be properly set up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants