[Bug] Alchemy panel crashes on custom item icon

Have trouble running Legend of Grimrock 2 or do you have questions about the purchasing options? Look for help here.
Post Reply
minmay
Posts: 2768
Joined: Mon Sep 23, 2013 2:24 am

[Bug] Alchemy panel crashes on custom item icon

Post by minmay »

If an item you are about to make with the alchemy panel has a gfxAtlas field, this error occurs:

Code: Select all

[string "Gui.lua"]:0: bad argument #1 to 'drawImage' (RenderableTexture expected, got string)
stack traceback:
	[C]: in function 'drawImage'
	[string "Gui.lua"]: in function 'drawItemIcon'
	[string "CraftPotion.lua"]: in function 'previewButton'
	[string "CraftPotion.lua"]: in function 'updatePanel'
	[string "AttackPanel.lua"]: in function 'update'
	[string "AttackPanel.lua"]: in function 'update'
	[string "Gui.lua"]: in function 'draw'
	[string "GameMode.lua"]: in function 'update'
	[string "DungeonEditor.lua"]: in main chunk
	[C]: in function 'xpcall'
	[string "DungeonEditor.lua"]: in function 'preview'
	[string "DungeonEditor.lua"]: in function 'update'
	[string "Grimrock.lua"]: in main chunk
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Post Reply