Problem with replaying .replay file online

I can’t replay my .replay files online, my powershell ends with this, maybe this is the problem
"
PLAYER 1 WINS!
Waiting to exit finished game.
SAPlayer 1 Orion: Got end state quitting bot.
sent game end playerIndex: 0
SAPlayer 2 starter-algo: Got end state quitting bot.
sent game end playerIndex: 1
sent game end playerIndex: 0
sent game end playerIndex: 1
Done waiting now exiting finished game.
Hard Exiting Now
Closing stream
freeze 2604java.io.IOException: Cannot run program “kill”: CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessBuilder.start(Unknown Source)
at java.base/java.lang.ProcessBuilder.start(Unknown Source)
at java.base/java.lang.Runtime.exec(Unknown Source)
at java.base/java.lang.Runtime.exec(Unknown Source)
at java.base/java.lang.Runtime.exec(Unknown Source)
at util.ProcessUtil.freezeProcessTree(ProcessUtil.java:23)
at util.ProcessUtil.killRecursive(ProcessUtil.java:11)
at towergame.gamecore.player.SimpleAlgoPlayer.close(SimpleAlgoPlayer.java:201)
at towergame.gamecore.player.PlayerManager.closeAllPlayers(PlayerManager.java:36)
at towergame.GameMain.processEndGame(GameMain.java:547)
at towergame.GameMain.runLoop(GameMain.java:401)
at towergame.GameMain.startGame(GameMain.java:202)
at towergame.GameMain.main(GameMain.java:175)
at towerworker.TowerWorker.main(TowerWorker.java:78)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessImpl.create(Native Method)
at java.base/java.lang.ProcessImpl.(Unknown Source)
at java.base/java.lang.ProcessImpl.start(Unknown Source)
… 14 more
kill 2144
Closing playerIndex: 1
Exited for loop
End of main
Closing stream
freeze 2604java.io.IOException: Cannot run program “kill”: CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessBuilder.start(Unknown Source)
at java.base/java.lang.ProcessBuilder.start(Unknown Source)
at java.base/java.lang.Runtime.exec(Unknown Source)
at java.base/java.lang.Runtime.exec(Unknown Source)
at java.base/java.lang.Runtime.exec(Unknown Source)
at util.ProcessUtil.freezeProcessTree(ProcessUtil.java:23)
at util.ProcessUtil.killRecursive(ProcessUtil.java:11)
at towergame.gamecore.player.SimpleAlgoPlayer.close(SimpleAlgoPlayer.java:201)
at towergame.GameMain.main(GameMain.java:177)
at towerworker.TowerWorker.main(TowerWorker.java:78)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessImpl.create(Native Method)
at java.base/java.lang.ProcessImpl.(Unknown Source)
at java.base/java.lang.ProcessImpl.start(Unknown Source)
… 10 more

kill 2604
Closing stream
freeze 2144java.io.IOException: Cannot run program “kill”: CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessBuilder.start(Unknown Source)
at java.base/java.lang.ProcessBuilder.start(Unknown Source)
at java.base/java.lang.Runtime.exec(Unknown Source)
at java.base/java.lang.Runtime.exec(Unknown Source)
at java.base/java.lang.Runtime.exec(Unknown Source)
at util.ProcessUtil.freezeProcessTree(ProcessUtil.java:23)
at util.ProcessUtil.killRecursive(ProcessUtil.java:11)
at towergame.gamecore.player.SimpleAlgoPlayer.close(SimpleAlgoPlayer.java:201)
at towergame.GameMain.main(GameMain.java:178)
at towerworker.TowerWorker.main(TowerWorker.java:78)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.base/java.lang.ProcessImpl.create(Native Method)
at java.base/java.lang.ProcessImpl.(Unknown Source)
at java.base/java.lang.ProcessImpl.start(Unknown Source)
… 10 more

kill 2144"
everything before that is good and replay is saved, if i duel 2 good algos, file is around 8MB, if i duel starter vs my good algo result is 2.5MB

2 Likes

I have the same problem on the local end, but if I look at the replay files, they look fine. Just a lot of lines of moves, no weird errors there. I think it might have to do with the website? It is quite slow today anyways.

2 Likes

Checkout the new readme.md that comes with starterkit. There is an issue with windows special end of line character that makes replays created on windows not work on the site. This can be fixed for now by changing the line endings on the replay files using a text editor or the following website: http://newline.nadav.org/

We have a permanent solution ready and it will be out on our next deploy within a day or two so that windows replays will work without conversion. Sorry for the inconvenience.

2 Likes