Hi all.
I am trying to run a headless server.
I compiled Simutrans from sources as explained in a previous post.
I created the map using a instance of simutrans compiled with sdl2 (because I was unable to create it directly form the headless server - got ERROR: modal_dialogue(): called without a display driver => nothing will be shown!) and then launch the server with the following command:
./sim -server -objects pak128 -debug 5 -load server.
It outputs the following:
Use work dir /home/garro/Desktop/simutrans-src-120-4-1/build/default/
Reading low level config data ...
Simutrans version 120.4.1 from Mar 26 2019
parse_simuconf() at config/simuconf.tab: Reading simuconf.tab successful!
Server started, added 2 server sockets
Loading BDF font 'font/cyr.bdf'
Init done.
parse_colours() at config/simuconf.tab: Reading simuconf.tab successful!
Calculating textures ...done
Segmentation fault (core dumped)
EDIT: Running with -debug 5 I get
...
Message: pakset_info_t::debug: VHCskoda180 -> sha1 = 3F6B824260C57A7C015A59B310C52050F6207664
Message: simmain(): Reading menu configuration ...
Message: simmain(): loading savegame "server"
Message: simmain(): Midi disabled ...
Calculating textures ...done
Warning: karte_t::load: disconnecting all clients
Message: karte_t::load(): Prepare for loading
Warning: karte_t::load: Fileversion: 120007
Message: nwc_auth_player_t::init_player_lock_server: new = 32767
Message: nwc_auth_player_t::init_player_lock_server: new = 32767
Warning: karte_t::load(): loaded savegame from 0/1930, next month=524288, ticks=44040 (per month=1<<19)
Message: simmain(): Running world, pause=0, fast forward=0 ...
Message: network_command_t::rdwr: write packet_id=16, client_id=0
Message: network_command_t::rdwr: write packet_id=16, client_id=0
Message: network_command_t::rdwr: write packet_id=16, client_id=0
Message: network_command_t::rdwr: write packet_id=8, client_id=0
Warning: nwc_tool_t::rdwr: rdwr id=8 client=0 plnr=255 pos=koord3d invalid tool_id=8224 defpar=32768,Adesso sono connessi 0 giocatori. init=1 flags=0
Warning: karte_t::interactive: server lagging by 384
Message: network_command_t::rdwr: write packet_id=9, client_id=0
Warning: nwc_tool_t::clone: send sync_steps=1 tool_id=8224 init
Message: network_command_t::rdwr: write packet_id=8, client_id=0
Warning: nwc_tool_t::rdwr: rdwr id=8 client=0 plnr=255 pos=koord3d invalid tool_id=8224 defpar=32768,Adesso sono connessi 0 giocatori. init=1 flags=0
Message: network_command_t::rdwr: write packet_id=16, client_id=0
Message: network_command_t::rdwr: write packet_id=16, client_id=0
Segmentation fault (core dumped)