luka967 / ogarii Goto Github PK
View Code? Open in Web Editor NEWFOSS implementation of a private Agar.io gameserver, made with Node.js.
License: Other
FOSS implementation of a private Agar.io gameserver, made with Node.js.
License: Other
Just wondering will battle royale be planned for OgarII?
[FATAL] TypeError: Cannot read property 'id' of undefined
at getLeaderboardData (/home/ubuntu/OgarII/src/gamemodes/FFA.js:13:38)
at leaderboard.map (/home/ubuntu/OgarII/src/gamemodes/FFA.js:64:48)
at Array.map ()
at FFA.sendLeaderboard (/home/ubuntu/OgarII/src/gamemodes/FFA.js:64:34)
at Connection.update (/home/ubuntu/OgarII/src/sockets/Connection.js:148:34)
at Listener.update (/home/ubuntu/OgarII/src/sockets/Listener.js:125:49)
at ServerHandle.onTick (/home/ubuntu/OgarII/src/ServerHandle.js:169:23)
at Ticker._tick (/home/ubuntu/OgarII/src/primitives/Ticker.js:43:30)
at ontimeout (timers.js:498:11)
at tryOnTimeout (timers.js:323:5)
If you want to have different gamemodes but not host many servers that could be an update.
Please how to create OFFICIAL agar.io private server. How?
Basically I can't control minions despite I've disabled my macro script (it doesn't work too tho).
What can I do to solve this problem?
Thanks in advance.
Would be nice
idk if u tried, but, with the new agario teams mode update the teams mode leaderboard colors are broken
anyone have already tried to fix it ?
Will the statistics appear as in MultiOgar (port: 88)? I use it for my own purposes, but so far it's gone and it's very sad :(
(I recommend you to fs.readdir a folder to get all .js files, then require them (they should export a class)|provide a function for adding plugin classes), in this class there will be a constructor defining this.info (or super()) like plugin name, version, author, api version etc. and in the class they'll define specified function like onPacketRecieve(player, packet) { code.. }, your system will check if this function exists in the plugins class (so that people will not have to define every single function) then call it like class.onPacketRecieve(player, packet);
A plugin system would be nice, here are some..
Suggested events/functions:
access for writer.js and reader.js should be given
Recently I opened an OgarII project on glitch.com and I want to create a freeze keybind. So it sets the collide delay to 100 and moveMult to 0. Any ideas/suggestions?
Occured on a clean copy of OgarII.
It happens when someone is on spectate and the last player dies lets say e.g. to a mothercell.
[FATAL] TypeError: Cannot read property 'viewArea' of null
at Player.updateViewArea (src/worlds/Player.js:90:46)
at World.liveUpdate (src/worlds/World.js:361:20)
at World.update (src/worlds/World.js:243:50)
at ServerHandle._onTick (src/ServerHandle.js:173:29)
at Ticker._tick (src/primitives/Ticker.js:43:30)
at ontimeout (timers.js:498:11)
at tryOnTimeout (timers.js:323:5)
at Timer.listOnTimeout (timers.js:290:5)
Version: OgarII 1.2.2
Steps to reproduce.
Issue: no colors shown on chat.
i tried to use core.connect but doesnt work, also y try FirstCodeReviewer extencion and nothing!
D:\agar io\OgarII-master\cli>node index.js
module.js:549
throw err;
^
Error: Cannot find module 'uws'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (D:\agar io\OgarII-master\src\sockets\Listener.js:1:81)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
D:\agar io\OgarII-master\cli>
please, help me
when i tried to run ogarII using pull request #53 and it gave me an error: Cannot find module '../dist/bindings/cws_win32_108'
im using the latest lts version of nodejs
could somebody help me please?
@ 2018-12-07 15:37:01.374 [FATAL] TypeError: Cannot read property 'onChatMessage' of null
at ChatChannel.broadcast (/app/src/sockets/ChatChannel.js:53:42)
at Connection.onChatMessage (/app/src/sockets/Connection.js:92:36)
at LegacyProtocol.onSocketMessage (/app/src/protocols/LegacyProtocol.js:115:33)
at Connection.onSocketMessage (/app/src/sockets/Connection.js:69:51)
at onServerMessage (/rbd/pnpm-volume/a62882a5-26d5-4c42-943c-2935f797d5df/node_modules/.registry.npmjs.org/uws/10.148.1/node_modules/uws/uws.js:21:15)
2018-12-07 15:37:01.380 [ERROR] uncaught exception - process is terminating
2018-12-07 15:37:02.138 [INFO] command stream open
2018-12-07 15:37:02.145 [INFO] starting
2018-12-07 15:37:02.161 [INFO] ticker begin
2018-12-07 15:37:02.161 [INFO] OgarII 1.1.12
2018-12-07 15:37:02.164 [INFO] listener open at 3000
@ 2018-12-07 15:37:03.672 [FATAL] TypeError: Cannot read property 'onChatMessage' of null
at ChatChannel.broadcast (/app/src/sockets/ChatChannel.js:53:42)
at Connection.onChatMessage (/app/src/sockets/Connection.js:92:36)
at LegacyProtocol.onSocketMessage (/app/src/protocols/LegacyProtocol.js:115:33)
at Connection.onSocketMessage (/app/src/sockets/Connection.js:69:51)
at onServerMessage (/rbd/pnpm-volume/a62882a5-26d5-4c42-943c-2935f797d5df/node_modules/.registry.npmjs.org/uws/10.148.1/node_modules/uws/uws.js:21:15)
2018-12-07 15:37:03.673 [ERROR] uncaught exception - process is terminating
Please is it still possible to run this? And how?
Hi,
I am trying to build this project an ArchLinux.
First when I follow the instructions I get the message "Compilation of µWebSockets has failed and there is no pre-compiled binary available for your system. Please install a supported C++11 compiler and reinstall the module 'uws'"
It seems to be because uWebSockets tries to use a file named ./uws_linux_79.node which doesn't exist. I've tried compiling uWebSockets from https://github.com/uNetworking/uWebSockets.js but the uws.js file isn't compatible. I might have a nodejs version that is too recent (13.2.0).
Do you have any advice?
add an option for limiting protocols, there is no reason for supporting 1 million protocols when you only need one, this will also make it harder for bots
With ws, wss, without extensions, adblockers, etc.. Once you spawn on the private server and die, when you click play again, you get disconnected with no error showed on the F12 console. Strange error. I still try to find what causes that, anyway, if someone else knows why, let us know about it :)
Btw a normal restart of google chrome fix the issue for some time, but it dc you again after you die and don't let you spawn, only spectate
Sorry for such a stupid question, but I have it.
So, Error: Compilation of µWebSockets has failed and there is no pre-compiled binary available for your system. Please install a supported C++11 compiler and reinstall the module 'uws'.
OS: Windows 10
I installed MinGW and GCC compilers and npm windows-build-tools, but I still get the same error...
when i try to start it, it gives the error
"SyntaxError: Unexpected token )
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:390:7)
at startup (bootstrap_node.js:150:9)"
Title
Hello, can someone help me implement some code that sets an eat delay. For example, I eject my mass and it goes under my cell. After 5 seconds, I can eat it again. If I eject at someone else, they can instantly collect it. This is just an idea for a macro gamemode.
spawnmass id mass │ Sets a players spawn mass
freeze id │ Freezes a player
speed id │ Sets a players base speed
tp x y │ Teleports player(s) to XY coordinates
mute id │ Mute player from chat
unmute id │ Unmute player from chat
Hello, I need help on an ogarII game project. I need to find a way to implement virus pushing behavior to a normal playercell when it is fed a mass particle. I forgot how to modify the playercell.js file and I don't have time either. So if anyone could just edit the file and send it to me here, it would be a great help.
Thanks,
Phoenix3214
p.s the file is src/cells/playercell.js
The server still doesn't start, gives the same error as before.
@ 2018-02-19 17:45:47.043 [FATAL] TypeError: Cannot read property 'name' of unde
fined
at getLeaderboardData (C:\Users\Administrator\Desktop\FFA\версия 2\OgarII-ma
ster\src\gamemodes\FFA.js:51:36)
at leaderboard.map (C:\Users\Administrator\Desktop\FFA\версия 2\OgarII-maste
r\src\gamemodes\FFA.js:36:48)
at Array.map ()
at FFA.sendLeaderboard (C:\Users\Administrator\Desktop\FFA\версия 2\OgarII-m
aster\src\gamemodes\FFA.js:36:34)
at Connection.update (C:\Users\Administrator\Desktop\FFA\версия 2\OgarII-mas
ter\src\sockets\Connection.js:205:43)
at Listener.update (C:\Users\Administrator\Desktop\FFA\версия 2\OgarII-maste
r\src\sockets\Listener.js:109:20)
at ServerHandle._onTick (C:\Users\Administrator\Desktop\FFA\версия 2\OgarII-
master\src\ServerHandle.js:152:23)
at Ticker._tick (C:\Users\Administrator\Desktop\FFA\версия 2\OgarII-master\s
rc\primitives\Ticker.js:43:30)
at ontimeout (timers.js:458:11)
at tryOnTimeout (timers.js:296:5)
2018-02-19 17:45:47.043 [ERROR] uncaught exception - process is terminating
Restarting server
Appears unexpectedly, at any time. Please correct!
how to run Ogar II with agario ,
I currently run Mo E in agario
but I want Ogar II
Error message:
@ 2019-12-04 19:18:46.811 [FATAL] TypeError: Cannot read property 'id' of undefined at getLeaderboardData (/root/server/src/gamemodes/FFA.js:13:38) at leaderboard.map (/root/server/src/gamemodes/FFA.js:64:48) at Array.map (<anonymous>) at FFA.sendLeaderboard (/root/server/src/gamemodes/FFA.js:64:34) at Connection.update (/root/server/src/sockets/Connection.js:148:34) at Listener.update (/root/server/src/sockets/Listener.js:125:49) at ServerHandle.onTick (/root/server/src/ServerHandle.js:169:23) at Ticker._tick (/root/server/src/primitives/Ticker.js:43:30) at ontimeout (timers.js:482:11)
Hello Luka ,
I want to get to you. how can I do that.
Can you please use nicer words please
How is OgarII better than MultiOgar?
Is this a
Yay I hope this goes well :)
Currently, there is no option to disable ejected mass from colliding.
Viruses can be curled in another direction while travelling in the air.
How to reproduce: Be in multiple pieces. Shoot virus from one piece and then quickly shoot the newborn virus to a different direction with another piece.
It says shit WHYYY
I'm assuming not looking at the source code
These settings cause the viruses to not take mass:
"virusMinCount": 50,
"virusMaxCount": 50,
so you don't forget...
Chat fails.
Tested protocol: 5
How to reproduce: chat
Outcome: No chat is displayed on the chat board.
Expected Outcome: Chat to be displayed on chat board.
OgarII/src/sockets/Listener.js
Line 47 in 28939ea
Why split when JSON supports array
OgarII/src/sockets/Listener.js
Line 49 in 28939ea
Why loop when there is Array#includes?
Line 9 in 28939ea
Did you know that JavaScript natively supports pretty-printing JSON? https://stackoverflow.com/questions/4810841/how-can-i-pretty-print-json-using-javascript
I'd happily make a PR but you said you made some local changes so I don't know..
add pellet mode to minions?
If you press q then you will manage minion, if you press q again, you will not be able to control yourself, but only minion (client agar.io)
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.