I submitted a Javascript bot yet I lost in the first match due to this error.
Command: No Command
Execution time: 1001ms
Exception: /home/PythonScripts/temp/BotFiles/48fcaa20-9840-4425-aebf-9d07cf3e22e8/02bfe02c-09e8-4d0f-bd21-bd55ab2e4e52/StarterBot.js:129
console.log(`C;${roundNumber};${command}`);
^
ReferenceError: command is not defined
at executeRound (/home/PythonScripts/temp/BotFiles/48fcaa20-9840-4425-aebf-9d07cf3e22e8/02bfe02c-09e8-4d0f-bd21-bd55ab2e4e52/StarterBot.js:129:37)
at Interface.consoleReader.on (/home/PythonScripts/temp/BotFiles/48fcaa20-9840-4425-aebf-9d07cf3e22e8/02bfe02c-09e8-4d0f-bd21-bd55ab2e4e52/StarterBot.js:97:5)
at Interface.emit (events.js:198:13)
at Interface._onLine (readline.js:308:10)
at Interface._normalWrite (readline.js:451:12)
at Socket.ondata (readline.js:165:10)
at Socket.emit (events.js:198:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
Did something change in the Game Engine, I see my last upload also picks up a similar problem stating No command provided yet the previous upload has a valid match
Match 2, same problem.
Command: No Command
Execution time: 1001ms
Exception: /home/PythonScripts/temp/BotFiles/48fcaa20-9840-4425-aebf-9d07cf3e22e8/02bfe02c-09e8-4d0f-bd21-bd55ab2e4e52/StarterBot.js:129
console.log(`C;${roundNumber};${command}`);
^
ReferenceError: command is not defined
at executeRound (/home/PythonScripts/temp/BotFiles/48fcaa20-9840-4425-aebf-9d07cf3e22e8/02bfe02c-09e8-4d0f-bd21-bd55ab2e4e52/StarterBot.js:129:37)
at Interface.consoleReader.on (/home/PythonScripts/temp/BotFiles/48fcaa20-9840-4425-aebf-9d07cf3e22e8/02bfe02c-09e8-4d0f-bd21-bd55ab2e4e52/StarterBot.js:97:5)
at Interface.emit (events.js:198:13)
at Interface._onLine (readline.js:308:10)
at Interface._normalWrite (readline.js:451:12)
at Socket.ondata (readline.js:165:10)
at Socket.emit (events.js:198:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
Ignore, think I found the problem
Hi Styphoiz,
Would you mind sharing what you found? Just want to know because it might help others facing similar issues
I was trying something and ended up commenting out a portion of my code which included commenting out this line as well, guess I’ll have to try in the next round. Such an idiot move.
let command = runStrategy() || doNothingCommand();
Should’ve checked my last bot results as well.