Careful Driver


Encourages players to be careful drivers via negative reinforcement.

Content
2 years ago
1.1
119
Transportation

b [RESOLVED] AAI Vehicles - Chaingunner mod - Attempt to index field 'water_reflection' (a nil value)

2 years ago
(updated 2 years ago)

When this mod is used alongside Chaingunner the game fails on startup with the following message:

Error ModManager.cpp:1558: Failed to load mod "careful_driver": __careful_driver__/data/cars-in-water.lua:25: attempt to index field 'water_reflection' (a nil value)
stack traceback:
        __careful_driver__/data/cars-in-water.lua:25: in main chunk
        [C]: in function 'require'
        __careful_driver__/data-final-fixes.lua:1: in main chunk

Tested more, it happens with all AAI vehicles.

2 years ago

Thanks, will have a look at those mods and add default logic in to mine to handle the missing fields.

2 years ago
(updated 2 years ago)

Added all of the AAI vehicle mods and tested entering void and water. Reported error and some subsequent ones resolved, plus some missing graphics issues due to the varying different ways the AAI vehicles' graphics are defined also resolved.

I haven't made stuck-in-water graphic variations for them as this takes a while per vehicle.