News:

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

Recent posts

#1
Simutrans Tutorial / Re: Tutorial - code review
Last post by Yona-TYT - Yesterday at 11:28:33 PM
This bug only occurs when you automatically advance to Step I of Chapter 3 and then manually complete Step I.Screenshot_2026-02-18_19-20-53.png
#2
Simutrans Tutorial / Re: Im fixed some minors bugs
Last post by Yona-TYT - Yesterday at 11:07:07 PM
Line 1909 in class_basic_chatpter.nut is commented " //local desc = way_desc_x.get_available_ways(wt, st)"

Screenshot_2026-02-18_19-02-38.png
#3
Bug Reports / Re: Scenario imagens in info w...
Last post by Yona-TYT - Yesterday at 09:35:50 PM
Quote from: Andarix on February 16, 2026, 10:40:54 AMScaling is activated when the images are loaded.
The images within the text are the loaded images.
Either the scaling in the text display must be reduced, or the images must be embedded in a way that allows for flowing text.
The former should be easier to implement.
But this is a bug, the large scale is only affecting a specific zoom level of the game's overall map, so it shouldn't be difficult to fix.
#4
Extension Requests / Re: pipette tool update reques...
Last post by Yona-TYT - Yesterday at 09:13:48 PM
It's strange that @prissi didn't reply to this post, perhaps she didn't see it. I hope this message serves as a reminder.  ;)
#5
Bug Reports / Re: Scenario imagens in info w...
Last post by Andarix - February 16, 2026, 10:40:54 AM
Scaling is activated when the images are loaded.

The images within the text are the loaded images.

Either the scaling in the text display must be reduced, or the images must be embedded in a way that allows for flowing text.

The former should be easier to implement.
#6
Simutrans Tutorial / Re: Im fixed some minors bugs
Last post by Andarix - February 16, 2026, 06:15:42 AM
The check for road, rail and air is located in the function check_select_way().

For the power line (l) and canal in the Chapter file.

To my knowledge, runway and taxiway for aircraft don't have keyboard shortcuts. I have no idea if this can be set via the Menuconf.tab file.
#7
Simutrans Tutorial / Im fixed some minors bugs
Last post by Yona-TYT - February 15, 2026, 02:18:14 AM
Quote from: Andarix on February 06, 2026, 03:14:05 PM
  • When Chapter 5 Step D is loaded from save, the fields for building Post (halt, extension) are not highlighted in red.
  • If you perform Chapter 3 Step D using the automatic step, the track marker will remain. Fix!
  • Way tool select on key not work. Fix!
  • [pak64.german] Chapter 3 step D and E - autostep build wrong stations lenght


Red mark in CH3 ST D fix here:
https://github.com/simutrans/tutorial_multipak/commit/0c7f5b16f00951a7797e57d32ba262db707b26e3
Update, fix red mark in CH3 ST G too 

Key for build roads if fix, topic: "https://forum.simutrans.com/index.php?msg=212102"
Code:
        if (tool_id==tool_build_way){
          local way_desc =  way_desc_x.get_available_ways(gl_wt, gl_st)
          local is_execute = false
          local str_c = tool.start_pos
          local str_way = world.is_coord_valid(str_c)? tile_x(str_c.x, str_c.y, str_c.z).find_object(mo_way) : null
          foreach(desc in way_desc){
            if(desc.get_name() == name){
              is_execute = true
            }
          }
          local last_tool = way_desc_x.get_default_way_desc(wt_road)
          if( is_execute || ( name == wt_road.tostring() && last_tool.get_system_type() == gl_st ) ){
            for ( local i = 0; i < build_list.len()-1; i++ ) {
              if ( ((pos.x==build_list[i].x)&&(pos.y==build_list[i].y)) || ((pos.x==city1_road_depot.x)&&(pos.y==city1_road_depot.y)) ) {
                if(cursor_control(build_list[i])){
                  return null
                }
                if(!str_way){
                  return null
                }
              }
            }
            return get_tile_message(2, city1_road_depot.x, city1_road_depot.y)//translate("Connect the road here")+" ("+city1_road_depot.tostring()+")."
          }
        }

#8
Bug Reports / Re: Scenario imagens in info w...
Last post by Yona-TYT - February 14, 2026, 11:51:44 PM
I've found a clue!

When the GUI theme uses the parameter "icon_scaling = 150", the large icon scale is also being transferred to the scenario window icons. The strange thing is that this only happens with certain zoom levels.

This explains why @Andarix couldn't replicate this, since he was using a theme with normal-sized icons.
#9
Quote from: prissi on February 14, 2026, 12:46:27 PMHow did you end up seeing this? It should be impossible to build ways not defined in the pak since the init function of the waybuilder fails.
It was my mistake in the patch; I was sending a NULL descriptor when the package didn't contain the object.

I've tested your new implementation, and this error is now resolved here: https://github.com/simutrans/simutrans/commit/8b1f98d8dfa171825d10af8cd110e4020b0a5095

#10
There is one small detail: when the tool is called from the keyboard shortcut, it is not marked as selected in the menu icons.

Edit.
It happens the first time, when a road has not yet been built; it seems that in cases where the road is determined with timeline, the menu is not being instructed to select the tool icon.

Screenshot_2026-02-14_13-08-06.png