Roboport Range Multiplier

by Jobus

Tweak the logistics and construction ranges of all roboports by global decimal multipliers.

Tweaks
11 days ago
2.0
1.90K
Logistic network Cheats

b connection_distance (2) cannot be less than logistics_radius (4)

23 days ago

Changing any of the settings results in the following error:

Failed to load mods: Error while loading entity prototype "factory-hidden-construction-roboport" (roboport): logistics_connection_distance (2) cannot be less than logistics_radius (4)
Modifications: Factorissimo 3 › Squeak Through 2 › Combat Mechanics Overhaul › Roboport Range Multiplier

I set Logistics and Construction factor to 2, left personal factor at 1.

Any suggestions?

23 days ago

Thank you for reporting. I updated the mod - see if that works for you.

12 days ago

It doesn't work. The connection distance is still lower than logistics radius - the roboports are touching but not connecting.

I tried at a distance of 64 tiles, even setting it to 1.3 (→70) didn't make them connect. Are you sure you're multiplying connection distance by the same factor as logistics radius?

12 days ago

It doesn't work. The connection distance is still lower than logistics radius - the roboports are touching but not connecting.

What mods are you using? Are any other mods affecting your roboports?

The modding API doesn't allow the connection distance to be any shorter than the logistics radius; it will just give an error and stop you from even loading the game.

Also, the regular roboports don't have the logistics_connection_distance variable assigned, which means they automatically calculate the distance to fit the logistics radius instead. So I need to know what exact type of roboports you're having the issue with, or if it's the regular ones, what mods you are using on them.

Are you sure you're multiplying connection distance by the same factor as logistics radius?

Yes, I'm using the exact same math. I even added a condition so that if logistics_connection_distance is somehow still lower than the logistics radius, I just forcibly set it to the same value.

11 days ago
(updated 11 days ago)

Hello there, thanks for the quick response. I have a lot, lot of tweaks mods (see https://imgur.com/a/nJar3TY for list), but none of those should do anything with roboports.
If you want to meet on factorio discord, my discord tag is @dewayx. Ping me, I can stream the game and demonstrate if you can't replicate yourself.

I'll edit this in a hot second disabling all but your mod to see if there's anything influencing compatibility with your mod.
Edit 1: Disabled all mods and tried with 1.28 and 1.281 values for both construction and logistics range, which both result in 64 logistics range. Results can be seen here: https://imgur.com/a/ERGXjaB, the bug persists.

11 days ago

Oh, so it's just one specific roboport that doesn't connect to the rest. That's strange. I assume you've tried removing and placing it again? The only way I'm able to replicate that is if I place two roboports out of range of each other, and then increase the multiplier of the mod: then the logistics areas touch without connecting, because connections are only calculated when a roboport is placed, so pre-existing ones don't update.

Same goes if you use the mod to make the logistics areas larger, and then lower it in the mod. When you load your save, the roboports will still be connected without their logistics areas touching.

If you haven't already, could you try replacing both the disconnected one and those around it to see if that changes anything?

I'll try to see if there's any way in the API to force-recalculate the connections of roboports. If so, I'll make a console command that does so globally.

11 days ago

I uploaded an update that adds console command /reconnectroboports that forces the recalculation of connections between all roboports. Perhaps that could solve your issue?

10 days ago

I'll try it tomorrow, many thanks!

New response