Re:Generals.io Bot API: Build bots to play against humans
by jjshanks on Friday February 03, 2017 @05:22PM
(#13563862)
I started making a bot last night but it keep getting disconnected in the first 10ish rounds. Anyone else see this and resolve it?
[ Parent
| on HN ]
Re:Generals.io Bot API: Build bots to play against humans
by popey456963 on Friday February 03, 2017 @05:24PM
(#13563873)
Could you give us some details on this? Like which web socket library you used, the technology you used, etc?
If you copy & paste the example bot verbatim, does that work for over 10 rounds? As far as I know we've got tens of bots working at the moment and I haven't heard this strange problem from anyone else.
Re:Generals.io Bot API: Build bots to play against humans
by jjshanks on Friday February 03, 2017 @09:44PM
(#13565333)
I don't have the code handy at the moment but I was using ruby with this socket.io gem 'socket.io-client-simple'
I was able to connect, join a game, send chat messages, just couldn't stay connected.
I basically just converted the JS tutorial on the site to ruby style.