ehem. OMSI - Forum
Würden Sie gerne auf diese Nachricht reagieren? Erstellen Sie einen Account in wenigen Klicks oder loggen Sie sich ein, um fortzufahren.
ehem. OMSI - Forum

Dieses Forum wurde geschlossen. Das neue Forum befindet sich auf www.omnibussimulator.de/forum !
 
StartseiteStartseite  Neueste BilderNeueste Bilder  SuchenSuchen  AnmeldenAnmelden  LoginLogin  

 

 Changing Display's

Nach unten 
4 verfasser
AutorNachricht
timmie_1606




Anzahl der Beiträge : 23
Anmeldedatum : 28.08.11
Alter : 34
Ort : Amersfoort, Netherlands

Changing Display's Empty
BeitragThema: Changing Display's   Changing Display's Icon_minitimeMi 31 Aug - 15:10

hi,

can someone tell me if it's possible to create an changing display (ibis) for the front (and side) of the bus.
Now there's only a static 'U-Bahnhof Rathaus Spandau' (example) but i would like a display that can say 'U-Bahnhof Rathaus Spandau' and then 'Endhaltestelle Nicht Einsteigen' and the the first one (example)
I think it's possible 'cos when you do aan ibis like '99996' the alfabet scrolls by.
But how could i make this /create this (in hofmaker?) ?
Nach oben Nach unten
O405 N²

O405 N²


Anzahl der Beiträge : 54
Anmeldedatum : 12.07.11
Alter : 27
Ort : Schalksmühle, Deutschland

Changing Display's Empty
BeitragThema: Re: Changing Display's   Changing Display's Icon_minitimeMi 31 Aug - 16:12

1. You have to open the File "Matrix.osc" in Omsi/Vehicles/SD200/Script or for the SD202 the File "Matrix_D.osc" in Omsi/vehicles/SD202/Script
2. Search for "l1 94 = (L.L.Matrix_ChangeCounter) ! &&"
3.
Code:
l1 94 = (L.L.Matrix_ChangeCounter) ! &&
               {if}
                  "    First Row  @2nd Row        @ side Matrix  " (S.$.Matrix_NewTerminus)]
4. Now you can write between the " and the @ for the first row on the annax, between the @ and the secound one for the secound row and between the @ and the last " for the annax on the side(only for busses with one row side annax)
!!The distance between the " and the @ must always be 16 symbols!!
5. copy that in next line . there you can write that, what canges. you can do this i think up to 3 times
to use this you have to set the ibis on Line: XXX94 (you can set instead of the x any number exept 0)

Hope you undersand it
Nach oben Nach unten
ediblechickenwing




Anzahl der Beiträge : 317
Anmeldedatum : 16.04.10
Ort : South Wales, UK

Changing Display's Empty
BeitragThema: Re: Changing Display's   Changing Display's Icon_minitimeDo 1 Sep - 19:28

It's annoying, I wish it could be done in the depot file which would be a lot easier and then the AI would also show moving displays.
Nach oben Nach unten
timmie_1606




Anzahl der Beiträge : 23
Anmeldedatum : 28.08.11
Alter : 34
Ort : Amersfoort, Netherlands

Changing Display's Empty
BeitragThema: Re: Changing Display's   Changing Display's Icon_minitimeSo 4 Sep - 12:07

Thanks, but now i've got a problem.
Which i can not show because the forum says: Neue Mitglieder haben in den ersten 7 Tagen keine Befugnis, externe Links oder Mailadressen zu posten.

ps. thanls for the quick response by the way!
Nach oben Nach unten
timmie_1606




Anzahl der Beiträge : 23
Anmeldedatum : 28.08.11
Alter : 34
Ort : Amersfoort, Netherlands

Changing Display's Empty
BeitragThema: Re: Changing Display's   Changing Display's Icon_minitimeDi 6 Sep - 12:37

So, here's my problem
I have done this
Code:
                                                                                               
               l1 94 = (L.L.Matrix_ChangeCounter) ! &&
               {if}
                  "  STADTGRENZE  @    TERMINUS    @  STADTGRENZE  " (S.$.Matrix_NewTerminus)
               {else}
               l1 94 =
               {if}
                  " ENDHALTESTELLE @NICHT EINSTEIGEN@ ENDHALTESTELLE " (S.$.Matrix_NewTerminus)
wich is similair to this (under the 94)(i didn't change that one):
Code:

               l1 95 = (L.L.Matrix_ChangeCounter) ! &&
               {if}
                  " FRANZ JAGT IM  @ KOMPLETT VER-  @WAHRLOSTEN TAXI " (S.$.Matrix_NewTerminus)
               {else}
               l1 95 =
               {if}
                  "  QUER DURCH  @    BAYERN.    @1234567890,;(*')" (S.$.Matrix_NewTerminus)
(this)
Changing Display's Omsi_e12

but when i want to drive a bus, i get 2 errors:

Changing Display's Omsi_e10
Changing Display's Omsi_e11

but thats only when i click a 202, i didn't change the 200 jet.
Can you help me?
Nach oben Nach unten
O405 N²

O405 N²


Anzahl der Beiträge : 54
Anmeldedatum : 12.07.11
Alter : 27
Ort : Schalksmühle, Deutschland

Changing Display's Empty
BeitragThema: Re: Changing Display's   Changing Display's Icon_minitimeDi 6 Sep - 13:41

Oh ...
did you maby erased something else of the script?
her is the full, working script:
Code:

'##############
'Matrix Script
'##############

'Simulates 80s style Matrix Line and Terminus Display (Type Annax)

'(c) 13.04.2010 Marcel Kuhnt

'Script Version: 1.1
'Omsi release: 1.0

'Needs:
'- Cockpit (Batterietrennschalter)
'- IBIS


'Revision History:
'- Marcel Kuhnt      10.08.2009   Added Revision History
'- Marcel Kuhnt      13.04.2010   Added Line List Script
'- Marcel Kuhnt      23.04.2010   Line right formatted

'------------------------------------------------------------------------------------------


{macro:Matrix_init}
   0 (S.L.Matrix_TerminusIndex_Last)
   0 (S.L.Matrix_Nr_Last)
   "                @                @                " (S.$.Matrix_Terminus)
   "  " (S.$.Matrix_Nr)
{end}


{trigger:ai_scheduled_settarget}

'Stromversorgung herstellen:
   1 (S.L.elec_busbar_main_sw)   
   1.0 (S.L.elec_V_battery)

'Hier wird die Nummer eingestellt:
   (L.$.SetLineTo) 3 $SetLengthL (S.$.Matrix_Nr)

'Hier wird das Ziel eingestellt:
   1 (S.L.elec_busbar_main_sw)
   (L.L.AI_target_index) (S.L.IBIS_TerminusIndex) (M.V.GetTerminusCode) (S.L.Debug_2) (S.L.IBIS_TerminusCode)

{end}


{macro:Matrix_frame}

'******************************+
'    Terminus-Matrix
'******************************+

' Zeitdifferenz:
   (L.S.GetTime) (L.L.Matrix_TerminusActTimer) - s2

   l2 0 <
   {if}
      (L.S.GetTime) (S.L.Matrix_TerminusActTimer) 0 s2
      1 (S.L.Matrix_TerminusCreateString)
   {endif}


' Ob der Suffix >= 94 ist, speichere in s4:
   (L.L.IBIS_Linie_Suffix) 94 >= s4

'Changecounter zurücksetzen: (wenn kein Wechselziel angezeigt wird)
   (L.L.IBIS_Linie_Suffix) 97 <=
   (L.L.IBIS_Linie_Suffix) 96 = ! &&
   (L.L.IBIS_Linie_Suffix) 95 = ! &&
   {if}
      0 (S.L.Matrix_ChangeCounter)
   {endif}

' Wenn sich das neue Ziel vom alten unterscheidet, dann wechsele:

   l4 ! (L.L.IBIS_TerminusIndex) s0 (L.L.Matrix_TerminusIndex_Last) = !  &&

' ODER wenn die Nummer eine "zielbeeinflussende" ist und ungleich dem negativen Matrix_terminusIndex_Last:

   l4 (L.L.IBIS_Linie_Suffix) s1 /-/ (L.L.Matrix_TerminusIndex_Last) = ! && ||
   (L.L.elec_busbar_main) &&
   {if}
      l2 (C.L.Matrix_Waittime) (C.L.Matrix_Changetime_Terminus) 3.5 * + <
      {if}
         l2 (C.L.Matrix_Waittime) >
         {if}
' Nur beim ersten Mal:
            (L.L.Matrix_TerminusCreateString)
            {if}
               l1 94 = (L.L.Matrix_ChangeCounter) ! &&
               {if}
                  "St. Montin@via Bad Kinzau@" (S.$.Matrix_NewTerminus)
               {else}
               l1 95 = (L.L.Matrix_ChangeCounter) ! &&
               {if}
                  "  Saasdorf    @ via Bad Kinzau @Saasdorf        " (S.$.Matrix_NewTerminus)
               {else}
               l1 95 =
               {if}
                  "  Bad Kinzau  @  via Wannstedt @Bad Kinzau      " (S.$.Matrix_NewTerminus)
               {else}
               l1 96 = (L.L.Matrix_ChangeCounter) ! &&
               {if}
                  "  St. Montin  @ via Bad Kinzau @St. Montin      " (S.$.Matrix_NewTerminus)
               {else}
               l1 96 =
               {if}
                  "  Bad Kinzau  @  via Wannstedt @Bad Kinzau      " (S.$.Matrix_NewTerminus)
               {else}
               l1 97 =
               {if}
                  "SOFTWAREVERSION @  JULI  2009  @VERS. JULI  2009" (S.$.Matrix_NewTerminus)
               {else}
               l1 98 = (L.L.Matrix_ChangeCounter) &&
               {if}
                  "                @                @                " (S.$.Matrix_NewTerminus)
               {else}
               l1 98 =
               {if}
                  "                @                @                " (S.$.Matrix_NewTerminus)
               {else}
               l1 99 = (L.L.Matrix_ChangeCounter) &&
               {if}
                  "                @                @                " (S.$.Matrix_NewTerminus)
               {else}
               l1 99 =
               {if}
                  "                @                @                " (S.$.Matrix_NewTerminus)
               {else}
                  l0 1 (M.V.GetTerminusString) 16 $SetLengthL "@" $+
                  l0 2 (M.V.GetTerminusString) 16 $SetLengthL "@" $+ $+
                  l0 3 (M.V.GetTerminusString) 16 $SetLengthL $+ (S.$.Matrix_NewTerminus)
               {endif}
               {endif}
               {endif}
               {endif}
               {endif}
               {endif}
               {endif}
               {endif}
               {endif}
               {endif}
               0 (S.L.Matrix_TerminusCreateString)
               (T.L.ev_Matrix_Terminus_change)
'Das soeben in den temporären Speicher geschriebene Ziel:
               l4
               {if}
                  l1 /-/
               {else}
                  l0
               {endif}
               (S.L.Matrix_TerminusAct)
            {endif}

'Zahl von aktualisierten Zeichen:

            l2 (C.L.Matrix_Waittime) - 0 max 16 * (C.L.Matrix_Changetime_Terminus) / trunc 50 min s3

            l3 1 >=
            {if}
               (L.$.Matrix_NewTerminus) l3 $SetLengthL
               (L.$.Matrix_Terminus) 50 l3 - $SetLengthR $+
               (S.$.Matrix_Terminus)
            {endif}
         {endif}
      {else}
         l1 98 >=
         l1 96 = ||
         l1 95 = ||
         {if}
            (L.L.Matrix_ChangeCounter) ! (S.L.Matrix_ChangeCounter)
'Hierdurch wird der Wechsel der Nummern-Matrix initiiert:
            -1 (S.L.Matrix_Nr_Last)
         {else}
            (L.L.Matrix_TerminusAct) (S.L.Matrix_TerminusIndex_Last) (S.L.target_index_int)
         {endif}
         1 (S.L.Matrix_TerminusCreateString)
         (L.S.GetTime) (S.L.Matrix_TerminusActTimer)
         (L.$.Matrix_NewTerminus) (S.$.Matrix_Terminus)
      {endif}

'Omsi sagen, dass die Strings-Ausgaben aktualisiert werden sollen:
      1 (S.L.Refresh_Strings)
   
   {else}
      (L.S.GetTime) (S.L.Matrix_TerminusActTimer)
      1 (S.L.Matrix_TerminusCreateString)
   {endif}

'******************************+
'    Nr-Matrix
'******************************+

' Zeitdifferenz:
   (L.S.GetTime) (L.L.Matrix_NrActTimer) - s2

   l2 0 <
   {if}
      (L.S.GetTime) (S.L.Matrix_NrActTimer) 0 s2
      1 (S.L.Matrix_NrCreateString)
   {endif}

' Wenn sich die neue Linie von der alten unterscheidet, dann wechsele:
   (L.L.IBIS_Linie_Complex) s0 (L.L.Matrix_Nr_Last) = !
   (L.L.elec_busbar_main) &&
   {if}
      l2 (C.L.Matrix_Waittime) (C.L.Matrix_Changetime_Nr) 1.5 * + <
      {if}
         l2 (C.L.Matrix_Waittime) >
         {if}
' Nur beim ersten Mal:
            (L.L.Matrix_NrCreateString)
            {if}
               l0 100 / trunc s1
               (L.L.IBIS_Linie_Suffix) s4
' l0: Originalzahl; l1: erste drei Ziffern; l4: letzte zwei Ziffern

' Falls gleich 0, dann gar nix:
               l1 0 =
               {if}
                  ""
               {else}
' Sonst die normale Nummer:
                  l1 trunc $IntToStr
               {endif}

               (S.$.Matrix_NewNr)

' ===============================================================================
' Falls jetzt die hinteren beiden Ziffern (l2) etwas Interessantes enthalten:
' ===============================================================================

' Zunächst wird verlängert, wenn einstellig - und zwar je nach Anwendung links- oder rechtsbündig:

               (L.$.Matrix_NewNr) $length 1 <=
               {if}
                  l4 4 =
                  l4 10 = ||
                  l4 30 = ||
                  l4 31 = ||
                  l4 32 = ||
                  l4 35 = ||
                  l4 36 = ||
                  {if}
                     2 $SetLengthR
                  {else}
                     2 $SetLengthL
                  {endif}
               {endif}

               (S.$.Matrix_NewNr)

               l4 1 =
               {if}
                  "E" (L.$.Matrix_NewNr) 2 $SetLengthR $+
               {endif}
               l4 2 =
               {if}
                  "/^\"
               {endif}
               l4 3 =
               {if}
                  "gh "
               {endif}
               l4 4 =
               {if}
                  (L.$.Matrix_NewNr) 2 $SetLengthR "N" $+
               {endif}
               l4 5 = l4 24 = ||
               {if}
                  "S" (L.$.Matrix_NewNr) 2 $SetLengthR $+
               {endif}
               l4 6 =
               {if}
                  "A" (L.$.Matrix_NewNr) 2 $SetLengthR $+
               {endif}

               l4 9 =
               {if}
                  " E" (L.$.Matrix_NewNr) 1 $SetLengthR $+
               {endif}
               l4 10 =
               {if}
                  (L.$.Matrix_NewNr) 2 $SetLengthR "E" $+
               {endif}
               l4 11 =
               {if}
                  " D" (L.$.Matrix_NewNr) 1 $SetLengthR $+
               {endif}
               l4 12 =
               {if}
                  " C" (L.$.Matrix_NewNr) 1 $SetLengthR $+
               {endif}
               l4 13 =
               {if}
                  " B" (L.$.Matrix_NewNr) 1 $SetLengthR $+
               {endif}
               l4 14 =
               {if}
                  " A" (L.$.Matrix_NewNr) 1 $SetLengthR $+
               {endif}
               l4 15 =
               {if}
                  " N" (L.$.Matrix_NewNr) 1 $SetLengthR $+
               {endif}

               l4 23 =
               {if}
                  " S" (L.$.Matrix_NewNr) 1 $SetLengthR $+
               {endif}
' 24 s.o. bei 5!
               l4 25 =
               {if}
                  " U" (L.$.Matrix_NewNr) 1 $SetLengthR $+
               {endif}
               l4 26 =
               {if}
                  "U" (L.$.Matrix_NewNr) 2 $SetLengthR $+
               {endif}
               l4 27 =
               {if}
                  " M" (L.$.Matrix_NewNr) 1 $SetLengthR $+
               {endif}
               l4 28 =
               {if}
                  "M" (L.$.Matrix_NewNr) 2 $SetLengthR $+
               {endif}
               l4 29 =
               {if}
                  "STC"
               {endif}
               l4 30 =
               {if}
                  (L.$.Matrix_NewNr) 2 $SetLengthR "S" $+
               {endif}
               l4 31 =
               {if}
                  (L.$.Matrix_NewNr) 2 $SetLengthR "U" $+
               {endif}
               l4 32 =
               {if}
                  (L.$.Matrix_NewNr) 2 $SetLengthR "M" $+
               {endif}
               l4 35 =
               {if}
                  "N" (L.$.Matrix_NewNr) 2 $SetLengthR $+
               {endif}
               l4 36 =
               {if}
                  "X" (L.$.Matrix_NewNr) 2 $SetLengthR $+
               {endif}
               l4 98 = (L.L.Matrix_ChangeCounter) &&
               {if}
                  "ayB"
               {else}
               l4 98 =
               {if}
                  "ayB"
               {endif}
               {endif}
               l4 99 = (L.L.Matrix_ChangeCounter) &&
               {if}
                  "ARV"
               {else}
               l4 99 =
               {if}
                  "MVG"
               {endif}
               {endif}

'D oder SD? Das ist hier die Frage...:
               3 $SetLengthR

               (S.$.Matrix_NewNr)

               0 (S.L.Matrix_NrCreateString)
               (T.L.ev_Matrix_Line_change)
               l0 (S.L.Matrix_NrAct)
            {endif}

'Zahl von aktualisierten Zeichen:

            l2 (C.L.Matrix_Waittime) - 0 max 3 * (C.L.Matrix_Changetime_Nr) / trunc 3 min s3

            l3 1 >=
            {if}
               (L.$.Matrix_NewNr) l3 $SetLengthL
               (L.$.Matrix_Nr) 3 l3 - $SetLengthR $+
               (S.$.Matrix_Nr)
            {endif}
         {endif}
      {else}
         (L.L.Matrix_NrAct) (S.L.Matrix_Nr_Last)
         (L.$.Matrix_NewNr) (S.$.Matrix_Nr)
         1 (S.L.Matrix_NrCreateString)
         (L.S.GetTime) (S.L.Matrix_NrActTimer)
      {endif}      
'Omsi sagen, dass die Strings-Ausgaben aktualisiert werden sollen:
      1 (S.L.Refresh_Strings)
   {else}
      (L.S.GetTime) (S.L.Matrix_NrActTimer)
      1 (S.L.Matrix_NrCreateString)
   {endif}

'Aktualisierung der Code-Tafel:

   "Linienlisten\" (L.$.yard) "_ANX.jpg" $+ $+ (S.$.Matrix_Linelist)

{end}

Look at yours, it there is something not the same (exept for the canging display)
Nach oben Nach unten
timmie_1606




Anzahl der Beiträge : 23
Anmeldedatum : 28.08.11
Alter : 34
Ort : Amersfoort, Netherlands

Changing Display's Empty
BeitragThema: Re: Changing Display's   Changing Display's Icon_minitimeMi 7 Sep - 10:39

The problem was i forgot an {endif} at the end.
Now i've got the following problem, when i do like '99994' Only the first dest. comes, it doesn't scroll to the second one.
Code:
'##############
'Matrix Script
'##############

'Simulates 80s style Matrix Line and Terminus Display (Type Annax)

'(c) 13.04.2010 Marcel Kuhnt

'Script Version: 1.1
'Omsi release: 1.0

'Needs:
'- Cockpit (Batterietrennschalter)
'- IBIS


'Revision History:
'- Marcel Kuhnt      10.08.2009   Added Revision History
'- Marcel Kuhnt      13.04.2010   Added Line List Script
'- Marcel Kuhnt      23.04.2010   Line right formatted

'------------------------------------------------------------------------------------------


{macro:Matrix_init}
   0 (S.L.Matrix_TerminusIndex_Last)
   0 (S.L.Matrix_Nr_Last)
   "                @                @                " (S.$.Matrix_Terminus)
   "  " (S.$.Matrix_Nr)
{end}


{trigger:ai_scheduled_settarget}

'Stromversorgung herstellen:
   1 (S.L.elec_busbar_main_sw)   
   1.0 (S.L.elec_V_battery)

'Hier wird die Nummer eingestellt:
   (L.$.SetLineTo) 3 $SetLengthL (S.$.Matrix_Nr)

'Hier wird das Ziel eingestellt:
   1 (S.L.elec_busbar_main_sw)
   (L.L.AI_target_index) (S.L.IBIS_TerminusIndex) (M.V.GetTerminusCode) (S.L.Debug_2) (S.L.IBIS_TerminusCode)

{end}


{macro:Matrix_frame}

'******************************+
'    Terminus-Matrix
'******************************+

' Zeitdifferenz:
   (L.S.GetTime) (L.L.Matrix_TerminusActTimer) - s2

   l2 0 <
   {if}
      (L.S.GetTime) (S.L.Matrix_TerminusActTimer) 0 s2
      1 (S.L.Matrix_TerminusCreateString)
   {endif}


' Ob der Suffix >= 94 ist, speichere in s4:
   (L.L.IBIS_Linie_Suffix) 94 >= s4

'Changecounter zurücksetzen: (wenn kein Wechselziel angezeigt wird)
   (L.L.IBIS_Linie_Suffix) 97 <=
   (L.L.IBIS_Linie_Suffix) 96 = ! &&
   (L.L.IBIS_Linie_Suffix) 95 = ! &&
   {if}
      0 (S.L.Matrix_ChangeCounter)
   {endif}

' Wenn sich das neue Ziel vom alten unterscheidet, dann wechsele:

   l4 ! (L.L.IBIS_TerminusIndex) s0 (L.L.Matrix_TerminusIndex_Last) = !  &&

' ODER wenn die Nummer eine "zielbeeinflussende" ist und ungleich dem negativen Matrix_terminusIndex_Last:

   l4 (L.L.IBIS_Linie_Suffix) s1 /-/ (L.L.Matrix_TerminusIndex_Last) = ! && ||
   (L.L.elec_busbar_main) &&
   {if}
      l2 (C.L.Matrix_Waittime) (C.L.Matrix_Changetime_Terminus) 3.5 * + <
      {if}
         l2 (C.L.Matrix_Waittime) >
         {if}
' Nur beim ersten Mal:
            (L.L.Matrix_TerminusCreateString)
            {if}
               l1 94 = (L.L.Matrix_ChangeCounter) ! &&
               {if}
               "Centraal Station@                @Centraal Station" (S.$.Matrix_NewTerminus)
               {else}
               l1 94 =
               {if}
               "Eindhalte@Niet instappen@niet instappen" (S.$.Matrix_NewTerminus)
               {else}
               l1 95 = (L.L.Matrix_ChangeCounter) ! &&
               {if}
                  " FRANZ JAGT IM  @ KOMPLETT VER-  @WAHRLOSTEN TAXI " (S.$.Matrix_NewTerminus)
               {else}
               l1 95 =
               {if}
                  "  QUER DURCH  @    BAYERN.    @1234567890,;(*')" (S.$.Matrix_NewTerminus)
               {else}
               l1 96 = (L.L.Matrix_ChangeCounter) ! &&
               {if}
                  " 01234567890ABCD@EFGHIJKLMNOPQRST@UVWXYZÄÖÜ-.'+/xy" (S.$.Matrix_NewTerminus)
               {else}
               l1 96 =
               {if}
                  "()*;,%&zyx/+'.-A@ÖÜABCDEFGHIJKLMN@OPQRSTUVWXYZ0123" (S.$.Matrix_NewTerminus)
               {else}
               l1 97 =
               {if}
                  "SOFTWAREVERSION @  JULI  2009  @VERS. JULI  2009" (S.$.Matrix_NewTerminus)
               {else}
               l1 98 = (L.L.Matrix_ChangeCounter) &&
               {if}
                  "yxyxyxyxyxyxyxyx@xyxyxyxyxyxyxyxy@yxyxyxyxyxyxyxyx" (S.$.Matrix_NewTerminus)
               {else}
               l1 98 =
               {if}
                  "xyxyxyxyxyxyxyxy@yxyxyxyxyxyxyxyx@xyxyxyxyxyxyxyxy" (S.$.Matrix_NewTerminus)
               {else}
               l1 99 = (L.L.Matrix_ChangeCounter) &&
               {if}
                  "                @                @                " (S.$.Matrix_NewTerminus)
               {else}
               l1 99 =
               {if}
                  "zzzzzzzzzzzzzzzz@zzzzzzzzzzzzzzzz@zzzzzzzzzzzzzzzz" (S.$.Matrix_NewTerminus)
               {else}
                  l0 1 (M.V.GetTerminusString) 16 $SetLengthL "@" $+
                  l0 2 (M.V.GetTerminusString) 16 $SetLengthL "@" $+ $+
                  l0 3 (M.V.GetTerminusString) 16 $SetLengthL $+ (S.$.Matrix_NewTerminus)
               {endif}
               {endif}
               {endif}
               {endif}
               {endif}
               {endif}
               {endif}
               {endif}
               {endif}
               {endif}
               {endif}
               {endif}
               0 (S.L.Matrix_TerminusCreateString)
               (T.L.ev_Matrix_Terminus_change)
'Das soeben in den temporären Speicher geschriebene Ziel:
               l4
               {if}
                  l1 /-/
               {else}
                  l0
               {endif}
               (S.L.Matrix_TerminusAct)
            {endif}

'Zahl von aktualisierten Zeichen:

            l2 (C.L.Matrix_Waittime) - 0 max 16 * (C.L.Matrix_Changetime_Terminus) / trunc 50 min s3

            l3 1 >=
            {if}
               (L.$.Matrix_NewTerminus) l3 $SetLengthL
               (L.$.Matrix_Terminus) 50 l3 - $SetLengthR $+
               (S.$.Matrix_Terminus)
            {endif}
         {endif}
      {else}
         l1 98 >=
         l1 96 = ||
         l1 95 = ||
         {if}
            (L.L.Matrix_ChangeCounter) ! (S.L.Matrix_ChangeCounter)
'Hierdurch wird der Wechsel der Nummern-Matrix initiiert:
            -1 (S.L.Matrix_Nr_Last)
         {else}
            (L.L.Matrix_TerminusAct) (S.L.Matrix_TerminusIndex_Last) (S.L.target_index_int)
         {endif}
         1 (S.L.Matrix_TerminusCreateString)
         (L.S.GetTime) (S.L.Matrix_TerminusActTimer)
         (L.$.Matrix_NewTerminus) (S.$.Matrix_Terminus)
      {endif}

'Omsi sagen, dass die Strings-Ausgaben aktualisiert werden sollen:
      1 (S.L.Refresh_Strings)
   
   {else}
      (L.S.GetTime) (S.L.Matrix_TerminusActTimer)
      1 (S.L.Matrix_TerminusCreateString)
   {endif}

'******************************+
'    Nr-Matrix
'******************************+

' Zeitdifferenz:
   (L.S.GetTime) (L.L.Matrix_NrActTimer) - s2

   l2 0 <
   {if}
      (L.S.GetTime) (S.L.Matrix_NrActTimer) 0 s2
      1 (S.L.Matrix_NrCreateString)
   {endif}

' Wenn sich die neue Linie von der alten unterscheidet, dann wechsele:
   (L.L.IBIS_Linie_Complex) s0 (L.L.Matrix_Nr_Last) = !
   (L.L.elec_busbar_main) &&
   {if}
      l2 (C.L.Matrix_Waittime) (C.L.Matrix_Changetime_Nr) 1.5 * + <
      {if}
         l2 (C.L.Matrix_Waittime) >
         {if}
' Nur beim ersten Mal:
            (L.L.Matrix_NrCreateString)
            {if}
               l0 100 / trunc s1
               (L.L.IBIS_Linie_Suffix) s4
' l0: Originalzahl; l1: erste drei Ziffern; l4: letzte zwei Ziffern

' Falls gleich 0, dann gar nix:
               l1 0 =
               {if}
                  ""
               {else}
' Sonst die normale Nummer:
                  l1 trunc $IntToStr
               {endif}

               (S.$.Matrix_NewNr)

' ===============================================================================
' Falls jetzt die hinteren beiden Ziffern (l2) etwas Interessantes enthalten:
' ===============================================================================

' Zunächst wird verlängert, wenn einstellig - und zwar je nach Anwendung links- oder rechtsbündig:

               (L.$.Matrix_NewNr) $length 1 <=
               {if}
                  l4 4 =
                  l4 10 = ||
                  l4 30 = ||
                  l4 31 = ||
                  l4 32 = ||
                  l4 35 = ||
                  l4 36 = ||
                  {if}
                     2 $SetLengthR
                  {else}
                     2 $SetLengthL
                  {endif}
               {endif}

               (S.$.Matrix_NewNr)

               l4 1 =
               {if}
                  "E" (L.$.Matrix_NewNr) 2 $SetLengthR $+
               {endif}
               l4 2 =
               {if}
                  "/^\"
               {endif}
               l4 3 =
               {if}
                  "gh "
               {endif}
               l4 4 =
               {if}
                  (L.$.Matrix_NewNr) 2 $SetLengthR "N" $+
               {endif}
               l4 5 = l4 24 = ||
               {if}
                  "S" (L.$.Matrix_NewNr) 2 $SetLengthR $+
               {endif}
               l4 6 =
               {if}
                  "A" (L.$.Matrix_NewNr) 2 $SetLengthR $+
               {endif}

               l4 9 =
               {if}
                  " E" (L.$.Matrix_NewNr) 1 $SetLengthR $+
               {endif}
               l4 10 =
               {if}
                  (L.$.Matrix_NewNr) 2 $SetLengthR "E" $+
               {endif}
               l4 11 =
               {if}
                  " D" (L.$.Matrix_NewNr) 1 $SetLengthR $+
               {endif}
               l4 12 =
               {if}
                  " C" (L.$.Matrix_NewNr) 1 $SetLengthR $+
               {endif}
               l4 13 =
               {if}
                  " B" (L.$.Matrix_NewNr) 1 $SetLengthR $+
               {endif}
               l4 14 =
               {if}
                  " A" (L.$.Matrix_NewNr) 1 $SetLengthR $+
               {endif}
               l4 15 =
               {if}
                  " N" (L.$.Matrix_NewNr) 1 $SetLengthR $+
               {endif}

               l4 23 =
               {if}
                  " S" (L.$.Matrix_NewNr) 1 $SetLengthR $+
               {endif}
' 24 s.o. bei 5!
               l4 25 =
               {if}
                  " U" (L.$.Matrix_NewNr) 1 $SetLengthR $+
               {endif}
               l4 26 =
               {if}
                  "U" (L.$.Matrix_NewNr) 2 $SetLengthR $+
               {endif}
               l4 27 =
               {if}
                  " M" (L.$.Matrix_NewNr) 1 $SetLengthR $+
               {endif}
               l4 28 =
               {if}
                  "M" (L.$.Matrix_NewNr) 2 $SetLengthR $+
               {endif}
               l4 29 =
               {if}
                  "BVG"
               {endif}
               l4 30 =
               {if}
                  (L.$.Matrix_NewNr) 2 $SetLengthR "S" $+
               {endif}
               l4 31 =
               {if}
                  (L.$.Matrix_NewNr) 2 $SetLengthR "U" $+
               {endif}
               l4 32 =
               {if}
                  (L.$.Matrix_NewNr) 2 $SetLengthR "M" $+
               {endif}
               l4 35 =
               {if}
                  "N" (L.$.Matrix_NewNr) 2 $SetLengthR $+
               {endif}
               l4 36 =
               {if}
                  "X" (L.$.Matrix_NewNr) 2 $SetLengthR $+
               {endif}
               l4 98 = (L.L.Matrix_ChangeCounter) &&
               {if}
                  "yxy"
               {else}
               l4 98 =
               {if}
                  "xyx"
               {endif}
               {endif}
               l4 99 = (L.L.Matrix_ChangeCounter) &&
               {if}
                  "  "
               {else}
               l4 99 =
               {if}
                  "zzz"
               {endif}
               {endif}

'D oder SD? Das ist hier die Frage...:
               3 $SetLengthR

               (S.$.Matrix_NewNr)

               0 (S.L.Matrix_NrCreateString)
               (T.L.ev_Matrix_Line_change)
               l0 (S.L.Matrix_NrAct)
            {endif}

'Zahl von aktualisierten Zeichen:

            l2 (C.L.Matrix_Waittime) - 0 max 3 * (C.L.Matrix_Changetime_Nr) / trunc 3 min s3

            l3 1 >=
            {if}
               (L.$.Matrix_NewNr) l3 $SetLengthL
               (L.$.Matrix_Nr) 3 l3 - $SetLengthR $+
               (S.$.Matrix_Nr)
            {endif}
         {endif}
      {else}
         (L.L.Matrix_NrAct) (S.L.Matrix_Nr_Last)
         (L.$.Matrix_NewNr) (S.$.Matrix_Nr)
         1 (S.L.Matrix_NrCreateString)
         (L.S.GetTime) (S.L.Matrix_NrActTimer)
      {endif}      
'Omsi sagen, dass die Strings-Ausgaben aktualisiert werden sollen:
      1 (S.L.Refresh_Strings)
   {else}
      (L.S.GetTime) (S.L.Matrix_NrActTimer)
      1 (S.L.Matrix_NrCreateString)
   {endif}

'Aktualisierung der Code-Tafel:

   "Linienlisten\" (L.$.yard) "_ANX.jpg" $+ $+ (S.$.Matrix_Linelist)

{end}
this is what i have now, what's the problem?
Nach oben Nach unten
O405 N²

O405 N²


Anzahl der Beiträge : 54
Anmeldedatum : 12.07.11
Alter : 27
Ort : Schalksmühle, Deutschland

Changing Display's Empty
BeitragThema: Re: Changing Display's   Changing Display's Icon_minitimeMi 7 Sep - 14:45

After the secound "l1 94 =" {before "Eindhalte@Niet instappen@niet instappen" (S.$.Matrix_NewTerminus)"} is an " (L.L.Matrix_ChangeCounter) ! &&" missing. Add it, like after the first "l1 94 =" and id should work.
Nach oben Nach unten
timmie_1606




Anzahl der Beiträge : 23
Anmeldedatum : 28.08.11
Alter : 34
Ort : Amersfoort, Netherlands

Changing Display's Empty
BeitragThema: Re: Changing Display's   Changing Display's Icon_minitimeDo 8 Sep - 11:54

No that doesn't help, i now have this btw:
Code:
' Nur beim ersten Mal:
            (L.L.Matrix_TerminusCreateString)
            {if}
               l1 94 = (L.L.Matrix_ChangeCounter) ! &&
               {if}
               "Centraal Station@ZZZZZZZZZZZZZZZZ@Centraal Station" (S.$.Matrix_NewTerminus)
               {else}
               l1 94 = (L.L.Matrix_ChangeCounter) ! &&
               {if}
               "Eindhalte@Niet instappen@niet instappen" (S.$.Matrix_NewTerminus)
               {else}
               l1 95 = (L.L.Matrix_ChangeCounter) ! &&
               {if}
                  " FRANZ JAGT IM  @ KOMPLETT VER-  @WAHRLOSTEN TAXI " (S.$.Matrix_NewTerminus)
               {else}
               l1 95 =
               {if}
                  "  QUER DURCH  @    BAYERN.    @1234567890,;(*')" (S.$.Matrix_NewTerminus)
               {else}
               l1 96 = (L.L.Matrix_ChangeCounter) ! &&
               {if}
                  " 01234567890ABCD@EFGHIJKLMNOPQRST@UVWXYZÄÖÜ-.'+/xy" (S.$.Matrix_NewTerminus)
               {else}
               l1 96 =
               {if}
                  "()*;,%&zyx/+'.-A@ÖÜABCDEFGHIJKLMN@OPQRSTUVWXYZ0123" (S.$.Matrix_NewTerminus)
               {else}
               l1 97 =
               {if}
                  "SOFTWAREVERSION @  JULI  2009  @VERS. JULI  2009" (S.$.Matrix_NewTerminus)
               {else}
               l1 98 = (L.L.Matrix_ChangeCounter) &&
               {if}
                  "yxyxyxyxyxyxyxyx@xyxyxyxyxyxyxyxy@yxyxyxyxyxyxyxyx" (S.$.Matrix_NewTerminus)
               {else}
               l1 98 =
               {if}
                  "xyxyxyxyxyxyxyxy@yxyxyxyxyxyxyxyx@xyxyxyxyxyxyxyxy" (S.$.Matrix_NewTerminus)
               {else}
               l1 99 = (L.L.Matrix_ChangeCounter) &&
               {if}
                  "                @                @                " (S.$.Matrix_NewTerminus)
               {else}
               l1 99 =
               {if}
                  "zzzzzzzzzzzzzzzz@zzzzzzzzzzzzzzzz@zzzzzzzzzzzzzzzz" (S.$.Matrix_NewTerminus)
               {else}
                  l0 1 (M.V.GetTerminusString) 16 $SetLengthL "@" $+
                  l0 2 (M.V.GetTerminusString) 16 $SetLengthL "@" $+ $+
                  l0 3 (M.V.GetTerminusString) 16 $SetLengthL $+ (S.$.Matrix_NewTerminus)
               {endif}
               {endif}
               {endif}
               {endif}
               {endif}
               {endif}
               {endif}
               {endif}
               {endif}
               {endif}
               {endif}
               {endif}
Nach oben Nach unten
ediblechickenwing




Anzahl der Beiträge : 317
Anmeldedatum : 16.04.10
Ort : South Wales, UK

Changing Display's Empty
BeitragThema: Re: Changing Display's   Changing Display's Icon_minitimeDo 8 Sep - 11:57

I can only seem to get it to work properly if I replace an existing one, (97/98/99). I had the same problem where it wouldn't work properly if I added another one.
Nach oben Nach unten
EirikhO

EirikhO


Anzahl der Beiträge : 61
Anmeldedatum : 07.04.11
Alter : 29
Ort : Norway

Changing Display's Empty
BeitragThema: Re: Changing Display's   Changing Display's Icon_minitimeDo 8 Sep - 17:04

The codes are a bit different for those changing the entire display, have a look around. I don't have omsi installed on this computer so I can't really demonstrate it.
Nach oben Nach unten
Gesponserte Inhalte





Changing Display's Empty
BeitragThema: Re: Changing Display's   Changing Display's Icon_minitime

Nach oben Nach unten
 
Changing Display's
Nach oben 
Seite 1 von 1
 Ähnliche Themen
-
» LED Displays?
» Changing resolution
» Lane Changing
» Changing scripts
» IBIS displays

Befugnisse in diesem ForumSie können in diesem Forum nicht antworten
ehem. OMSI - Forum :: OMSI - The Omnibus Simulator (english) :: Wishes & Suggestions-
Gehe zu: