You are not logged in.

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.

  • "Manu" started this thread

Date of registration: Jan 8th 2012

Location: Berlin-Lichtenberg

Occupation: Schüler

  • Send private message

1

Thursday, January 19th 2012, 9:08pm

Bus endet hier - automatisch bei Endhaltestelle

Ich habe das bereits in einem anderen Thema geschrieben, aber da es auch sowas wie ein Mod ist, schreibe ich es auch nochmal hier hin:

Wenn die Ansage zur Endhaltestelle ertönt, schaltet die Matrix automatisch auf das Ziel 021 (Bus endet hier) um. Damit der folgende "Mod" funktioniert, muss das Ziel "Bus endet hier" in der hof-Datei unter der Nummer 021 existieren.

Öffnet den Ordner des SD202 oder NL202, dann den Ordner Script und dann die Datei IBIS-2.osc mit einen Editor und ändert:

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}

zu

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}

Sollte das Ziel "Bus endet hier" eine andere Nummer haben, so ändert 021 in der Zeile 8 in die entsprechende Nummer.

This post has been edited 1 times, last edit by "Manu" (May 7th 2013, 4:14pm)


2

Thursday, January 19th 2012, 9:09pm

So einen MOD gibt es schon, undzwar mehrfach, nimm mal die SF oder ggf. Google.

  • "Manu" started this thread

Date of registration: Jan 8th 2012

Location: Berlin-Lichtenberg

Occupation: Schüler

  • Send private message

3

Thursday, January 19th 2012, 9:11pm

Wo? Ich habe nichts gefunden (auch nicht im alten Forum), lediglich, dass die Innenanzeige Bus endet hier anzeigt.

Date of registration: Dec 2nd 2011

Location: Berlin

Occupation: Schüler

  • Send private message

4

Thursday, January 19th 2012, 9:39pm

Muss noch irgendwas in der IBIS_varlist / _stringvarlist eingetragen werden oder ist nur eine Änderung der IBIS-2.osc vonnöten? ;)

  • "Manu" started this thread

Date of registration: Jan 8th 2012

Location: Berlin-Lichtenberg

Occupation: Schüler

  • Send private message

5

Thursday, January 19th 2012, 9:41pm


Muss noch irgendwas in der IBIS_varlist / _stringvarlist eingetragen werden oder ist nur eine Änderung der IBIS-2.osc vonnöten? ;)

Nein, nur die Veränderung in der osc-Datei ist nötig

Date of registration: Jan 7th 2012

  • Send private message

6

Thursday, January 19th 2012, 11:04pm

Super, klasse Mod funktioniert hervorragend! Kann man da die Liniennummer auch mit einbeziehen?

  • "Manu" started this thread

Date of registration: Jan 8th 2012

Location: Berlin-Lichtenberg

Occupation: Schüler

  • Send private message

7

Thursday, January 19th 2012, 11:07pm


Super, klasse Mod funktioniert hervorragend! Kann man da die Liniennummer auch mit einbeziehen?

Wie meinst du das?

Date of registration: Dec 4th 2011

  • Send private message

8

Thursday, January 19th 2012, 11:31pm

I get this message:

TFev_IBIS_Ansagen ist kein gultiger gleitkommawert

Date of registration: Dec 19th 2011

Location: Berlin

  • Send private message

9

Thursday, January 19th 2012, 11:34pm

Sorry wenn ich das sage,aber diese Sache ist in meinem Mod schon vorhanden sogar das in der Anzeige steht Nächster Halt Grundorf zum Beispiel :rolleyes:

  • "Manu" started this thread

Date of registration: Jan 8th 2012

Location: Berlin-Lichtenberg

Occupation: Schüler

  • Send private message

10

Friday, January 20th 2012, 12:29am

Bei DIESEM Mod ändert sich die Zielanzeige VORNE und nicht zwangsweise die Innenanzeige, wie in anderen Mods.


I get this message:

TFev_IBIS_Ansagen ist kein gultiger gleitkommawert


Have you only done the changes I have described? Check if you're code is the same as mine.

Date of registration: Dec 1st 2011

  • Send private message

11

Friday, January 20th 2012, 9:43am

Funktioniert das auch beim KI ?
Citaro 4 Ever!
Alle Infos zu meiner Map Langental findet ihr jetzt nur noch unter folgendem Link:
http://die-modder.de/index.php?page=Thread&postID=116#post116

Date of registration: Dec 1st 2011

Occupation: OMSI-Experte

  • Send private message

12

Friday, January 20th 2012, 2:58pm

Könnte man das auch im IBIS-1 verbauen. Ich wüsste nur nicht wo.
Als offizieller Experte helfe ich euch gerne in den folgenden Gebieten: AI-Lists
Schreibt mir dafür einfach eine PN und Ihr erhaltet die Lösung im Experten-Forum.
P.S.: Bitte besucht mein Profil bevor Ihr mir eine PN sendet. ;) Danke! :)

  • "Manu" started this thread

Date of registration: Jan 8th 2012

Location: Berlin-Lichtenberg

Occupation: Schüler

  • Send private message

13

Friday, January 20th 2012, 4:14pm


Funktioniert das auch beim KI ?

Nein

Könnte man das auch im IBIS-1 verbauen. Ich wüsste nur nicht wo.


Ich habe es zwar noch nicht ausprobiert, sollte aber auch gehen, ändere in IBIS.osc mal

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}


zu

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}

Date of registration: Dec 1st 2011

Occupation: OMSI-Experte

  • Send private message

14

Friday, January 20th 2012, 4:37pm

Danke, ich probiere es mal aus.
Als offizieller Experte helfe ich euch gerne in den folgenden Gebieten: AI-Lists
Schreibt mir dafür einfach eine PN und Ihr erhaltet die Lösung im Experten-Forum.
P.S.: Bitte besucht mein Profil bevor Ihr mir eine PN sendet. ;) Danke! :)

Date of registration: Dec 27th 2011

  • Send private message

15

Friday, January 20th 2012, 5:25pm

Ja.Es geht auch beim Ibis 1.Habs ausprobiert.!:)

Date of registration: Dec 1st 2011

  • Send private message

16

Friday, January 20th 2012, 6:23pm

Also bei mir gibts diese Zeile gar nicht, die man verändern soll...
(Im SD202)
Citaro 4 Ever!
Alle Infos zu meiner Map Langental findet ihr jetzt nur noch unter folgendem Link:
http://die-modder.de/index.php?page=Thread&postID=116#post116

Date of registration: Jan 7th 2012

  • Send private message

17

Friday, January 20th 2012, 7:27pm


Super, klasse Mod funktioniert hervorragend! Kann man da die Liniennummer auch mit einbeziehen?

Wie meinst du das?

Wenn die Zielanzeige z.B. "76 Grundorf" anzeigt und dann in z.B. " Dienstfahrt" oder "BVG Betriebsfahrt" wechselt

  • "Manu" started this thread

Date of registration: Jan 8th 2012

Location: Berlin-Lichtenberg

Occupation: Schüler

  • Send private message

18

Friday, January 20th 2012, 9:48pm

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.

Date of registration: Dec 11th 2011

Location: Essen-Heisingen

  • Send private message

19

Saturday, January 21st 2012, 1:23pm

Gefällt mir sehr gut, dein Mod. Danke

Date of registration: Jan 7th 2012

  • Send private message

20

Sunday, January 22nd 2012, 11:18pm

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.
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.