0.4
Good afternoon everyone,
I'm encountering an issue that's affecting all the NPCs on my server. When I launch the server, the following error message appears for all the NPCs on the map:
After researching the error, I found a thread with essentially the same problem: Windows - data/npc/lib/npcsystem/main.lua (https://otland.net/threads/data-npc-lib-npcsystem-main-lua.246955/). However, after creating a main.lua file in npc/lib/npcsystem/, the NPCs spawn on the map and deliver their initial greeting or similar message from the XML, but when the message needs to use something from the Lua script in the scripts folder, the NPC stops responding. This issue occurs with all NPCs on the map. I've tried changing the script path in the XML from script="something" to script="data/npc/scripts/something.lua", but I'm still facing issues. Also, after saying 'hi', the NPC doesn't recognize 'bye' or any other keywords from the player. They only seem to speak the greeting message.
I'm looking forward to any help, and thank you very much.
Good afternoon everyone,
I'm encountering an issue that's affecting all the NPCs on my server. When I launch the server, the following error message appears for all the NPCs on the map:
data/npc/scripts/genericnpc:1: attempt to index global 'KeywordHandler' (a nil value)
cannot open data/npc/lib/npcsystem/main.lua: No such file or directory
After researching the error, I found a thread with essentially the same problem: Windows - data/npc/lib/npcsystem/main.lua (https://otland.net/threads/data-npc-lib-npcsystem-main-lua.246955/). However, after creating a main.lua file in npc/lib/npcsystem/, the NPCs spawn on the map and deliver their initial greeting or similar message from the XML, but when the message needs to use something from the Lua script in the scripts folder, the NPC stops responding. This issue occurs with all NPCs on the map. I've tried changing the script path in the XML from script="something" to script="data/npc/scripts/something.lua", but I'm still facing issues. Also, after saying 'hi', the NPC doesn't recognize 'bye' or any other keywords from the player. They only seem to speak the greeting message.
I'm looking forward to any help, and thank you very much.