PDA

View Full Version : an npc server error


avatard
21.01.2006, 22:51
could use a bit of help here

01/22/2006 00:06:xx.xx6, [ScriptEngine.cpp][451] FETCH_I : Not a pointer type on the top of the stack.
01/22/2006 00:06:xx.xx6, [ScriptEngine.cpp][453] Event[TELEPORT_REQUESTED][28], Handler[mass_teleporter], nPC[4], nSP[1]
01/22/2006 00:06:xx.xx6, --- call stack ---
01/22/2006 00:06:xx.xx6, [0] void IOThread_common(void *arglist)
01/22/2006 00:06:xx.xx6, [1] void CPacket::OnIOCallback(BOOL bSuccess, DWORD dwTransferred, LPOVERLAPPED lpOverlapped)
01/22/2006 00:06:xx.xx6, [2] cpacket::oniocallback_funccall
01/22/2006 00:06:xx.xx6, [3] bool TeleportRequestedEventPacket(CSocket* pSocket, const unsigned char*pPacket)
01/22/2006 00:06:xx.xx6, [4] int CNPC::HandleEvent(CNPCEvent* event)
01/22/2006 00:06:xx.xx6, [5] int InterlockedHandleEvent(CNPCEvent* pEvent, CAIParameter* pParameter)
01/22/2006 00:06:xx.xx6, [6] virtual int HandleEvent(CNPCEvent* pEvent, CAIParameter* pParameter)
01/22/2006 00:06:xx.xx6, [7] virtual int HandleEvent(CNPCEvent* pEvent, CAIParameter* pParameter, CAIProperty* pProp)
01/22/2006 00:06:xx.xx6, [8] int CScriptEngine::RunNPCScript(CNPCEvent* pNPCEvent, CNPCEventHandler *pHandler, CScriptBinCode *pCode, CAIParameter *pParam, CAIProperty *pProp)
01/22/2006 00:06:xx.xx6, [ScriptEngine.cpp][606] [BRANCH_FALSE] floattype



the mass_teleporter ai is supposedly a stock one (at least it won't diff with C1 files I keep for keeping track of changes).

happened with about 1600 users online while server restarted during a siege.

Flamestrike
21.01.2006, 23:46
AI dude.

kvoxi
22.01.2006, 00:10
ERROR:
"[BRANCH_FALSE] floattype":
...
<some_code_that_put_in_the_stack_float_value>
branch_false L<number>
...

check ur ai-code before branch_false command