The International Simutrans Forum

Development => Extension Requests => Topic started by: prissi on October 30, 2013, 09:02:26 PM

Title: Good paks are defined in a tab file instead in a pak
Post by: prissi on October 30, 2013, 09:02:26 PM
I propose to move the good definitions from pak files to an editable tab file.

The reason is that people want to modify prices and speed bonus etc. quite often. It would mean that the goods are saved with the game, which also could avoid crashes due to missing goods when loading a savegame.

Any objections?
Title: Re: paks are defined in a tab file instead in a pak
Post by: kierongreen on October 30, 2013, 11:14:01 PM
Is it likely to make loading slower?
Title: Re: Good paks are defined in a tab file instead in a pak
Post by: prissi on October 30, 2013, 11:21:10 PM
The Theme does miss a word "Good pak" should be defined in tab files instead pak files. Those have three parameters, which could be parsed really quick.

And for networkgames, obviously these parameters need to be taken anyway from the savegame, once set. There are maximum 127 goods with 3 parameters and a name. This is rather not much extra info imho.
Title: Re: Good paks are defined in a tab file instead in a pak
Post by: Ters on October 31, 2013, 06:08:10 AM
Quote from: prissi on October 30, 2013, 09:02:26 PM
It would mean that the goods are saved with the game, which also could avoid crashes due to missing goods when loading a savegame.

What if you have an existing save game, then install an add-on for its pak set with a new type of goods? Simutrans would have to merge these things every time, rather than rely on everything being in the save game. It could also need an ability to replace stored goods information in the same game with new data for the pak set, so that an existing game could take advantage of a rebalancing in a new version of the pak set.
Title: Re: Good paks are defined in a tab file instead in a pak
Post by: prissi on October 31, 2013, 01:29:17 PM
That is true for several parameters already, like the city rules. My idea:

- Network save => only use data in savegame.
- Normal game => info in game override pakset

I think it is time for a flag in the simuconf.tab to allow to override all settings in a savegame by local setting whenever zou are loading a game.
Title: Re: Good paks are defined in a tab file instead in a pak
Post by: greenling on October 31, 2013, 07:13:38 PM
Hello Prissi
It´s possible to make a preview how the good.tab inside show out and work?