CPU 100 % , lagg and crash
CPU 2x 3000
Players Online : 210
I already reporter that, but i had no answer.
in
http://otland.net/437480-post92.html
CPU 100 % , lagg and crash
CPU 2x 3000
Players Online : 210
have dude, Why, When I choose GM can't use all comands?
*****************************************************
Error report - Fri Aug 14 20:27:08 2009
Compiler info - gcc 3.4.5 (mingw special)
Compilation Date - Aug 14 2009 19:58:41
Memory load: 83
Total phys: 6288976 K available phys: 1016032 K
Start time: 14-8-2009 23:3:50
Kernel time: 0:0:2.31
User time: 0:0:24.359
Threads: 3
Exception: 0xc0000005 at eip = 0x470ff4(Container::__startDecaying() - 0x470fda)
eax = 0xb51f0580
ebx = 0x8b0bb40 -> 0xa4d5ca8
ecx = 0xa8317e0 -> 0x79b00c
edx = 0x1
esi = 0x2
edi = 0x6480aec -> 0x973562c
ebp = 0x2d4f888 -> 0x2d4f958
esp = 0x2d4f870 -> 0xa8317e0
efl = 0x10202
---Stack Trace---
From: 0x2d4f870 to: 0x2d50000
0x2d4f870 | 0xa8317e0 -> 0x79b00c
0x2d4f874 | 0x6480ae4 -> 0x6481c3c
0x2d4f878 | 0x2d4f888 -> 0x2d4f958
0x2d4f87c | 0x6480ae4 -> 0x6481c3c
0x2d4f880 | 0xa4dffff -> 0x37007480
0x2d4f884 | 0x6480ae4 -> 0x6481c3c
0x2d4f888 | 0x2d4f958 -> 0x2d4fa48 \\\\\\ stack frame //////
0x2d4f88c | 0x5b2b19 -> 0x102444c7 <-- ret
0x2d4f88c Player::onCreatureAppear(Creature const*, bool)(0x5b2a58)
0x2d4f890 | 0x8b0bb20 -> 0x79c54c
0x2d4f894 | 0xa
0x2d4f898 | 0x8dd0638 -> 0x79b00c
0x2d4f89c | 0x9
0x2d4f8a0 | 0
0x2d4f8a4 | 0x774fc0 -> 0x10d00ff
0x2d4f8a8 | 0x2d4f8bc -> 0x2d4f8f0
0x2d4f8ac | 0x73caf0 -> 0x8b0c6d8d
0x2d4f8b0 | 0x2d4f860 -> 0
0x2d4f8b4 | 0x63c894 -> 0x8de58955
0x2d4f8b8 | 0x774ca6 -> 0x801ffff
0x2d4f8bc | 0x2d4f8f0 -> 0xffffffff
0x2d4f8c0 Npc::getResponse(Player const*, NpcState*, NpcEvent_t)(0x58c8c4)
0x2d4f8dc ScriptEnviroment::resetEnv()(0x511d2c)
0x2d4f910 Player::onCreatureAppear(Creature const*, bool)(0x5b2a58)
0x2d4f934 | 0x27bb7580 -> 0xffffffff
0x2d4f938 | 0x2d4f958 -> 0x2d4fa48
0x2d4f93c | 0x586310 -> 0x8bf45d8b
0x2d4f93c Npc::onCreatureAppear(Creature const*, bool)(0x58622a)
0x2d4f940 | 0xab40028 -> 0x79ac6c
0x2d4f944 | 0xc51b390 -> 0x79b50c
0x2d4f948 | 0x27bb7580 -> 0xffffffff
0x2d4f94c | 0x6480ae4 -> 0x6481c3c
0x2d4f950 | 0x2
0x2d4f954 | 0x6480aec -> 0x973562c
0x2d4f958 | 0x2d4fa48 -> 0x2d4fdc8 \\\\\\ stack frame //////
0x2d4f95c | 0x48b6cf -> 0x8990458d <-- ret
0x2d4f95c Game::placeCreature(Creature*, Position const&, bool, bool)(0x48b40c)
0x2d4f960 | 0xc51b390 -> 0x79b50c
0x2d4f964 | 0xc51b390 -> 0x79b50c
0x2d4f968 | 0x1
0x2d4f96c | 0x2
0x2d4f970 | 0x1
0x2d4f974 | 0xfffffff5
0x2d4f978 | 0xb
0x2d4f97c | 0xfffffff5
0x2d4fa00 Game::placeCreature(Creature*, Position const&, bool, bool)(0x48b40c)
0x2d4fa24 | 0xa44ffe0 -> 0x2d4fa20
0x2d4fa28 | 0x7a8848 -> 0x79ded8
0x2d4fa2c | 0x48b0b7 -> 0x89f04589
0x2d4fa2c Game::getPlayerByAccount(unsigned int)(0x48b04e)
0x2d4fa30 | 0x8d5c5a0 -> 0x1
0x2d4fa34 | 0x6480aec -> 0x973562c
0x2d4fa38 | 0x7a3818 -> 0
0x2d4fa3c | 0x6480ae4 -> 0x6481c3c
0x2d4fa40 | 0x2
0x2d4fa44 | 0x6480aec -> 0x973562c
0x2d4fa48 | 0x2d4fdc8 -> 0x2d4fe08 \\\\\\ stack frame //////
0x2d4fa4c | 0x5cb706 -> 0x6675c084 <-- ret
0x2d4fa4c ProtocolGame::login(std::string const&, unsigned int, std::string const&, unsigned short, unsigned char)(0x5ca478)
0x2d4fa50 | 0x7a30a0 -> 0x7a30a0
0x2d4fa54 | 0xc51b390 -> 0x79b50c
0x2d4fa58 | 0xc51b840 -> 0x27b
0x2d4fa5c | 0
0x2d4fa60 | 0
0x2d4fa64 | 0x2d4fb24 -> 0
0x2d4fa68 | 0x2d4fd90 -> 0x77c3b8
0x2d4fa6c | 0x2d4fb2b -> 0xd4fe2c00
0x2d4fac0 RuneSpell::executeUse(Player*, Item*, PositionEx const&, PositionEx const&, bool, unsigned int)(0x60867c)
0x2d4fb50 ProtocolGame::login(std::string const&, unsigned int, std::string const&, unsigned short, unsigned char)(0x5ca478)
0x2d4fbbc Tile::__getIndexOfThing(Thing const*) const(0x614372)
0x2d4fc08 Connection::onWriteOperation(OutputMessage*, boost::system::error_code const&)(0x46d6a6)
0x2d4fc48 Connection::onWriteOperation(OutputMessage*, boost::system::error_code const&)(0x46d6a6)
0x2d4fc7c Connection::internalSend(OutputMessage*)(0x46cdfc)
0x2d4fc90 Connection::onWriteOperation(OutputMessage*, boost::system::error_code const&)(0x46d6a6)
0x2d4fcf8 Connection::onWriteOperation(OutputMessage*, boost::system::error_code const&)(0x46d6a6)
0x2d4fd2c NetworkMessage::AddPaddingBytes(unsigned int)(0x5786ea)
0x2d4fda4 | 0x7699d710 -> 0xd83c3c9
0x2d4fda8 | 0xccf4eff
0x2d4fdac | 0xbc1fe3cb
0x2d4fdb0 | 0x1ca1d36
0x2d4fdb4 | 0x2a30
0x2d4fdb8 | 0x76979d78 -> 0x909090c3
0x2d4fdbc | 0x6480ae4 -> 0x6481c3c
0x2d4fdc0 | 0x2
0x2d4fdc4 | 0x6480aec -> 0x973562c
0x2d4fdc8 | 0x2d4fe08 -> 0x2d4fea8 \\\\\\ stack frame //////
0x2d4fdcc | 0x6c8074 -> 0x8bf45d8b <-- ret
0x2d4fdd0 | 0x6ab7c98 -> 0x79a368
0x2d4fdd4 | 0x6480ae4 -> 0x6481c3c
0x2d4fdd8 | 0x5f6e83 -> 0x327fc085
0x2d4fdd8 Spawns::Spawns()(0x5f6ce2)
0x2d4fddc | 0x6480aec -> 0x973562c
0x2d4fde0 | 0x2
0x2d4fde4 | 0
0x2d4fde8 | 0xd89b50 -> 0x23ece34
0x2d4fdec | 0x59ea83 -> 0x8bf45d8b
0x2d4fdec OutputMessagePool::sendAll()(0x59e696)
0x2d4fdf0 | 0x5f6e83 -> 0x327fc085
0x2d4fdf0 Spawns::Spawns()(0x5f6ce2)
0x2d4fdf4 | 0x6480ae4 -> 0x6481c3c
0x2d4fdf8 | 0x6ab7c98 -> 0x79a368
0x2d4fdfc | 0x828330 -> 0
0x2d4fe00 | 0xb8
0x2d4fe04 | 0
0x2d4fe08 | 0x2d4fea8 -> 0x2d4ff48 \\\\\\ stack frame //////
0x2d4fe0c | 0x6fed43 -> 0x8984458d <-- ret
0x2d4fe10 | 0x6d8917c -> 0x6480ad8
0x2d4fe14 | 0x2d4fe28 -> 0x6d89178
0x2d4fe18 | 0x7735f26c -> 0x850fc084
0x2d4fe1c | 0x6d89b50 -> 0x77c628
0x2d4fe20 | 0
0x2d4fe24 | 0x6d89b50 -> 0x77c628
0x2d4fe28 | 0x6d89178 -> 0x77c6b8
0x2d4fe2c | 0x27f1ac -> 0x27fabc
0x2d4fe6c OutputMessagePool::startExecutionFrame()(0x59e1c8)
0x2d4fe84 | 0xfffffffe
0x2d4fe88 | 0x200
0x2d4fe8c | 0
0x2d4fe90 | 0x4a85f2c9
0x2d4fe94 | 0xb40200
0x2d4fe98 | 0x2d40000
0x2d4fe9c | 0x828330 -> 0
0x2d4fea0 | 0xb8
0x2d4fea4 | 0
0x2d4fea8 | 0x2d4ff48 -> 0x2d4ff80 \\\\\\ stack frame //////
0x2d4feac | 0x60f5d8 -> 0x898c558b <-- ret
0x2d4feac Dispatcher::dispatcherThread(void*)(0x60f42e)
0x2d4feb0 | 0x6d89178 -> 0x77c6b8
0x2d4feb4 | 0xffffffff
0x2d4feb8 | 0x2
0x2d4febc | 0x2d4ff38 -> 0x7697a8e0
0x2d4fec0 | 0x7a2fdc -> 0x30a7ca0
0x2d4fec4 | 0x4e81bba3
0x2d4fec8 | 0x6d89a60 -> 0x77c6d0
0x2d4fecc | 0x6d89a60 -> 0x77c6d0
0x2d4ff00 Dispatcher::dispatcherThread(void*)(0x60f42e)
0x2d4ff24 | 0x2d4ff70 -> 0x2d4ffc4
0x2d4ff28 | 0x481ec0 -> 0x57e58955
0x2d4ff28 _SEHHandler(_EXCEPTION_RECORD*, void*, _CONTEXT*, void*)(0x481ec0)
0x2d4ff2c | 0
0x2d4ff30 | 0x828770 -> 0
0x2d4ff34 | 0x2d4ff80 -> 0x2d4ff88
0x2d4ff38 | 0x7697a8e0 -> 0x5ec68b5f
0x2d4ff3c | 0x828330 -> 0
0x2d4ff40 | 0
0x2d4ff44 | 0
0x2d4ff48 | 0x2d4ff80 -> 0x2d4ff88 \\\\\\ stack frame //////
0x2d4ff4c | 0x769d9e04 -> 0x90abeb59 <-- ret
0x2d4ff50 | 0x7a2fc0 -> 0xbe9f20
0x2d4ff54 | 0x2da432d5
0x2d4ff58 | 0
0x2d4ff5c | 0
0x2d4ff60 | 0x828330 -> 0
0x2d4ff64 | 0x2d4ff54 -> 0x2da432d5
0x2d4ff68 | 0x2d4ff54 -> 0x2da432d5
0x2d4ff6c | 0x2d4ffc4 -> 0x2d4ffe4
0x2d4ff70 | 0x2d4ffc4 -> 0x2d4ffe4
0x2d4ff74 | 0x769924b5 -> 0x8b55ff8b
0x2d4ff78 | 0x59ed536d
0x2d4ff7c | 0
0x2d4ff80 | 0x2d4ff88 -> 0x2d4ff94 \\\\\\ stack frame //////
0x2d4ff84 | 0x769d9eb8 -> 0x909090cc <-- ret
0x2d4ff88 | 0x2d4ff94 -> 0x2d4ffd4
0x2d4ff8c | 0x7589e4a5 -> 0x815ff50 <-- ret
0x2d4ff90 | 0x828330 -> 0
0x2d4ff94 | 0x2d4ffd4 -> 0x2d4ffec \\\\\\ stack frame //////
0x2d4ff98 | 0x773acfed -> 0xfefc45c7 <-- ret
0x2d4ff9c | 0x828330 -> 0
0x2d4ffa0 | 0x3b609907
0x2d4ffa4 | 0
0x2d4ffa8 | 0
0x2d4ffac | 0x828330 -> 0
0x2d4ffb0 | 0
0x2d4ffb4 | 0
0x2d4ffb8 | 0
0x2d4ffbc | 0x2d4ffa0 -> 0x3b609907
0x2d4ffc0 | 0
0x2d4ffc4 | 0x2d4ffe4 -> 0xffffffff
0x2d4ffc8 | 0x773e2926 -> 0x8b55ff8b
0x2d4ffcc | 0x4e81bceb
0x2d4ffd0 | 0
0x2d4ffd4 | 0x2d4ffec -> 0 \\\\\\ stack frame //////
0x2d4ffd8 | 0x773ad1ff -> 0x909090cc <-- ret
0x2d4ffdc | 0x769d9e59 -> 0x8b55ff8b
0x2d4ffe0 | 0x828330 -> 0
0x2d4ffe4 | 0xffffffff
0x2d4ffe8 | 0x773cd377 -> 0x8b55ff8b
0x2d4ffec | 0 \\\\\\ stack frame //////
0x2d4fff0 | 0 <-- ret
0x2d4fff4 | 0x769d9e59 -> 0x8b55ff8b
0x2d4fff8 | 0x828330 -> 0
0x2d4fffc | 0
*****************************************************
<event type="login" name="PlayerLogin" event="script" value="login2.lua"/>
local config = {
seconds = 10, -- in seconds
onlyWithSameIP = "no" -- 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
Very stable server im using this script and it has helped me alot:
Code:<event type="login" name="PlayerLogin" event="script" value="login2.lua"/>
Lua:local config = { seconds = 10, -- in seconds onlyWithSameIP = "no" -- 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
what is this script for? I mean, does it fix anything?