siggame / octo-robot

The Legacy Arena
2 stars 0 forks source link

kick.sh unable to locate Cerveau (Serv_frame_update branch) #38

Closed DanielBolef closed 8 years ago

DanielBolef commented 8 years ago

when kick.sh is executed to start a gladiator, it is unable to locate the server (Cerveau), returning:

daniel17sep@daniel17sep-Lenovo-G570:~/Documents/gladiators-checkers$ bash ./kick.sh ./kick.sh: line 12: cd: /home/daniel17sep/Documents/Cadre-MegaMinerAI-Dev/Cerveau/: No such file or directory mkdir: cannot create directory ‘1’: File exists ln: failed to create hard link ‘1/referee.py’: File exists ln: failed to create hard link ‘1/prep_for_bake.py’: File exists daniel17sep@daniel17sep-Lenovo-G570:~/Documents/gladiators-checkers$ processing game 15 module.js:338 throw err; ^

Error: Cannot find module '/home/daniel17sep/Documents/gladiators-checkers/main.js' at Function.Module._resolveFilename (module.js:336:15) at Function.Module._load (module.js:286:25) at Function.Module.runMain (module.js:475:10) at startup (node.js:118:18) at node.js:952:3

It then attempts to play games, all of which fail.

JacobFischer commented 8 years ago

Did you read the error?

Does /home/daniel17sep/Documents/Cadre-MegaMinerAI-Dev/Cerveau/ exist?

Remember, within the github repo siggame/Cadre-MegaMinerAI-Dev Cerveau/ is a submodule. It will need to be initialized like any git submodule. It's honestly probably easier to never clone down the whole Cadre framework as the Arena should only ever need the server, Cerveau; so instead just clone only the server siggame/Cerveau-MegaMinerAI-Dev as you won't need to deal with submodule stuff.

As for Error: Cannot find module '/home/daniel17sep/Documents/gladiators-checkers/main.js':

I'm guessing you are trying to run the server inside that gladiators-checkers/ directory? Well the server is in Cerveau. npm install && node main.js --arena need to be ran in the Cerveau directory.

DanielBolef commented 8 years ago

I'm trying to track down exactly where those paths are defined; that seems to be the problem.

JacobFischer commented 8 years ago

It's probably somewhere in https://github.com/siggame/octo-robot/commit/b1f17fe26285acac6e884be894809438d456485a.

That's where we added the Cadre framework code.

DanielBolef commented 8 years ago

Problem was in spinup_local_gladiator.py, wrong server path.

JacobFischer commented 8 years ago

Cool, I see it in 22eda207ea85b9214225df985bfd79448da2162b.

Also, if you didn't know, you can have your commit's auto close issues like these. So when your commit message was:

Fixed server path

You could instead change it to:

Fixed server path

Closes #38

That way you close the issue you are pushing code for, and GIthub hooks up the commit here like a comment, and other can reference your code changes more easily.