Kuxynator's Factorium


Recipe viewer (FNEI style and other), blueprint builder and more

Utilities
11 months ago
2.0
1.75K
Mining Fluids Manufacturing Blueprints Cheats

b attempt to index local 'loc' (a nil value)

1 year, 1 month ago

Hi,
when I click on the magnifying glass the error appears: "oops, an error has occurred, see log" and in log you can see: 858.967 Script @Kux-Factorium/runtime/GuiEventDistributor.lua:22: Kux-Factorium/runtime/TranslationService.lua:23: attempt to index local 'loc' (a nil value)
stack traceback:
Kux-Factorium/runtime/TranslationService.lua:23: in function 'loc'
Kux-Factorium/runtime/ElementUtils.lua:111: in function 'apply_filter'
Kux-Factorium/runtime/ElementUtils.lua:150: in function 'getAllElementsFiltered'
Kux-Factorium/ui/ElementSelectorView.lua:33: in function 'open_subview'
Kux-Factorium/ui/MainView.lua:58: in function 'open'
Kux-Factorium/runtime/Factorium.lua:75: in function 'showElementSelector'
Kux-Factorium/ui/SearchView.lua:50: in function <Kux-Factorium/ui/SearchView.lua:48>
[C]: in function 'xpcall'
Kux-Factorium/runtime/GuiEventDistributor.lua:119: in function 'on_gui_event'
Kux-Factorium/runtime/GuiEventDistributor.lua:124: in function 'on_gui_click'
Kux-Factorium/runtime/GuiEventDistributor.lua:135: in function 'fnc'
Kux-CoreLib/lib/EventDistributor.lua:163: in function <Kux-CoreLib/lib/EventDistributor.lua:156>

1 year, 1 month ago
(updated 1 year, 1 month ago)

thx. I work on it

EDIT: the error should be gone if you open it again (and the translation was finished in the background)
I am working on it so that it is not displayed as an error, but as progress

1 year, 1 month ago

I've been playing for 2 hours and I reopened it now that I saw your comment and the error repeats itself.

1 year, 1 month ago

this is strange. the error I mean only occurs if i open the dialog too quickly after loading. a few seconds later it is gone.
please try 3.0.7. to see if this still happens.

1 year, 1 month ago
(updated 1 year, 1 month ago)

3.0.7 Didn't fix the bug.

81.634 Script @__Kux-Factorium__/runtime/GuiEventDistributor.lua:22: __Kux-Factorium__/runtime/TranslationService.lua:30: attempt to index local 'loc' (a nil value)
stack traceback:
    __Kux-Factorium__/runtime/TranslationService.lua:30: in function 'loc'
    __Kux-Factorium__/runtime/ElementUtils.lua:111: in function 'apply_filter'
    __Kux-Factorium__/runtime/ElementUtils.lua:150: in function 'getAllElementsFiltered'
    __Kux-Factorium__/ui/ElementSelectorView.lua:33: in function 'open_subview'
    __Kux-Factorium__/ui/MainView.lua:67: in function 'open'
    __Kux-Factorium__/runtime/Factorium.lua:75: in function 'showElementSelector'
    __Kux-Factorium__/ui/SearchView.lua:50: in function <__Kux-Factorium__/ui/SearchView.lua:48>
    [C]: in function 'xpcall'
    __Kux-Factorium__/runtime/GuiEventDistributor.lua:119: in function 'on_gui_event'
    __Kux-Factorium__/runtime/GuiEventDistributor.lua:124: in function 'on_gui_click'
    __Kux-Factorium__/runtime/GuiEventDistributor.lua:135: in function 'fnc'
    __Kux-CoreLib__/lib/EventDistributor.lua:163: in function <__Kux-CoreLib__/lib/EventDistributor.lua:156>

If it may be important, I play in Russian lang.

1 year, 1 month ago

If it may be important, I play in Russian lang.

that was the most important hint

I found the reason for this issue.
the locale of the filter is set for the first time when a player filters something. in the first view the default filter with "en" is used
but "en" is not loaded at all if no player has "en".
fixed in next version. the 'locale' will be always set to players locale, before filter ist used.

1 year, 1 month ago

BUG FIXED

Thank you

New response