Giter VIP home page Giter VIP logo

ogarii's People

Contributors

draganstamenkovic avatar luka967 avatar mkgamesdev avatar superop535 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ogarii's Issues

Consistent Server Crash

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)

Numerous issues need to be addressed.

Chat Name Colour Issue: #43, When the player "enters" the game they remain with the grey spectator color.

Event/Extension API: #17. Add an event system. Event just a basic abstract Listener class.

Regards

New console commands

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

Chat issue

@ 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

Numerous issues need to be addressed.

Chat Name Colour Issue: #43, When the player "enters" the game they remain with the grey spectator color.

Event/Extension API: #17. Add an event system. Event just a basic abstract Listener class.

Regards

Virus Curling

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.

Question about statistics

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 :(

chat error

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.

Sever crash bug

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)

Chat Issue 2

Version: OgarII 1.2.2

Steps to reproduce.

  1. run OgarII v1.2.2 with node index.js
  2. Install fresh copy of Cigar2 (Protocol 6) or Luka's Cigar (Protocol 6)
  3. Write in chat.

Issue: no colors shown on chat.

#BadCode

const split = this.settings.listenerAcceptedOrigins.split(" ");

Why split when JSON supports array

for (let i = 0, l = split.length; i < l; i++)

Why loop when there is Array#includes?

fs.writeFileSync("./settings.json", beautifulJson(defaultSettings, null, 4), "utf-8");

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..

plugins [high priority]

(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:

  • onPacketRecieve(player, packet)
  • onPlayerSplit(player, oldCellAmount, newCellAmount)
  • onPlayerChat(player, message)
  • onPlayerJoin(player, ip)
  • onPlayerLeave(player, ip)
  • onPlayerSpawn(player)
  • onPlayerDie(player)
  • onPlayerEjectMass(player, ejectedCell)
  • onMothercellEjectMass(mothercell, ejectedCell)
  • onVirusSplit(mainVirus, newVirus)
  • something.setOption(option: for example merge delay, speed, mass etc.)
  • something.getOption(option: ^)
  • something.getInfo(info: ip, id, size, mass, color, cells etc.)
  • something.setInfo(info: ^)
  • something.remove() // kill a player, remove a cell/virus
  • player.split()
  • player.merge()
  • player.connection // websocket client
  • player.request // websocket upgrade request

access for writer.js and reader.js should be given

Help please!

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

ArchLinux build issue

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?

Minion bug

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)

Hello

Hello Luka ,
I want to get to you. how can I do that.

Battle royale

Just wondering will battle royale be planned for OgarII?

Viruses Impenetrable

These settings cause the viruses to not take mass:

"virusMinCount": 50,
"virusMaxCount": 50,

Handshake error

I keep getting an error for websocket handshake while trying to connect to my ogarii server.
image
this happens even on agar.io and other clients.

Error with uws module

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...

Server crashes

[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)

limit protocol

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

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'.

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

Eat delay?

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.

Cannot find module

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?

Miniclip disconnecting users using private servers randomly

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

Same error

The server still doesn't start, gives the same error as before.

Fatal error

@ 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!

Freeze keybind (Help needed)

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?

doesnt start.

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)"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.