AJS-development / OpenAgar

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

Key Request #7

Closed darknight99x closed 7 years ago

darknight99x commented 7 years ago

Hi, interested in development of OpenAgar. Thanks.

Andrews54757 commented 7 years ago

Need id for key

darknight99x commented 7 years ago

ID: zXH3vhz81Iy3SKaps3O9

Andrews54757 commented 7 years ago

115511078670 I also replied to your post in reddit

darknight99x commented 7 years ago

I saw, thanks for the detailed feedback.

Andrews54757 commented 7 years ago

Dumb GitHub turning 115511078670 into

  1. lol
darknight99x commented 7 years ago

Okay thanks, i'll be fiddling around and let you know if I find anything strange.

darknight99x commented 7 years ago

@Andrews54757

Upon server restart I got this: Invalid key!, make sure you have the right key! Your id is: false

Andrews54757 commented 7 years ago

What machine is your server running on?

darknight99x commented 7 years ago

Win 10 x64 build 10240

The server was working fine until I restarted it.

Andrews54757 commented 7 years ago

Perhaps your mac address changed. Please run this nodejs script twice and report the results t.js.zip

Andrews54757 commented 7 years ago

Do exactly the same thing you did from before when you got it to work and re run the script I gave you afterwords. I need to see what data had changed

darknight99x commented 7 years ago

`C:\Users\Darknight99x\Desktop\a\source\core\controller.js:37 throw e ^ Invalid key!, make sure you have the right key! Your id is: false

C:\Users\Darknight99x\Desktop\a>cd ..

C:\Users\Darknight99x\Desktop>cd temp

C:\Users\Darknight99x\Desktop\temp>node t.js AMD FX(tm)-6100 Six-Core Processor 9c:b7:0d:3f:e6:86 win32 x64 Windows_NT`

Andrews54757 commented 7 years ago

And the second set of data ... (do exactly the same thing you did before that broke OpenAgar, then run it)

darknight99x commented 7 years ago

Do you want me to reset OpenAgar? Because I can't reproduce what happened because my ID is gone.

Andrews54757 commented 7 years ago

Just run the script again

Andrews54757 commented 7 years ago

Il try to reproduce using my vms

darknight99x commented 7 years ago
'C:\Users\Darknight99x\Desktop\temp>node t.js
AMD FX(tm)-6100 Six-Core Processor
9c:b7:0d:3f:e6:86
win32
x64
Windows_NT

C:\Users\Darknight99x\Desktop\temp>node t.js
AMD FX(tm)-6100 Six-Core Processor
9c:b7:0d:3f:e6:86
win32
x64
Windows_NT

C:\Users\Darknight99x\Desktop\temp>'

Okay I ran it twice.

Andrews54757 commented 7 years ago

Strange

darknight99x commented 7 years ago

throw e ^

Is it looping code after successful key? Is what it looks like. EDIT: Nevermind.

Andrews54757 commented 7 years ago

It works for all the virtual machines I have. Im gonna test more though. But currently, delete a file called backup in the open agar dir and delete a file called mcuid to reset your id

darknight99x commented 7 years ago

Done. New ID is: G2W9Fjk4tEtexIMRQQ2l

Do you guys plan on having these IDs stored in a database?

Andrews54757 commented 7 years ago

932665533761

Andrews54757 commented 7 years ago

I don't think it will happen again though

Andrews54757 commented 7 years ago

Wait, did you ever run project N, that could be the problem

darknight99x commented 7 years ago

I figured out the issue. Changing the folder path name where OpenAgar is at causes the fault.

C:\Users\Darknight99x\Desktop\>rename a b

C:\Users\Darknight99x\Desktop\b>node index.js

C:\Users\Darknight99x\Desktop\b\source\core\controller.js:37
 throw e
 ^
Invalid key!, make sure you have the right key! Your id is: false

Might have to do with Windows, unsure at this point.

Andrews54757 commented 7 years ago

I wonder why

darknight99x commented 7 years ago

I changed the directory name back to previous and it's now working.

Andrews54757 commented 7 years ago

Oh, I know why, its a protection system I added a while ago for the backup file. If you change the dir, delete the backup file. I don't need the protection system anymore, yet didn't remove it because I was lazy. Im gonna remove it

Andrews54757 commented 7 years ago

The backup file is for offline use. Thats what it is. But the program checks it too