Enhanced Flashlight

by grfwoot

Replaces the default flashlight with a better, more realistic version, now with train and car lights. Updated for .17

Tweaks
4 years ago
0.16 - 0.17
9

g Fix for BobWarfare,BobLogistics,AngelIndustrials [Solution]

5 years ago

Hello,
I know this job is deprecated, Good Job Grfwoot I like the look of this mod, and wanted to use it with my other Mods.
Applying this MOD this worked on some vanilla vehicles, and some modded vehicles EG Angels Petrochem Train

Unfortunatly some vehicles added by other mods did not have your light effect applied to them. i belive this is an issue with their mods and not with yours.

to fix this i opened the zip file for each mod containing a vehicle that was not showing the right light effect BobWarfare,BobLogistics,AngelIndustrials
opened the entity LUA EG:
boblogistics_0.16.20.zip\boblogistics_0.16.20\prototypes\entity\train.lua

and located the light settings variables for the vehicles
In this file it was in a function called "rolling_stock_front_light()"
replaced all the Light Values in this section with the loco.front_light values from your (Ehance Flashlights) Mods DATA.LUA.

for example in BobWarfare there where multiple tanks so it had to be swapped in multiple places.
I belive in bobsmods Warfare the light settings for the tanks had a similar layout to the train settings so i used those instead.

Goodluck to all!

New response