iamgreaser / iceball

Open-source rewrite of the VOXLAP version of Ace of Spades.
http://iceball.build
GNU General Public License v3.0
113 stars 32 forks source link

Players get kicked due to the timeout when switching maps #137

Open dany-on-demand opened 9 years ago

dany-on-demand commented 9 years ago

Noticeable with stuff like gen_city.lua which takes a long time to finish. We need to "pause" the time while the switch happens.

rakiru commented 9 years ago

Ideally, it would still send pings, but I'm not sure if that would be possible without overly complicating something.

BR- commented 9 years ago

Perhaps we should make a pump function that long-running scripts can call periodically to handle the network buffers and whatever else ends up needing to run continuously. Or, once/if we make an event system, that can just be an event.

rakiru commented 9 years ago

Just a call to host.service() or w/e it is would probably be enough, but yeah, if we wrapped that in a generic function that needs called periodically, then anything else can get put in there too, and mods can hook it if they need to add to it.

LeComm commented 9 years ago

Something like PySnip's twisted.internet.reactor.LoopingCall maybe? Would making it multithreaded cause the typical problems?

rakiru commented 9 years ago

No-one suggested making it multithreaded, and twisted isn't multithreaded.

LeComm commented 9 years ago

Oops I was referring to the ping sending thing.