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

java.io.IOException: No such file or directory #128

Open
matteosantama opened this issue Jan 19, 2023 · 0 comments
Open

java.io.IOException: No such file or directory #128

matteosantama opened this issue Jan 19, 2023 · 0 comments

Comments

@matteosantama
Copy link

I am encountering the following error

❯ python3 ./scripts/run_match.py python-algo/algo-target python-algo/algo-target
Is windows: False
Algo 1:  python-algo/algo-target/run.sh
Algo 2: python-algo/algo-target/run.sh
Start run a match
Starting Engine: August_17_2020
Starting single worker game.
Looking for Config file at: 
/Users/matteosantamaria/C1GamesStarterKit/game-configs.json
python-algo/algo-target/run.sh
python-algo/algo-target/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:1035)
	at com.c1games.terminal.game.player.SimpleAlgoPlayer.<init>(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:141)
Algo Crashed. Crash: true !processIsAlive: null
AlgoIndex 0 crashed bootup: python-algo/algo-target/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:1035)
	at com.c1games.terminal.game.player.SimpleAlgoPlayer.<init>(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:141)
Algo Crashed. Crash: true !processIsAlive: null
AlgoIndex 1 crashed bootup: python-algo/algo-target/run.sh
Saving replay: /Users/matteosantamaria/C1GamesStarterKit/replays/p1-19-01-2023-09-56-30-1674150990680-260374981.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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant