Picker Inventory Tools

by Nexela

Quick Inventory filtering and sorting

1 year, 11 months ago
0.17 - 1.1
8.71K

g Error in game

3 years ago

When i load the mod i get the error:
Event: Real number expected got nil.

I disabled all of mods besides the picker stuff but that didn't fix it.

3 years ago

When you load the mod it also gives you a stack trace with line numbers and calling functions. So please post the log file for any chance of this getting fixed. Thank you

3 years ago
(updated 3 years ago)

Don't know how to add files here, so: https://justpaste.it/7x5w5

I think these are the relevant lines:
13.012 Checksum for script PickerAtheneum/control.lua: 3233250321
13.024 Checksum for script PickerInventoryTools/control.lua: 2590148413
13.034 Checksum for script PickerBlueprinter/control.lua: 1244192788
13.044 Checksum for script PickerExtended/control.lua: 91545251
13.124 Script @stdlib/stdlib/event/changes.lua:100: PickerBlueprinter: version changed from nil to 1.1.5
13.161 Script @stdlib/stdlib/core.lua:46: PickerInventoryTools:'event': real number expected got nil.
13.185 Script @stdlib/stdlib/core.lua:46: PickerInventoryTools:'event': real number expected got nil.

3 years ago

Ok I am not sure what is causing this. Would it be possible for you to upload the save game with the issue?

3 years ago

Sent you a pm on the forums.

2 years ago
(updated 2 years ago)

I ran into the same issue with the "Nauvis Post Collapse Demo" scenario - stdlib unfortunately suppresses backtraces. After patching it, the real error is:

Error while running event PickerInventoryTools::on_tick (ID 0)
'event': real number expected got nil.
stack traceback:
        [C]: in function 'raise_event'
        __stdlib__/stdlib/event/event.lua:497: in function 'raise_event'
        __PickerAtheneum__/scripts/intra-mod-ticker.lua:16: in function 'handler'
        __stdlib__/stdlib/event/event.lua:342: in function 'no_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>"

I logged "event" at that place and got this:

{
  entity = {
    __self = "userdata"
  },
  ran_once = true
}

Hope this helps.

2 years ago
(updated 2 years ago)

As a hack workaround to get it at least somewhat working, I edited PickerAtheneum_1.2.4/scripts/intra-mod-ticker.lua and replaced line 16:

        Event.raise_event(event.name, event)

by

        if event.name then Event.raise_event(event.name, event) end

New response