Closed slippycheeze closed 4 years ago
PS: I have a save with the reproduction, but not details on what mod or whatever is triggering this oddity. I can say:
local function match_query(name, translation, ignore_unique)
if not (translation or translations[name]) then
return false
end
return item_data[name] and (ignore_unique or not results[name]) and (show_hidden or not item_data[name].hidden)
and string.find(string.lower(translation or translations[name]), query)
end
Could you send me the save file where this occured, if you have access to it?
I also got the same error, attach my save file. It is determined that it is a conflict caused by other mods I have opened. I can enable QuickItemSearch to use it normally https://drive.google.com/file/d/1KEyqpgho7bSuORp2hgJSETeyg8IjZIpO/view?usp=sharing
Sorry for the delay, this has been fixed for the next release. Turns out I would just not include translations that failed, and some items in one of the mods your using aren't localised properly, so their "translations" were missing, causing the nil
and therefore the crash.
I'm not real sure how this can happen, but:
I guess a nil check is needed. Possibly also wrapping the handler in a
pcall
indispatch_handlers
, so that one bug doesn't kill the entire game session...