Oil Outpost Planner


Automatically blueprint pumpjacks, pipes, and power poles for an oil outpost. Also supports adding heat pipes on Aquilo and beacons. Install Module Inserter Extended for modules support. Inspired by, and using some code from, Mining patch planner, by Rimbas

Utilities
3 months ago
2.0
15.3K
Mining Fluids Blueprints

b [FIXED] Vulcanus bug, round 2

3 months ago
(updated 3 months ago)

Hi there! Appreciate the mod, it's really taken the headache out of creating pump fields.

While on Vulcanus, I've encountered a bug that's very similar to the one mentioned in https://mods.factorio.com/mod/OilOutpostPlanner/discussion/67a3da498f7e1989ec6a8266 on version 1.6.6.

Environment

  • Factorio 2.0.47
  • Base mod 2.0.47
  • Elevated Rails 2.0.47
  • Quality 2.0.47
  • Space Age 2.0.47
  • Oil Outpost Planner 1.6.6

Steps to reproduce

  1. Load this save: https://drive.google.com/file/d/1CUD7HkZmC5UT4ByT4dUoty0Ilfcdm8Iy/view?usp=sharing
  2. The save loads over a sulfuric acid field — use the oil outpost planner tool to select all vents.
  3. Let go of the mouse button to finish selection, which results in the error below and returns to the main menu after acknowledging.
The mod Oil Outpost Planner (1.6.6) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event OilOutpostPlanner::on_player_selected_area (ID 55)
LuaEntity API call when LuaEntity was invalid.
stack traceback:
    [C]: in function '__index'
    __OilOutpostPlanner__/layout.lua:98: in function 'ForceGhostAt'
    __OilOutpostPlanner__/layout.lua:1772: in function 'Plan'
    __OilOutpostPlanner__/control.lua:50: in function <__OilOutpostPlanner__/control.lua:37>

Workaround

I found a workaround for this specific sulfuric acid field:

  1. Load the save linked above.
  2. Using the planner tool, select all sulfuric acid vents EXCEPT the bottom-most one. Ghosts are created and no error occurs.
  3. Re-select all sulfuric acid vents with the planner tool, this time INCLUDING the bottom-most one. All ghosts seem to be placed correctly with no errors.

Other things I've tried

I've done the following in an attempt to resolve the issue on my end, to no effect:

  • Disable all other non-official mods.
  • Reset all Oil Outpost Planner tool options to their defaults.
3 months ago

Looking into it...

3 months ago

OK, so this is something that can only happen in editor mode. There's a cliff in the way of the pipe to the bottom vent, with two segments in. The mod tries to mark the two cliff segments for deconstruction. But because you're in editor mode, marking for deconstruction instantly deconstructs them. But removing the first segment makes the other segment disappear (because there cannot be isolated cliff segments), and the second segment is not there when it comes time to mark it for deconstruction.

I just need to ignore invalid entities in this loop and I think it should be fine.

3 months ago

Should be fixed in 1.6.7. Thanks for providing such a helpful and detailed bug report!

3 months ago

Appreciate you!!

New response