Outpost Planner

by bob809

Automatically build mining outposts. Dependencies: PlannerCore

Utilities
4 years ago
0.15 - 0.18
903

g behaving weirdly after [0.18.41] or maybe a little earlier

4 years ago
(updated 4 years ago)

First thanks for writing this mod. I love it. It saves me so much time :)

I just noticed problems with this today and it had been about a week since I last used this.

Basically I setup a simple bot base blueprint where I have 2 mining drills facing each other with a chest between them and a medium electric pole next to the chest. This is the same set up I've use 100's of times before.

But today it placed only a few of chests where there would just be 1 drill facing the edge of the ore patch.
After that it didn't place any chests at all.

Plus it didn't place the drills next to each other anymore.
Instead it was spacing them out by 1 space between horizontally neighboring drills

Last it totally failed to place any power poles at all except for 1. This is with smart placement on.
And just listed the number of drills saying they were all unpowered because it could place poles.

I'm running with Bob's mods but not Angel's in this case.
I'm not running that one curse miner mod either.
I'm not sure what else I can add to help out with this.
There are no errors in the logs

In short
1) not placing most or all chest, just the first few if any
2) spacing out all the drills by 1
3) failing to place all poles but the first when using smart placement

4 years ago

just to add to this, picker dollies had an issue where it moved everything 2 spaces instead of one because of a blue print change in factorio

The main comment about it was:

I believe this is a result of the new on-grid blueprinting taking into account the 2-tile snapping of rails.

4 years ago

I've found that changing lines 740 and 741 in gui.lua from
local shift_x = math.ceil((-bounding_box.left_top.x) - 0.5) + 0.5
local shift_y = math.ceil((-bounding_box.left_top.y) - 0.5) + 0.5
to
local shift_x = math.ceil(-bounding_box.left_top.x)
local shift_y = math.ceil(-bounding_box.left_top.y)
fixes it for me at least.

4 years ago

lol that makes it seem like the code was being made in spite of weird placing system and then they fixed it which broke the code to fix the weirdness....
thanks I'm trying it shortly myself
...
well I'm trying to try it but the game keeps telling me it can't find the info.json in the zip file... wtf???
it's there and in the path the game says it can't find!!

1.662 Error ModManager.cpp:910: Mod package read error. File D:/Games/Factorio_1.0.0/mods/OutpostPlanner_1.1.5.zip/info.json not found

My zip has info.json in the root of it...

sigh

4 years ago

and yes, now that the weird error just sort magically disappeared... :/
it's working great
thanks again

4 years ago

I've found that changing lines 740 and 741 in gui.lua from
local shift_x = math.ceil((-bounding_box.left_top.x) - 0.5) + 0.5
local shift_y = math.ceil((-bounding_box.left_top.y) - 0.5) + 0.5
to
local shift_x = math.ceil(-bounding_box.left_top.x)
local shift_y = math.ceil(-bounding_box.left_top.y)
fixes it for me at least.

Thanks for the fix, i posted an updated version of the Outpost Planner to the Mod Portal for everyone to use until Bob809 fixes his Version :)

4 years ago

Thanks for the updated version, Viiu!

But it's not a 100% solution. Your update was working fine for a long time, then I started playing around with the settings. Tried the different blueprints (compact, bots etc) didn't like them so I clicked Default and then Read blueprint..But from that point... it showed these errors. Pole placement failed, except for one I think. Too much spacing between the miners, no belts were placed. No matter what I did I couldn't get it to work like before.

I re-installed the mod. But I forgot that I was using an updated mod so I installed the regular one.. and had the same problem of course. :) Finally I realised I re-installed the wrong mod and gor your updated one back, and now it works again! ;) So I'm good now, will just avoid playing with the settings. Just wanted to give you an update on what happened.

New response