Lighted Electric Poles +

by Wollit

Adds copies of electric poles, including modded ones, with integrated lamps.

Content
4 months ago
2.0
8.44K

b Recipes disappeared with 2.0.4

4 months ago

Heya, just tried the latest recycling update and it seems it removed the lighted electric pole recipes in game for me. Tried 2.0.3 and they are back.

The entities placed are still there as well as left over entities in inventory. The poles also don't show up in the lamp research.

4 months ago

Hi, weird, will look into it

4 months ago
(updated 4 months ago)

Created new world, achieved small lamp and I got also recipe for lighted one. Achieved lamp and created lighted type without problem. I also checked on my other worlds and everything worked fine. I can't replicate this problem. Can you get me more info?

4 months ago

Hey thanks for testing from your side. Maybe it has to do with me running pyanodons?

What other info would be helpful to provide? I compared the lamp research in 2.0.3 and 2.0.4 in my savegame and I do see the poles in the "enabled recipes" section of the research in 2.0.3 , but I don't see it in 2.0.4.

I DO see the recipes in factoriopedia in 2.0.4 though. Just not in the crafting section.

4 months ago

Also on pyanodons, migrated from 1.1 to 2.0, with this mod. and although there are machines set with the recipe, the recipes are disabled with the reason "not researched". There are no techs that enable the recipes for medium lighted electric poles, large lighted electric poles and lighted substations. Additionally, the recipes that used to exist for lighted nexelit power poles and lighted nexelit substations no longer exists.

4 months ago

Looked further as to what had happened in the instance of pyanodons.

If the mod is unaware of pyalternativeenergy, then this is what happens.

If at data.lua
Lighted poles defines the entities, recipes, items for small, medium, large, and substation.
small ends up at lamp. medium and large ends up in distribution 1. substation ends up at distribution 2.
pyalternativeenergy completely redefines distribution 1 and 2, adds distribution 3 to 5.
As a result, although the recipe exists for medium, large, and substation, there is no tech to unlock them.

If at data-updates.lua
All 4 poles ends up at lamp.

If made pyalternativeenergy aware in info.json

data.lua
All 4 poles ends up at lamp

data-updates.lua
Just the small pole is unlocked by lamp
medium pole at distribution 1
large pole at distribution 2
substation at distribution 4.

So yeah. I think the best approach really, is define entities as early as possible, then in data-final-fixes, figure out at which techs to insert the recipes, falling back to the lamp technology if no other tech can be found.

Could also attempt to discover other poles during later data stages to define their lit counterparts. (knowing that no recycling recipes will exist for them due to them being found and defined later.)

4 months ago

I have made a compatibility mod for pyanodon games that have pY Alternative Energy installed. https://mods.factorio.com/mod/Lighted-Poles-Plus-pyalternativeenergy

New response