News:

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

Recent posts

#31
Scripting Scenarios and AI / Re: Please revert r11480
Last post by prissi - November 23, 2025, 01:40:01 PM
Nice to read from you too.

And I see, this is a problem.

However, when constructing an asymmetric large extension building (or headquarter), a script would need to specify the orientation (which will be influenced by the current map orientation for a space site check). Thus, I think an layout should be able to be specified; however it must be rotated again in reverse according to the current map rotation.

Would that be acceptable to you too?
#32
Scripting Scenarios and AI / Re: Please revert r11480
Last post by Dwachs - November 23, 2025, 08:14:44 AM
To see that the current implementation does not work: generate a new map with many flat beaches and oil rigs, rotate once, let the AI run. There will be failure to build flat harbours.
#33
Scripting Scenarios and AI / Re: Please revert r11480
Last post by Yona-TYT - November 23, 2025, 01:01:18 AM
@Dwachs Wow, it's been a long time! It's a pleasure to read you here again, greetings 👋  8)
#34
Scripting Scenarios and AI / Please revert r11480
Last post by Dwachs - November 22, 2025, 07:38:48 PM
Please revert this change to api_command.cc:

https://github.com/simutrans/simutrans/commit/05e43dc342a290ef7f0bcc7daf07be335847b8a5

Reason: it will break scripts after map rotation. Scripts work internally with all coordinates as if the map was never rotated. Thats why I introduced special functions to transfer ribi and coord between squirrel and c++. The rotation parameter of build_station_rotation supplied by script will only be correct if current rotation of map == 0, the original implementation used ribi's, which were safe.

(Ok, I could do that myself, but then this hm_library needs to be fixed, which I would not like to do.)
#35
Simutrans Help Center / Re: Storing parameters
Last post by prissi - November 22, 2025, 08:02:01 AM
As these affects the game state, these are saved with a network game, even the cityrules.

For non-network games, the cityrules and cluster_factor, renovation_percentage, min_building_density should be taken from the tab file of the game. If there was rpeviously played a network game, then that settings mail prevail.
#36
Bug Reports / Re: r11400 - Sudden jump of 8 ...
Last post by cousjath - November 21, 2025, 10:18:58 PM
I think it was also a case that I had missed the appearance of a couple of new vehicles and so was surprised when I saw them in the depot.
#37
Bug Reports / Re: r11400 - Sudden jump of 8 ...
Last post by Andarix - November 21, 2025, 04:20:13 PM
Quote from: cousjath on November 20, 2025, 07:20:23 PM... If you look at messages the previous messages all were for April 1971.

This is a bug where new messages are no longer saved after a while.

https://forum.simutrans.com/index.php/topic,23526.0.html

This has only recently been fixed (r11690/94).
#38
Simutrans Help Center / Storing parameters
Last post by Andarix - November 21, 2025, 02:47:01 PM
Are passenger and growth parameters stored with the map (sve file) or not?

city and passenger parameter


This question also arises with many other parameters.

parameter list
#39
Bug Reports / Re: r11400 - Sudden jump of 8 ...
Last post by cousjath - November 20, 2025, 07:20:23 PM
I don't have access to an earlier save, but upon loading the file provided you will notice the date is June 1979. If you look at messages the previous messages all were for April 1971.
#40
Bug Reports / Re: r11400 - Sudden jump of 8 ...
Last post by prissi - November 20, 2025, 11:25:30 AM
Is this the file before the save?

In principle, the files should be very compatible, especially for such a small step in version. I rather expect a script error between different versions.