Page 1 of 1

[fixed] How to avoid disconnects when generating maps?

Posted: Mon Aug 05, 2013 5:22 pm
by ponce
Context: I generate maps for my server with an external program, called in the gen_script callback. It ouputs a .vxl file which is then loaded normally.
Problem: all client disconnect while the map is being generated.
Question: What to do to keep everyone connected?

I tried my best to keep generation time small and currently it's around 3 seconds, but it looks like the client need something in a timely fashion.

(ps: I could pregenerate maps with different seed but i want to be able to choose a seed in the future)

(EDIT: fixed with spawning a subprocess to generate the next map after each load)