News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

Addons are loaded by default

Started by ceeac, September 12, 2022, 06:07:51 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ceeac

Not sure if this is a bug or a documentation issue...

When Simutrans is started with the '-objects' command line parameter, addons are loaded by default. This is contrary to the documentation in readme.txt and also when Simutrans is started with the '-help' parameter. Should addons be loaded by default or not?

prissi


ceeac


Dwachs

Not completely fixed. If a start a game with -addons, then start another game without using -addons/-noaddons it will start with addons again. So this setting survives till the next start of the program.

Parsley, sage, rosemary, and maggikraut.

prissi

Loading a game will not load/unload the addons. However, at this point the addons are loaded and can be used. Hence, the game should reflect this by saving as "loaded with addons".

Or did I understood this wrong?

Dwachs

Start simutrans with '-addons' option. Close it. Start Simutrans without '-addons' / '-noaddons'. Now Simutrans starts with addons. Somehow the setting 'with-private-paks' survives and will not be reset to the default in the next program start.

That is, doing the following in a terminal:
> ./sim -objects pak -addons   # will start with addons
> ./sim -objects pak           # will start with addons
> ./sim -objects pak -noaddons # will start without addons
> ./sim -objects pak           # will start without addons
A call without addons/noaddons takes the addons-setting from the previous run. No savegames need to be loaded.
Parsley, sage, rosemary, and maggikraut.

ceeac

Quote from: Dwachs on November 11, 2022, 06:24:10 AMA call without addons/noaddons takes the addons-setting from the previous run. No savegames need to be loaded.
Should be fixed with the next savegame version bump (see r10802).

prissi

That flag was once thought to tell at loading time without given a pak if the pak with addons too should be also automatically be loaded. Since that functionality is apparently not used much, removing it may be ok. If one wants to keep that functionality, then we may need two variables.