Giter VIP home page Giter VIP logo

ogar2-server's People

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ogar2-server's Issues

THIS COMPLETELY DEAD

forairan say Ogar2 not dead , but there's no update , Ogar2 still lost some basic function

So... is Agario and especially Ogar completely dead now?

Every since May 6th, players are no longer able to connect with the query: agar.io/?ip=IP:PORT
So it is now impossible to connect to any private server (unless it is a third party client). As far as I know the third party clients are illegal, so is this the death of Ogar, and soon to be Agario? Or is there a work around I am just unaware of?

Experimental mode not working

Here's my console output:

C:\Users\John\Desktop\Games\agar.io\Ogar\src>node index.js
[Game] Ogar - An open source Agar.io server implementation
[Game] Loaded stats server on port 88
[Game] Listening on port 443
[Game] Current game mode is Experimental
[Game] Loaded 25 player bots

TypeError: Cannot read property 'config' of undefined
at Cell.Food (C:\Users\John\Desktop\Games\agar.io\Ogar\src\entity\Food.js:11:24)
at Cell.MotherCell.spawnFood (C:\Users\John\Desktop\Games\agar.io\Ogar\src\gamemodes\Experimental.js:234:13)
at Cell.MotherCell.update (C:\Users\John\Desktop\Games\agar.io\Ogar\src\gamemodes\Experimental.js:164:18)
at Mode.Experimental.updateMotherCells (C:\Users\John\Desktop\Games\agar.io\Ogar\src\gamemodes\Experimental.js:36:16)
at Mode.Experimental.onTick (C:\Users\John\Desktop\Games\agar.io\Ogar\src\gamemodes\Experimental.js:113:11)
at GameServer.gamemodeTick (C:\Users\John\Desktop\Games\agar.io\Ogar\src\GameServer.js:367:19)
at GameServer.mainLoop (C:\Users\John\Desktop\Games\agar.io\Ogar\src\GameServer.js:387:29)
at wrapper as _onTimeout
at Timer.listOnTimeout (timers.js:89:15)

[QUESTION] What about the physics engine?

Is there any plan to improve the physics engine in Ogar 2 compared to Ogar 1?

For me the major problem is Ogar 1 was the buggye splits (missing some cells that should have been eaten). And also the moves are shaky and a bit unpredictable when you're splitted in many pieces.

How to compile

Hi, I'm an Android Developer, so I'm only familiar with Gradle config.
I want to compile Ogar2-Server package, but I can't without Ogar2-API package. However, the Ogar2-API package is not available on maven, so build fails. Can you upload it to snapshot repo or make the github a repo?

Receiving IllegalStateException on connect

Built both Oger2 and Oger2-API.
Started the server with the command given in the README. (Used sudo since it wanted I believe port access or similar)
When connecting to the server from agar.io the server raises an "java.lang.IllegalStateException: Connection is not in CONNECTED state!" error.

Fuller stacktrace:
INFO: [id: 0x260ac275, /0:0:0:0:0:0:0:0:443] RECEIVED: [id: 0xcb056aa1, /127.0.0.1:43030 => /127.0.0.1:443]
20-Sep-2015 20:35:20.382 [SEVERE] Encountered exception in pipeline for client at /127.0.0.1:43030; disconnecting client.
java.lang.IllegalStateException: Connection is not in CONNECTED state!
at com.google.common.base.Preconditions.checkState(Preconditions.java:173)
at com.ogarproject.ogar.server.net.PlayerConnection.checkConnected(PlayerConnection.java:205)
at com.ogarproject.ogar.server.net.PlayerConnection.handle(PlayerConnection.java:119)
at com.ogarproject.ogar.server.net.PlayerConnection.handle(PlayerConnection.java:78)
at com.ogarproject.ogar.server.net.ClientHandler.channelRead0(ClientHandler.java:52)
at com.ogarproject.ogar.server.net.ClientHandler.channelRead0(ClientHandler.java:27)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
at com.ogarproject.ogar.server.net.WebSocketHandler.channelRead0(WebSocketHandler.java:78)
at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:244)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:308)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:294)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:846)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:745)

Black Cell

When I run Ogar Unlimited master v16.7.5 then go to my server ip everything works fine. But when i hit play a black cell (sometimes square sometimes circle) starts moving in the middle of my screen. I can't play on the server. Please help

The splitting

Hi Can you fix the splitting? xP Like sometime my cell would fly past my opponent and not eat him. Can you fix this? :D

Ogar 2 server

hello, i downloaded Ogar 2 server and now when i have the map i can't find the thing to run the server .. can someone tell me how do i run it?

WTF??

agario.core.js:7 exception thrown: IndexSizeError: Failed to execute 'arc' on 'CanvasRenderingContext2D': The radius provided (-6907) is negative.,Error: Failed to execute 'arc' on 'CanvasRenderingContext2D': The radius provided (-6907) is negative.
WTF????!!

Compile error

Hi!

When I try to compile the source using mvn command, or mvn package it shows the following error:

mvn
[INFO] Scanning for projects...
[INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Ogar Server 2.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [WARNING] The POM for com.ogarproject:ogar-api:jar:2.0-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.638 s
[INFO] Finished at: 2016-01-21T21:11:13+00:00
[INFO] Final Memory: 4M/10M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ogar-server: Could not resolve dependencies for project com.ogarproject:ogar-server:jar:2.0-SNAPSHOT: Could not find artifact com.ogarproject:ogar-api:jar:2.0-SNAPSHOT -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

I tried to compile to a nas with armv5 processor.

What's wrong?

Thanks for UR answer! :D

Someone help me with Ogar 2 server ??

It says run server in a command line, i dont know what to do! i downloaded git now i dont know what to do >c
IF can someone please tell all the instructions thankk u

Missing Clientbound packets

I was looking at some of your code for the Agar protocol, and I noticed compared to the latest JS, your missing packet IDs 17, 50, and 81. I also can't find a reference for 212 on there(is it some unoffical addon)?

Maven... really?

Can you please just have a jar file for people to download. I can not describe the time I have wasted and the frustration I've been through. Maven never seems to work for me, and installing it seems like to most complicated thing in the world. Please make it easier for everyone with just a jar file download. If for some reason you can not supply me with the jar, please give me instructions (step by step) on how to install maven on my Windows 10 PC or Cent OS 6 server and then compile the Ogar project. Thanks

Failure executing javac

Hi

i was falling the installation of #11

Fist, i had a problem with java on maven (jdk or jre) i solved it.

But now i have that error :

Failure executing javac, but could not parse the error:
 [ERROR] javac: invalid target release: 1.8
 [ERROR] Usage: javac <options> <source files>
 [ERROR] use -help for a list of possible options
 [ERROR] -> [Help 1]
 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal         org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project ogar-  api: Compilation failure
 Failure executing javac, but could not parse the error:
 javac: invalid target release: 1.8
 Usage: javac <options> <source files>
 use -help for a list of possible options
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
 Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
 Failure executing javac, but could not parse the error:
  javac: invalid target release: 1.8
 Usage: javac <options> <source files>
 use -help for a list of possible options


at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
  [ERROR] 
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR] 
  [ERROR] For more information about the errors and possible solutions, please read the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Thanks for help

How to Use it?

sorry, its my first time here.
can anyone tell how to use it in simplest possible way.

TUTORIAL PLEASE? :)

I've been trying to get this OGAR 2 server done for 1 week and i couldn't get any answers so could someone please just try and make a VIDEO about this?
or just add me on skype: macuhaljaz
Thank you :)

Update?

Hi there,

I am an beginner java programmer at school and i like this project a lot! It's nice to experiment with Ogar2.
But when will be there an update? Ogar2 tells me its outodated, but i doesn't find a newer version of this.

greetz,
MannyLaMa

Libraries?

I understand it uses netty from imports, but what version? What parts? Please document your workspace, and perhaps provide Eclipse or other IDE files as well.

Problem at the exection of ogar-server-2.0-SNAP...

Hello,
When I execute this command : java -jar target/ogar-server-2.0-SNAPSHOT.jar
I have this error :
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/ogarproject/ogar/server/OgarServer : Unsupported major.minor version 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:803) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at java.net.URLClassLoader.access$100(URLClassLoader.java:71) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)

Problem connecting to server

I get this every time i try to connect to my ogar server:
Uncaught TypeError: Cannot read property 'length' of undefined

After that error it connects to an official agar server.

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.