Lighted Electric Poles +

by Optera

Adds a copy of every electric pole, including modded ones, with integrated lamp.

Content
1 year, 1 month ago
0.15 - 1.1
89.9K
Power

b [Fixed] Crash on load in Version 1.7.4

2 years ago

I'm getting a new crash on load in Version 1.7.4

Failed to load mods: LightedPolesPlus/data-updates.lua:156: attempt to index local 'rec' (a nil value) stack traceback:
LightedPolesPlus/data-updates.lua:156: in main chunk

2 years ago
(updated 2 years ago)

Nvm, I found the error.
Should be fixed in next release.

2 years ago
(updated 2 years ago)

Awesome! Thank you!

2 years ago
(updated 2 years ago)

Hi,

Yeah seems there is a similar crash on load with v1.7.5 of the mod as well (On game version 1.1.69)

Failed to load mod "LightedPolesPlus": LightedPolesPlus/data-updates.lua:89: attempt to concatenate field 'order' (a nil value)
stack traceback:
LightedPolesPlus/data-updates.lua:89: in main chunk

2 years ago

If the wiki is correct getting nil for order shouldn't be possible. https://wiki.factorio.com/PrototypeBase

A fix will be easy, it's just annoying.

2 years ago
(updated 2 years ago)

well your not wrong there... for the fun of it i tried changing the number on line 89 in that file from -0 to 1 and it loads,
Dunno if that would break anything but the game seems to load it now

Huh turns out thats all it needed though i haven't tested it properly but hey changing newItem.order = item.order.."-0" to newItem.order = item.order.."1" seems to have worked

2 years ago

No idea why that loads. It's still trying to concat nil with a string.

Real fix would be something like (item.order or "").."-0"

2 years ago

yeah im not sure either and there isnt a way to see if that is producing errors in the background is there

2 years ago

if it works it works, otherwise you get attempt to concatenate field 'order' (a nil value)

2 years ago

so i would change newItem.order = item.order.."-0" to newItem.order = (item.order or "").."-0" or...
just i wanna try your fix as well since im curious lol

2 years ago

yes

2 years ago
(updated 2 years ago)

huh that also works hey i mean either works... seems to at least its a fix either way lol

This thread has been locked.