Autodrive

by Pi-C

Car equipment for train avoidance, logistic network integration, circuit network connectivity, fuel refill, ammo reload, vehicle repair, radio control, enemy targeting, and gate control.

Content
2 months ago
0.17 - 1.1
2.98K
Transportation Combat Logistic network Circuit network

b Error MainLoop - Server crash

7 months ago

i'm running a Server & I got a report about 2 crashes from onother player.
after reading the logfiles I came to conclusion, that this mod causing it.

Error while running event autodrive::on_entity_color_changed (ID 180)
The mod Autodrive (1.1.11) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event autodrive::on_entity_color_changed (ID 180)
autodrive/scripts/event_handlers.lua:1323: C stack overflow
stack traceback:
autodrive/scripts/event_handlers.lua:1323: in function <autodrive/scripts/event_handlers.lua:1319>
[C]: in function 'newindex'
__autodrive
/scripts/vehicle_functions.lua:2723: in function 'paint'
autodrive/scripts/vehicle_functions.lua:2733: in function 'reset_color'
autodrive/scripts/event_handlers.lua:1360: in function
[C]: in function 'newindex'
__autodrive
/scripts/vehicle_functions.lua:2723: in function 'paint'
autodrive/scripts/vehicle_functions.lua:2733: in function 'reset_color'
autodrive/scripts/event_handlers.lua:1845: in function <autodrive/scripts/event_handlers.lua:1830>

it did not happen when I was present on the server but it happen twice for another player when I was absent.
I also used this follow function from the car, but I dont think this causes it.

7 months ago

Thanks for the report! Setting entity.color is rather fragile because even setting it to the existing color will raise on_entity_color_changed. Therefore, when Autodrive is setting a vehicle's color, it's supposed to set a flag so that the next event for that vehicle can be ignored. Also, it should tell other mods that also may want to change the vehicle's color about pending color changes so that these mods can ignore the event as well.

Your crash looks like something doesn't work correctly so that Autodrive is trying to reset the vehicle color, raising on_entity_color_changed which in turn tries to reset the color again. I wonder if there may be other mods involved. Could you upload a saved game, please, so that I can get the mod list?

7 months ago

a modlist can be seen here: https://discord.com/channels/139677590393716737/580120147629572136/1234230951425343598
I put it in attachement.

and a fresh save can be downloaded here: https://drive.google.com/file/d/13P7Gv4TVs8WzR0Lxj3h__yotGLXGUTeR/view?usp=sharing
but I removed -Autodrive- and use the -Gizmos Car Keys (improved)- now. Note: it seems to be happen when player is absent. As I was the only one unsing the car on the server, It never happen to me.

7 months ago

a modlist can be seen here: https://discord.com/channels/139677590393716737/580120147629572136/1234230951425343598
I put it in attachement.

Sorry, I'm not on Discord!

and a fresh save can be downloaded here: https://drive.google.com/file/d/13P7Gv4TVs8WzR0Lxj3h__yotGLXGUTeR/view?usp=sharing

Is that a public link? Google wants me to log in with the Google account I don't have. :-)

Note: it seems to be happen when player is absent.

So the player must leave the game while riding in a vehicle?

New response