Cannot run matches locally (Mac OS)

Hi I just downloaded the starterkit and wanted to see how to run matches before making any alterations to the algo.

So, after cd-ing into scripts folder I ran this in the terminal:

python3 run_match.py python-algo/algo_strategy python-algo/algo_strategy

I got back all of this:

Is windows: False
Algo 1: python-algo/algo_strategy/run.sh
Algo 2: python-algo/algo_strategy/run.sh
Start run a match
Starting Engine: sept2019
Starting single worker game.
Looking for Config file at:
/Users/chidinmaumenwofor-nweze/Desktop/side-projects/C1GamesStarterKit-master/game-configs.json
python-algo/algo_strategy/run.sh
python-algo/algo_strategy/run.sh
Error on simple algo process creation
java.io.IOException: No such file or directory
at java.base/java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.base/java.io.File.createNewFile(File.java:1024)
at com.c1games.terminal.game.player.SimpleAlgoPlayer.(SimpleAlgoPlayer.java:63)
at com.c1games.terminal.game.player.PlayerManager.setupPlayerFromCommandString(PlayerManager.java:101)
at com.c1games.terminal.game.GameMain.main(GameMain.java:124)
at com.c1games.terminal.Terminal.main(Terminal.java:139)
Algo Crashed. Crash: true !processIsAlive: null
AlgoIndex 0 crashed bootup: python-algo/algo_strategy/run.sh
Error on simple algo process creation
java.io.IOException: No such file or directory
at java.base/java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.base/java.io.File.createNewFile(File.java:1024)
at com.c1games.terminal.game.player.SimpleAlgoPlayer.(SimpleAlgoPlayer.java:63)
at com.c1games.terminal.game.player.PlayerManager.setupPlayerFromCommandString(PlayerManager.java:101)
at com.c1games.terminal.game.GameMain.main(GameMain.java:125)
at com.c1games.terminal.Terminal.main(Terminal.java:139)
Algo Crashed. Crash: true !processIsAlive: null
AlgoIndex 1 crashed bootup: python-algo/algo_strategy/run.sh
Saving replay: /Users/chidinmaumenwofor-nweze/Desktop/side-projects/C1GamesStarterKit-master/replays/p1-19-02-2020-18-36-32-1582155392323-1716228035.replay
P1 Name: FailedToLoad seasonMode:5
P2 Name: FailedToLoad seasonMode:5
Waiting for: 3000 before starting first turn.
Done waiting starting first turn.
Winner (p1 perspective, 1 = p1 2 = p2): 2
Waiting to exit finished game.
sent game end playerIndex: 0
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 playerIndex: 0
Closing playerIndex: 1
Exited for loop
End of main
Finished running match

Any ideas what may be wrong? I saw similar questions but they all seem to be on different os. I’ve tried running run_match.sh, but it says “the command was not found”.

Nevermind,

I goofed. Just ran python-algo instead of just the strategy file and it worked.

Bruh.

1 Like

Glad to have you starting to code up an algo anyway!

And best of luck to you!