davidmann4 / ogar-feeder-bot Goto Github PK
View Code? Open in Web Editor NEWfeeder bot for ogar servers
License: MIT License
feeder bot for ogar servers
License: MIT License
There seems to be an issue for spawning bots with several proxies in one file (proxy.txt)
so for example
proxy1
proxy2
proxy3
Running the feeder.js logs 15 bots attempting to connect, however only 5 first manage to connect.
the rest 10 bots log connection error:
Bot 7: connection error: Error: unexpected server response (504)
Connection failed with reason: Error: unexpected server response (504)
All three proxies work.
I guess it's a simple issue with reading the next line and using that IP for spawning the next bots? I assume all the bots attempt to spawn using the first IP, instead of assigning each set of 5 bots unique IP from the list.
pulviscriptor/agario-client#54 (comment)
var client = new AgarioClient('worker_1');
client.headers['user-agent'] = 'agario-feeder-bot';
client.connect(...);
So ermm, tried running this on multiple servers yet get the same error. Any idea?
var packet = msgpack.unpack(buffer);
^
TypeError: First argument must be a Buffer
at TypeError (native)
at WebSocket.ws.onmessage (/home/x/agario-client/AgarClones/custom.js:267:34)
at WebSocket.onMessage (/home/x/node_modules/ws/lib/WebSocket.js:418:14)
at emitTwo (events.js:87:13)
at WebSocket.emit (events.js:172:7)
at Receiver.onbinary (/home/x/node_modules/ws/lib/WebSocket.js:823:10)
at /home/x/node_modules/ws/lib/Receiver.js:537:18
at /home/x/node_modules/ws/lib/Receiver.js:361:7
at /home/x/node_modules/ws/lib/PerMessageDeflate.js:247:5
at afterWrite (_stream_writable.js:346:3)
Can you please tell me what for this script exatly?
If someone could make a youtube video on installation that would be great! XD
When I refreshing a browse or running Feeder.js I get the same message in Server log:
"User connected with id:40fd"
i try change port / download new all files... / use: NOPROXY
[agar@vmi60725 server]$ node server.js
Starting server on port 4444
User connected with id:undefined
User connected with id:40fd
User connected with id:40fd
User connected with id:40fd
User connected with id:40fd
User connected with id:40fd
[agar@vmi60725 agario-feeder-bot]$ node feeder.js
agario-feeder-bot started! Join a game in Chrome with the Userscript installed.
startup
server-booted-up
(here the problem - stop logs)
[agar@vmi60725 agario-feeder-bot]$ cat config.js | grep 4444
config.feederServer = "ws://5.189.145.117:4444";
config.serverPort = 4444;
From user script:
var socket = io.connect('ws://5.189.145.117:4444');
last_transmited_game_server = null;
make a names.txt file and make new bots pick a random name from that file.
would be funny if the file would have all skin names as default.
Make bots have the ability to use socks4/socks5 proxies aswell as http proxies. Perhaps less socks4/socks5 proxies are blocked from agar, than http proxies.
I have noticed that when I try to join a Party and it ends up being full, not all of the bots join in. Is it possible to set some sort of option so that every 5 seconds it checks if that server has an open spot and push a bot into it?
will allow everyone to install dependencies with npm install
There's some problem when you try load more than one proxy.
I have tried all the proxy one by one and works fine, then try the whole list and...
Failed to request server (error=REQUEST_ERROR, error_source=Error: connect EHOSTUNREACH)
I assume that the format of the proxy list is IP:PORT line break IP:PORT...
improve onboarding - see #25
Will help a lot of people when they setup everything
would be better than running into a random enemy
Fetch mouse coordinates, follow.
https://www.youtube.com/watch?v=KpnhX8XMnZM&feature=youtu.be
00:46 purple bot not come to me
@pulviscriptor any idea why this does not work?
bot should not run into other players
You need to make a video tutorial to make sure people do not mess up the installment.
To login into your account you need to request token. You can check example in examples/auth_token.js
First create new AgarioClient.Account
var account = new AgarioClient.Account();
Then you need to login through facebook on http://agar.io then go to http://www.facebook.com/ and get cookies c_user,datr,xs.
Here is list of properties of account
:
requestFBToken()
will set it to 1(+new Date)>account.token_expire
then you need to request new token and use it in new connection to agar.Then you call
account.requestFBToken(function(token, info) {
//If you have `token` then you can set it to `client.auth_token`
// and `client.connect()` to agar server
});
If token
is null, then something went wrong. Check info
which can contain:
Error
of connection errorOgar uses a protection algorithm called scramble. If we have enough data we should able to calculate the seed values c.borderLeft, c.borderRight , c.borderTop , c.borderBottom
this.scrambleX = Math.floor((1<<15) * Math.random());
this.scrambleY = Math.floor((1<<15) * Math.random());
this.socket.sendPacket(new Packet.SetBorder(
c.borderLeft + this.socket.playerTracker.scrambleX,
c.borderRight + this.socket.playerTracker.scrambleX,
c.borderTop + this.socket.playerTracker.scrambleY,
c.borderBottom + this.socket.playerTracker.scrambleY
));
Bots could join up their mass to deliver it with split feeding
I want to use like 8000 proxies but i want to set max bots to 100. I don't want to delete proxies. And some proxies may not work so it might crash. Please fix it so it just skips the broken proxies and doesn't make it crash.
Hi, it would be nice if there were only one server file that contained everything. And have the instructions more indepth
My agario flashes when I'm playing with the userscript
My friend successfully installed the bots but he said he just got 4 bots can sombodee explain that how to make more bots i have proxies and how i can use them
No, MSGPACK causes problems for the most people. We work on a version that will support Windows.
Make the bot split and feed, upon pressing a button.
Please explain the possible settings?
//this agar ip:port ?
config.forceConnectToIp = false;
config.forceIp = "151.80.98.52:1507"
//what is forcekey? Party code?
config.forceKey = "EVZ74";
Another question
node feeder.js "GAME_ID"
GAMEֹ_ID = PARTY CODE?
IP:port
IP:port
...
Or something else
Hey i have a problem..
https://gyazo.com/315ee940d4cc3dae5ba15573f665b1f9
Any one can help me?
After connecting 5 Bots, the 6th says: 'Connection failed with reason: Error: connect ECONNREFUSED 151.xx.xx.xx:xxxx
DELETE PLZ
I sometimes use a lot of proxies that don't work and I don't have time to check then. It would be really good if the crashing problem was solved. If not, can someone please give me a file like a bash file to restart the program immediately after it crashes?
I don't want to continue changing the agario server ip each time I join a new server. Please add an auto detector. I know that run start shows up change, u should add it to node feeder.
I really Don't understand the Instructions if Someone can help us To Get Bots we will be Really thankful for him......
Need it Badly......
I get this error when trying to run node feeder.js
feeder.js:198
var packet = msgpack.unpack(buffer);
^
TypeError: First argument must be a Buffer
research:
planB:
percentage value to become a transporter if a transporter is N pixels away. mass gets transported to the nearest transporter. Transporter deliver mass to the player.
blank lines crash the bot - see #27
Sometimes a fed bot is chasing you, would be nice if the bot would be smart enough to split feed you.
Hey,
I really like this project and I want to use it! I can't seem to get them to connect with proxy or without. Possible for you to help me on Skype at makan_dey ?
Thanks,
Makan D
Most of the bots just go directly to the master player - we could piggyback on this behaviour and gain even more mass.
Hello ! Can you send me a zip with your node_module folder and agar minimap builded ? I have some problem with npm and msgpack...
thanks.........
I'm making this so no more duplicates pop up. Facebook authentication has been patched by Moneyclip. If you have Facebook authentication turned on then it will only spawn one bot and disconnect all other bots.
There is another issue I think I am the only one experiencing, but none of the proxies spawn bots anymore. Don't know how to solve that one yet or just might be my issue. I'll update this when I figured it out.
I'm using about 100 proxies on average. Because some of them don't work, they crash the program and I have to run node feeder.js again. Please fix this as I want to leave a bot on playing with these feeder bots overnight. Atleast make the program relauch after it has crashed!
Last update have bug sometime:
candidate_ball.x = valid_player_pos["x"];
^
TypeError: Cannot set property 'x' of null
at Object.FeederBot.recalculateTarget (/home/admin/agar/agario-feeder-bot/feeder.js:201:30)
at null. (/home/admin/agar/agario-feeder-bot/feeder.js:63:58)
at wrapper as _onTimeout
at Timer.listOnTimeout (timers.js:119:15)
I was testing last version and it's working much better, those new features are great.
Good job, well done 👍
I have found some issues while running the userscript:
Console output:
Uncaught TypeError: c.MC.updateServerVersion is not a function
Uncaught TypeError: c.MC.setProfilePicture is not a function
Uncaught TypeError: c.MC.doLoginWithFB is not a function
Also have some issue with feeder.js #61
I have put in all the right details, port is open, but each time i press connect to port 8081 and the server ip it never works. help
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.