turns out there is a bug in the signalscriptparser which the Monogame versions are using, I'll provide a fix which Carlo needs to include in his next version.
However there is some other issue in the script which is debatable how to adress:
This script nests functional calls as parameters
debug_out (block_state());
which is not supported and the new scriptparser will purposefully raise an exception.
debug_out() and debug_header() are not implemented in OR yet not causing any harm if found in the scripts normally. But in combination with the nested calls this will not work and I think there is no intend to fix/change this.
So if you want to get your script running in the meanwhile, I'd suggest you to change the script
- remove all comment lines which are using /* and */ as delimiter, or put another / in front of each line so it starts as //*. As said, this will be fixed but youæll have to wait until a new release get published
AND
- change the nested function calls
debug_out (block_state());
into something like
float blockstate:
blockstate = block_state();
debug_out(blockstate);
This would allow to still have debug output in other trainsims, but put OR in a valid state.
- or simply remove or comment out ( // in the start of the line ) the debug_out statements, at least the ones with nested calls, since they will be of no use in OR anyway.