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 [Fixed?] Team Coop related Bug

5 months ago

Bug happens when new player joins a world team both auto drive and team coop

5 months ago
(updated 5 months ago)

Thanks for the report! As a quick fix until the next update is ready, change line 2046 of scripts/event_handlers.lua to

  if p_data and p_data.show_on_camera then

and line 2051 to

  if p_data and p_data.show_on_map then
5 months ago

Should be fixed in version 1.1.15!

5 months ago

the Team comp part seems to be working fine, but there is a strange problem when ever i hit a tree my car / tank stops driving forward https://drive.google.com/file/d/1M5-GbW7ZfUTr4W_iflXlZx_TF3a_lcYb/view?usp=sharing

5 months ago

some times ... hiting biters has also had the same effect ... some times ...

5 months ago

there is a strange problem when ever i hit a tree my car / tank stops driving forward https://drive.google.com/file/d/1M5-GbW7ZfUTr4W_iflXlZx_TF3a_lcYb/view?usp=sharing

Thanks for providing the save! I believe this is related to the crash reported here. You also have "Schall Tank Woodcutting" enabled, and it's also loaded before Autodrive, so STW will destroy the tree before AD has a chance to notice that a vehicle crashed into a tree. Thus, vanilla behavior kicks in: on impact, entities take damage -- and if either event.entity or event.cause is a vehicle, their speed will be set to 0 at the start of the next tick. Autodrive keeps track of vehicles in on_entity_damaged, and sets vehicle speed to >0 in its next on_tick event. But it can't do that if it doesn't get the on_entity_damaged event …

I suppose things will work as expected again when you add a dependency to "Schall Tank Woodcutting". Just change the "dependencies" section of its info.json to this:

  "dependencies": [
    "base >= 1.1.0",
    "? autodrive"
  ]

If that works, I guess I'll actually have to consider making a fork of "Schall Tank Woodcutting" where I can enforce that it will be loaded after "Autodrive".

2 months ago

there is a strange problem when ever i hit a tree my car / tank stops driving forward

… I guess I'll actually have to consider making a fork of "Schall Tank Woodcutting" where I can enforce that it will be loaded after "Autodrive".

I've made the fork: please try out Schall Tank Woodcutting (Autodrive fix)!

a month ago

thankyou ^_^

a month ago

You're welcome – but the update will still take me some time. :-)

New response