Apostolique / Agar.io-bot

The aim of the project is to create a bot that can play Agar.io
MIT License
1.15k stars 1.92k forks source link

Not noticing world borders #17

Closed jokru closed 9 years ago

jokru commented 9 years ago

The bot seems to ignore world borders and just continue to rub against the wall. This may be hard to fix, I have no idea.

Apostolique commented 9 years ago

With the current version, it's hard to fix, but when I get around to working on the next version, it will be easy.

jokru commented 9 years ago

Ok

ghost commented 9 years ago

IMO I'd try to put an outline of where it needs to run from before it runs into the corner, so if it's 100, it'll be a small line, and if you're 20,000, it's a big ass line.

jokru commented 9 years ago

Another possibly very hard to implement feature would be the use of W and space. Edit: It apparently does use space at times.

phadeb commented 9 years ago

There's a chrome extension that already detects borders, If they can do it you can do it

Apostolique commented 9 years ago

It's not that those features are hard to implement, it's that I don't have enough time to work on them right now.

ghost commented 9 years ago

World border is currently in a fork

i9w commented 9 years ago

This really needs a fix as the bot would just get stuck.

ghost commented 9 years ago

World border is currently in a fork

i9w commented 9 years ago

Is there a way to download that version? Sounds like github is slow.

Apostolique commented 9 years ago

You can get it there: https://github.com/GusToughSon/Agar.io-bot While it does show the borders, it doesn't change how the bot reacts to them.

i9w commented 9 years ago

Thanks for the work :) interested to see if the original spectate could be on the client side or is it server-sided?

ghost commented 9 years ago

Apos, Someone else was doing the AI on world borders, the version mine, was a proof of concept, you do way better work then me

Apostolique commented 9 years ago

Oh, didn't realized there were so many forks.

ghost commented 9 years ago

Yea, its taken a life of its own lol...

dombeef commented 9 years ago

https://github.com/Gilgamesh22/Agar.io-bot

Gligamesh22 has gotten wall detection working pretty well, it works good enough to be able to know to go perpendicular to a wall if theres an enemy nearby

Apostolique commented 9 years ago

I think I'll make a fork with the current version that I'm working on.

phadeb commented 9 years ago

thanks dombeef, I will check out that bot I hope the best out of the 2 bots will get made of

Apostolique commented 9 years ago

I think his version doesn't work anymore.

phadeb commented 9 years ago

confirmed not working. any explanation ?

Edit : actually, I guess there was an update because your version doesn't work either

dombeef commented 9 years ago

Uh, its working just fine for me...(my test branch that removes splitting, shouldnt make too much of a difference compared to the actual branch)

Apostolique commented 9 years ago

Can confirm, your version works, I must have been high.

i9w commented 9 years ago

The "Gilgamesh22" version posted by dombeef earlier, doesn't work for me on firefox using greasemonkey, it's enabled. Although "T" doesn't work. Nor "R", or any of the bot functionality.

I'm currently using the one posted by Gustoughson.

As a side suggestion: can there be a changelog? and what's the recent version with new functionality?

dombeef commented 9 years ago

It may just be a firefox issue, my fork with no splitting is still working just fine for me on chrome(working on modifying a few core aspects of the bot avoidance algorithm, but been busy with exams lately) as well as the T and R working. I had a similar issues as yours before, when I was disabling the splitting, but it somehow randomly went away(still no idea what happened then)

And wouldnt the changelog be the commits?

Apostolique commented 9 years ago

I can do a changelog, though everything that I do is shown on stream.

i9w commented 9 years ago

dombeef, Agar.io pulled a recent update that rendered all bots unusable? Could you try running the game with any bot installed?

@Apostolique could you give a link to the stream

dombeef commented 9 years ago

Yep, all bots I have installed are broken :(

Im a little bit busy today, ill try to look at it tonight and remove a few potentially breaking things(I read earlier that they updated it to remove the cheats that overlay their own ads over the original ones, maybe it also blocks people who see other masses? theres a bunch of things that could be going wrong here)

Apostolique commented 9 years ago

@i9w: Stream link: http://www.twitch.tv/apostolique