News:

Want to praise Simutrans?
Your feedback is important for us ;D.

[command_x(tool_build_way) ]No longer builds river crossings

Started by Yona-TYT, January 31, 2021, 12:45:15 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yona-TYT



This is a recent problem, when building a track over a river it should automatically place a crossing (at least in pak128 it is like that), but something broke and is no longer working.
    local t = command_x(tool_build_way)     
    local c_start1 = coord3d(18,34,2)
    local c_end1 = coord3d(18,28,2)
    local err = t.work(player_x(1), c_start1, c_end1, "Road_070")

I attach a test script with a savegame.

Andarix

This is due to the crossing batch, which requires an adjustment of the crossings in the sets.

r9410 + r9431

Yona-TYT

Quote from: Andarix on January 31, 2021, 12:55:43 AM
This is due to the crossing batch, which requires an adjustment of the crossings in the sets.

r9410 + r9431

Maybe, but in that case the same should happen when using the way tool, but here it works without problem.

Dwachs

This is an effect of the change to crossing selection: the speed limit of the crossing is to low to support a crossing by the high-speed road. This affects human players as well, and is not a bug in the scripting system.
Parsley, sage, rosemary, and maggikraut.

Yona-TYT

Quote from: Dwachs on January 31, 2021, 10:15:20 AMThis is an effect of the change to crossing selection: the speed limit of the crossing is to low to support a crossing by the high-speed road. This affects human players as well, and is not a bug in the scripting system.
Thank you! I just have to change the name of the road.
It is good to know that it is not an error in the script or in the code. 8)