News:

Use the "Forum Search"
It may help you to find anything in the forum ;).

Im fixed some minors bugs

Started by Yona-TYT, Today at 02:18:14 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yona-TYT

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()+")."
          }
        }