JaraLowell / OgarServ

Jara's version of Agar.io's private server prodject in Javascript modified from OgarProject using JXCore.
http://ogar.mivabe.nl
Other
28 stars 13 forks source link

runjx.sh error #163

Open skysea opened 7 years ago

skysea commented 7 years ago

adsiz

JaraLowell commented 7 years ago

Yah seems JXCore changed a few things, so for now run it under node till we figure out what they up to there and get that fixed.

skysea commented 7 years ago

Thank you. NodeJS Which version should I install

JaraLowell commented 7 years ago

As of like V8 version 3.17.13.0 the option to set max new space bin removed. So when you start the server with the --max-new-space-size=xxxx option the server wont start trowing an error.

We do suggest that you use node v0.10.25 ~ v0.10.43 (V8 version 3.14.5.9) as these versions use the lowest memory with OgarServ.

To change your node version: sudo npm cache clean -f --force sudo npm install -g n sudo n 0.10.43

After this, make sure to install the node modules again by first removing the node_modules folder and dooing an npm install ws http fs sys mysql url underscore and then run the server with the command line: node --nouse-idle-notification --expose-gc --always-compact --max-new-space-size=2048 --max-old-space-size=2048 index.js

skysea commented 7 years ago

Thank you