Hi, thank you for your answer. Too bad if it's not easy, the format is that different between 2006 and 2007 sdk?
I admit I don't know yet the source bsp format (I'm more used to
manipulate idtech derivatives). But it's not a priority to port map, my priority is to have a functionnal server.
I finally managed to start srcds.exe in console mode using wine, it still needs an headless X11 server but it does not need to script the gui handling, so the server starts faster.
Unfortunately I face an annoying problem : the server shutdowns itself automatically exactly 20 minutes after the first player join.
The server can wait indefinitely the first player, but as soon as at least one player joins the server, there is an invisible time bomb triggered, even if the players quit or not, whatever the map played. I noticed it happens only when
mp_timelimit is set, and whatever the timelimit value, for example with a 20min timelimit, the server will end at the game end, with 10min timelimit, the server will end at the second game end. With 1min timelimit, 20 game will run before the server shutdowns.
To workaround that I'm trying to externalize the maprotation logic like that:
for map in complex felicity ravine villa
do
rcon say current game ends in 15min, next level is $map
sleep 10m
rcon say current game ends in 5min, next level is $map
sleep 4m
rcon say current game ends in 1min, next level is $map
sleep 1m
rcon end_game
sleep 30s
rcon changelevel $map
done
But I don't found the command to end the game (the
end_game placeholder in my code above), is there a server command to force the end of the game ?