- Created Sunday, April 24th 2016 @ 23:42:54
I am doing the warlight challenge as an exercise, however I am having trouble getting the game running locally. I downloaded the engine from the git repository, and followed the instructions for compiling locally. That all worked fine, however trying to run the program as specified in the readme gives a file path not found error on the line that tries to initialize the bots. I have also tried to specify other file paths, however I am always met with the same error. Can anyone give me some guidance here? I have been messing with this for some time with no luck. To make things as easy as possible:
The command to run the game: java main.RunGame 0 0 0 "java bot.BotStarter" "java bot.BotStarter" 2>err.txt 1>out.txt
The error: Exception in thread "main" java.io.IOException: Cannot run program "aiplayer1": CreateProcess error=2, The system cannot find the file specified
The line in question: bot1 = new IORobot("aiplayer1 " + bot1Dir);
Thanks in advance for the help!
- Created Sunday, April 24th 2016 @ 23:49:33
Well. I think I solved my own problem. It appears as though the command passed to IORobot is just run directly, so the addition of aiplayer1 in there seems to have caused the error. Removing it stopped the error, however I am not currently sure if this effects things elsewhere,