Companion Drones for 2.0


Tired of the lonely factory life? This drone(s) will follow, assist, and protect you, handling construction, repairs, combat, and manage its inventory all by itself. Toggle between building and combat roles on the fly with hotkeys or the shortcut bar, fine-tune its behavior with customizeable options, and toggle between Modes to enable progression over time or to make the mod more suitable for large modpacks like Angels or Bob's. Maintained by Maoman

Content
8 months ago
2.0
10.9K
Logistics Combat

b compatibility with factorissimo3

4 months ago

Hello there,
first of all: thanks for the great mod, I really like it and use it in several of my runs.
I ran into an issue when using Companion Drones for 2.0 together with Factorissimo3 (factories inside factories).

Setup
Factorio version: 2.0.72
Companion Drones version: 3.1.2
Factorissimo3 version: 3.11.1
Singleplayer / Multiplayer: singleplayer

Steps to reproduce
Place a Factorissimo factory building on Nauvis and enter it (level 1).
The companion drone correctly teleports with the player into that factory surface.
Inside that factory, place another factory building (level 2) and enter it.
The player is teleported to the inner factory surface, but the companion drone is not.

Observed behavior
Instead of teleporting with the player, the drone stays on the previous surface and then flies all the way from one factory to the other.
This is especially noticeable because Factorissimo’s factories live on separate surfaces/planes, so the drone needs quite some time to catch up.

Expected behavior
The companion drone should teleport together with the player on every nested factory level, just like it does when entering the first factory.

Question
Do you think it would be possible to also teleport the drone when moving into deeper Factorissimo levels (factories inside factories)?

24 days ago
(updated 24 days ago)

I missed this post, which is a shame because it's an excellent quality report. Sorry about that.

Anywho, this is strange, because the drone is supposed to teleport to the player any time you change surfaces. That's explicitly coded into its logic. Huh. I'll take a look when I get around to a new update.

18 days ago

Hey thanks for the response. So the issue is that factorissimo is build on one plain as far as I can tell. So switching to a deeper level just means to teleport to another location on the factorissimo plain. (Check map)
It’s actually the same behavior as with any teleportation mods. The drones are flying to me which can take quite a while

18 days ago

I see. I think I would need to hook into the teleport function and read whenever it gets called, so that the companion can react and teleport as well, but I'm not sure how to do that. Alternatively I could simply watch for very large positional changes in very short time frames and use that as my trigger. Either way, I'll take a stab at it, but it'll likely be a while before I actually update, so don't hold your breath lol.

18 days ago

All good :) I’m happy that you’ll have a look at it. And thanks again for the great mod you created

New response