News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

Problems starting server on Ubuntu

Started by doenertier, August 04, 2018, 10:21:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

doenertier

hello,

I also have issues getting simutrans without graphics to run on a current Debian 64bit.

done so far:
cloned current normal simutrans from github
edited config.template for OS linux, backend posix, color depth 0, optimize 1, multi threading enabled, and the -DREVISION="1234" flag , saved as config.default.
compiled game via make
copied binary in different folder
got themes, texts, and pak128 german
got a simuconf.tab from a working (windows) server
got a savefile from a working server (windows though) of the same version, copied into folder

started like this:
./sim -nomidi -objects PAK128.german/ -load testserver.sve
Use work dir /home/<beep>/simutrans/
Reading low level config data ...
parse_simuconf() at config/simuconf.tab: Reading simuconf.tab successful!
Server started, added 2 server sockets
Preparing display ...
parse_colours() at config/simuconf.tab: parse_simuconf() at PAK128.german/config/simuconf.tab:
Reading simuconf.tab successful!
Reading city configuration ...
Reading speedbonus configuration ...
Reading menu configuration ...
Reading object data from PAK128.german/...
Reading menu configuration ...
loading savegame "testserver.sve"
Midi disabled ...
Calculating textures ...done
Creating cities ...
Creating cities: 1
Creating factories ...
Distributing 1 tourist attractions ...
Preparing startup ...
World destroyed.


process is not running afterwards.

Where did I possibly get it wrong?

file sim
sim: ELF 64-bit LSB shared object, x86-64 [...]

so it is an x86-64 file.



Frank

Did you make the adjustments for the network in the simuconf.tab?

Quote...
Server started, added 2 server sockets
...

That says that the Simutrans server wants to use IPv4 and IPv6.
For a local area network this should be restricted to an IP version.

simuconf.tab
...
# Sets the local addresses Simutrans should listen on and use for making outgoing connections
# By default it will use all local IPv4 and IPv6 addresses
# This setting has no effect if Simutrans has been compiled with the USE_IP4_ONLY flag set!
# The addresses listed will be tried in the order specified
# A DNS name may be specified, this will be resolved and Simutrans will attempt to listen
# on all of the addresses returned.
#listen = ::,0.0.0.0
...


listen=0.0.0.0 -> IPv4

listen=:: -> IPv6

Quote...
./sim -nomidi -objects PAK128.german/ -load testserver.sve
...

./sim -server -objects PAK128.german/ -load testserver.sve
or
./sim -easyserver -objects PAK128.german/ -load testserver.sve

Quote...
got a simuconf.tab from a working (windows) server
...

Did you also adjust the IP according to your server?

Firewall settings of Linux?

doenertier

dedicated server with no firewall settings that I know of, and it only has a single v4 and v6 IP each, so :: and/or 0.0.0.0 should be fine.

Not being able to connect to due to a firewall would be different from the process starting and ending back to back though?

./sim -easyserver -objects PAK128.german/ -load testserver.sve
Use work dir /home/<beep>/simutrans/
Reading low level config data ...
parse_simuconf() at config/simuconf.tab: Reading simuconf.tab successful!
Server started, added 1 server sockets
Preparing display ...
parse_colours() at config/simuconf.tab: parse_simuconf() at PAK128.german/config/simuconf.tab:
Reading simuconf.tab successful!
Reading city configuration ...
Reading speedbonus configuration ...
Reading menu configuration ...
Reading object data from PAK128.german/...
Reading menu configuration ...
loading savegame "testserver.sve"
Midi disabled ...
Calculating textures ...done
Creating cities ...
Creating cities: 1
Creating factories ...
Distributing 1 tourist attractions ...
Preparing startup ...
World destroyed.


here with debug enabled:

./sim -server -debug 2 -threads 4 -singleuser -use_workdir -objects PAK128.german/ -load testserver.sve -nomidi -nosound -autodpi -log
Use work dir /home/<beep>/simutrans/
Reading low level config data ...
Simutrans version 120.4 Nightly from Aug  2 2018 r1234
parse_simuconf() at config/simuconf.tab: Reading simuconf.tab successful!
parse_simuconf() at /home/<beep>/simutrans/simuconf.tab: Reading simuconf.tab successful!
Server started, added 1 server sockets
Preparing display ...
parse_colours() at config/simuconf.tab: parse_simuconf() at /home/<beep>/simutrans/simuconf.tab: parse_simuconf() at PAK128.german/config/simuconf.tab:
Reading simuconf.tab successful!
parse_simuconf() at /home/<beep>/simutrans/simuconf.tab:
Reading simuconf.tab successful!
Warning: cbuffer_t::check_format_strings:       Broken translation string '%1$에서의 교통량 증가: %3$i 주민들이 %2$s 건설': Positional parameter 1 not specified.
Warning: cbuffer_t::check_format_strings:       Parameter 1 in translation string '자기부상열차 %s가 %.1f km/h로 세계 신기록 달성!' of 'New world record for maglevs: %.1f km/h by %s.' has to be of type '%f' instead of '%s', Typemasks: Master = fs vs Translated = sf
Warning: cbuffer_t::check_format_strings:       Parameter 1 in translation string '모노레일 %s가 %.1f km/h로 세계 신기록 달성!' of 'New world record for monorails: %.1f km/h by %s.' has to be of type '%f' instead of '%s', Typemasks: Master = fs vs Translated = sf
Warning: cbuffer_t::check_format_strings:       Parameter 1 in translation string '자동차 %s가 %.1f km/h로 세계 신기록 달성!' of 'New world record for motorcars: %.1f km/h by %s.' has to be of type '%f' instead of '%s', Typemasks: Master = fs vs Translated = sf
Warning: cbuffer_t::check_format_strings:       Parameter 1 in translation string '협궤기차 %s가 %.1f km/h로 세계 신기록 달성!' of 'New world record for narrowgauges: %.1f km/h by %s.' has to be of type '%f' instead of '%s', Typemasks: Master = fs vs Translated = sf
Warning: cbuffer_t::check_format_strings:       Parameter 1 in translation string '비행기 %s가 %.1f km/h로 세계 신기록 달성!' of 'New world record for planes: %.1f km/h by %s.' has to be of type '%f' instead of '%s', Typemasks: Master = fs vs Translated = sf
Warning: cbuffer_t::check_format_strings:       Parameter 1 in translation string '기차 %s가 %.1f km/h로 세계 신기록 달성!' of 'New world record for railways: %.1f km/h by %s.' has to be of type '%f' instead of '%s', Typemasks: Master = fs vs Translated = sf
Warning: cbuffer_t::check_format_strings:       Parameter 1 in translation string '선박 %s가 %.1f km/h로 세계 신기록 달성!' of 'New world record for ship: %.1f km/h by %s.' has to be of type '%f' instead of '%s', Typemasks: Master = fs vs Translated = sf
ERROR: is_unicode_file():       file is UTF-8 but has no paragraph
For help with this error or to file a bug report please see the Simutrans forum:
http://forum.simutrans.com
Reading city configuration ...
Reading speedbonus configuration ...
Reading menu configuration ...
Warning: create_simple_tool():  deprecated tool [27] requested
Reading object data from PAK128.german/...
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "diesel.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "train-horn-steam-0.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "diesel.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "engine-start-diesel-1.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "engine-start-diesel_d.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "engine-start-diesel_d.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "diesel.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boing.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "smalloldplanes.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "smalloldplanes.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "smalloldplanes.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "bigoldplanes.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "engine-start-diesel-1.wav" not found
Warning: building_reader_t::read_node():        level was 65535, intended was probably 0 => changed.
Warning: sound_desc_t::get_sound_id():  sound "engine-start-diesel_d.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "bigoldplanes.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "engine-start-diesel-1.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "engine-start-diesel_d.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: vehicle_builder_t::register_desc():    Object BR485_rot_Ende was overlaid by addon!
Warning: vehicle_builder_t::register_desc():    Object BR485_rot_Kopf was overlaid by addon!
Warning: vehicle_builder_t::register_desc():    Object BR485_rot_Waggon1 was overlaid by addon!
Warning: vehicle_builder_t::register_desc():    Object BR485_rot_Waggon2 was overlaid by addon!
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "smalloldplanes.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "comet-jet.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "diesel.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "diesel.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "smalloldplanes.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "diesel.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "diesel.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "diesel.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "steam.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "bigoldplanes.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "train-horn-steam-0.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "diesel.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "diesel.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "smalloldplanes.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "engine-start-diesel_d.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "train-horn-steam-0.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "smalloldplanes.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "bigoldplanes.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "engine-start-diesel_d.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "diesel.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "diesel.wav" not found
Reading menu configuration ...
Warning: tool_t::read_menu():   toolbar[12][3]: replaced way-builder(id=14) with default param=cityroad by cityroad builder(id=36)
loading savegame "testserver.sve"
Midi disabled ...
Calculating textures ...done
Warning: karte_t::load: disconnecting all clients
Warning: karte_t::load():       Cannot load saved game!
ERROR: loadsave_t():    failed reading with error 1
For help with this error or to file a bug report please see the Simutrans forum:
http://forum.simutrans.com
Warning: karte_t::create_rivers():      There is no river defined!

Creating cities ...
Creating cities: 1
Creating factories ...
Distributing 1 tourist attractions ...
Preparing startup ...
Warning: nwc_tool_t::rdwr:      rdwr id=8 client=0 plnr=255 pos=koord3d invalid tool_id=8224 defpar=32768,Right now 0 clients are connected. init=1 flags=0
ERROR: modal_dialogue():        called without a display driver => nothing will be shown!
For help with this error or to file a bug report please see the Simutrans forum:
http://forum.simutrans.com
World destroyed.


./sim -easyserver -debug 2 -objects PAK128.german/ -load testserver.sve
Use work dir /home/<beep>/simutrans/
Reading low level config data ...
Simutrans version 120.4 Nightly from Aug  2 2018 r1234
parse_simuconf() at config/simuconf.tab: Reading simuconf.tab successful!
Server started, added 1 server sockets
Preparing display ...
Warning: simwin.cc themes_init():       Can't read themes from themes.tab
parse_simuconf() at PAK128.german/config/simuconf.tab:
parse_colours() at config/simuconf.tab: Reading simuconf.tab successful!
Warning: cbuffer_t::check_format_strings:       Broken translation string '%1$에서의 교통량 증가: %3$i 주민들이 %2$s 건설': Positional parameter 1 not specified.
Warning: cbuffer_t::check_format_strings:       Parameter 1 in translation string '자기부상열차 %s가 %.1f km/h로 세계 신기록 달성!' of 'New world record for maglevs: %.1f km/h by %s.' has to be of type '%f' instead of '%s', Typemasks: Master = fs vs Translated = sf
Warning: cbuffer_t::check_format_strings:       Parameter 1 in translation string '모노레일 %s가 %.1f km/h로 세계 신기록 달성!' of 'New world record for monorails: %.1f km/h by %s.' has to be of type '%f' instead of '%s', Typemasks: Master = fs vs Translated = sf
Warning: cbuffer_t::check_format_strings:       Parameter 1 in translation string '자동차 %s가 %.1f km/h로 세계 신기록 달성!' of 'New world record for motorcars: %.1f km/h by %s.' has to be of type '%f' instead of '%s', Typemasks: Master = fs vs Translated = sf
Warning: cbuffer_t::check_format_strings:       Parameter 1 in translation string '협궤기차 %s가 %.1f km/h로 세계 신기록 달성!' of 'New world record for narrowgauges: %.1f km/h by %s.' has to be of type '%f' instead of '%s', Typemasks: Master = fs vs Translated = sf
Warning: cbuffer_t::check_format_strings:       Parameter 1 in translation string '비행기 %s가 %.1f km/h로 세계 신기록 달성!' of 'New world record for planes: %.1f km/h by %s.' has to be of type '%f' instead of '%s', Typemasks: Master = fs vs Translated = sf
Warning: cbuffer_t::check_format_strings:       Parameter 1 in translation string '기차 %s가 %.1f km/h로 세계 신기록 달성!' of 'New world record for railways: %.1f km/h by %s.' has to be of type '%f' instead of '%s', Typemasks: Master = fs vs Translated = sf
Warning: cbuffer_t::check_format_strings:       Parameter 1 in translation string '선박 %s가 %.1f km/h로 세계 신기록 달성!' of 'New world record for ship: %.1f km/h by %s.' has to be of type '%f' instead of '%s', Typemasks: Master = fs vs Translated = sf
ERROR: is_unicode_file():       file is UTF-8 but has no paragraph
For help with this error or to file a bug report please see the Simutrans forum:
http://forum.simutrans.com
Reading city configuration ...
Reading speedbonus configuration ...
Reading menu configuration ...
Warning: create_simple_tool():  deprecated tool [27] requested
Reading object data from PAK128.german/...
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "diesel.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "train-horn-steam-0.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "diesel.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "engine-start-diesel-1.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "engine-start-diesel_d.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "engine-start-diesel_d.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "diesel.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boing.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "smalloldplanes.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "smalloldplanes.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "smalloldplanes.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "bigoldplanes.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "engine-start-diesel-1.wav" not found
Warning: building_reader_t::read_node():        level was 65535, intended was probably 0 => changed.
Warning: sound_desc_t::get_sound_id():  sound "engine-start-diesel_d.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "bigoldplanes.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "engine-start-diesel-1.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "engine-start-diesel_d.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: vehicle_builder_t::register_desc():    Object BR485_rot_Ende was overlaid by addon!
Warning: vehicle_builder_t::register_desc():    Object BR485_rot_Kopf was overlaid by addon!
Warning: vehicle_builder_t::register_desc():    Object BR485_rot_Waggon1 was overlaid by addon!
Warning: vehicle_builder_t::register_desc():    Object BR485_rot_Waggon2 was overlaid by addon!
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "smalloldplanes.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "comet-jet.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "diesel.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "diesel.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "smalloldplanes.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "diesel.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "diesel.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "diesel.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "steam.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "bigoldplanes.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "train-horn-steam-0.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "diesel.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "diesel.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "smalloldplanes.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "engine-start-diesel_d.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "train-horn-steam-0.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "smalloldplanes.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "bigoldplanes.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "engine-start-diesel_d.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "planelow.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "diesel.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "boat-horn.wav" not found
Warning: sound_desc_t::get_sound_id():  sound "diesel.wav" not found
Reading menu configuration ...
Warning: tool_t::read_menu():   toolbar[12][3]: replaced way-builder(id=14) with default param=cityroad by cityroad builder(id=36)
loading savegame "testserver.sve"
Midi disabled ...
Calculating textures ...done
Warning: karte_t::load: disconnecting all clients
Warning: karte_t::load():       Cannot load saved game!
ERROR: loadsave_t():    failed reading with error 1
For help with this error or to file a bug report please see the Simutrans forum:
http://forum.simutrans.com
Warning: karte_t::create_rivers():      Too many rivers requested! (16 not constructed)
Creating cities ...
Creating cities: 1
Creating factories ...
Distributing 1 tourist attractions ...
Preparing startup ...
Warning: nwc_tool_t::rdwr:      rdwr id=8 client=0 plnr=255 pos=koord3d invalid tool_id=8224 defpar=32768,Right now 0 clients are connected. init=1 flags=0
ERROR: modal_dialogue():        called without a display driver => nothing will be shown!
For help with this error or to file a bug report please see the Simutrans forum:
http://forum.simutrans.com
World destroyed.


Broken savegame after all? I'm not sure.




Ters

It seems related to a failure to load the saved game, which probably doesn't have anything to do with running 32-bit Simutrans on a 64-bit OS. This question should be split into a separate topic. Maybe more people will read it then.

An_dz

First, -DREVISION="1234" should have the real revision number instead of 1234.

On GitHub you can check that by clicking on the three dots button close to the commit message, or you can run git log -1, you'll see something like this:

git-svn-id: svn://tron.homeunix.org/simutrans/simutrans/trunk@8504 8aca7d54-2c30-db11-9de9-000461428c89

The highlighted part is the SVN commit number that you need to use.




As for the error, it seems that Simutrans is not finding the savegame file. On Linux it should be on ~/simutrans/save or in ./save if using singleuser_install = 1 in your config.

Frank

You can also install the program file (sim-posix) via the repo.

or load from here

These correspond to the last release.




I suspect that the installation is not complete.


Ters

Getting the source straight from SVN is probably easier if one doesn't intend to make big changes where git's local branches can be useful. That way the versioning should work straight out of the box.

ACarlotti

Quote from: An_dz on August 05, 2018, 01:29:31 PMAs for the error, it seems that Simutrans is not finding the savegame file. On Linux it should be on ~/simutrans/save or in ./save if using singleuser_install = 1 in your config.

That is different to the normal (for Linux) behaviour for specifying files as command arguments. The expectation would be that the file is specified relative to the current working directory (and tab completion usually supports this), not relative to some completely different directory.

I'd say this is a bug, since it contradicts what I would consider to be a fairly universal expectation.

Ters

The argument should really be a save game name, not a save game filename, since Simutrans is built around the save directory as a form of database (it is even indexed now). The GUI doesn't really open up for loading or saving elsewhere, so it would be strange if the command line bypasses this. Alternatively, passing a save game filename on the command line imports (copies) this save game into the "database" and launches it from there.

doenertier

#9
apparently that "copy" didnt happen when trying to load from currentdir.

I totally expected that "-load filename" would load it from the current directory, where the file was. otherwise I would've expected to have to specify "-load /path/fo/file".

copying the save file to ~/simutrans/save and restarting seems to work.

So, lesson learned, it seems mandatory that the files exist in either <simutransdir>/save/ or ~/simutrans/save/ even if you specify -load filename instead of -load /path/to/file on linux.

./sim -server -debug 1 -threads 4 -singleuser -use_workdir -objects PAK128.german/ -load testserver.sve -nomidi -nosound -autodpi -log
Use work dir /home/<beep>/simutrans/
Reading low level config data ...
Simutrans version 120.4 Nightly from Aug  2 2018 r1234
parse_simuconf() at config/simuconf.tab: Reading simuconf.tab successful!
parse_simuconf() at /home/<beep>/simutrans/simuconf.tab: Reading simuconf.tab successful!
Server started, added 1 server sockets
Preparing display ...
parse_colours() at config/simuconf.tab:
parse_simuconf() at /home/<beep>/simutrans/simuconf.tab:
parse_simuconf() at PAK128.german/config/simuconf.tab:
Reading simuconf.tab successful!
parse_simuconf() at /home/<beep>/simutrans/simuconf.tab:
Reading simuconf.tab successful!
ERROR: is_unicode_file():       file is UTF-8 but has no paragraph
For help with this error or to file a bug report please see the Simutrans forum:
http://forum.simutrans.com
Reading city configuration ...
Reading speedbonus configuration ...
Reading menu configuration ...
Reading object data from PAK128.german/...
Reading menu configuration ...
loading savegame "testserver.sve"
Midi disabled ...
Calculating textures ...done
World destroyed.
ERROR: is_unicode_file():       file is UTF-8 but has no paragraph
For help with this error or to file a bug report please see the Simutrans forum:
http://forum.simutrans.com
Running world, pause=0, fast forward=0 ...



Let's see if everything else works now :) Thanks so far everyone!

Ters

Quote from: doenertier on August 05, 2018, 03:27:37 PM
apparently that "copy" didnt happen when trying to load from currentdir.

No, that was a feature idea.

Quote from: doenertier on August 05, 2018, 03:27:37 PMI totally expected that "-load filename" would load it from the current directory, where the file was. otherwise I would've expected to have to specify "-load /path/fo/file".

copying the save file to ~/simutrans/save and restarting seems to work.

So, lesson learned, it seems mandatory that the files exist in either <simutransdir>/save/ or ~/simutrans/save/ even if you specify -load filename instead of -load /path/to/file on linux.

Simutrans works with files within its savegame directory sort of like VCSes work with files inside their working directories. The latter are likely better at telling you what you did wrong, though. Simutrans in general is made with minimal effort for the developers behind it to get what they want.

ACarlotti

'Feature' request: Change output of `simutrans -help` to replace the line:
-load FILE[.sve]    loads game in file 'save/FILE.sve'
with something like
-load FILE[.sve]    loads game (from default save directory) with name 'FILE.sve'

The current message is not correct (it assumes that the executable is located in the same directory as the save directory, which is not for me, where my source controlled stuff is in an unrelated directory), although a careful reading of it would suggest that it's not just using the current working directory. I think the above change (and perhaps a similar change to any online copies of this text) would be sufficient for users to find out the intended usage.

Also, I've had another thought about standard linux behaviour, and it occurs to me that the "-load" makes this slightly different to most cases of a program loading a file.

Ters

Quote from: ACarlotti on August 05, 2018, 07:59:17 PM
The current message is not correct (it assumes that the executable is located in the same directory as the save directory[...])

Actually, it doesn't when installed according to platform guidelines. Then it makes no assumptions about where the executable and save game are relative to each other, but it does require that save games are located in the save sub-directory of the per-user simutrans directory (~/simutrans or ~/.simutrans, depending on stuff). When not really installed at all, the Simutrans program directory and the per-user directory becomes the same, for easy transfer between machines.

Simutrans does not care about any other parts of the file system than those two (or one) directories. It is very sandboxed that way, and I've heard sandboxing is becoming popular.

ACarlotti

I realise that my statement of its assumptions was also wrong, and (separately) I was mistaken about how the save directory could be configured. In any case, I think the help text should be more explicit about it using the save directory rather than the current directory - it is easy to misread the help text (as I initially did) and not notice this.

Ters

As I wrote earlier, it would be better if it didn't use the term filename, and with it any mention of extensions. The argument is for loading the saved game with the given name.

An_dz

Would this message be clearer?
loads savegame with name 'FILE' from Simutrans save directory

ACarlotti

Quote from: An_dz on August 06, 2018, 08:57:28 PM
Would this message be clearer?
loads savegame with name 'FILE' from Simutrans save directory

Looks good to me.

Ters

Why not "loads savegame with name 'NAME' from Simutrans save directory"?

An_dz

Just because it's preceded with -load FILE[.sve]:
-load FILE[.sve]     loads savegame with name 'FILE' from Simutrans save directory

But we can change it too, but I would prefer using SAVE instead of NAME.

Ters

Quote from: An_dz on August 08, 2018, 08:27:09 AMJust because it's preceded with -load FILE[.sve]
That should be changed, too. It is / should be -load NAME. That the save game is represented by a file called NAME.sve in some directory somewhere requires more clarification than fits in this short summary of options, but anyone should recognize the names from the open and save dialogs inside the game.

An_dz