DropTheCheapestThing

DropTheCheapestThing

129k Downloads

Adding an invalid item bricks addon

cdmichaelb opened this issue · 2 comments

commented

1x DropTheCheapestThing/config.lua:14: bad argument #1 to 'format' (string expected, got nil)
[string "=[C]"]: in function `format'
[string "@DropTheCheapestThing/config.lua"]:14: in function <DropTheCheapestThing/config.lua:9>
[string "@DropTheCheapestThing/config.lua"]:68: in function <DropTheCheapestThing/config.lua:19>
[string "@DropTheCheapestThing/config.lua"]:172: in function <DropTheCheapestThing/config.lua:76>

Locals:
(*temporary) = "%s %s"
(*temporary) = nil
(*temporary) = nil
(*temporary) = "string expected, got nil"

Replication:
Try to add an item to exempt list, but just press ok (or maybe something invalid)

commented

The error was because it was assuming that GetItemInfoInstant would have to return string values, and wasn't considering the possibility of a non-existent item. This specifically needed you to enter a number that didn't correspond to an actual game item -- 1 would do it.

commented