dannyman Oct 27, 2022 @ 9:32pm
Tweak to pass arguments from Steam to Simutrans
I like to play like this:
simutrans -fullscreen -autodpi
Really nice!
In Steam, under the Cog, you can add command line parameters, like:
-fullscreen -autodpi
These are not passed to Simutrans from Steam, but I figured it out, at least on Linux.
In steam/steam/steamapps/common/Simutrans there is a -- this is what Steam calls!

Change from this:
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:./lib/" ./simpreloader

To this:
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:./lib/" ./simpreloader $@

That $@ takes the arguments passed from Steam and passes them to simpreloader, which passes them to simutrans.

I don't know who maintains the Steam stuff here and I can't find on github, but perhaps someone wants to bring this upstream? Thanks!!
< >
Showing 1-1 of 1 comments
Roboron  [developer] Nov 5, 2022 @ 6:29am 
Thank you, I totally overlooked this when I introduced the .sh file. It should work now again.

Such .sh file will probably disappear in the next release, as we made some changes to the way we package Simutrans that will make it obsolete.
< >
Showing 1-1 of 1 comments
Per page: 1530 50