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

Solved Console Error NPC's

nefinoo

Carnage.flv
Joined
Sep 11, 2010
Messages
556
Solutions
1
Reaction score
64
Location
Lo Mochis, Sinaloa
[22/10/2014 18:22:34] [Error - Npc interface]
[22/10/2014 18:22:34] data/npc/scripts/promotion.lua
[22/10/2014 18:22:34] Description:
[22/10/2014 18:22:34] data/npc/scripts/promotion.lua:1: attempt to index global 'KeywordHandler' (a nil value)
[22/10/2014 18:22:34] [Warning - NpcScript::NpcScript] Cannot load script: data/npc/scripts/promotion.lua


I had to delete all npcs from my map
 
This means the server doesn't load the npcsystem files. You can use the npcsystem (data/npc/lib) from the default datapack of your server or if you use TFS 0.3.6 with a 0.4 datapack you can also do add this at the top of the npc.lua (data/npc/lib/npc.lua).
Code:
dofile(getDataDir() .. 'npc/lib/npcsystem/npcsystem.lua')
 
Now I get this error, along with the above error

QBYEemX.png


k1k9kD8.png
 
Last edited:
I add that and when i put

-- Include the Advanced NPC System
dofile(getDataDir() .. 'npc/lib/npcsystem/npcsystem.lua')

the console sendme error, and when i quit this:


-- Include the Advanced NPC System
dofile(getDataDir() .. 'npc/lib/npcsystem/npcsystem.lua')

the console rune but can load all npcs

I am using cryingdamson 0.3.6 (8.60) V8.2

you know anything alse more stable for 8.6?
 
Last edited by a moderator:
Replace the entire lib folder with the one I posted, it's for TFS 0.3.6.
The crash doesn't have something to do with the server, could be something with the datapack or dll files.
If the server is crashing randomly on startup, even without errors you can try to use a different libmysql.dll (if you use MySQL).
http://www.speedy*****malware.localhost/4bXVm/libmysql.dll
 
Back
Top