AJS-development / OpenAgar

An open source web game
Other
45 stars 20 forks source link

Server won't start for some reason. #47

Closed alktbihd closed 7 years ago

alktbihd commented 7 years ago

Here is the log:

[OpenAgar] Starting OpenAgar V3.8.0 [OpenAgar] Loaded server configs [OpenAgar] Loaded ban file and cleaned it [OpenAgar] Loaded custom skins [OpenAgar] Loaded game server configs undefined undefined

Solution?

segg21 commented 7 years ago

@alktbihd Let try this,

Are you currently running any plugins?

alktbihd commented 7 years ago

installed, put my key then started nope

Andrews54757 commented 7 years ago

Is your id OMh7xHzOKXQsZDn1NDcI?

Andrews54757 commented 7 years ago

Are you using an invalid gamemode?

alktbihd commented 7 years ago

yes

Andrews54757 commented 7 years ago

@alktbihd ?

alktbihd commented 7 years ago

nope its a fresh start

alktbihd commented 7 years ago

dint edit nothing

Andrews54757 commented 7 years ago

is OMh7xHzOKXQsZDn1NDcI your id?

alktbihd commented 7 years ago

yes

Andrews54757 commented 7 years ago

Yeah, I saw your id on our error logs

Andrews54757 commented 7 years ago

However, nothing is on the log that can help:

{"0":"OMh7xHzOKXQsZDn1NDcI","uid":"OMh7xHzOKXQsZDn1NDcI","1":"2147483647","key":"2147483647","2":"","message":"","3":"","stack":"","4":"3.8.0","version":"3.8.0"}

alktbihd commented 7 years ago

so i need a new id?

Andrews54757 commented 7 years ago

No

Andrews54757 commented 7 years ago

@alktbihd Do this for me, delete lines https://github.com/AJS-development/OpenAgar/blob/master/source/core/controller.js#L61-L63 in your copy

Andrews54757 commented 7 years ago

Then run again

Andrews54757 commented 7 years ago

What does the console say then @alktbihd ?

alktbihd commented 7 years ago

/root/OpenAgar/source/core/childManager.js:37 if (this.cpus.length <= 1) throw "Your computer must have more than one core in order to run this program" ^ Your computer must have more than one core in order to run this program

Andrews54757 commented 7 years ago

Wow. Your computer is bad

alktbihd commented 7 years ago

server*

Andrews54757 commented 7 years ago

Sorry, but OpenAgar uses more than 1 cpu core.

Andrews54757 commented 7 years ago

You can however, override that check to use it, but it wont be so optimised

Andrews54757 commented 7 years ago

You will also have to edit other parts

Andrews54757 commented 7 years ago

You will also have to edit line 51 of childManager.js

Andrews54757 commented 7 years ago

Change

        if (this.childs.size < this.cpus.length - 1) {

to

        if (this.childs.size < this.cpus.length) {
FlamePlayerTR commented 7 years ago

Hey Andrews54757 Plz ready tutoriol video to create server I trying 2 months but I cant plz record the video plzzz

segg21 commented 7 years ago

@FlamePlayerTR Really? This is the main reason why I deleted it.

If you can't follow the simple tutorial, then a video wouldn't help neither. The only option for you is to stop trying, and let those people who understand how nodejs use this project only.