Hi,
I wonder if someone could help me to fix a bug in the front shield script (in the Rollband script to be exact) of the MB O305.
I noticed that when an AI bus uses a front shield, the shield becomes visible, but the destination of the bus is empty. That causes the AI bus not to take passengers.
Here the rollband or front shield (Steckschild) is determined for AI:
{trigger:ai_scheduled_settarget}
'Hier wird das automatische Rollband eingestellt:
(L.L.AI_target_index) s0 (M.V.GetTerminusCode) s1
'Wenn der Terminus-Code größer als 1000 ist, dann bitte Steckschild verwenden:
1000 >
{if}
l1 1000 - (S.L.rlbnd_steckschild_index)
l0 (S.L.rlbnd_steckschild_Termindex)
'Rollband auf 0:
0 (S.L.rlbnd_ziel)
{else}
l0 (S.L.rlbnd_ziel)
-1 (S.L.rlbnd_steckschild_Termindex)
'Wenn der Bitmap-String in Verwendung ist, dann den als Integer interpretieren und Steckschild zusätzlich setzen:
l0 6 (M.V.GetTerminusString) $StrToFloat s1
l1 1000 >
{if}
l1 1000 - (S.L.rlbnd_steckschild_index)
l0 (S.L.rlbnd_steckschild_Termindex)
{endif}
{endif}
(M.L.rollband_setsteckschild)
I am not good enough to change the script. Obviously some settings should be made in the first "if" section to really set the destination if the front shield is used (terminus code > 1000).
But how is that done? Does the rlbnd_ziel set the destination in the rollband only (i mean visble destination only) or also the real destination of the bus?
Sorry, if this has been solved two years ago, but i just don't know what to search for.
-Welbus
Edit1:
It seems that the change in the last line fixed the issue (instead of setting rlbnd_ziel as 0, i set it as l0):
'****************************************************************
'** MCQ 24.5.2009 - Trigger für AI-Scheduled-Initialisierung: **
'****************************************************************
{trigger:ai_scheduled_settarget}
'Hier wird das automatische Rollband eingestellt:
(L.L.AI_target_index) s0 (M.V.GetTerminusCode) s1
'Wenn der Terminus-Code größer als 1000 ist, dann bitte Steckschild verwenden:
1000 >
{if}
l1 1000 - (S.L.rlbnd_steckschild_index)
l0 (S.L.rlbnd_steckschild_Termindex)
'Rollband auf 0:
' 0 (S.L.rlbnd_ziel)
l0 (S.L.rlbnd_ziel)