The International Simutrans Forum

Development => Bug Reports => Topic started by: Andarix on January 16, 2026, 03:55:52 PM

Title: squirrel script - bug select tool by key function is_work_allowed_here()
Post by: Andarix on January 16, 2026, 03:55:52 PM
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".

Screenshot 2026-01-12 165907.png


Docu function
is_work_allowed_here() (https://doc.simutrans-germany.com/Simutrans-Squirrel-API/group__quick__return__func.html#ga4e79ca4788f47895ceedbd72d518bd0e)

The description doesn't seem to be entirely correct either. There, "name" is defined as "coord3d".

I think this is a simutrans bug, not a tutorial bug.