• 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!

NPCs broken

ZeeBeast

Preferable Beta Tester
Joined
Dec 5, 2013
Messages
206
Reaction score
10
Location
United States
TFS 0.3.6
Okay. So I have a BIG problem with my NPCs.
Every time I try to spawn ANY NPC, this error always comes up
Code:
[07/02/2014 20:56:31] [Error - Npc interface]
[07/02/2014 20:56:31] data/npc/scripts/furniture.lua
[07/02/2014 20:56:31] Description:
[07/02/2014 20:56:31] data/npc/scripts/furniture.lua:1: attempt to index global 'KeywordHandler' (a nil value)
Does anyone have any ideas?
Any help with be appreciated.
 
Last edited:
The reason you got this error is because you used an npc lib folder that wasn't ment for your server (probable from an other datapack).
So the directory in the npc.lua (data/npc/lib/npc.lua) wasn't correct or missing and that's why it can't find the npcsystem files.
The solution for this is adding the right directory: dofile(getDataDir() .. 'npc/lib/npcsystem/npcsystem.lua') at the top of the npc.lua or use the npc lib folder from your server.
 
Now whenever I try to buy something from the NPCs I get this error:
Code:
[08/02/2014 15:42:00] [Error - Npc interface]
[08/02/2014 15:42:00] (Unknown script file)
[08/02/2014 15:42:00] Description:
[08/02/2014 15:42:00] data/npc/lib/npcsystem/modules.lua:1152: bad argument #2 to 'error' (number expected, got string)
[08/02/2014 15:42:00] stack traceback:
[08/02/2014 15:42:00]    [C]: in function 'error'
[08/02/2014 15:42:00]    data/npc/lib/npcsystem/modules.lua:1152: in function 'callbackOnBuy'
[08/02/2014 15:42:00]    data/npc/lib/npcsystem/npchandler.lua:263: in function 'processModuleCallback'
[08/02/2014 15:42:00]    data/npc/lib/npcsystem/npchandler.lua:440: in function 'onBuy'
[08/02/2014 15:42:00]    data/npc/lib/npcsystem/modules.lua:1293: in function <data/npc/lib/npcsystem/modules.lua:1292>
I can only buy and sell about half of everything. Anyone have any ideas on how to fix?
 
Use this modules (data/npc/lib/npcsystem/modules.lua)
http://www.speedy*****malware.localhost/sKZdS/modules.lua
 
Back
Top