Hello
I have a layout that uses portals to spawn and consume trains. The ones that produce trains just do that, and the ones that consume do not produce. This is TS10.
This normally works fine, but occasionally I get a script error, and one of the consuming portals stops working. The red button appears at bottom right, and when I click it I get the following information:
PortalTunnel: ThreadException: ER_NullReference, line 405, file portaltunnel.gs (1)
If I press the "More" button:
ThreadException: ER_NullReference, line 405, file portaltunnel.gs
Stack Dump:
<kuid:-3:10192> "Portal"
function$void@ProtalTunnel::ConsumeTrain(Train,Vehicle), line -1
If I look at the portal - I have to search to find which one has broken - there is a train derailed in the portal, and the driver is still on the list with an exclamation point on his/her face. The signals before the portal remain red, so no further trains will go that way.
This happens randomly in a session, sometimes not at all, otherwise at some point in the session one portal crashes in this way, it can be any one of the portals.
I just wondered if anyone else has seen this type of script error and if there is a work round for it. It is annoying, because when it occurs, it invariably results in the session becoming unplayable.
Thanks in anticipation.
Chris
I have a layout that uses portals to spawn and consume trains. The ones that produce trains just do that, and the ones that consume do not produce. This is TS10.
This normally works fine, but occasionally I get a script error, and one of the consuming portals stops working. The red button appears at bottom right, and when I click it I get the following information:
PortalTunnel: ThreadException: ER_NullReference, line 405, file portaltunnel.gs (1)
If I press the "More" button:
ThreadException: ER_NullReference, line 405, file portaltunnel.gs
Stack Dump:
<kuid:-3:10192> "Portal"
function$void@ProtalTunnel::ConsumeTrain(Train,Vehicle), line -1
If I look at the portal - I have to search to find which one has broken - there is a train derailed in the portal, and the driver is still on the list with an exclamation point on his/her face. The signals before the portal remain red, so no further trains will go that way.
This happens randomly in a session, sometimes not at all, otherwise at some point in the session one portal crashes in this way, it can be any one of the portals.
I just wondered if anyone else has seen this type of script error and if there is a work round for it. It is annoying, because when it occurs, it invariably results in the session becoming unplayable.
Thanks in anticipation.
Chris