Dear visitor, welcome to Offizielles OMSI-Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
{macro:IBIS_PlayAnnouncement}
(L.L.IBIS_busstop) 0 >
{if}
"Ansagen\" (L.$.act_busstop) $+
(L.L.IBIS_RouteIndex) (M.V.GetBusstopCount) 1 - (L.L.IBIS_busstop) <=
{if}
"_#terminus" $+
{endif}
".wav" $+
$msg
(T.F.ev_IBIS_Ansagen)
{endif}
{end}
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
{macro:IBIS_PlayAnnouncement}
(L.L.IBIS_busstop) 0 >
{if}
(L.L.IBIS_RouteIndex) (M.V.GetBusstopCount) 1 - (L.L.IBIS_busstop) <=
{if}
021 (S.L.IBIS_TerminusCode)
(M.V.GetTerminusIndex) s0
l0 (S.L.IBIS_TerminusIndex)
(M.L.IBIS_RefreshTerminusText)
{endif}
"Ansagen\" (L.$.act_busstop) $+
(L.L.IBIS_RouteIndex) (M.V.GetBusstopCount) 1 - (L.L.IBIS_busstop) <=
{if}
"_#terminus" $+
{endif}
".wav" $+
$msg
(T.F.ev_IBIS_Ansagen)
{endif}
{end}
|
This post has been edited 1 times, last edit by "Manu" (May 7th 2013, 4:14pm)
I get this message:
TFev_IBIS_Ansagen ist kein gultiger gleitkommawert
Danke! 
Funktioniert das auch beim KI ?
Könnte man das auch im IBIS-1 verbauen. Ich wüsste nur nicht wo.
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
'Setzen der String-Variable "act_busstop" für die OMSI-interne Berechnung und daraus Ableitung des "globalen" Haltestellenindexes:
(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) (M.V.GetRouteBusstopIdent) (S.$.act_busstop)
(M.V.GetBusstopIndex) (S.L.IBIS_busstop_index)
'Sonst zeige die Bushaltestelle
(S.L.IBIS_busstop_index) 0 (M.V.GetBusstopString)
(S.$.IBIS_busstop_name)
'Ausrechnen der neuen Entwerterposition:
(L.L.IBIS_busstop_offset) (L.L.IBIS_busstop) + (S.L.IBIS_busstop_entwerter_soll)
{end}
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
'Setzen der String-Variable "act_busstop" für die OMSI-interne Berechnung und daraus Ableitung des "globalen" Haltestellenindexes:
(L.L.IBIS_RouteIndex) (L.L.IBIS_busstop) (M.V.GetRouteBusstopIdent) (S.$.act_busstop)
(M.V.GetBusstopIndex) (S.L.IBIS_busstop_index)
'Sonst zeige die Bushaltestelle
(S.L.IBIS_busstop_index) 0 (M.V.GetBusstopString)
(S.$.IBIS_busstop_name)
'Ausrechnen der neuen Entwerterposition:
(L.L.IBIS_busstop_offset) (L.L.IBIS_busstop) + (S.L.IBIS_busstop_entwerter_soll)
(L.L.IBIS_busstop) 0 >
(L.L.IBIS_RouteIndex) (M.V.GetBusstopCount) 1 - (L.L.IBIS_busstop) <= &&
{if}
021 (S.L.IBIS_TerminusCode)
(M.V.GetTerminusIndex) s0
l0 (S.L.IBIS_TerminusIndex)
(M.L.IBIS_RefreshTerminusText)
{endif}
{end}
|
Danke! 
Wenn die Zielanzeige z.B. "76 Grundorf" anzeigt und dann in z.B. " Dienstfahrt" oder "BVG Betriebsfahrt" wechselt
|
|
Source code |
1 2 3 4 5 6 7 |
(L.L.IBIS_RouteIndex) (M.V.GetBusstopCount) 1 - (L.L.IBIS_busstop) <=
{if}
021 (S.L.IBIS_TerminusCode)
(M.V.GetTerminusIndex) s0
l0 (S.L.IBIS_TerminusIndex)
(M.L.IBIS_RefreshTerminusText)
{endif}
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
(L.L.IBIS_RouteIndex) (M.V.GetBusstopCount) 1 - (L.L.IBIS_busstop) <=
{if}
021 (S.L.IBIS_TerminusCode)
(M.V.GetTerminusIndex) s0
l0 (S.L.IBIS_TerminusIndex)
(M.L.IBIS_RefreshTerminusText)
XXXXX s0 (S.L.IBIS_Linie_Complex)
100 / trunc
(S.L.IBIS_LinieKurs)
l0 100 %
(S.L.IBIS_Linie_Suffix)
(T.L.ev_IBIS_entwerter)
(M.L.IBIS_SetComplexLineString)
{endif}
|
Also bei mir gibts diese Zeile gar nicht, die man verändern soll...
Zitat von »Vkp961«
Wenn die Zielanzeige z.B. "76 Grundorf" anzeigt und dann in z.B. " Dienstfahrt" oder "BVG Betriebsfahrt" wechselt
Ändere mal
Quellcode
1
2
3
4
5
6
7
(L.L.IBIS_RouteIndex) (M.V.GetBusstopCount) 1 - (L.L.IBIS_busstop) <=
{if}
021 (S.L.IBIS_TerminusCode)
(M.V.GetTerminusIndex) s0
l0 (S.L.IBIS_TerminusIndex)
(M.L.IBIS_RefreshTerminusText)
{endif}
zu
Quellcode
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(L.L.IBIS_RouteIndex) (M.V.GetBusstopCount) 1 - (L.L.IBIS_busstop) <=
{if}
021 (S.L.IBIS_TerminusCode)
(M.V.GetTerminusIndex) s0
l0 (S.L.IBIS_TerminusIndex)
(M.L.IBIS_RefreshTerminusText)
XXXXX s0 (S.L.IBIS_Linie_Complex)
100 / trunc
(S.L.IBIS_LinieKurs)
l0 100 %
(S.L.IBIS_Linie_Suffix)
(T.L.ev_IBIS_entwerter)
(M.L.IBIS_SetComplexLineString)
{endif}
..., wobei XXXXX das darstellt, was du bei Linie/Kurs eingeben würdest.
Zitat von »Foob«
Also bei mir gibts diese Zeile gar nicht, die man verändern soll...
Müsste aber Zeile 621 bis 637 in IBIS-2.osc sein.
Wenn die Zielanzeige z.B. "76 Grundorf" anzeigt und dann in z.B. " Dienstfahrt" oder "BVG Betriebsfahrt" wechselt
Ändere mal
![]()
Source code
1 2 3 4 5 6 7(L.L.IBIS_RouteIndex) (M.V.GetBusstopCount) 1 - (L.L.IBIS_busstop) <= {if} 021 (S.L.IBIS_TerminusCode) (M.V.GetTerminusIndex) s0 l0 (S.L.IBIS_TerminusIndex) (M.L.IBIS_RefreshTerminusText) {endif}
zu
![]()
Source code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15(L.L.IBIS_RouteIndex) (M.V.GetBusstopCount) 1 - (L.L.IBIS_busstop) <= {if} 021 (S.L.IBIS_TerminusCode) (M.V.GetTerminusIndex) s0 l0 (S.L.IBIS_TerminusIndex) (M.L.IBIS_RefreshTerminusText) XXXXX s0 (S.L.IBIS_Linie_Complex) 100 / trunc (S.L.IBIS_LinieKurs) l0 100 % (S.L.IBIS_Linie_Suffix) (T.L.ev_IBIS_entwerter) (M.L.IBIS_SetComplexLineString) {endif}
..., wobei XXXXX das darstellt, was du bei Linie/Kurs eingeben würdest.
Also bei mir gibts diese Zeile gar nicht, die man verändern soll...
Müsste aber Zeile 621 bis 637 in IBIS-2.osc sein.
Wenn die Zielanzeige z.B. "76 Grundorf" anzeigt und dann in z.B. " Dienstfahrt" oder "BVG Betriebsfahrt" wechselt
Ändere mal
![]()
Source code
1 2 3 4 5 6 7(L.L.IBIS_RouteIndex) (M.V.GetBusstopCount) 1 - (L.L.IBIS_busstop) <= {if} 021 (S.L.IBIS_TerminusCode) (M.V.GetTerminusIndex) s0 l0 (S.L.IBIS_TerminusIndex) (M.L.IBIS_RefreshTerminusText) {endif}
zu
![]()
Source code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15(L.L.IBIS_RouteIndex) (M.V.GetBusstopCount) 1 - (L.L.IBIS_busstop) <= {if} 021 (S.L.IBIS_TerminusCode) (M.V.GetTerminusIndex) s0 l0 (S.L.IBIS_TerminusIndex) (M.L.IBIS_RefreshTerminusText) XXXXX s0 (S.L.IBIS_Linie_Complex) 100 / trunc (S.L.IBIS_LinieKurs) l0 100 % (S.L.IBIS_Linie_Suffix) (T.L.ev_IBIS_entwerter) (M.L.IBIS_SetComplexLineString) {endif}
..., wobei XXXXX das darstellt, was du bei Linie/Kurs eingeben würdest.
Also bei mir gibts diese Zeile gar nicht, die man verändern soll...
Müsste aber Zeile 621 bis 637 in IBIS-2.osc sein.
Geht leider nicht, egal was ich statt der xxxxx eingebe, es kommt bei der Linie immer ein U in der Mitte.Wenn die Zielanzeige z.B. "76 Grundorf" anzeigt und dann in z.B. " Dienstfahrt" oder "BVG Betriebsfahrt" wechselt
Ändere mal
![]()
Source code
1 2 3 4 5 6 7(L.L.IBIS_RouteIndex) (M.V.GetBusstopCount) 1 - (L.L.IBIS_busstop) <= {if} 021 (S.L.IBIS_TerminusCode) (M.V.GetTerminusIndex) s0 l0 (S.L.IBIS_TerminusIndex) (M.L.IBIS_RefreshTerminusText) {endif}
zu
![]()
Source code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15(L.L.IBIS_RouteIndex) (M.V.GetBusstopCount) 1 - (L.L.IBIS_busstop) <= {if} 021 (S.L.IBIS_TerminusCode) (M.V.GetTerminusIndex) s0 l0 (S.L.IBIS_TerminusIndex) (M.L.IBIS_RefreshTerminusText) XXXXX s0 (S.L.IBIS_Linie_Complex) 100 / trunc (S.L.IBIS_LinieKurs) l0 100 % (S.L.IBIS_Linie_Suffix) (T.L.ev_IBIS_entwerter) (M.L.IBIS_SetComplexLineString) {endif}
..., wobei XXXXX das darstellt, was du bei Linie/Kurs eingeben würdest.
Also bei mir gibts diese Zeile gar nicht, die man verändern soll...
Müsste aber Zeile 621 bis 637 in IBIS-2.osc sein.