Originally Posted by
Conspiracy
When opening a NPC with token set this errror this error if thrown..
[3/11/2024 1:01:38 PM] [WARNING] template: Could not find template (image_refblock) in class (npc_main_humanoid)
[3/11/2024 1:01:38 PM] [ERROR] Script execution error: [string "MGT2:common/scripts/images_npc.lua"]:18: attempt to index global 'ctrl' (a nil value)
[3/11/2024 1:01:38 PM] [WARNING] template: Could not find template (image_refblock) in class (npc_main_humanoid)
[3/11/2024 1:01:38 PM] [ERROR] Script execution error: [string "MGT2:common/scripts/images_npc.lua"]:18: attempt to index global 'ctrl' (a nil value)
[3/11/2024 1:01:38 PM] [WARNING] template: Could not find template (image_refblock) in class (npc_main_humanoid)
[3/11/2024 1:01:38 PM] [ERROR] Script execution error: [string "MGT2:common/scripts/images_npc.lua"]:18: attempt to index global 'ctrl' (a nil value)
If the NPC doesn't have a token it opens fine.
Note: Just noticed that it's not happening with all NPC's. Also the Core Rule Book and Pirates of Drinax - Book 1 are the only modules active.