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

g [Fixed] Error when inputting logistic sensor in tank

1 year, 2 months ago

Hi,

When I input the logistic sensor the following error appears.

The mod Autodrive (1.1.6) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event autodrive::on_tick (ID 0)
autodrive/scripts/sensors/logistic.lua:233: attempt to call field 'argprintNewBlock' (a nil value)
stack traceback:
autodrive/scripts/sensors/logistic.lua:233: in function 'logistic_unpack'
autodrive/scripts/driving.lua:333: in function 'check_crons'
autodrive/scripts/driving.lua:988: in function 'tick_vehicle'
autodrive/scripts/event_handlers.lua:1048: in function <autodrive/scripts/event_handlers.lua:968>
<<<

1 year, 2 months ago

Thank you for the report! I must have been rather tired, that's another stupid typo. I'm going to wait a day or two before fixing this, in the hope of getting more such bugs reported (don't want to push a new release for fixing each small typo).

Meanwhile, you can fix that yourself by changing line 233 of scripts/sensors/logistic.lua from

  AD.argprintNewBlock("Do we have a valid requester?")

to

  AD.writeDebugNewBlock("Do we have a valid requester?")

The same error ("argprintNewBlock" instead of "writeDebugNewBlock") occurs again in line 270, so you should fix that as well.

1 year, 2 months ago

Thx for the quick response!
And the fix works :)

1 year, 2 months ago

You're welcome! By the way, you should also fix this bug, it's also related to the logistics sensor.

1 year, 2 months ago

Will do.
Got another one :(

The mod Autodrive (1.1.6) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event autodrive::on_tick (ID 0)
Given inventory does not have filters.
stack traceback:
[C]: in function 'get_filter'
autodrive/scripts/sensors/logistic.lua:83: in function 'transfer_stacks'
autodrive/scripts/sensors/logistic.lua:454: in function 'logistic_process'
autodrive/scripts/driving.lua:334: in function 'check_crons'
autodrive/scripts/driving.lua:988: in function 'tick_vehicle'
autodrive/scripts/event_handlers.lua:1048: in function <autodrive/scripts/event_handlers.lua:968>
<<<

1 year, 2 months ago

Thanks, that's interesting! Would you mind posting the saved game, so that I can try to reproduce the crash?

1 year, 2 months ago

Will do.

1 year, 10 days ago

Should be fixed in version 1.1.7!

New response