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

TFS 1.X+ NPC Gorn Crash Server

QuebradaZN

Member
Joined
May 5, 2019
Messages
43
Solutions
3
Reaction score
6
Good Evening, Recently I've been experiencing serious problems with drops in my ot caused by players, this afternoon I received this log
From what I've seen the player do, it stays in a sqm before the port, closes the port and goes to the same sqm as the npc, I don't know what it says to the npc that the server crashes


Thanks in advance
 
Do you know if this is an issue specifically with this "Gorn" npc of yours, or if it can be done with any NPC?

If it only works with Gorn, then the question is: what makes him so special? What type of functions does he run? Can you share the XML / LUA files of Gorn?

Also, do you get any lua error messages in the server log before the server shuts down? If it just closes for you, run the forgottenserver.exe through cmd to see the crash messages.

edit*
Nvm, I dunno. I read the server crash some more and I realized that I don't know anything.. so, nvm me. Hope you solve it and hope it is not related to all NPCs, and if so, hope it gets fixed
 
Do you know if this is an issue specifically with this "Gorn" npc of yours, or if it can be done with any NPC?

If it only works with Gorn, then the question is: what makes him so special? What type of functions does he run? Can you share the XML / LUA files of Gorn?

Also, do you get any lua error messages in the server log before the server shuts down? If it just closes for you, run the forgottenserver.exe through cmd to see the crash messages.

edit*
Nvm, I dunno. I read the server crash some more and I realized that I don't know anything.. so, nvm me. Hope you solve it and hope it is not related to all NPCs, and if so, hope it gets fixed
From what I saw him and frodo, I put "walkable 0" in them, I'll see if it solved, I need to wait!
 
Code:
2022-01-12 14:30:44 -  #1  0x00005555555cb102 in Player::sendCreatureTurn (this=0x0, creature=0x7fffc2dfb8c0) at /home/otserver/src/player.h:993
2022-01-12 14:30:44 -  No locals.
2022-01-12 14:30:44 -  #2  0x00005555555e9604 in Game::internalCreatureTurn (this=0x555555b64400 <g_game>, creature=0x7fffc2dfb8c0, dir=DIRECTION_SOUTH) at /home/otserver/src/game.cpp:5104
game.cpp sends new direction of NPC to players. What players? Probably it takes list from g_game.getSpectators(..) to send it to all players that 'see NPC'.
On that list of players is NULL (this=0x0 means it's call to function sendCreatureTurn on NULL) :
Code:
Player::sendCreatureTurn (this=0x0

I saw that bug on some otservbr server. I could not find reason, so in Game::getSpectators I added filter that remove NULLs from list before it returns result.
It was not related to any NPC or monster. It just happened randomly. More players = more crashes with call to some function on NULL player.
 
Back
Top