Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gallery #1

Open
Andrews54757 opened this issue Nov 3, 2016 · 76 comments
Open

Gallery #1

Andrews54757 opened this issue Nov 3, 2016 · 76 comments

Comments

@Andrews54757
Copy link
Member

Andrews54757 commented Nov 3, 2016

Gallery

Revenge system: Icon grows bigger when you are closer to the player, and the icon is put on the cell when in the screen

screen shot 2016-11-03 at 3 01 23 pm
screen shot 2016-11-03 at 3 01 29 pm

Skins: (the skin is a custom skin)

screen shot 2016-12-10 at 5 11 50 pm

Multi-Processes

screen shot 2016-12-10 at 5 21 21 pm

Website (opnagar.us)

screen shot 2016-12-10 at 5 22 25 pm

Plugin system:

screen shot 2016-11-28 at 2 29 32 pm

Onan config editor (plugin)

screen shot 2016-12-10 at 5 18 51 pm

@Andrews54757
Copy link
Member Author

Andrews54757 commented Nov 6, 2016

CURRENT EFFICIENCY AS OF NOV 5

I made it much more efficient again. Note that 1000 bots are running. I am comparing with OgarUL

OpenAgar:

screen shot 2016-11-05 at 7 54 37 pm

OgarUL:

screen shot 2016-11-05 at 7 54 32 pm

MultiOgar:

screen shot 2016-11-05 at 7 59 09 pm

Conclusion

Open agar has surpassed both multiogar and ogarUL now in preformance. OgarUl just froze when 1000 bots were added, MultiOgar slowed down and became choppy when 1000 bots were added, and OpenAgar, had no lag whatsoever which is very very surprising.

@makandz
Copy link

makandz commented Nov 10, 2016

@Andrews54757 That's interesting. What features does the server have right now?

@Andrews54757
Copy link
Member Author

Almost all the basics, except viruses. Yet the infrastructure is complete. Every feature that I add has virtually no performance drawbacks as they are made with extreme caution. More is being added. So these stats are probably off by a bit. But then, as I add more features, I also make it more efficient. So it balances out. I keep my CPU profiler at hand all the time to monitor the server

@Andrews54757
Copy link
Member Author

Andrews54757 commented Nov 10, 2016

There are also cool features as well. Such as the revenge icon. Most features however, are devoted to efficiency. There are soo many features for efficiency, It is hard to list them all. Oh well, Il try

  1. Server side caches
  2. Client side caches
  3. Slow FPS protocol - > Will be explained in the wiki
  4. Hashbounds
  5. SmartNodes protocol - > Will be explained in the wiki
  6. Lag detection. (the server will adapt to lag)
  7. Async console
  8. and more I can't remember

Anyway, I envision that future OpenAgar servers could hold 1000 players and 500 bots with zero lag

@makandz
Copy link

makandz commented Nov 11, 2016

Interesting 👍

@Andrews54757
Copy link
Member Author

I find it depressing that Ogar is dead. No ogar server was ever updated in the last 2 months. Agar.io is apparently dead.

@segg21
Copy link
Contributor

segg21 commented Nov 12, 2016

@Andrews54757 That's why we need to bring it back to life, not only as it being similar to Agar.io, but as to what you created Unlimited. Private servers still exist, but new updates to the game? nah. That's hardly never heard from miniclip, except them patching and making everything look better than before.

@omidh28
Copy link

omidh28 commented Nov 12, 2016

@Andrews54757 I don't think it's dead yet, Personally I'm looking for hosting hundreds of mini Ogar servers.

@makandz
Copy link

makandz commented Nov 12, 2016

@LegitSoulja The whole game concept is dead now. The game used to be fun, but games are only fun for a bit. Unless if there would be a gamemode that would completely blow out all other .io games than it would work. But the issue is now there are hundreds of .io games that just have a MUCH better concept than Agar.io, after all, Agar.io was the first .io hit.

@Andrews54757
Copy link
Member Author

Yes, but I am thinking of adding special things such as mini games

@DaAwesomeRazor
Copy link

@Andrews54757 Thats amazing, my multiogar server lags a ton in the bots gamemode when i give people more than 9 bots each,

@m-byte918
Copy link
Contributor

m-byte918 commented Nov 22, 2016

Damn @Andrews54757 that's impressive, I'm so hype for this project!

@Andrews54757
Copy link
Member Author

New performance charts: This compares the performance before and after this

BEFORE:

screen shot 2016-11-23 at 9 53 06 am

AFTER

screen shot 2016-11-23 at 9 53 11 am

@Andrews54757
Copy link
Member Author

I tried 2000 bots, and there was NO LAG!!

@Andrews54757
Copy link
Member Author

Well, next up: 3000 bots. And smart bots too.

@Andrews54757
Copy link
Member Author

Andrews54757 commented Nov 23, 2016

@LegitSoulja OpenAgar is basically finished. There are only two things I have to do

  1. Smarter bots. Im planning on making the bots extremely smart (very easy)
  2. More gamemodes (even easier, since OpenAgar's game mode api is almost the same as Ogar's)

@segg21
Copy link
Contributor

segg21 commented Nov 23, 2016

@Andrews54757 I'll check out making new gamemodes when I get home.

I don't know when exactly. I might not go back home till this weekend :/.

@segg21
Copy link
Contributor

segg21 commented Nov 25, 2016

@Andrews54757 Check gitter

@Niall7459
Copy link

This looks very nice! great work!

@m-byte918
Copy link
Contributor

m-byte918 commented Dec 6, 2016

@Andrews54757 I have a question, what was the starting size of the bots when you ran them? I'd like to compare the performance to my MultiOgar, but I need to know the correct settings first.

@Andrews54757
Copy link
Member Author

Default

@Andrews54757
Copy link
Member Author

It takes a lot for OpenAgar to lag. Note that bots run on a different process, the same process in which collisions, leaderboard, and mass checking runs in. So they might be slowed down when bots are flooded. But the main physics wont. This only occurs for bots (not minions or players) because the bots run on the same process, and they are not optimised at all. Still though, you can run 2000 bots with no lag (for me), without the effect I mentioned. But I bet if the bot code was optimised (it is the same AI as OgarUL), it will be able to run 2500 bots without the effect. But still, lag is not visible even if you add more bots than expected (for me). The server is made to detect lag and mitigate it, you can see some lag status by going into the debug console (Type debug).

@segg21
Copy link
Contributor

segg21 commented Dec 6, 2016

@Andrews54757 Does running a child process happen on the same core, or all?

In that case I got a 8 core, gtx x4 64 gb mem, OS running on an SSD with 2 more internal, and processing speed is 5.7 (Overclocked). I flashed my motherboard :) in case you're wondering. That's how custom built my computer is.

@Andrews54757
Copy link
Member Author

Andrews54757 commented Dec 6, 2016

So, after studying nodejs processes, I learned a v8 engine is very expensive. And using .fork spawns a new instance. So I have it set up dynamically to get the most bang out of my buck.

  1. A new child will spawn when a server is created. Including using the multi-server system.
  2. If the amount of processes, equals the amount of cpus, it will not create another but will assign the server to the process with the least assigned servers.
  3. When a server is removed, (not shut down), it will deassign the server from its process
  4. If the number of assigned servers go to 0, the process will be shut down

And yes, a new child will operate in another core

@segg21
Copy link
Contributor

segg21 commented Dec 7, 2016

@Andrews54757 Good note.

@Andrews54757
Copy link
Member Author

I am kindof dissapointed though, that people are trying to steal my work, I just realised, the entire advancedness (a word?) of the program and how much work it took me to make

@Andrews54757
Copy link
Member Author

Andrews54757 commented Dec 7, 2016

I just posted an update a while ago that changes the UID system so the keygen is different now. The client and everything will have to be updated.

@Andrews54757
Copy link
Member Author

Now I realise that I should have kept this project completely private

@Andrews54757
Copy link
Member Author

Andrews54757 commented Dec 7, 2016

Oh well, this will be good on my resume anyway. Not anybody can do what I did with this in just 2-3 months

@Andrews54757
Copy link
Member Author

@LegitSoulja Please go to gitter

@Andrews54757
Copy link
Member Author

@LegitSoulja I am creating a more detailed documentation here: https://ajs-development.github.io/OpenAgar/

@segg21
Copy link
Contributor

segg21 commented Jan 3, 2017

@Andrews54757 If it turns out with better performance then sure

@segg21
Copy link
Contributor

segg21 commented Jan 3, 2017

I kindof want to make my own socket in which with non nodejs, but with browser, in which can communicate with socket.io, and websockets using protocols.

Or even my own sys, in which sends vice versa data.

@Andrews54757
Copy link
Member Author

@LegitSoulja Wow, there are 39 members already! And a bunch of errors were also logged so I fixed them.

@Andrews54757
Copy link
Member Author

@LegitSoulja There is a problem with the OAStats server section of the website, please go on gitter

@segg21
Copy link
Contributor

segg21 commented Jan 3, 2017

There's 43 now lol

@FlamePlayerTR
Copy link

FlamePlayerTR commented Jan 4, 2017

Hey @Andrews54757 and @LegitSoulja I am registered to http://login.opnagar.us/ but I dont know "How Can I Generate Key And How Can I Create Server?" Plz
I want this very much
Plz record video and send link you can delete the video after
I used to use OgarUnlimited and MuliOgar and Ogar
İf this very diffrent and
I'm wondering Plzz Pleeeeeeeeeeeeeeease
Sorry For my bad english :D

@segg21
Copy link
Contributor

segg21 commented Jan 5, 2017

@FlamePlayerTR

I have told people of the community not to make videos about setting up OpenAgar. OpenAgar is only for those people who has a basic use of understandings with nodejs, and have knowledge or capable of running a server.

I decided that there should be no visual tutorials because this is a closed project. People will want it, abused once taught, and even more questions behind it afterwards. If you can't read, and can't properly make a server then you shouldnt even bother.

IF you have used multiogar, Ogar, or any other related Agar.io private servers it's all the same.

@segg21
Copy link
Contributor

segg21 commented Jan 5, 2017

However, no more further answers, or questions should be asked. Read the readme. Case closed.

@FlamePlayerTR
Copy link

@LegitSoulja
It was before start.bat
But not now
Previously setup node to Ogar Folder but now Keys , panels and not start.bat
and Is this system just for mac?

@Andrews54757
Copy link
Member Author

No, I can start this on windows too. Start.bat was a script for noobs. Here, we dont accept them

@segg21
Copy link
Contributor

segg21 commented Jan 5, 2017

Better learn how to use cmd @FlamePlayerTR

@FlamePlayerTR
Copy link

@Andrews54757 and a video plz ?

@segg21
Copy link
Contributor

segg21 commented Jan 6, 2017

@FlamePlayerTR It's not gonna happen, also this isn't a place to chat for decades about something that's not important.

Only question is:
  • Is it our fault that you're not capable of using your computer?

@segg21
Copy link
Contributor

segg21 commented Jan 6, 2017

Spoilers/Noob I've seen some people, like valkyy, and seif who took the batch files from ogarul lol

@m-byte918
Copy link
Contributor

lmao what was that

@Andrews54757
Copy link
Member Author

Andrews54757 commented Jan 7, 2017

@Megabyte918 I am making sending nodes use buffers. See #50. I tested 9000 minions. The server lasted for 30 sec with no lag with that amount

screen shot 2017-01-06 at 9 37 28 pm

@Andrews54757
Copy link
Member Author

Andrews54757 commented Jan 7, 2017

@Megabyte918 , the charts look the same, performance wise, however though, the network can handle it this time. (2000 minion)

screen shot 2017-01-06 at 9 43 39 pm

(9000 minions)

screen shot 2017-01-06 at 9 50 17 pm

(9000 minions in detail)

screen shot 2017-01-06 at 9 50 44 pm

@Andrews54757
Copy link
Member Author

@Megabyte918 As you can see, the bottleneck is the updatehash function. It is probably due to a error I made in hashbounds. In the future, when I solve this, I would probably be able to run 13000 minions

@Andrews54757
Copy link
Member Author

@Megabyte918 I reduced the total time UpdateHash takes by 300 ms. I am going to find more optimisations as I go

@m-byte918
Copy link
Contributor

@Andrews54757 Hmm,..very interesting, maybe I should implement hashing too

@charliebrown164
Copy link

after the long fight about the video tutorial i see it happened
by the way i appreciate what you guys are doing
i'm learning things thanx to you
i'll be sending feedback often

@segg21
Copy link
Contributor

segg21 commented Jan 17, 2017

@charliebrown164 I decided why not. Besides, Andrew wants people to run OpenAgar. I seen that nobody bothered in trying, so I gave a simple tutorial just to get you started with the setup.. Mainly the key installation, and making your server public.

There's more things you'll have to figure out on your own.

@charliebrown164
Copy link

blackholes make no sense
if you are split to 16 pieces and one of the small ones come in contact with it it will teleport you to some other hole with just the mass of the little piece ?
i mean to me it's just an annoying black circle that i try to avoid

@segg21
Copy link
Contributor

segg21 commented Jan 18, 2017

@charliebrown164 and it's annoying enough, that's there's an option to reduce worm holes. It's not part of a gamemode, it's an actual feature. (I think).

You can change this in physicsConfig minWormHole

@charliebrown164
Copy link

cool
no more spammed numbers
when i use the command update does it update all or i still need to download files from github like the physicsConfig.ini that was updatet 30 minutes ago but still the same on my files

@Andrews54757
Copy link
Member Author

Configurations are not updated

@charliebrown164
Copy link

one more thing please
if you noticed, cells get eaten by larger cells as soon as the come in contact with each other
how can i change it so that the bigger one actually overlaps the other, to make the game fair

@charliebrown164
Copy link

charliebrown164 commented Jan 19, 2017

is it here ? OpenAgar-master/ source/ entities/ template.js (line 186)

    return this.size * 0.4;

}
collisionCheckCircle(node, no) {

    var distance = this.getDistance(node.position.x, node.position.y);

    var s = (no) ? node.size : node.getEatRange(node)
    if (distance <= this.size + s) return true;
    return false;

I also want to modify it for mothercells, it's so weired to get absorbed as soon as you touch an opponent or a mothercell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants