[fixed] How to avoid disconnects when generating maps?

Host your own server and communicate with server operators.
1 post Page 1 of 1 First unread post
ponce
Deuced Up
Posts: 50
Joined: Wed Apr 24, 2013 8:39 pm


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)
1 post Page 1 of 1 First unread post
Return to “Servers”

Who is online

Users browsing this forum: No registered users and 5 guests