Simutrans
Tweak simutrans.sh 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 simutrans.sh -- 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 simutrans.sh on github, but perhaps someone wants to bring this upstream? Thanks!!
< >
Se afișează 1-1 din 1 comentarii
Roboron  [dezvoltator] 5 nov. 2022 la 6:29 
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.
< >
Se afișează 1-1 din 1 comentarii
Per pagină: 1530 50