News:

Simutrans Sites
Know our official sites. Find tools and resources for Simutrans.

Max. weight 999t for rail track.

Started by Milko, January 05, 2011, 01:18:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Milko

Hello

When I click on a rail track, popup windows inform that max weight is 999t for all type of track. It's ok for road.

Giuseppe

jamespetts

The name "Christminster" shows that you are using the demo.sve that came with Pak128.Britain-Ex. That saved game was originally made in Standard. Since the weight limits are set when the track is laid, and Standard has no weight limits, the default weight limit of 999t will be shown in demo.sve. If you start a new game, you will see that the tracks have the correct weight limit.

Milko

Hello James

There is a reason for which the maximum weight is saved in the file? I do not think it's a good idea for several reasons:
1) the saved file gets heavy
2) the game map in the memory becomes heavier (as a duplicate of the data that are already present in the definitions of "pak").
3) if I update the "pak" during a game already started can be a part of the track has a max weight and a second part with a different value, thus creating some confusion.

Would not it be better that the characteristics of the objects on the map are taken directly from the data of "pak" without replication?
My idea is that the value of the weight limit (but the concept can be extended to other features) instead of being associated with the object of the map is to be taken from time to time by the "pak".
This will save disk space and memory, but probably would make the game slower because the value of the characteristics must be taken from the objects of "pak".

Giuseppe

jamespetts

There is a reason why these things are saved: if, for example, there is a way object, it can have its own weight limit, and the weight limit of the resulting way is the lower of the basic way and the way object. It is done like this for speed limits in Standard, so I just replicated the code.