Show Max Underground Distance

by ltab

Shows maximum range indicators to help you place underground belts and pipes.

Utilities
19 hours ago
0.18 - 2.0
74.6K

b Error while loading

4 years ago

Tested with 0.18.34 and 018.35 headless Linux

9.202 Error Util.cpp:83: Failed to load mod "show-max-underground-distance": show-max-underground-distance/data-final-fixes.lua:22: attempt to index field '?' (a nil value)
stack traceback:
show-max-underground-distance/data-final-fixes.lua:22: in main chunk

could this be a conflict with another mod?

Thanks.

4 years ago

Looks like it. No incriminating changes in the base game and it still loads for me. Can you give me a copy of your modlist?

4 years ago

Apologies for the long list. :)

  "name": "base",
  "enabled": true

  "name": "aai-vehicles-laser-tank",
  "enabled": true

  "name": "aai-zones",
  "enabled": true

  "name": "Aircraft",
  "enabled": true

  "name": "Armored-train",
  "enabled": true

  "name": "AutoDeconstruct",
  "enabled": true
},

{
  "name": "beautiful_bridge_railway",
  "enabled": true

  "name": "betterCargoPlanes",
  "enabled": true

  "name": "Bottleneck",
  "enabled": true

  "name": "bullet-trails",
  "enabled": true

  "name": "cargo-ships",
  "enabled": true

  "name": "ClosestFirst",
  "enabled": true

  "name": "ClosestFirstUpdated",
  "enabled": true

  "name": "Concreep",
  "enabled": true

  "name": "DeathMarkers",
  "enabled": true

  "name": "Dirt_Path",
  "enabled": true

  "name": "Electric_Furnaces_2x2_016update",
  "enabled": true

  "name": "FARL",
  "enabled": true

  "name": "GatlingPulseLaser",
  "enabled": true

  "name": "inbuilt_lighting",
  "enabled": true

  "name": "Infinizoom",
  "enabled": true

  "name": "LandfillPainting",
  "enabled": true

  "name": "MushroomCloud",
  "enabled": true

  "name": "pipelayer",
  "enabled": true

  "name": "Power Armor MK3",
  "enabled": true

  "name": "rail-bridge",
  "enabled": true

  "name": "RailPowerSystem",
  "enabled": true

  "name": "Retrofit-Furnaces",
  "enabled": true

  "name": "Roboports Extended",
  "enabled": true

  "name": "robotarmy",
  "enabled": true

  "name": "scattergun_turret",
  "enabled": true

  "name": "SchallArtillery",
  "enabled": true

  "name": "Squeak Through",
  "enabled": true

  "name": "Tapeline",
  "enabled": true

  "name": "Todo-List",
  "enabled": true

  "name": "tree-growth-core",
  "enabled": true

  "name": "tree-growth-natural-expansion",
  "enabled": true

  "name": "tree-growth-natural-growth",
  "enabled": true

  "name": "tree-growth-scaled-trees",
  "enabled": true

  "name": "Treefarm-Lite-fix",
  "enabled": true

  "name": "tree_collision",
  "enabled": true

  "name": "UpgradedRoboports",
  "enabled": true

  "name": "Warehousing",
  "enabled": true

  "name": "windturbines",
  "enabled": true
4 years ago

That's like half the mods I play with usually :)

It was an issue with Pipelayer and its underground pipes that go to a different dimension. I've updated the mod with a workaround.

4 years ago

Ah excellent! Thanks very much for the response and the great mod!

4 years ago
(updated 4 years ago)

Got this one today on game ver 1.0.0

Error loading mods

Failed to load mods: Error while loading entity prototypr "pipe-clamped-1" (pipe-to-ground): Expected a list of 2 items but got a list with 1 items, in property tree ar ROOT.pipe-to-ground.pipe-clamped-1.radius_visualisation_specification.offset
Modifications: Picker Pipe Tools > Show Max Underground Distance

Mods to be disabled:
- PickerPipeTools (1.1.1)
- show-max-underground-distance (0.0.4)

4 years ago

Hmmm, interesting error. I can't reproduce it with only those two mods, so I'm hazarding a guess that maybe it's their combination with a third that is causing this. I think I may have found where in the code it's coming from (mostly for my own future reference):

offset[2] is nil and auto-trimmed -> pipe_connections[2].max_underground_distance doesn't exist -> PPT/prototypes/pipe-clamps.lua:188 sets pipe_connections to array of directions only, no max_underground_distance (optional)

I've made what I think should be a working fix, if you don't mind seeing if it works for you: http://www.mediafire.com/file/l12v1k7lmkuflur/file

4 years ago
(updated 4 years ago)

I've made what I think should be a working fix, if you don't mind seeing if it works for you: http://www.mediafire.com/file/l12v1k7lmkuflur/file

Yep, your fix fixed it. I can play around with zeroing down on the subset of mods that cause it with the (0.0.4) version of your mod if you would like to. But that would take some time.. And I'm not sure if you need this information. So I would first wait on an answer from you.
My mod list is huge (https://pastebin.com/EyWxJG84) and sure there could have been a three-way-problem among them. I was a bit tired and did not check the pair alone, sorry :)

Also I'm curious will you fix go in to a new version of the mod in the future, as I have not figured out how to successfully host multiplayer with altered mod packs, as I have problems with GF joining.

4 years ago

No, if it's fixed I don't necessarily need to know, though looking at your modlist I'm 80% sure it's Flow Control.

Yeah I will update it, but since I couldn't reproduce the problem I needed you to test it first.

4 years ago

yeah, all good
show-max-underground-distance (0.0.5) has no conflict with my big list.
show-max-underground-distance (0.0.4) can't be tested as I lost that version (and don't know yet how to get older versions of mods)

4 years ago

You can get old versions from the download pages here on the website if you ever need to. No need to test it though.

4 years ago

ah, yes, thank you

New response