Careful Driver


Encourages players to be careful drivers via negative reinforcement.

Content
2 years ago
1.1
119
Transportation

b Crash with Avatars

1 year, 7 months ago
(updated 1 year, 7 months ago)

Hi! Just got this crash when I tried to load Avatars together with your mod:

 2.003 Loading mod careful_driver 1.0.3 (data-final-fixes.lua)
 2.013 Script @__careful_driver__/data/cars-in-void.lua:13: carPrototype: car
 2.015 Script @__careful_driver__/data/cars-in-void.lua:13: carPrototype: tank
 2.018 Script @__careful_driver__/data/cars-in-void.lua:13: carPrototype: avatar-control-center
 2.018 Error ModManager.cpp:1622: Failed to load mod "careful_driver": __careful_driver__/data/cars-in-void.lua:162: attempt to perform arithmetic on field 'line_length' (a nil value)
stack traceback:
  __careful_driver__/data/cars-in-void.lua:162: in main chunk
  [C]: in function 'require'
  __careful_driver__/data-final-fixes.lua:2: in main chunk
1 year, 6 months ago
(updated 1 year, 6 months ago)

Coming to think of it, while you should add a check whether line_length exists at all, you should ignore the avatar-control-center altogether! It's one of those car prototype that players are not supposed to drive in. For Autodrive, I've compiled a list of such prototypes (and the mods that provide them) that I will ignore. If you want to take a look, check out the table mod_proto_map in file __autodrive__/vehicle_lists.lua, lines 16--145.

1 year, 3 months ago

hi, sorry all these mod alerts fell in to a black hole at my end.
I stopped developing all Factorio mods quite some time ago. If I start up again in the future and return to this mod I will make sure to have a look at this, cheers.
The whole logic on graphics is still temperamental and needs another overhaul really.