Hallo,
ich habe heute versucht die Lichtautomatik und das Abbiegelicht aus dem C2E in den C2 LE (Hochbahn Ausführung) einzubauen. Modell und Texturen wurden bereits durch mich angepasst. Auch die Scripte wurden bereits übernommen und entsprechend angepasst. Der Bus funktioniert auch soweit ohne Probleme. Nur die Lichtautomatik funktioniert nicht. Wenn ich den Schalter auf A schalte und den Bus dann Nachts anlasse, passiert nichts. Es geht lediglich das TFL an, als wäre der Schalter auf 0. Außerdem wird das A am Lichtschalter nicht beleuchtet, sobald ich das Licht manuell einschalte. Ich habe mittlerweile sämtliche Scripte durchforstet, allerdings nichts gefunden was noch mit der Lichtautomatik in Verbindung stehen könnte. Allmählich habe ich echt keinen Plan mehr was da noch fehlen könnte. Die Logfile zeigt sich da dann auch komplett ahnungslos. Kein Fehler in der Beleuchtung, Elektrik oder sonstigem.
Ich hänge mal die Skriptdateien die ich verändert habe in Ausschnitten an sowie die Logfile. Vielleicht kann mir ja jemand von euch helfen.
====================
Start logging
====================
Date: 07.06.2020
Time: 18:48:36
Version: 2.3.004
0 18:48:36 - - Information: OMSI is working in fullscreen mode
1 18:48:38 - - Information: TIR - looking for DLL path...
2 18:48:38 - - Information: TIR - DLL path not found - TIR disabled [0]
3 18:49:07 - - Information: Options dialog created
4 18:49:07 - - Information: Weather dialog created
5 18:49:08 - - Information: Profiles dialog created
6 18:49:08 - - Information: Time table running dialog created
7 18:49:08 - - Information: Start dialog created
8 18:49:08 - - Information: Menu 2 created
9 18:49:08 - - Information: Menu 3 created
10 18:49:08 - - Information: Tut dialog created
11 18:49:08 - - Information: Menu pos set
12 18:49:08 - - Information: Bro initialized
13 18:49:08 - - Information: Human engine initialized
14 18:49:08 - - Information: Forms set
15 18:49:08 - - Information: Captions set
16 18:49:08 - - Information: Screen ration set
17 18:49:08 - - Information: Init3D: BackBufferFormat = 22
18 18:49:08 - - Information: Init3D: Hardware vertex processing
19 18:49:08 - - Information: Init3D: Max iso = 16
20 18:49:08 - - Information: Init3D: Hal active
21 18:49:08 - - Information: Creating 3D device procedure finished
22 18:49:08 - - Information: 3D initialized
23 18:49:08 - - Information: Direct sound initialized
24 18:49:08 - - Information: Create main manager...
25 18:49:08 - - Information: Veh array created
26 18:49:08 - - Information: CS initialized
27 18:49:08 - - Information: Station manager created
28 18:49:08 - - Information: OBB created
29 18:49:08 - - Information: Tex managers created
30 18:49:08 - - Information: Tex manager started
31 18:49:08 - - Information: Tutorial manager created
32 18:49:08 - - Information: Material manager created
33 18:49:08 - - Information: Scenery object manager created
34 18:49:08 - - Information: Human manager created
35 18:49:08 - - Information: RV type manager created
36 18:49:08 - - Information: RV lists created
37 18:49:08 - - Information: Spline manager created
38 18:49:08 - - Information: Time table manager created
39 18:49:08 - - Information: Currency manager created
40 18:49:08 - - Warning: Did not find texture file "30er_reihensiedlung01.bmp"!
41 18:49:08 - - Warning: Did not find texture file "SD_Rad_v.bmp"!
42 18:49:08 - - Warning: Did not find texture file "reifen.bmp"!
43 18:49:08 - - Information: Visual helpers created
44 18:49:08 - - Information: Audio Mixer erstellen...
45 18:49:08 - - Information: ---
46 18:49:08 - - Information: Download Internet Textures...
47 18:49:08 - - Information: Problem while getting file http://www.man-stadtbus.de/OMSI/werbung0.jpg
48 18:49:09 - - Information: Problem while getting file http://www.man-stadtbus.de/OMSI/werbung1.jpg
49 18:49:09 - - Information: Problem while getting file http://www.man-stadtbus.de/OMSI/werbung2.jpg
50 18:49:09 - - Information: Problem while getting file http://www.man-stadtbus.de/OMSI/werbung3.jpg
51 18:49:10 - - Information: Problem while getting file http://www.man-stadtbus.de/OMSI/werbung4.jpg
52 18:49:10 - - Information: Problem while getting file http://www.man-stadtbus.de/OMSI/werbung5.jpg
53 18:49:10 - - Information: Problem while getting file http://www.man-stadtbus.de/OMSI/werbung6.jpg
54 18:49:10 - - Information: Problem while getting file http://www.man-stadtbus.de/OMSI/werbung7.jpg
55 18:49:11 - - Information: Problem while getting file http://www.man-stadtbus.de/OMSI/werbung8.jpg
56 18:49:14 - - Information: Input Manager erstellen...
57 18:49:14 - - Information: Tastaturbefehle laden...
58 18:49:14 - - Information: Game Controller laden...
59 18:49:14 - - Information: Progman initialisieren...
60 18:49:14 - - Information: Partikelvertices initialisieren...
61 18:49:14 - - Information: Lichtquellen initialisieren...
62 18:49:14 - - Information: System-Scriptvariablen initialisieren...
63 18:49:14 - - Information: Redline initialisieren...
64 18:49:14 - - Information: Traffic Path Manager initialisieren...
65 18:49:14 - - Information: Plugins initialisieren...
66 18:49:14 - - Information: Spline-Helper initialisieren...
67 18:49:14 - - Warning: Did not find texture file "path_car_1.bmp"!
68 18:49:28 - - Information: Loading Situation maps\Grundorf\laststn.osn...
69 18:49:28 - - Information: Date: 1997 0128, Time: 000138
70 18:49:28 - - Information: Load maps\Grundorf\global.cfg map...
71 18:49:28 - - Information: Load Cloud and Snowfall objects...
72 18:49:28 - - Warning: Did not find texture file "texture.tga"!
73 18:49:28 - - Warning: Did not find texture file "Snow_1.bmp.001"!
74 18:49:28 - - Information: Load Precip. Part. System...
75 18:49:28 - - Information: Load Precip. Sound...
76 18:49:28 - - Information: Sound erstellen...
77 18:49:28 - - Information: Sound laden...
78 18:49:28 - - Information: Set Weather System vars...
79 18:49:28 - - Information: Sky and Weather created
80 18:49:28 - - Information: Date: 1997 0128, Time: 000138
81 18:49:34 - - Information: Fonts initialized
82 18:49:34 - - Information: Map created
83 18:49:34 - - Information: Map Global File loaded
84 18:49:34 - - Information: Registrations loaded
85 18:49:34 - - Information: Parked Cars loaded
86 18:49:34 - - Information: Map AILists loaded
87 18:49:34 - - Information: New Centerkachel set
88 18:49:34 - - Information: VarParents loaded
89 18:49:34 - - Information: Special Objects refreshed
90 18:49:34 - - Information: Object and Spline Matrices refreshed
91 18:49:34 - - Information: Map loaded
92 18:49:34 - - Information: Humans created
93 18:49:34 - - Information: Editor refreshed
94 18:49:34 - - Warning: Cloudtype "-1" could not be found!
95 18:49:34 - - Information: Weather loaded
96 18:49:34 - - Information: Map camera loaded
97 18:49:34 - - Information: maps\Grundorf\global.cfg map loaded!
98 18:49:35 - - Information: Refresh Tile: 10, maps\Grundorf\tile_-1_0.map ...
99 18:49:35 - - Information: Refresh Tile: 0, maps\Grundorf\tile_0_0.map ...
100 18:49:35 - - Information: Refresh Tile: 1, maps\Grundorf\tile_0_1.map ...
101 18:49:35 - - Information: Refresh Tile: 6, maps\Grundorf\tile_0_2.map ...
102 18:49:35 - - Warning: Did not find texture file "Textfeld_1.bmp"!
103 18:49:35 - - Warning: Did not find texture file "Hst_Reiter_2dgt.bmp"!
104 18:49:35 - - Warning: Did not find texture file "StrSchild_Text1.bmp"!
105 18:49:35 - - Warning: Did not find texture file "StrSchild_Text1.bmp"!
106 18:49:35 - - Warning: Did not find texture file "StrSchild_Text2.bmp"!
107 18:49:35 - - Warning: Did not find texture file "StrSchild_Text2.bmp"!
108 18:49:35 - - Warning: Did not find texture file "StrSchild_Text1.bmp"!
109 18:49:35 - - Warning: Did not find texture file "text.bmp"!
110 18:49:35 - - Warning: Did not find texture file "text.bmp"!
111 18:49:35 - - Information: Refresh Tile: 5, maps\Grundorf\tile_1_0.map ...
112 18:49:36 - - Information: Refresh Tile: 3, maps\Grundorf\tile_1_1.map ...
113 18:49:36 - - Information: Refresh Tile: 4, maps\Grundorf\tile_1_2.map ...
114 18:49:36 - - Information: Refresh Tile: 14, maps\Grundorf\tile_1_3.map ...
115 18:49:36 - - Information: Refresh Tile: 15, maps\Grundorf\tile_1_4.map ...
116 18:49:36 - - Information: Refresh Tile: 16, maps\Grundorf\tile_2_0.map ...
117 18:49:36 - - Information: Refresh Tile: 7, maps\Grundorf\tile_2_2.map ...
118 18:49:36 - - Information: Refresh Tile: 13, maps\Grundorf\tile_2_3.map ...
119 18:49:43 - - Warning: Did not find texture file "C2_Innenanz.bmp"!
120 18:49:43 - - Warning: Did not find texture file "C2_Innenanz.bmp"!
121 18:49:43 - - Warning: Did not find texture file "C2_Innenanz.bmp"!
122 18:49:43 - - Warning: Did not find texture file "C2_Innenanz.bmp"!
123 18:49:43 - - Warning: Did not find texture file "C2_Innenanz.bmp"!
124 18:49:43 - - Warning: Did not find texture file "C2_Innenanz.bmp"!
125 18:49:43 - - Warning: Did not find texture file "LCD_7-Segment_alpha.bmp"!
126 18:49:43 - - Warning: Did not find texture file "LCD_7-Segment_alpha.bmp"!
127 18:49:43 - - Warning: Did not find texture file "LCD_7-Segment_alpha.bmp"!
128 18:49:43 - - Warning: Did not find texture file "17_vdv_font.bmp"!
129 18:49:43 - - Warning: Did not find texture file "17_vdv_font.bmp"!
130 18:49:43 - - Warning: Did not find texture file "17_vdv_font.bmp"!
131 18:49:43 - - Warning: Did not find texture file "V7900_cockpit.png"!
132 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
133 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
134 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
135 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
136 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
137 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
138 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
139 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
140 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
141 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
142 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
143 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
144 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
145 18:49:43 - - Warning: Did not find texture file "almex_s_0.bmp"!
146 18:49:43 - - Warning: Did not find texture file "almex_s_0.bmp"!
147 18:49:43 - - Warning: Did not find texture file "almex_s_0.bmp"!
148 18:49:43 - - Warning: Did not find texture file "almex_s_0.bmp"!
149 18:49:43 - - Warning: Did not find texture file "almex_s_0.bmp"!
150 18:49:43 - - Warning: Did not find texture file "almex_s_0.bmp"!
151 18:49:43 - - Warning: Did not find texture file "almex_s_0.bmp"!
152 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
153 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
154 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
155 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
156 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
157 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
158 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
159 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
160 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
161 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
162 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
163 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
164 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
165 18:49:43 - - Warning: Did not find texture file "HHAschedule_font.tga"!
166 18:49:44 - - Warning: Did not find texture file "553021.jpg"!
167 18:49:44 - - Warning: Did not find texture file "553021.jpg"!
168 18:49:44 - - Warning: Did not find texture file "HC_handschrift_alpha.bmp"!
169 18:49:44 - - Warning: Did not find texture file "HC_handschrift_alpha.bmp"!
170 18:49:44 - - Warning: Did not find texture file "test1_alpha.bmp"!
171 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
172 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
173 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
174 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
175 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
176 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
177 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
178 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
179 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
180 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
181 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
182 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
183 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
184 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
185 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
186 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
187 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
188 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
189 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
190 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
191 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
192 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
193 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
194 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
195 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
196 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
197 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
198 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
199 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
200 18:49:44 - - Warning: Did not find texture file "LW_font.bmp"!
201 18:49:45 - - Warning: Did not find texture file "test1_alpha.bmp"!
202 18:49:45 - - Warning: Did not find texture file "test1_alpha.bmp"!
203 18:49:45 - - Warning: Did not find texture file "test1_alpha.bmp"!
204 18:49:45 - - Warning: Did not find texture file "HH109_Kennz.bmp"!
205 18:49:47 - - Information: Date: 1997 0128, Time: 000138
206 18:49:47 - - Warning: Cloudtype "-1" could not be found!
207 18:49:47 - - Information: Date: 1997 0128, Time: 000138
208 18:49:50 - - Information: Try placing random bus:
209 18:49:52 - - Warning: Did not find texture file "textfeld_thermo.tga"!
210 18:49:52 - - Warning: Did not find texture file "Drucker-Textfeld.tga"!
211 18:49:52 - - Warning: Did not find texture file "IBIS2-Textfeld.tga"!
212 18:49:52 - - Warning: Did not find texture file "IBIS2-Delay_min.tga"!
213 18:49:52 - - Warning: Did not find texture file "IBIS2-Delay_sec.tga"!
214 18:49:52 - - Warning: Did not find texture file "IBIS2-Delay_state.tga"!
215 18:49:52 - - Warning: Did not find texture file "temp.bmp"!
216 18:49:52 - - Warning: Did not find texture file "D_wagennummer.tga"!
217 18:49:53 - - Warning: Did not find texture file "temp.bmp"!
218 18:49:53 - - Warning: Did not find texture file "LCD-Innenanzeige.bmp"!
219 18:49:53 - - Warning: Did not find texture file "D_kennzeichen.tga"!
220 18:49:53 - - Warning: Did not find texture file "D_wagennummer.tga"!
221 18:49:53 - - Warning: File Vehicles\MAN_NL_NG\model\model_GN92_main.cfg: texture filename dreck.tga not found in mesh file Vehicles\MAN_NL_NG\model\GN92\GN92_main_wagenkasten_dreck.o3d!
222 18:49:54 - - Warning: File Vehicles\MAN_NL_NG\model\model_GN92_main.cfg: texture filename dreck.tga not found in mesh file Vehicles\MAN_NL_NG\model\GN92\GN92_articul_bellows_dirt.o3d!
223 18:49:54 - - Warning: File Vehicles\MAN_NL_NG\model\model_GN92_main.cfg: texture filename regen.tga not found in mesh file Vehicles\MAN_NL_NG\model\GN92\LOD_GN92_main_tuer_MV.o3d!
224 18:49:54 - - Warning: File Vehicles\MAN_NL_NG\model\model_GN92_main.cfg: texture filename regen.tga not found in mesh file Vehicles\MAN_NL_NG\model\GN92\LOD_GN92_main_tuer_MH.o3d!
225 18:49:54 - - Warning: Did not find texture file "D_Rad_v.bmp"!
226 18:50:00 - - Warning: Did not find texture file "LCD-Innenanzeige.bmp"!
227 18:50:01 - - Warning: Did not find texture file "D_wagennummer.tga"!
228 18:50:01 - - Warning: Did not find texture file "D_kennzeichen.tga"!
229 18:50:01 - - Warning: File Vehicles\MAN_NL_NG\model\model_GN92_trail.cfg: texture filename dreck.tga not found in mesh file Vehicles\MAN_NL_NG\model\GN92\GN92_trail_wagenkasten_dreck.o3d!
230 18:50:07 - - Information: Traffic loaded
231 18:50:08 - - Information: Reset Passengers...
232 18:50:08 - - Information: Initialize Scheduled AI...
233 18:50:08 - - Information: Refresh All Vehicle Indices...
234 18:50:08 - - Information: Date: 1997 0128, Time: 000138
235 18:50:08 - - Information: Reset Passengers...
236 18:50:08 - - Information: Initialize Scheduled AI...
237 18:50:08 - - Information: Refresh All Vehicle Indices...
238 18:50:08 - - Warning: Direct3D-Device lost!
239 18:50:08 - - Information: Direct3D-Device resetted!
240 18:50:08 - - Information: Reset State Matrices...
241 18:50:08 - - Information: Start Tex Thread...
242 18:50:08 - - Information: Init Red Line...
243 18:50:08 - - Information: Set Initial Render States...
244 18:50:08 - - Information: Menu pos set
245 18:50:09 - - Warning: Did not find texture file "Fahrauftraege\01.jpg"!
246 18:50:09 - - Warning: Did not find texture file "Kennz.bmp"!
247 18:50:32 - - Warning: Did not find texture file "c2_display.bmp"!
248 18:51:13 - - Warning: Sound load: Error while creating DS Sound Buffer, DSERR_BUFFERTOOSMALL
249 18:51:13 - - Warning: Sound vehicles\WSW_C2\sound\schluessel_raus.wav could not be loaded! - Error: Tried to create a DSBCAPS_CTRLFX buffer shorter than DSBSIZE_FX_MIN milliseconds. (-2005401420)
250 18:51:22 - - Information: Deativating TIR...
251 18:51:22 - - Information: TIR was not available
252 18:51:23 - - Information: Closing actual map...
253 18:51:23 - - Information: Actual map closed!
254 18:51:23 - - Information: OMSI is closing...
'##############
'LightScript
'##############
'Simulates lighting system
'(c) 11.05.2009 Rüdiger Hülsmann
'(c) 02.01.2011 Marcel Kuhnt
' modified for Hamburg addon Darius Bode 2012
' modified for Gelenkbus Darius Bode 2013
'Script Version: 1.1
'Omsi release: 1.0
'Needs:
'- Cockpit (Batterietrennschalter)
'- Door (Haltestellenbremse für Bremslicht)
'Revision History:
'- Rüdiger Hülsmann 11.05.2009 Bremslichter an Bremsdruck gekoppelt
'- Marcel Kuhnt 10.06.2009 Schlüsselschalter-Logik für Stand- und Abbl.-licht verändert, Fernlicht hinzugefügt
'- Marcel Kuhnt 10.08.2009 Added Revision History
'- Marcel Kuhnt & RÜH 22.10.2009 Removed Light Switch Sound (added to cockpit)
'- Rüdiger Hülsmann 28.10.2009 Added changeover variable for lower level and front right interior light (fixed light overlay problem)
'- Rüdiger Hülsmann 18.07.2010 Light switch adapted to new ignition key algorithm
'- Marcel Kuhnt 21.09.2010 Changed interpretation of AI_Light, light flasher
'- RÜdiger Hülsmann 15.11.2010 AI-warning lights
'- Rüdiger Hülsmann 21.11.2010 Interiour and warning lights independent from busbar_main, blinker fix (situation reload)
'- Rüdiger Hülsmann 27.11.2010 Warning lights bug removed
'- Rüdiger Hülsmann 08.12.2010 Light bug "untenohnevornerechts" removed
'- Marcel Kuhnt 28.12.2010 Extracted AI lighting in separated macro (for using with AI script)
'- Marcel Kuhnt 02.01.2011 Corrected AI warn blinker deactivation
'- Rüdiger Hülsmann 02.01.2011 Driver light fixed
'- Rüdiger Hülsmann 05.01.2011 Fog lamp
'- Rüdiger Hülsmann 07.01.2011 highbeam switch sound
'- Rüdiger Hülsmann 18.01.2011 Blinker switch on sound added
'- Darius Bode 05.09.2013 Stromsparschaltung, Test fuer neue Innenbeleuchtung
'------------------------------------------------------------------------------------------
{trigger:kw_fernlicht_toggle}
(L.L.lights_sw_fern) ! (S.L.lights_sw_fern)
{if} (T.L.ev_fernlicht_an) {else} (T.L.ev_fernlicht_aus) {endif}
{end}
{trigger:kw_fernlicht_toggle_off}
(L.L.vdv_lichtschalter_rot_mode)
'Wenn Schlüsselposition Aus oder Standlicht dann Abbl-Licht, dann Fernlicht wieder ausschalten (Lichthupe)
1 <
{if}
0 (S.L.lights_sw_fern)
(T.L.ev_fernlicht_aus)
{endif}
{end}
{trigger:kw_scheinwerfer_toggle}
(L.L.vdv_lichtschalter_rot_mode)
'Wenn Schlüsselposition Aus oder Standlicht dann Abbl-Licht
1 <
{if}
1 (S.L.vdv_lichtschalter_rot_mode)
(T.L.ev_lichtdrehschalter_an)
'Wenn Schlüsselposition Abbl.-Licht dann Aus
{else}
0 (S.L.vdv_lichtschalter_rot_mode)
(T.L.ev_lichtdrehschalter_aus)
0 (S.L.lights_sw_fern)
{endif}
{end}
{trigger:kw_standlicht_toggle}
(L.L.vdv_lichtschalter_rot_mode)
'Wenn Schlüsselposition Aus oder Abbl-Licht dann Standlicht
s0 0.5 > l0 0.5 < ||
{if}
0.5 (S.L.vdv_lichtschalter_rot_mode)
(T.L.ev_lichtdrehschalter_dreh)
'Wenn Schlüsselposition Standlicht dann Aus
{else}
0 (S.L.vdv_lichtschalter_rot_mode)
(T.L.ev_lichtdrehschalter_aus)
0 (S.L.lights_sw_fern)
{endif}
{end}
{trigger:blinker_off}
(L.L.lights_sw_blinker) 0 >
{if}
(T.L.ev_lights_blinker_swoff)
0 (S.L.lights_sw_blinker)
{endif}
{end}
{trigger:blinker_left_move}
(L.L.lights_sw_blinker)
0 =
{if}
1 (S.L.lights_sw_blinker)
(T.L.ev_lights_blinker_swon)
(M.L.lights_startblinkgeber)
{else}
(T.L.ev_lights_blinker_swoff)
0 (S.L.lights_sw_blinker)
{endif}
{end}
{trigger:blinker_right_move}
(L.L.lights_sw_blinker)
0 =
{if}
2 (S.L.lights_sw_blinker)
(T.L.ev_lights_blinker_swon)
(M.L.lights_startblinkgeber)
{else}
(T.L.ev_lights_blinker_swoff)
0 (S.L.lights_sw_blinker)
{endif}
{end}
{trigger:blinker_left_set}
(L.L.lights_sw_blinker) 1 = !
{if}
(T.L.ev_lights_blinker_swon)
{endif}
1 (S.L.lights_sw_blinker)
(M.L.lights_startblinkgeber)
{end}
{trigger:blinker_right_set}
(L.L.lights_sw_blinker) 2 = !
{if}
(T.L.ev_lights_blinker_swon)
{endif}
2 (S.L.lights_sw_blinker)
(M.L.lights_startblinkgeber)
{end}
{trigger:blinker_warn_toggle}
(L.L.lights_sw_warnblinker)
{if}
(L.L.lights_schulbetrieb) !
{if}
0 (S.L.lights_sw_warnblinker)
{endif}
{else}
1 (S.L.lights_sw_warnblinker)
(M.L.lights_startblinkgeber)
{endif}
(L.L.vdv_sw_warnblinker) ! (S.L.vdv_sw_warnblinker)
{if}
(T.L.ev_warnblinker_sw)
{else}
(T.L.ev_warnblinker_sw)
{endif}
{end}
{macro:lights_frame}
' Automatiklicht
(L.L.lights_mode) 3 =
{if}
(L.L.Envir_Brightness) (C.L.lights_auto_on) <
{if}
(L.L.lights_auto_bright_timer) (L.S.Timegap) + (S.L.lights_auto_bright_timer)
(C.L.lights_auto_bright_delay) >
{if}
1 (S.L.lights_auto_req)
0 (S.L.lights_auto_bright_timer)
{endif}
(L.L.engine_n) 3000 230
{if}
2 (S.L.lights_auto_req)
{else}
1 (S.L.lights_auto_req)
{endif}
{else}
(L.L.Envir_Brightness) (C.L.lights_auto_off) >
{if}
(L.L.lights_auto_bright_timer) (L.S.Timegap) + (S.L.lights_auto_bright_timer)
(C.L.lights_auto_bright_delay) >
{if}
0 (S.L.lights_auto_req)
0 (S.L.lights_auto_bright_timer)
{endif}
{endif}
{endif}
(L.L.lights_auto) (L.L.lights_auto_req) = !
{if}
(L.L.lights_auto_timer) (L.S.Timegap) + (S.L.lights_auto_timer)
(C.L.lights_auto_delay) >
{if}
(L.L.lights_auto_req) (S.L.lights_auto)
0 (S.L.lights_auto_timer)
{endif}
{endif}
(L.L.lights_auto) 1 =
{if}
(L.L.elec_busbar_main) (S.L.lights_stand) (S.L.lights_tagfahr)
0 (S.L.lights_abbl)
{else}
(L.L.lights_auto) 2 =
{if}
(L.L.elec_busbar_main) (S.L.lights_abbl) (S.L.lights_stand) (S.L.lights_tagfahr)
{else}
0 (S.L.lights_stand) (S.L.lights_abbl) (S.L.lights_tagfahr)
{endif}
{endif}
{else}
0 (S.L.lights_auto_req) (S.L.lights_auto) (S.L.lights_auto_timer) (S.L.lights_auto_bright_timer)
{endif}
' Rueckfahrlicht
(L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > (L.L.antrieb_getr_gangwahl) 1 < && (L.L.elec_failure_general) ! &&
{if}
1 (S.L.lights_rueckfahr)
{else}
0 (S.L.lights_rueckfahr)
{endif}
' Kurvenlicht
(L.L.lights_abbl) (L.L.engine_n) 3000 230 &&
{if}
(L.L.lights_sw_blinker) 1 = (L.L.Velocity) 30 < &&
{if}
1 (S.L.lights_kurve_req)
{else}
(L.L.lights_sw_blinker) 2 = (L.L.Velocity) 30 < &&
{if}
2 (S.L.lights_kurve_req)
{else}
0 (S.L.lights_kurve_req)
{endif}
{endif}
{else}
0 (S.L.lights_kurve_req) (S.L.lights_kurve_timer) (S.L.lights_kurve_act)
{endif}
(L.L.lights_kurve_act) (L.L.lights_kurve_req) = !
{if}
(L.L.lights_kurve_timer) (L.S.Timegap) + (S.L.lights_kurve_timer)
(C.L.lights_kurve_delay) >
{if}
(L.L.lights_kurve_req) (S.L.lights_kurve_act)
0 (S.L.lights_kurve_timer)
{endif}
{endif}
(L.L.lights_kurve_act) 1 = (S.L.lights_kurve_l)
(L.L.lights_kurve_act) 2 = (S.L.lights_kurve_r)
' Tagfahrlicht
(L.L.engine_injection_on)
(L.L.lights_stand) ||
(L.L.elec_busbar_avail) &&
(S.L.lights_tagfahr)
' Fuer C2-LED-Rueckleuchten: Gibt an, ob Aus oder eine der Leuchttexturen gebraucht wird
(L.L.lights_rueck) !
(L.L.lights_stand) ! &&
(L.L.lights_brems) ! &&
{if}
1 (S.L.lights_texture_aus)
0 (S.L.lights_texture_brems) (S.L.lights_texture_stand)
{endif}
(L.L.lights_rueck) (L.L.lights_stand) ||
(L.L.lights_brems) ! &&
{if}
0 (S.L.lights_texture_aus) (S.L.lights_texture_brems)
1 (S.L.lights_texture_stand)
{endif}
(L.L.lights_brems)
{if}
1 (S.L.lights_texture_brems)
0 (S.L.lights_texture_aus) (S.L.lights_texture_stand)
{endif}
' Zahltischleuchte
(L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > (L.L.door_1_aussen_licht) || (L.L.elec_failure_general) ! &&
(L.L.door_0) 0 > (L.L.door_1) 0 > || (L.L.door_1_aussen_licht) || (L.L.lights_stand) && && (L.L.cp_intlightsdriver_targeton) ||
{if}
1 (S.L.lights_fahrerlicht)
{else}
(L.L.cp_intlightsdriver_targeton) ! (L.L.door_1_aussen_licht) ! && (L.L.door_oberlicht1_lichtreq_zeit) 0 = &&
{if}
0 (S.L.lights_fahrerlicht)
{endif}
{endif}
(L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > (L.L.elec_failure_general) ! &&
{if}
(L.L.cp_saegezahn_licht) (S.L.lights_saegezahn)
{else}
0 (S.L.lights_saegezahn)
{endif}
' Nebelschlussleuchte
(L.L.cp_taster_nebelschluss_target) (L.L.vdv_lichtschalter_rot_mode) 0.2 > (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > && && (L.L.elec_failure_general) ! &&
{if}
1 (S.L.lights_nebelschluss)
{else}
0 (S.L.lights_nebelschluss)
{endif}
' Stromsparschaltung Aussenbeleuchtung
(L.L.lights_mode) 2 < (L.L.engine_injection_on) ||
{if}
0 (S.L.lights_stromspar)
{endif}
' Lichtstatus = Drehschalter
(L.L.lights_mode) 0 = (L.L.elec_failure_general) ||
{if}
0 (S.L.lights_stand) (S.L.lights_rueck) (S.L.lights_abbl)
-1 (S.L.Spot_Select)
{endif}
(L.L.lights_mode) 1 =
(L.L.elec_failure_general) ! &&
{if}
1 (S.L.lights_stand) (S.L.lights_rueck)
-1 (S.L.Spot_Select)
0 (S.L.lights_abbl)
{endif}
(L.L.lights_mode) 2 = (L.L.elec_failure_general) ! &&
{if}
(L.L.lights_stromspar) ! (L.L.engine_ignition) 1 = ! && (L.L.elec_busbar_main_sw) &&
{if}
1 (S.L.lights_abbl) (S.L.lights_stand) (S.L.lights_rueck) (S.L.Spot_Select)
{else}
1 (S.L.lights_stand) (S.L.lights_rueck)
-1 (S.L.Spot_Select)
0 (S.L.lights_abbl)
{endif}
{endif}
' Fernlicht
(L.L.lights_sw_fern) (L.L.elec_failure_general) ! &&
{if}
1
(S.L.lights_fern)
(S.L.lights_abbl)
0 (S.L.Spot_Select)
{else}
0 (S.L.lights_fern)
{endif}
' Nebelscheinwerfer
(L.L.cp_nebel_targeton) (L.L.vdv_lichtschalter_rot_mode) 0.2 > (L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > && && (L.L.elec_failure_general) ! &&
{if}
1 (S.L.lights_nebelscheinw)
{else}
0 (S.L.lights_nebelscheinw)
{endif}
(L.L.cp_nebel_targetoff) (L.L.elec_failure_general) ||
{if}
0 (S.L.lights_nebelscheinw)
{endif}
(M.L.lights_schulbetrieb)
' Tuer-Oberlichter
(L.L.door_0) 0.1 > (L.L.door_1) 0.1 > ||
{if}
1 (S.L.door_oberlicht1_lichtreq)
{else}
(L.L.door_oberlicht1_lichtreq)
{if}
(L.L.door_oberlicht1_lichtreq_zeit) 0 =
{if}
(L.L.globaltimer) (S.L.door_oberlicht1_lichtreq_zeit)
{endif}
(L.L.globaltimer) (L.L.door_oberlicht1_lichtreq_zeit) (C.L.door_licht_verz) + >
{if}
0 (S.L.door_oberlicht1_lichtreq) (S.L.door_oberlicht1_lichtreq_zeit)
{endif}
{endif}
{endif}
(L.L.door_2) 0.1 > (L.L.door_3) 0.1 > ||
{if}
1 (S.L.door_oberlicht2_lichtreq)
{else}
(L.L.door_oberlicht2_lichtreq)
{if}
(L.L.door_oberlicht2_lichtreq_zeit) 0 =
{if}
(L.L.globaltimer) (S.L.door_oberlicht2_lichtreq_zeit)
{endif}
(L.L.globaltimer) (L.L.door_oberlicht2_lichtreq_zeit) (C.L.door_licht_verz) + >
{if}
0 (S.L.door_oberlicht2_lichtreq) (S.L.door_oberlicht2_lichtreq_zeit)
{endif}
{endif}
{endif}
(L.L.door_4) 0.1 > (L.L.door_5) 0.1 > ||
{if}
1 (S.L.door_oberlicht3_lichtreq)
{else}
(L.L.door_oberlicht3_lichtreq)
{if}
(L.L.door_oberlicht3_lichtreq_zeit) 0 =
{if}
(L.L.globaltimer) (S.L.door_oberlicht3_lichtreq_zeit)
{endif}
(L.L.globaltimer) (L.L.door_oberlicht3_lichtreq_zeit) (C.L.door_licht_verz) + >
{if}
0 (S.L.door_oberlicht3_lichtreq) (S.L.door_oberlicht3_lichtreq_zeit)
{endif}
{endif}
{endif}
(L.L.door_6) 0.1 > (L.L.door_7) 0.1 > ||
{if}
1 (S.L.door_oberlicht4_lichtreq)
{else}
(L.L.door_oberlicht4_lichtreq)
{if}
(L.L.door_oberlicht4_lichtreq_zeit) 0 =
{if}
(L.L.globaltimer) (S.L.door_oberlicht4_lichtreq_zeit)
{endif}
(L.L.globaltimer) (L.L.door_oberlicht4_lichtreq_zeit) (C.L.door_licht_verz) + >
{if}
0 (S.L.door_oberlicht4_lichtreq) (S.L.door_oberlicht4_lichtreq_zeit)
{endif}
{endif}
{endif}
(L.L.door_8) 0.1 > (L.L.door_9) 0.1 > ||
{if}
1 (S.L.door_oberlicht5_lichtreq)
{else}
(L.L.door_oberlicht5_lichtreq)
{if}
(L.L.door_oberlicht5_lichtreq_zeit) 0 =
{if}
(L.L.globaltimer) (S.L.door_oberlicht5_lichtreq_zeit)
{endif}
(L.L.globaltimer) (L.L.door_oberlicht5_lichtreq_zeit) (C.L.door_licht_verz) + >
{if}
0 (S.L.door_oberlicht5_lichtreq) (S.L.door_oberlicht5_lichtreq_zeit)
{endif}
{endif}
{endif}
(L.L.door_oberlicht1_lichtreq)
(L.L.elec_busbar_main) && (L.L.lights_stand) && (L.L.elec_failure_general) ! &&
(L.L.door_1_aussen_licht) ||
{if}
1 (S.L.door_oberlicht1)
{else}
0 (S.L.door_oberlicht1)
{endif}
' Innenlicht wenn Tuer von aussen geoeffnet wurde
(L.L.door_1_aussen) 1 = (L.L.cp_schluessel_trans) ! && (L.L.engine_injection_on) ! && (L.L.door_0) 0 > &&
{if}
1 (S.L.door_1_aussen_licht)
{endif}
(L.L.cp_schluessel_trans) (L.L.engine_injection_on) || (L.L.door_1_aussen) 1 = &&
{if}
0 (S.L.door_1_aussen_licht) (S.L.door_1_aussen)
{endif}
' Innenlicht wenn Tuer von aussen geschlossen wurde
(L.L.door_1_aussen) -1 = (L.L.cp_schluessel_trans) ! && (L.L.engine_injection_on) ! && (L.L.door_0) 0 = &&
{if}
1 (S.L.door_1_aussen_licht)
(L.L.door_1_aussen_licht_zeit) 0 =
{if}
(L.L.globaltimer) (S.L.door_1_aussen_licht_zeit)
{endif}
(L.L.globaltimer) (L.L.door_1_aussen_licht_zeit) (C.L.door1_aussen_licht) + >
{if}
0 (S.L.door_1_aussen_licht_zeit) (S.L.door_1_aussen_licht) (S.L.door_1_aussen)
{endif}
{endif}
(L.L.elec_busbar_main) (L.L.engine_injection_on) || (L.L.door_1_aussen) -1 > ||
{if}
0 (S.L.door_1_aussen_licht_zeit)
{endif}
(L.L.door_oberlicht2_lichtreq)
(L.L.elec_busbar_main) && (L.L.lights_stand) && (L.L.elec_failure_general) ! &&
(S.L.door_oberlicht2)
(L.L.door_oberlicht3_lichtreq)
(L.L.elec_busbar_main) && (L.L.lights_stand) && (L.L.elec_failure_general) ! &&
(S.L.door_oberlicht3)
(L.L.door_oberlicht4_lichtreq)
(L.L.elec_busbar_main) && (L.L.lights_stand) && (L.L.elec_failure_general) ! &&
(S.L.door_oberlicht4)
(L.L.door_oberlicht5_lichtreq)
(L.L.elec_busbar_main) && (L.L.lights_stand) && (L.L.elec_failure_general) ! &&
(S.L.door_oberlicht5)
(M.L.lights_AI)
(M.L.lights_runblinkgeber)
(L.L.brake) 0.1 >
(L.L.elec_failure_general) ! &&
(L.L.elec_busbar_main) &&
(S.L.lights_brems)
(L.L.lights_sw_blinker) 1 = (L.L.lights_blinker_l) (L.L.lights_blinker_r) ! && ||
(L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > && (L.L.elec_failure_general) ! &&
(L.L.lights_sw_warnblinker) (L.L.lights_blinker_l) || ||
{if}
(L.L.lights_blinkgeber) (S.L.lights_blinker_l)
{else}
0 (S.L.lights_blinker_l)
{endif}
(L.L.lights_sw_blinker) 2 = (L.L.lights_blinker_r) (L.L.lights_blinker_l) ! && ||
(L.L.elec_busbar_main) (C.L.elec_busbar_Vmin) > && (L.L.elec_failure_general) ! &&
(L.L.lights_sw_warnblinker) (L.L.lights_blinker_r) || ||
{if}
(L.L.lights_blinkgeber) (S.L.lights_blinker_r)
{else}
0 (S.L.lights_blinker_r)
{endif}
Alles anzeigen
' Lichtdrehschalter
{trigger:cp_lichtschalter_mov_drag}
(L.S.mouse_y) abs (L.S.mouse_x) abs >
{if}
' Translation
(L.S.mouse_y) 150 / (L.L.vdv_lichtschalter_trans) + 0 max 1 min (S.L.vdv_lichtschalter_trans) s0
l0 0.25 <
{if}
(L.L.vdv_lichtschalter_trans_mode) 0 > {if} (T.L.ev_lichtdrehschalter_zieh) {endif}
0 (S.L.vdv_lichtschalter_trans_mode) (S.L.cp_nebel_targeton) (S.L.cp_taster_nebelschluss_target)
{endif}
l0 0.25 >= l0 0.75 < &&
{if}
(L.L.vdv_lichtschalter_trans_mode) 0.5 = ! {if} (T.L.ev_lichtdrehschalter_zieh) {endif}
0 (S.L.cp_taster_nebelschluss_target)
0.5 (S.L.vdv_lichtschalter_trans_mode)
1 (S.L.cp_nebel_targeton)
{endif}
l0 0.75 >
{if}
(L.L.vdv_lichtschalter_trans_mode) 1 < {if} (T.L.ev_lichtdrehschalter_zieh) {endif}
1 (S.L.vdv_lichtschalter_trans_mode) (S.L.cp_nebel_targeton) (S.L.cp_taster_nebelschluss_target)
{endif}
{else}
' Rotation
(L.S.mouse_x) 70 / (L.L.vdv_lichtschalter_rot) + -0.5 max 1 min (S.L.vdv_lichtschalter_rot) s0
l0 -0.25 <
{if}
(L.L.lights_mode) 3 = !
{if}
(T.L.ev_lichtdrehschalter_dreh)
{endif}
-0.5 (S.L.vdv_lichtschalter_rot_mode) 3 (S.L.lights_mode)
{endif}
l0 0.25 < l0 -0.25 > &&
{if}
(L.L.lights_mode) 0 = !
{if}
(T.L.ev_lichtdrehschalter_aus)
{endif}
0 (S.L.vdv_lichtschalter_rot_mode) (S.L.lights_mode)
{endif}
l0 0.25 >= l0 0.75 < &&
{if}
(L.L.lights_mode) 1 = !
{if}
(T.L.ev_lichtdrehschalter_dreh)
{endif}
0.5 (S.L.vdv_lichtschalter_rot_mode)
1 (S.L.lights_mode)
{endif}
l0 0.75 >
{if}
(L.L.lights_mode) 2 = !
{if}
(T.L.ev_lichtdrehschalter_an)
{endif}
1 (S.L.vdv_lichtschalter_rot_mode)
2 (S.L.lights_mode)
{endif}
{endif}
{end}
{trigger:cp_lichtschalter_mov_drag_off}
' Einrasten
(L.L.vdv_lichtschalter_trans_mode) (S.L.vdv_lichtschalter_trans)
(L.L.vdv_lichtschalter_rot_mode) (S.L.vdv_lichtschalter_rot)
{end}
Alles anzeigen
Alle nötigen Constfile- und Varlisteinträge habe ich vorgenommen.
Ob das Abbiegelicht funktioniert kann ich noch nicht sagen, da ich bisher keine Spotlights dafür eingetragen habe. Erst möchte ich mal diese Baustelle fertig haben.
Liebe Grüße
Schrotti