abaines / Resource-Marker

Factorio Mod
Other
5 stars 7 forks source link

tags disappearing? #34

Open abaines opened 3 months ago

abaines commented 3 months ago

Maeximus 10 days ago

Somehow old resource fields lost their tag and it cannot be regenerated with retag. Newly charted/generated chunks will have fields with tags. Any idea how I can debug this, I guess another mod is messing around with the functionality...

image

When I use retag then I get a lot of lines in the factorio-log but somehow the tag is not generated. 2140.709 Script @resourceMarker/control.lua:250: 234 & { icon = { name = "iron-ore", type = "item" }, position = { x = 2512, y = 1040 }, text = "Iron ore 3.5M" }

kizrak 7 days ago

Hello Maeximus, πŸ‘‹

From the image, it looks like that isn't the starting area, which was maybe my first thought. How big is the map? I wonder if there is a limit on the number of tags and that got hit somehow? But if that was the case, I'd expect retag to miss one edge/side of the map, unlike the image. What other mods do you have? Can you list them all with versions? Or better, a save file (as those automatically include all of the mods and their versions). Was a new mod added recently? Maybe include a save file where everything was working, and a save when it stopped working.

FWIW, I'm mostly in maintenance mode for these mods (until the expansion is near πŸŽ‰). However, I do review pull requests on the git repo if that is your thing.

🧑

Maeximus 13 hours ago

Hey kizrak, thanks for the reply!

Unfortunately I deleted my old saves so I cannot say what caused the deletion of the map tags. I imagine that the maps are about middle-sized for a big base, nothing overboarding like solar arrays... Whats very curious is that I have a save where the old tags got deleted and then I removed the mod, did a save without the mod and installed the mod again. Now the tags are back but with some weird numbers (only a fraction of the contents) and also not centered on the middle of the ore: image (the Coal 101k has the correct size, the others are much bigger).

I also have a link to this save in case you're interested: https://drive.google.com/file/d/1axRXRdBdkHlI0jZ5bx6NBG0T5AKHO2yX/view?usp=sharing Also I fully understand that there might not be a fix until the expansion - I just try my luck. ;-)

Also with enough time I will try and figure out how it works but its always hard to comprehend foreign code =)

πŸ”— https://mods.factorio.com/mod/resourceMarker/discussion/6668716fc45ca7fa70af6c6f

gisanka commented 3 months ago

Here is the correct savegame with resourcemarker added: https://drive.google.com/file/d/128aMyV1wxfCEDEWFg0f9z5nyQysJAuk4/view?usp=sharing When you load the save, only a few resourcefields are tagged and when you run retag, only some small ones will be tagged (and all of my custom tags will vanish, that is why I tried to avoid using retag in this playthrough)

Sorry for the other one, I already played with the mods and tried to figure out if removing and re-adding resourcemarker will fix the issue.