News:

The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

[r11590] parameter "rotation" of command.build_station is wrong

Started by koa_jp, January 23, 2025, 03:25:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

koa_jp

When I use command.build_station in ver123.0.1(r10421), 4th parameter "rotation" was output correctly.
But in r11590, rotation=1 is station office dir=dir.east, rotation=2 is station office dir=dir.south,
rotation=4 is station office dir=dir.north(It's right), rotation=8 is station office dir=dir.north.
OK_sta_office.png
wrong_sta_office1.png
wrong_sta_office2.png
wrong_sta_office3.png

Has the behavior of build_station changed recently?

prissi

There was an error in the old code. Station buildings can have up to 16 rotations (layouts) but there are only four dirs. Thus the correct behaviour is to submit the layout, not a dir or a ribi.

I am not sure what your code outputs. I would need to see the squirrel source.