• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved TFS 0.3.6 - NPC error

Loth Gena

Roxeria 8.60 Developer
Joined
Feb 5, 2014
Messages
245
Reaction score
23
Location
UK
Hello, I got an engine which works fine except my npc's don't work. To test I created my own small map and when I add a NPC (using the new RME beta) I get this error when starting the server:

[28/08/2014 18:33:10] [Error - Npc interface]
[28/08/2014 18:33:10] data/npc/scripts/Benjamin.lua
[28/08/2014 18:33:10] Description:
[28/08/2014 18:33:10] data/npc/scripts/Benjamin.lua:1: attempt to index global 'KeywordHandler' (a nil value)
[28/08/2014 18:33:10] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/Benjamin.lua

It says it cannot load the script but I have it in data/npc/scripts ? o_O
someone know what is going on?
 
This means it doesn't load the npcsystem files, you probable used a 0.4 datapack, then you can add this in the npc.lua at the top.
Code:
dofile(getDataDir() .. 'npc/lib/npcsystem/npcsystem.lua')

You can also use the npcsystem (data/npc/lib) from the default TFS 0.3.6 datapack.
 
Back
Top