• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Random Crashes

exique

Natala-ot.com
Joined
Sep 28, 2008
Messages
1,673
Reaction score
25
Location
Sweden
I'm using tfs 0.3.5..
And the server just randomly crashes :(
I dont know why..

Any one knows anything that is very common in this matter?
Reputation!:thumbup:
 
Test this in config.lua
Code:
  bufferMutedOnSpellFailure = "yes"

Test this in data/creaturescripts/scripts

LUA:
local config = {
	seconds = 2,		-- in seconds
	onlyWithSameIP = "yes"	-- will work for all players ("no"), or only check player with same IP? ("yes")
}

--DONT MODIFY
config.onlyWithSameIP = getBooleanFromString(config.onlyWithSameIP)

local m_lastLogin, m_lastIP = 0, 0

function onLogin(cid)
	local timeNow, playerIP = os.time(), getPlayerIp(cid)
	if(m_lastLogin + config.seconds >= timeNow and (config.onlyWithSameIP == FALSE or m_lastIP == playerIP)) then
		return FALSE
	end

	m_lastIP = playerIP
	m_lastLogin = timeNow
	return TRUE
end

and this in data/creaturescripts/creaturescripts.xml

Code:
<event type="login" name="gtfoMC" event="script" value="gtfoMC.lua" />
 
What difference does that make..?

Im talking about crashes :S

When I crashes I get a new window called (Small) and it says 161 and I can press ok..
-.-'
What's the problem?
This keeps happening each hour :(

I recently upgraded it from 0.3.4pl2 -> 0.3.5 pl1.. Any help?

And I get this sometimes:
[19/08/2009 20:10:36] [C]: in function 'doSendMagicEffect'
[19/08/2009 20:10:36] data/movements/scripts/walkback.lua:5: in function <data/movements/scripts/walkback.lua:1>
 
Last edited by a moderator:
@sizaro

fail...lol!

However, I dont know why it crashed(it does for me too sometimes). Also there is one already known way how to crash any tfs 0.3.5 using login server, so maybe someone is just crashing your server with that method when he gets boored. Elf is gone somewhere, but other developers can't fix that bug, so all we can do is w8 :p
 
Put the server on a debugger wait till it crash and post the backtrace here and ill try to help you....

On linux:
ulimit -C unlimited <--- if is your first time debugging
then make cd to your tfs directory and then type:
gdb
file theforgottenserver
run
and when the server crash type
bt
the output of 'bt' is the thing we need

On Windows:
compile with -D__EXCEPTION_TRACER__ and when the server crash it will generate a file named report.txt (if im not wrong) copy the content of this file and paste it here.....
 
Last edited:
@sizaro

fail...lol!

However, I dont know why it crashed(it does for me too sometimes). Also there is one already known way how to crash any tfs 0.3.5 using login server, so maybe someone is just crashing your server with that method when he gets boored. Elf is gone somewhere, but other developers can't fix that bug, so all we can do is w8 :p

What's fail? You?
 
Back
Top