Companion Drones Gadgetroch


Companion Gadgetroch Fork: personal fork of Companion Drones for Factorio 2.1. Adds the /companion command to hand out a build/defend drone when you join a server mid-game. See mod description.

Utilities
3 hours ago
2.1
1.40K
Logistics Combat Manufacturing

b Drone Roboport Logic broken?

3 days ago
(updated 3 days ago)

On my MMP Server with SE+K2 but also in Vanilla SA my drone(s) are behaving wired while the roboport is active.
They are flying away over halve of the map turning back ... flying away again ... and so on.
Only by re-enabling the roboport they are working fine until they did there building job.

Also they try to repair you when you are hurt and playing inventory ping-pong with repair tools.

Not sure what the causes of this is but it would be nice to look into this, maybe something has changed between 2.0 and 2.1 in the main game lua logic what maybe couold have broken the 2.0 companion mod (and which is now still in the 2.1 fork)

3 days ago

Thanks for the detailed report, it pointed straight at two real bugs. Both are fixed in 3.3.3 (just released).

  1. Drones flying far away and turning back with a roboport active: the mod read the "registered for construction" flag backwards. A ghost stops being registered as soon as a construction robot is dispatched to it, but the mod took that as "nobody is on it". So the drone kept targeting exactly the ghosts your personal roboport's robots were already flying to. The ghost got built under its nose, it switched to the next one further away, and so on. Now the drone leaves ghosts your robots are already handling and only takes the ones still waiting. Nothing changed in the base game between 2.0 and 2.1 here: the bug was in the mod's logic itself.

  2. Repair-pack ping-pong when you are hurt: the repair search picked any damaged entity of your force, including your character and other drones. Robots can't repair a character, so the drone took a stack of repair packs, repaired nothing, gave them back, and started over every few ticks. Characters and companions are now excluded from repair targets.

Also, a stuck drone or one returning to you now forgets its old target instead of flying straight back to it.

If you still see it in 3.3.3 (with SE+K2 or vanilla), tell me how many drones you have, your armor/roboport setup and what they were building, and I'll dig further.

3 days ago

Currently only the companion and now I found another server crashing bug whenI hit "Companion Guide" Button, see the image: https://i.imgur.com/gXSWq68.png

As you can see it causes a non recoverable error in the logic/script and crashes the entire MMP/SP Game. Not sure why this happens.

3 days ago

Thanks a lot for the report and the log, that made it easy to find. The Guide button was loading a file at click time, which Factorio only allows while the mod is loading, so the whole game stopped. It's fixed in 3.3.6, already on the portal: just update the mod (on the server too, if you host one). I also added a check so this kind of mistake can't ship again. Sorry for the crash, and let me know if anything else breaks!

3 days ago

Sure I'll let you now but sadly this crash has deleted my companion. Any ways to get it back without using a lua command?

2 days ago

Yes! /companion is a regular chat command added by the mod, not a Lua command, so it doesn't disable achievements. Open the chat, type /companion and press Enter: if you're below your companion limit, it gives you a new one. You can also simply craft a new companion (it's a normal recipe in the crafting menu) and place it. Sorry about the crash, and thanks for the report!

2 days ago

https://i.imgur.com/30iIXdy.png and https://i.imgur.com/7cbyGNs.png

After a fight the Companion flies forth and back between an unknown point and me but never comes back to me.
I am also not sure why the companion behaves like this but it shouldn't.

Not sure if you have this too on your end but at last we have it on our server. Not sure if there are other mods (SE/K2) interfering with the mods logic?

2 days ago

Thanks for the report. While digging into it I found and fixed a real bug in 3.4.1: the companion's attack search never ran, because its laser was not recognised in the equipment grid, so it never moved toward enemies on its own or held position while fighting. I could not reproduce the endless back-and-forth after a fight, even with the attack search working again (damaged or full-health companion, enemies 15 to 50 tiles away, several targets, walking player). If it still happens with 3.4.1, could you tell me whether your companion was below 70% health, whether you have a personal roboport, whether there were ghosts or damaged buildings nearby, and send a log or a save? That would let me fix it for good.

2 days ago

Sure I'll look into this. A save can be sended to or we manage to met up on discord and you try to join the server to see it live.

a day ago

Thanks! A save is the easiest: please attach it here (or a link), with the mod list. If it only shows up on your server, I can join to watch it live.

Or you can join https://short.gadgetroch.com/discord

New response