AJS-development / OpenAgar

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

ID Reseting #48

Closed TrevorCow closed 7 years ago

TrevorCow commented 7 years ago

Every time I start OpenAgar it returns: "[OpenAgar]Something went wrong. So we reset your id. Your new id:" and gives me a new ID. I have tried chmoding everything to 777 and running as root. Any suggestions?

Andrews54757 commented 7 years ago

Did you change the name of the openagar directory?

TrevorCow commented 7 years ago

No

Andrews54757 commented 7 years ago

Tell me exactly what you did to produce this.

TrevorCow commented 7 years ago

Nothing, fresh install

TrevorCow commented 7 years ago

I just deleted everything and retried. still just giving me new id.

Andrews54757 commented 7 years ago

How did you launch the server, tell me with description

TrevorCow commented 7 years ago

I used git to make an OpenAgar dir, then cd'ed into it, ran npm install, then node index.js, then gen and copied key, then ran again. It then doesn't fully start, and gives me a new id telling me something went wrong.

Andrews54757 commented 7 years ago

Does your machine have mac address spoofing?

TrevorCow commented 7 years ago

Maybe, i have a VPS. I don't know why that would be enabled...

Andrews54757 commented 7 years ago

This has happened before: #7

Andrews54757 commented 7 years ago

Run this script twice, and report the results please: t.js.zip

TrevorCow commented 7 years ago

I deleted the whole folder, inculding the backup and muid file. Still happens...

TrevorCow commented 7 years ago

ok

TrevorCow commented 7 years ago

root@TrevorCow:\~/Servers/OpenAgar# node t.js Intel(R) Xeon(R) CPU E3-1240 v3 @ 3.40GHz undefined linux x64 Linux root@TrevorCow:\~/Servers/OpenAgar# node t.js Intel(R) Xeon(R) CPU E3-1240 v3 @ 3.40GHz undefined linux x64 Linux

Andrews54757 commented 7 years ago

@TrevorCow It looks like your machine doesnt have a mac address. To confirm, run this script and give me the results:


console.log(require('os').networkInterfaces())
Andrews54757 commented 7 years ago

@TrevorCow I will fix it soon

TrevorCow commented 7 years ago

Ok I'll just have to update then? Thanks andrew :)

Andrews54757 commented 7 years ago

@TrevorCow Fixed

TrevorCow commented 7 years ago

It is still happening @Andrews54757

Andrews54757 commented 7 years ago

Git pull

TrevorCow commented 7 years ago

I did git clone again

TrevorCow commented 7 years ago

"Already up-to-date"

TrevorCow commented 7 years ago

Even if I don't put a key it errors @Andrews54757

Andrews54757 commented 7 years ago

Update again, I changed it

TrevorCow commented 7 years ago

nope :/ @Andrews54757

TrevorCow commented 7 years ago

Any ideas? @Andrews54757

Andrews54757 commented 7 years ago

Nope

TrevorCow commented 7 years ago

Darn :/ Would it work if I spoofed a mac address? @Andrews54757

Andrews54757 commented 7 years ago

nope

Andrews54757 commented 7 years ago

Its not because of that

TrevorCow commented 7 years ago

Oh, what is the reason then?

segg21 commented 7 years ago

@TrevorCow ok, this VPS. Yours? Or renting?

segg21 commented 7 years ago

If renting, contact your hosting about your MAC address usage.

I think it's silly that it's needed, but stronger security I guess.

Andrews54757 commented 7 years ago

@LegitSoulja , without this protection, it would mean that people would be able to sell openagar copies

TrevorCow commented 7 years ago

@LegitSoulja @Andrews54757 shouldn't I be able to set it myself?

Andrews54757 commented 7 years ago

@TrevorCow Solution: Dont use a vps. Use a real dedicated server you have full control over

Andrews54757 commented 7 years ago

@TrevorCow This is my server: Cost 250$

61ot7cbcbel _sx522_

segg21 commented 7 years ago

What is that lol