Observation

class luafun.game.states.SyncWorldListener(host, port, queue, state, stats, name)[source]

Bases: object

Connect to the dota2 game and save the messages in a queue to be read

Size of the message through time. Think dota might allocate a fixed size of memory for the proto message and if the message grows too much the game stop pushing proto messages.

I think with active bots we could limit the message size to something reasonable (i.e if creeps die fast enough that the number of units on the map is fairly constant).

../_images/msgsize.png
Attributes
running

Methods

connect

insert_message

read_message

recover

run

connect(retries=20, sleep_time=0.01)[source]
insert_message(msg, s)[source]
read_message(read: socket.socket)[source]
recover(error, msg)[source]
run()[source]
property running
luafun.game.states.sync_world_listener(host, port, queue, state, stats, level, name)[source]
luafun.game.states.world_listener_process(host, port, queue, state, stats, name, level)[source]