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

NPC bug that makes my server laggie

Znote

<?php echo $title; ?>
Staff member
Global Moderator
Premium User
Joined
Feb 14, 2008
Messages
7,030
Solutions
256
Reaction score
2,124
Location
Norway
GitHub
Znote
I have been investigating why my server is freezing and laggy, since we noticed that server 1 was laggy, and server 2 was totaly lag free, how could this happen?

Since its only one of the servers we figured the problem would not be the internett, but the server.

Im using TFS rev 844 from the 0.2 series.

But I found out why this is happening, I get an error message:
Code:
[09/06/2008  03:54:54] Lua Script Error: [Npc interface] 
[09/06/2008  03:54:54] data/npc/scripts/loot.lua:onCreatureSay

[09/06/2008  03:54:55] data/global.lua:451: Could not add money to Shitler(40000gp)
In this case we got Shitler who sells an item for 40000gp. In-game, he DOES get the money, even though this error says it dosn't, so thats not the problem, the problem is:

When this error message happens, my CPU on my computer goes straight UP, and freeze the server, (only for 0.1 - 0.5 sec) But as my server is getting popular, theese freezes happens all the time. And its innoying.

Any suggestions for how to fix this?

I'll try to remake the NPC, hopefully it will go better then.
 
Yup, by having continous errors in console my computer freezes aswell until somehow I close the server engine
 
Use 0.2.13, plx.
It has been fixed - you need to remove addMoney from global.lua and place there a fix. Basicly, you should replace global.lua :p
 
Clary <3<3<3

I can chill out with 2.13 a bit =D
 
Want me to do for u the latest rev? It got parcel/letter bug fix.
 
Back
Top