Resource Labels Updated

by sproott

Adds icons to resources on the map, optionally with a label and the resource count.

Tweaks
1 year, 3 months ago
0.18 - 1.1
4.42K

i [Fixed] Multi-surface behavior (Space Exploration)

2 years ago

Hi! Thank you for great mod!
With generating labels these appear only on current surface, on which player click generate.
But remove from everywhere! Every planet :(
Please fix that removing goes only for current surface

2 years ago

Implemented in version 1.1.7. I have had the feature done for like three weeks already but was busy at work and got around to testing it just now. Let me know if it works as you intended.

2 years ago

Sorry dear friend, I hit a error while load my save https://imgur.com/o3uadZo

2 years ago

Oh, that'll be because it will need migration (removing all labels before loading a new version). I'll add that in the next update, should be out ASAP.

2 years ago

It should work now, fingers crossed.

2 years ago

Yes, thank you very much!

2 years ago
(updated 2 years ago)

Whoops...

443.881 Error MainLoop.cpp:1285: Exception at tick 28299690: The mod Resource Labels Updated (1.1.8) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event ResourceLabelsUpdated::on_tick (ID 0)
ResourceLabelsUpdated/control.lua:374: attempt to index field 'surface' (a nil value)
stack traceback:
ResourceLabelsUpdated/control.lua:374: in function 'func'
stdlib/stdlib/utils/table.lua:72: in function <stdlib/stdlib/utils/table.lua:71>
(...tail calls...)
ResourceLabelsUpdated/control.lua:246: in function 'createLabelForResourcePatch'
ResourceLabelsUpdated/control.lua:171: in function 'labelResourcesInAreaOld'
ResourceLabelsUpdated/control.lua:140: in function 'func'
stdlib/stdlib/utils/table.lua:116: in function 'each'
ResourceLabelsUpdated/control.lua:137: in function 'handler'
stdlib/stdlib/event/event.lua:342: in function 'pcall'
stdlib/stdlib/event/event.lua:362: in function 'dispatch_event'
stdlib/stdlib/event/event.lua:438: in function <stdlib/stdlib/event/event.lua:396>

2 years ago
(updated 2 years ago)

(This is after updating from 1.1.6 to 1.1.8 and recalculating, as instructed by the console message.)

(EDIT : Also Factorio from 1.1.35 to 1.1.41.)

2 years ago

Please upload a save file before the error happened. I'll try it and debug it. Thanks

2 years ago

Here you go :
https://ufile.io/1r2rfcz2
Thanks in advance !

2 years ago

Oh, forgot about this one. Should be fixed in the new version.

2 years ago

Thanks !

New response