News:

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

Recent posts

#21
Thank you!
But it does not work in r11869
simtool.cc l1976 should be change:
-    if(!city) {
+    if(city) {
#22
Very sensible idea. The town deletion code predated the existence of a city pointer with hosues ...

Incorporated in r11869
#23
Bug Reports / Re: [fluidsynth] Bug when chan...
Last post by prissi - Yesterday at 02:22:08 PM
Then I would guess this is a fluidsynth thing combined with simutrans given the output. But I might be wrong and its just my prejustice against fluidsynth.
#24
Scripting Scenarios and AI / Re: Tutorial - code review
Last post by prissi - Yesterday at 02:19:15 PM
The bridge bug has been fixed.

The heap overflow happened when checking for the schedule tool in _ia_allowed_tool, the string is the corrdinates for the schedule entry. There is not script message, Simutrans itself has an internal memory error during allocation. The normal executable will write garbage at some memory location but does not crash. Anyway, in today's version I could no longer reproduce it.

Now another text error in airport step D: "Connect the city of Pollingville with airport {sch2} with four busses"
#25
Bug Reports / Re: [fluidsynth] Bug when chan...
Last post by Yona-TYT - Yesterday at 02:00:38 PM
Quote from: prissi on Yesterday at 01:33:54 PMThe screenshot shows no bug, please describe what the bug actually does. Also, on Linux, it could be easily a bug in the Midi lib, which is threaded too.
It's because there's no error message; Simutrans actually closes suddenly when changing music, but since I'm using gdb, this keeps the window frozen.
#26
Bug Reports / Re: [fluidsynth] Bug when chan...
Last post by prissi - Yesterday at 01:33:54 PM
The screenshot shows no bug, please describe what the bug actually does. Also, on Linux, it could be easily a bug in the Midi lib, which is threaded too.
#27
Simutrans-Extended development / Re: AI bug fixing experiment -...
Last post by prissi - Yesterday at 01:29:37 PM
These all have too small context windows to really fix a bug which may lurk somewhere. What the AI can do is add new functionality, with a related tool and probably even GUI code. A lot of it are just repeating patterns with different layouts, something the AIs should be very good at understanding.
#28
Will you try proprietary models as well? e.g, Claude Sonnet/Opus 4.5 or GPT-5.2? Maybe also coding agents like Claude Code / OpenCode.
#29
Bug Reports / [fluidsynth] Bug when changing...
Last post by Yona-TYT - Yesterday at 01:27:07 AM

I previously reported a persistent bug that occurs when changing music tracks. I've confirmed that it's still present, but unfortunately, the debugging information isn't very helpful.

I'm using Linux and r11858

Screenshot_2026-01-12_21-26-40.png

(gdb) run
Starting program: /home/yona/Games/simutrans-nigth/simutrans
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffede276c0 (LWP 9331)]
[New Thread 0x7fffed4e56c0 (LWP 9332)]
[New Thread 0x7fffecce46c0 (LWP 9333)]
[New Thread 0x7fffec4e36c0 (LWP 9334)]
[New Thread 0x7fffebce26c0 (LWP 9335)]
[New Thread 0x7fffeb4e16c0 (LWP 9336)]
[New Thread 0x7fffeace06c0 (LWP 9337)]
[New Thread 0x7fffea4df6c0 (LWP 9338)]
[New Thread 0x7fffe9cde6c0 (LWP 9339)]
[New Thread 0x7fffe940e6c0 (LWP 9340)]
[Thread 0x7fffe940e6c0 (LWP 9340) exited]
[Thread 0x7fffe9cde6c0 (LWP 9339) exited]
[Thread 0x7fffea4df6c0 (LWP 9338) exited]
[New Thread 0x7fffea4df6c0 (LWP 9341)]
[New Thread 0x7fffe9cde6c0 (LWP 9342)]
[New Thread 0x7fffe940e6c0 (LWP 9343)]
[New Thread 0x7fffdbe226c0 (LWP 9346)]
[New Thread 0x7fffd76216c0 (LWP 9347)]
[New Thread 0x7fffd6e206c0 (LWP 9348)]
[New Thread 0x7fffd62046c0 (LWP 9350)]
[New Thread 0x7fffd5a036c0 (LWP 9351)]
[New Thread 0x7fffd52026c0 (LWP 9352)]
[New Thread 0x7fffd4a016c0 (LWP 9353)]
[New Thread 0x7fffbbfff6c0 (LWP 9354)]
[New Thread 0x7fffbb7fe6c0 (LWP 9355)]
[New Thread 0x7fffbaffd6c0 (LWP 9356)]
[New Thread 0x7fffba7fc6c0 (LWP 9357)]
[New Thread 0x7fffb9ffb6c0 (LWP 9358)]
[New Thread 0x7fffb97fa6c0 (LWP 9359)]
[New Thread 0x7fffb8ff96c0 (LWP 9360)]
[New Thread 0x7fffa0a7c6c0 (LWP 9361)]
[New Thread 0x7fff9a17a6c0 (LWP 9362)]
script engine started.
[New Thread 0x7fff999796c0 (LWP 9363)]
[Thread 0x7fff999796c0 (LWP 9363) exited]
[Thread 0x7fffe940e6c0 (LWP 9343) exited]
[Thread 0x7fffe9cde6c0 (LWP 9342) exited]
[Thread 0x7fffea4df6c0 (LWP 9341) exited]
[New Thread 0x7fffea4df6c0 (LWP 9364)]
[New Thread 0x7fffe9cde6c0 (LWP 9365)]
[New Thread 0x7fffe940e6c0 (LWP 9366)]
[New Thread 0x7fff999796c0 (LWP 9367)]
[New Thread 0x7fff991786c0 (LWP 9369)]
script engine started.
[Thread 0x7fff991786c0 (LWP 9369) exited]
[New Thread 0x7fff991786c0 (LWP 9370)]
[Thread 0x7fff991786c0 (LWP 9370) exited]
[New Thread 0x7fff991786c0 (LWP 9373)]
[Thread 0x7fff991786c0 (LWP 9373) exited]
script engine started.
[New Thread 0x7fff991786c0 (LWP 9378)]
[Thread 0x7fff991786c0 (LWP 9378) exited]
[New Thread 0x7fff991786c0 (LWP 9530)]
script engine started.
[Thread 0x7fff991786c0 (LWP 9530) exited]
[New Thread 0x7fff991786c0 (LWP 9531)]
[Thread 0x7fff991786c0 (LWP 9531) exited]
[New Thread 0x7fff991786c0 (LWP 9545)]
script engine started.
[Thread 0x7fff991786c0 (LWP 9545) exited]
[New Thread 0x7fff991786c0 (LWP 9546)]
[Thread 0x7fff991786c0 (LWP 9546) exited]
[New Thread 0x7fff991786c0 (LWP 9549)]
script engine started.
[Thread 0x7fff991786c0 (LWP 9549) exited]
[New Thread 0x7fff991786c0 (LWP 9550)]
[Thread 0x7fff991786c0 (LWP 9550) exited]
[New Thread 0x7fff991786c0 (LWP 9561)]
[Thread 0x7fff991786c0 (LWP 9561) exited]
[New Thread 0x7fff991786c0 (LWP 9562)]
[Thread 0x7fff991786c0 (LWP 9562) exited]
[New Thread 0x7fff991786c0 (LWP 9563)]
script engine started.
[Thread 0x7fff991786c0 (LWP 9563) exited]
[New Thread 0x7fff991786c0 (LWP 9564)]
[Thread 0x7fff991786c0 (LWP 9564) exited]

Thread 21 "SDLAudioP3" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffd4a016c0 (LWP 9353)]
0x00007ffff7ab5787 in fluid_player_callback ()
  from /home/yona/Games/simutrans-nigth/lib/libfluidsynth.so.3
(gdb) where
#0  0x00007ffff7ab5787 in fluid_player_callback ()
  from /home/yona/Games/simutrans-nigth/lib/libfluidsynth.so.3
#1  0x00007ffff7aa10ca in fluid_synth_render_blocks ()
  from /home/yona/Games/simutrans-nigth/lib/libfluidsynth.so.3
#2  0x00007ffff7aa7702 in fluid_synth_write_s16_channels ()
  from /home/yona/Games/simutrans-nigth/lib/libfluidsynth.so.3
#3  0x00007ffff7aa77c1 in fluid_synth_write_s16 ()
  from /home/yona/Games/simutrans-nigth/lib/libfluidsynth.so.3
#4  0x00007ffff7a88b6d in SDLAudioCallback ()
  from /home/yona/Games/simutrans-nigth/lib/libfluidsynth.so.3
#5  0x00007ffff7cff35a in ?? () from /usr/lib64/libSDL2-2.0.so.0
#6  0x00007ffff7d73245 in ?? () from /usr/lib64/libSDL2-2.0.so.0
#7  0x00007ffff7e28189 in ?? () from /usr/lib64/libSDL2-2.0.so.0
#8  0x00007ffff729b935 in start_thread () from /lib64/libc.so.6
#9  0x00007ffff7325d68 in __clone3 () from /lib64/libc.so.6
(gdb)
#30
Scripting Scenarios and AI / Re: Tutorial - code review
Last post by Yona-TYT - Yesterday at 12:39:32 AM
Quote from: Andarix on January 12, 2026, 04:06:29 PMThe idea is correct, but the value is wrong.

The `tool_id` is correct. Only the object name is passed differently.

The name is passed via the button.
The value 1 is passed via the key "s".

There is certainly a strange discrepancy here with the id_name, even though the road is exactly the same.


This bug on the bridge leaves the tutorial stuck.
simscr00.png