ogarproject / ogar Goto Github PK
View Code? Open in Web Editor NEWAn open source Agar.io server implementation, written with Node.js.
License: Other
An open source Agar.io server implementation, written with Node.js.
License: Other
Hello, i have installed Ogard on my Debian 7 x64 Server and when i go on the port :443 i have a "Not Implemented Error".
How i can fix it ?
Best Regards,
iTouch
But I can't play. When I split my cell and when I go back in one celle, I grow up but my second cell is still here and it doesn't disappear.
http://i.gyazo.com/d68084cbacf10782f0b39381d3f1f195.gif
Plus, I have this error, I think there is a link with agar.io..
http://i.gyazo.com/500efe03610cf879ce4fef3fc5cfcbf3.png
I cloned the repo and installed dependencies. when i type "node Ogar --master --game 0" to run the servers. It gives this error. how can I solve this?
module.js:340
throw err;
^
Error: Cannot find module '/Users/sayginburak/Documents/Sites/Ogar/Ogar'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:929:3
but i installed mono and wine but I can not get it to work
Why no compatibility to Linux
Ty :)
sorry for my english I'am Spanish
Has Im playing on my server with bots I suddenly freeze and have to rejoin the server, note the server isnt crashing cause the bots etc are still on it playing I just randomly freeze so do my friends even with out bots we do.
I made the server today. 6/30/2015
Here is a video of what happens. Ignore the webcam in the bottom right I didn't realize it was on.
https://drive.google.com/file/d/0B2E4entgyGxPQWdfRFVLcThwNmM/view?usp=sharing
thats what happens. Thats not a photo im zooming in and out on thats the game and what happens
I am play with is game, my score is 361, when I touch on virus, This page is not response. The Ogar server is download today.
Any idea what i'm doing wrong?
Well, after about 24 hours of running, with around 50 or more players always on, things become extremely laggy. I noticed networking just struggles. Servers behind custom routers seem to be fine, but those direct seem to have issues. All our servers are on a 1GB/s ports so networking shouldn't be a problem. I'm not sure if it could be the router based servers closing dead connections and the other ones don't. I'm not sure, but I have a small hunch it's to the with Ogar not closing connections properly or at all? I could be wrong, correct me if I am.
(I've had to resort to Ogar server reboots every 24 hours or so)
P.S: Sorry for second issue thread. :P
I started the game server and master server, and I have my client-side mod. But how can I get the number of players at the server right now?
I notice that with the standard configuration. I shoot the virus when I am too closed to it, the ejected mass just goes through the virus (Actually, Mother cell in Experiment mode). Same issue when I feed my teammate, especially if he is small.
Another issue, is below code missed update? (this.angle = 1 - this.angle;
)
Cell.prototype.calcMovePhys = function(config) {
...
if ((this.position.x + radius) > config.borderRight) {
// Flip angle horizontally - Right side
this.angle = 1 - this.angle;
X = config.borderRight - radius;
}
...
};
Line: 85
File: events.js
There's not much other information about the error
See picture.
Nickname can be overflown (Ogar has no limit).
When i used linux script i got this:
npm http GET https://registry.npmjs.org/ws
npm http 304 https://registry.npmjs.org/ws
npm http GET https://registry.npmjs.org/options
npm http GET https://registry.npmjs.org/ultron
npm http GET https://registry.npmjs.org/bufferutil
npm http GET https://registry.npmjs.org/utf-8-validate
npm http 304 https://registry.npmjs.org/ultron
npm http 304 https://registry.npmjs.org/options
npm http 304 https://registry.npmjs.org/utf-8-validate
npm http 304 https://registry.npmjs.org/bufferutil
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/nan
[email protected] install /home/____/Ogar/node_modules/ws/node_modules/bufferutil
node-gyp rebuild[email protected] install /home/____/Ogar/node_modules/ws/node_modules/utf-8-validate
node-gyp rebuild
gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:431:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess.handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.13.0-24-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/___/Ogar/node_modules/ws/node_modules/bufferutil
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm WARN optional dep failed, continuing [email protected]
gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp
failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:431:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.13.0-24-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/_____/Ogar/node_modules/ws/node_modules/utf-8-validate
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm WARN optional dep failed, continuing [email protected]
[email protected] node_modules/ws
├── [email protected]
└── [email protected]
Based on vram4's fork, whenever we split and move, your cells will possibly freeze after a while.
What are the windows prebuilts built with, if I may inquire?
when i try to start ogar using node Ogar it crashes and gives me this:
[Game] Ogar - An open source Agar.io server implementation
Error: listen EADDRINUSE
at exports._errnoException (util.js:746:11)
at Server._listen2 (net.js:1156:14)
at listen (net.js:1182:10)
at Server.listen (net.js:1267:5)
at GameServer.startStatsServer (/Users/Adryd/Ogar/src/GameServer.js:919:21)
at GameServer.start (/Users/Adryd/Ogar/src/GameServer.js:206:10)
at Object. (/Users/Adryd/Ogar/src/index.js:25:12)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
[Error] Server could not bind to port! Please close out of Skype or change 'serverPort' in gameserver.ini to a different number.
the port that i set it to is not used by any other services
ive changed to port multiple times to random numbers but it didnt do anything either
OS = Mac OS X 10.10.4
When a virus is too much fed, the cell just eats it, grows a lot and players around are disconnected (or kicked ?). Here is what I edited in gameserver.ini
, to see if it comes from our server configuration.
borderLeft = 0 borderRight = 9000 borderTop = 0 borderBottom = 9000 spawnInterval = 4 foodSpawnAmount = 15 foodStartAmount = 150 foodMaxAmount = 1500 foodMass = 5 virusMinAmount = 8 virusMaxAmount = 80 virusStartMass = 200 virusBurstMass = 150 ejectMass = 16 ejectMassGain = 12 ejectSpeed = 400 playerMinMassEject = 10 playerMinMassSplit = 3 playerMinMassDecay = 9
This is the border settngs for our maps:
borderLeft = 0
borderRight = 12500
borderTop = 0
borderBottom = 12500
It would seem they don't spawn or at least not as often. Worth taking a look? :)
rm
This can be very frustrating, if you're too small, you never see them :/
EDIT: Bug occurs only when cells are coming from left or right side, it's not happenning if coming from top or bottom
See picture.
I don't have any data for you unfortunately, but happy to do a tcpdump or something else at your request.
I notice and it seems to be when everyone has disconnected from the server, a client makes a fresh connection there is a megafuckton of spikes everywhere and the game goes a big crazy at that point.
Hello
I wanted to install this on linux ubuntu 15.04
but i get this error:
Sorry, no idea where.
I want to log stuff into my database (hosting it on a windows vps, since it seems to have issues installing on linux).
Whatsoever.
I hope to see some kind of database connection, outgoing api so it logs the leaderboards into a remote database.. this would be issue as i would need mysql to be open, so i guess if you can somehow make web requests instead so i can make an api that would be better
Hello i setted up the server both locally and on a vps.
When i connect to the server instance my browser freezes.
I also tried with the agario mods script on and wiith the script off, both of the times the same bug happens.
I install node.js and ws. Setup my server. Everything okey but i look browser console while i was playing.
This error :
Uncaught RangeError: Offset is outside the bounds of the DataView
repeat count : 560
If I understand correctly, the determining factor for i-eat-you-or-you-eat-me is "if the mass of one player is 10% or more than the player they collided with, they eat that player". In Ogar, this is done rather like "if the mass of one player is more than the mass of another player, they eat that player" (for me a bot with just one more mass than me can eat me).
Hello.
I'm trying to start the app on heroku.
heroku doesn't work with ports not declared as:
process.env.PORT || 80;
Could you please fix this?
docs: https://devcenter.heroku.com/articles/node-websockets
I changed port on linux one to 443 and another one to 1337, for some reason I can't listen to another port while running another ogar..
[root@centos-agar src]# node index.js
[Game] Ogar - An open source Agar.io server implementation
Error: listen EADDRINUSE
at errnoException (net.js:905:11)
at Server._listen2 (net.js:1043:14)
at listen (net.js:1065:10)
at Server.listen (net.js:1139:5)
at GameServer.startStatsServer (/home/admin/HackForums/Ogar/src/GameServer.js:919:21)
at GameServer.start (/home/admin/HackForums/Ogar/src/GameServer.js:206:10)
at Object. (/home/admin/HackForums/Ogar/src/index.js:25:12)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
[Error] Server could not bind to port! Please close out of Skype or change 'serverPort' in gameserver.ini to a different number.
When I click that button, the map show nothing, none food, none player and none virus.
Hope to fix it soon. Thank,
How can i add my own client so i don't need to go to agar.io to join my server?
delete me
See pictures.
Video: http://file.spurlex.com/1k4KC/4YfPiPpQ
This is caused by the client slightly lagging and then it builds up and starts to bounce around at extreme speeds.
i heard that you should set to acidmode when using Rainbow Mode how do you activate Acid mode?
can we add skin for cells ? etc: ayy lmao, Turkey, Reddit
Reload not working in Windows.
command not found
I installed and configured all correctly, but when i open the website of game only this appears:
https://server-d3vont3ch.c9.io/index.html
what i need to do?
i used this command:
node Ogar --master --game
and this appeared:
[Master] Listening on port 8080
[Game] Listening on port 3000
[Game] Current game mode is Free For All
https://github.com/forairan/Ogar/blob/master/src/entity/Cell.js#L171
var move = collisionDist - dist + 5;
Why you use this 5?
Hey,
Will Ogar support multiple cores in the future? Just curious because I've multi core servers but Ogar is not taking advantage of that.
Herpderp
So during game play you roll around, split yourself into a billion cells and it's all fun and games until you get into a battle.
Imagine this - there we are in heat of battle - I'm in 3 large blobs and avoiding 1 larger blob who I am escaping from when suddenly... 2 of my blobs forget how to run away and they just stay frozen in place while the main blob doesn't even bother looking back to see how they are doing.
At this very moment, it seems that my opponent is unable to split kill me either as the command has no effect. This was expressed to me over mumble by the player.
30 seconds later, one of our buddies who was playing on our other instance of Ogar pipes up on mumble expressing surprise at just experiencing the very same bug.
We look forward to another awesome bug squish.
sometimes the game are freezing, and i can see a ghost player.
How can I disable commands, or make them executable by only a specific user?
I'm using it on linux. Hosting private server for my site, but don't want everyone to access the commands.. grr
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.