Add npc and object definition decoding