The International Simutrans Forum

Community => Scenarios and Challenges => Social & Contests => Simutrans Tutorial => Topic started by: Andarix on February 28, 2026, 04:26:26 PM

Title: new way check for build ways
Post by: Andarix on February 28, 2026, 04:26:26 PM
I am revising the exam for way build.

The previous functions ( get_fullway()/all_control() ) were too rigid regarding directions.

The new version checks more flexibly. However, the last field is not always selected. This occurs when the distance to the target field does not decrease.

Currently, road construction in Chapter 2 Step G and railway construction in Chapter 3 Step B have been changed.

code found here (https://github.com/simutrans/tutorial_multipak/tree/test_chg_railbuild)