View Full Version : [help]l2npc error
hey guys,
i havnent seen anyone with that error ,
any help would do,
when l2npc is fully loaded after few minutes its start spaming these lines
over and over again:
ecompiledHeaderDB.cpp][269] invalid skill_name_id[-1] id[-1] level[255]
02/04/2007 05:30:xx.xx0, [.\PrecompiledHeaderDB.cpp][287] invalid skill_name_id[-1] id[-1] level[255]
02/04/2007 05:31:xx.xx3, [.\PrecompiledHeaderDB.cpp][269] invalid skill_name_id[-1] id[-1] level[255]
02/04/2007 05:31:xx.xx3, [.\PrecompiledHeaderDB.cpp][287] invalid skill_name_id[-1] id[-1] level[255]
02/04/2007 05:32:xx.xx9, [.\Pr
i have searched all the forum for the cure but none found
thanks in advance
oops sorry for posting here i was sure im in the help section :|
please move post , sorry.
re-Asking for help still cant figure it out thx
Правится след образом:
В АИ поменять вот это
class 1 niniel_spirits_wiz : raid_wizard
class_end
class 1 niniel_spirits_heal : raid_healer
class_end
на вот это
class 1 niniel_spirits_wiz : raid_fighter
class_end
class 1 niniel_spirits_heal : raid_zzoldagu
class_end
thx for replying although i dont understand russian,
anyways what i figured out you are trying to say
is replacing the lines you wrote above with the lines your wrote
at the bottom of your post , well i did that and still get same error
Pls someone help this error is spaming every 5 sec i cant stand it
it is raid boss/raid privates skills issue.
in most case (on my server) it about raid privates with raid_archer AI
most of them LongRangePhysicalSpecial_a skill not defined in npc_data so default skill_id -1 used.
class raid_archer : raid_private_standard
{
parameter:
int LongRangePhysicalSpecial_a = -1;
...
just add some boss_stun_shot or boss_power_shot skills to them in npcdata
it is raid boss/raid privates skills issue.
in most case (on my server) it about raid privates with raid_archer AI
most of them LongRangePhysicalSpecial_a skill not defined in npc_data so default skill_id -1 used.
class raid_archer : raid_private_standard
{
parameter:
int LongRangePhysicalSpecial_a = -1;
...
just add some boss_stun_shot or boss_power_shot skills to them in npcdata
Or modify default value in AI...
it is raid boss/raid privates skills issue.
in most case (on my server) it about raid privates with raid_archer AI
most of them LongRangePhysicalSpecial_a skill not defined in npc_data so default skill_id -1 used.
class raid_archer : raid_private_standard
{
parameter:
int LongRangePhysicalSpecial_a = -1;
...
just add some boss_stun_shot or boss_power_shot skills to them in npcdata
I have this skills and i checked AI and npcdata with npcaichk tool. No this error. But -1 error have on server. Have idea?
I have this skills and i checked AI and npcdata with npcaichk tool
what kind of tool? selfwritten or public?
BTW after adding LongRangePhysicalSpecial_a to all raid_archer raid privates error [-1] skill disappeared and i dont have this error for more than 45 days. and raid archers act more natural making stunshots etc :)
thanks guys ,
you managed to pin point teh problem :D ,
i was checking if thats same as my problem by editing AI.obj
class raid_archer : raid_private_standard
{
parameter:
int LongRangePhysicalSpecial_a = -1;
...
...
...
}
replaced that -1 value with some stun shot skill id ,
and the results........damn clean npc server :D
at first i thought it got stuck or something
but then i realized thats how a working npc server should look like
error spam free!!!
thanks x1000
should add this error and solution into hf error thread :D
OLD>>
class 1 niniel_spirits_wiz : raid_wizard
class_end
class 1 niniel_spirits_heal : raid_healer
class_end
NEW>>
class 1 niniel_spirits_wiz : raid_fighter
class_end
class 1 niniel_spirits_heal : raid_zzoldagu
class_end
OLD change to NEW
OLD>>
class 1 niniel_spirits_wiz : raid_wizard
class_end
class 1 niniel_spirits_heal : raid_healer
class_end
NEW>>
class 1 niniel_spirits_wiz : raid_fighter
class_end
class 1 niniel_spirits_heal : raid_zzoldagu
class_end
OLD change to NEW
yeah i did try that thanks for the advice but it didnt work :(
although what the other guys suggested on this thread did work :D
but as we speak i see new error msgs yet unsolved in forum ,
saw few posts about it but no real solution
so maybe some one can help me with that as well:
PC.cpp][6513] Invalid Despawn() called count[2], npc[corrupted_guard]
02/08/2007 17:09:xx.xx5, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[corrupted_guard_a]
02/08/2007 17:09:xx.xx5, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[corrupted_knight]
02/08/2007 17:09:xx.xx2, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[corrupted_knight]
02/08/2007 17:09:xx.xx2, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[reanimated_knight]
02/08/2007 17:09:xx.xx9, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[corrupted_guard]
i get many more of this kind now :| any suggestions?
thx for everyone taking your time looking at this , love u all
OLD>>
class 1 niniel_spirits_wiz : raid_wizard
class_end
class 1 niniel_spirits_heal : raid_healer
class_end
NEW>>
class 1 niniel_spirits_wiz : raid_fighter
class_end
class 1 niniel_spirits_heal : raid_zzoldagu
class_end
OLD change to NEW
It's NO fix. I have it and errors have too. You think what this one bugged npc? No.
what kind of tool? selfwritten or public?
BTW after adding LongRangePhysicalSpecial_a to all raid_archer raid privates error [-1] skill disappeared and i dont have this error for more than 45 days. and raid archers act more natural making stunshots etc :)
kind? Good tool, check npcdata params and existing this in ai. I do today this module for my tool too. Same results.
One idea - you have bad Ai.obj. Maybe to you help this fix (from YakudZe).
But.. i have hand and brain, but i cant check all npc who have not param in npcdata but have -1 in ai class. If you can find it - write here.
But.. if you change -1 to skillnumber but you made error too. Each npc have different skills for "LongRangePhysicalSpecial_a".
Huh... I think what need write reverse check from ai.obj to npcdata... But it no good way.
fuck... bug found and fixed. Get brain and hand and...
open ai.obj and npcdata
find in ai.obj ".... : raid_archer"
and check this npc in npcdata for exist this param. This all...
But one problem. This skill no one... have "power_shot.." have "stun_shot" and different skill_level. What need to set in each npc and no will do error? :)
fuck... bug found and fixed. Get brain and hand and...
open ai.obj and npcdata
find in ai.obj ".... : raid_archer"
and check this npc in npcdata for exist this param. This all...
But one problem. This skill no one... have "power_shot.." have "stun_shot" and different skill_level. What need to set in each npc and no will do error? :)
i was checking npcdata and it looks like all npcs have this param :|
just changed the default parameter in ai.obj from -1 to something else
:P
fuck... bug found and fixed. Get brain and hand and...
open ai.obj and npcdata
find in ai.obj ".... : raid_archer"
and check this npc in npcdata for exist this param. This all...
But one problem. This skill no one... have "power_shot.." have "stun_shot" and different skill_level. What need to set in each npc and no will do error? :)
I told this in very first post in this thread :) maybe my english too bad?
Я же об этом и сказал сразу :) и надо не в AI править этот -1 на чтото, а именно в нпсдате добавить рейд арчерам скиллы. я добавил "наугад" кому стан кому повершот, на основе левела босса и уровня скилла.
TehUb3r, you have to edit npcdata, not modify default value in ai.obj. because raid_archer have very different levels ~30-60 it will be strange if they all use same skill.
about:
Invalid Despawn() called count[2]
problem in party_private and party_wizard class. two timers 1004 and 1006 have same operation conditions and both try to despawn mob.
EventHandler CREATED()
{
myself->AddTimerEx(1005,( 120 * 1000 ));
myself->AddTimerEx(1006,20000);
super;
}
EventHandler TIMER_FIRED_EX(timer_id)
{
if( timer_id == 1005 )
{
if( myself->InMyTerritory(myself.sm) == 0 && myself.boss.alive != 0 && myself.p_state != 3 )
{
myself->InstantTeleport(myself.sm,myself->FloatToInt(myself.boss.x),myself->FloatToInt(myself.boss.value),myself->FloatToInt(myself.boss.z));
RemoveAllAttackDesire();
}
myself->AddTimerEx(1005,( 120 * 1000 ));
}
if( timer_id == 1006 )
{
if( myself.boss.alive == 0 )
{
if( myself.p_state != 3 && myself.p_state != 10 )
{
Despawn();
return;
}
}
myself->AddTimerEx(1006,20000);
}
if( 1004 == timer_id )
{
if( myself.p_state != 3 && myself.p_state != 10 )
{
Despawn();
}
else
{
myself->AddTimerEx(1004,20000);
}
}
super;
}
to fix it just remove 1006 or 1004 timer from ai thats all :).
GL with ai researching, thanks to sauron we have perfect decompiler.
thx again it looks realy n33t with the nasc code but i have no idea
how to find that timer on the ai.obj can u give an example of what exactly i need to remove?
i did re search the npcdata.txt in those are my findings if anyone will encounter this error so u might first wanna check those lines
this list of mobs:
for hekatons_scout
for shadow_knight_d_arc
redeye_bowman
enmity_archer
kabed_archer
gwindorr_s_guard
was missing something like this paramater:
npc_ai={[redeye_bowman];{[LongRangePhysicalSpecial_a]=@s_power_shot_boss_a_2a_4}}
all they had was this:
npc_ai={[redeye_bowman]}
i did re search the npcdata.txt in those are my findings if anyone will encounter this error so u might first wanna check those lines
this list of mobs:
for hekatons_scout
for shadow_knight_d_arc
redeye_bowman
enmity_archer
kabed_archer
gwindorr_s_guard
was missing something like this paramater:
npc_ai={[redeye_bowman];{[LongRangePhysicalSpecial_a]=@s_power_shot_boss_a_2a_4}}
all they had was this:
npc_ai={[redeye_bowman]}
no all mobs you are found
npc_begin zzoldagu 10300 [hekatons_scout] level=79
npc_begin zzoldagu 10344 [shadow_knight_d_arc] level=80
npc_begin zzoldagu 10364 [sharuks_sniper] level=22
npc_begin zzoldagu 10389 [redeye_bowman] level=34
npc_begin zzoldagu 10413 [necrosentinel_archer] level=46
npc_begin zzoldagu 10446 [enmity_archer] level=64
npc_begin zzoldagu 10477 [kabed_archer] level=54
npc_begin zzoldagu 10491 [gwindorr_s_guard] level=39
Need set correct skill.
astrid, how you find good skill for each mob? (where stun, where power, where 2_... where 4_... ?
i have changed each raid archer mob skill
by taking other similar raid archer that have a skill on the npcdata
dont know which exact skill the mob should have :s
also looking for more details on the despawn() errors im not a pro like you astrid :D
(BUMP*)
asking from anyone to give me an example with AI.obj code of how to remove that timer Astrid was talking about before in this thread.
the timer that cause these Despawn() erros.
or whatever it is ,
thanks for all who helped by now and all the will help in future
take care.
(BUMP*)
asking from anyone to give me an example with AI.obj code of how to remove that timer Astrid was talking about before in this thread.
the timer that cause these Despawn() erros.
or whatever it is ,
thanks for all who helped by now and all the will help in future
take care.
what hard? :)
1. made decompile for bug class
EventHandler CREATED()
{
myself->AddTimerEx(1005,( 120 * 1000 ));
myself->AddTimerEx(1006,20000);
super;
}
EventHandler TIMER_FIRED_EX(timer_id)
....
if( timer_id == 1006 )
{
if( myself.boss.alive == 0 )
{
if( myself.p_state != 3 && myself.p_state != 10 )
{
Despawn();
return;
}
}
myself->AddTimerEx(1006,20000);
}
if( 1004 == timer_id )
{
if( myself.p_state != 3 && myself.p_state != 10 )
{
Despawn();
}
else
{
myself->AddTimerEx(1004,20000);
}
}
super;
}
EventHandler PARTY_ATTACKED(attacker,private,damage,f0)
...
EventHandler PARTY_DIED(private)
{
if( private == myself.boss )
{
myself->AddTimerEx(1004,20000);
}
}
one metod for fix (have 3 metods) - remove 1004 timer, because this timer made same what do timer 1006.
You need find all start 1004 timer and code for using 1004 (optional)
2. start 1004 timer in "EventHandler PARTY_DIED(private)"
very easy. This handler have only this timer.
2.1. delete full Handler PARTY_DIED
2.2. how to find enter to 1004 timer in TIMER_FIRED_EX?
easy too. I dont know ai code. but.. you know what need to find! 1004! sure!
open class in notepad and finding 1004. Sure you must find this
push_const 1004
now you need must have Basic/Common knowledge of AI code and brain. What need to delete? See full code around this 1004 value
push_event // myself
push_const 704
add
fetch_i
push_const 1006
push_const 20000
func_call 184680487 // func[AddTimerEx]
shift_sp -2
shift_sp -1
L10249
push_event // timer_id
push_const 236
add
fetch_i4
push_const 1004
equal
branch_false L10256
no hard to understund what upper code - timer 1006 (see decoded code). this block ended with shift_cp... Need code start from L10249. We found start block for delete.
Now you must find end block. NO hard to... Block end with despawn and ... "super;" = "exit_handler"
jump L10260
L10259
push_event // myself
push_const 704
add
fetch_i
push_const 1004
push_const 20000
func_call 184680487 // func[AddTimerEx]
shift_sp -2
shift_sp -1
L10260
L10256
call_super
handler_end
Bingo again!
Code end with shift_sp too.
All.. you must delete block but check L10xxx labels for your upper code. Example, L10260 uses from deleted block. But L10256 uses upped. You must save this label
Done.
:)
THANKS HF :P
if i understand right what you are saying is this
if i got code like this:
L10251
push_event // myself
push_const 704
add
fetch_i
push_const 1006
push_const 20000
func_call 184680487 // func[AddTimerEx]
shift_sp -2
shift_sp -1
L10249
push_const 1004
push_event // timer_id
push_const 236
add
fetch_i4
equal
branch_false L10256
L10255
push_event // myself
push_const 704
add
fetch_i // p_state
push_const 280
add
fetch_i4
push_const 3
not_equal
push_reg_sp
fetch_i
branch_false L10257
push_event // myself
push_const 704
add
fetch_i // p_state
push_const 280
add
fetch_i4
push_const 10
not_equal
and
L10257
branch_false L10259
L10258
push_event // myself
push_const 704
add
fetch_i
func_call 184549616 // func[Despawn]
shift_sp -1
jump L10260
L10259
push_event // myself
push_const 704
add
fetch_i
push_const 1004
push_const 20000
func_call 184680487 // func[AddTimerEx]
shift_sp -2
shift_sp -1
L10260
L10256
call_super
handler_end
i should delete a block and stay with something like this:
L10251
push_event // myself
push_const 704
add
fetch_i
push_const 1006
push_const 20000
func_call 184680487 // func[AddTimerEx]
shift_sp -2
shift_sp -1
L10249
L10255
L10257
L10258
L10259
L10260
L10256
call_super
handler_end
or im doing something wrong?
Like this
THANKS HF :P
i should delete a block and stay with something like this:
L10251
push_event // myself
push_const 704
add
fetch_i
push_const 1006
push_const 20000
func_call 184680487 // func[AddTimerEx]
shift_sp -2
shift_sp -1
L10249
(here removed non used labels)
call_super
handler_end
or im doing something wrong?
and will dont forget about non-used party_dead handler
k , i did what you told me to do delete blocks 1004 timer in party_private
and private wizard... and delete // party died handler i tried also many other things..........and still have this:
02/15/2007 13:17:xx.xx4, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[corrupted_knight]
02/15/2007 13:17:xx.xx0, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[reanimated_guard]
02/15/2007 13:17:xx.xx0, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[reanimated_guard]
02/15/2007 13:17:xx.xx0, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[reanimated_guard]
02/15/2007 13:17:xx.xx0, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[reanimated_knight]
02/15/2007 13:17:xx.xx5, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[reanimated_guard]
02/15/2007 13:17:xx.xx5, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[corrupted_guard]
02/15/2007 13:17:xx.xx2, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[reanimated_guard]
02/15/2007 13:17:xx.xx0, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[reanimated_guard_a]
02/15/2007 13:17:xx.xx0, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[corrupted_guard_a]
02/15/2007 13:17:xx.xx1, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[corrupted_guard]
02/15/2007 13:17:xx.xx0, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[reanimated_guard_a]
02/15/2007 13:17:xx.xx2, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[reanimated_guard]
02/15/2007 13:17:xx.xx2, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[reanimated_guard_a]
02/15/2007 13:17:xx.xx5, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[reanimated_guard_a]
02/15/2007 13:17:xx.xx5, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[corrupted_guard_a]
02/15/2007 13:17:xx.xx5, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[reanimated_knight]
02/15/2007 13:17:xx.xx8, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[corrupted_knight]
02/15/2007 13:17:xx.xx9, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[reanimated_guard]
02/15/2007 13:17:xx.xx5, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[corrupted_guard]
02/15/2007 13:17:xx.xx3, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[reanimated_guard]
02/15/2007 13:17:xx.xx8, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[corrupted_guard_a]
02/15/2007 13:17:xx.xx7, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[corrupted_knight]
02/15/2007 13:17:xx.xx0, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[reanimated_guard_a]
02/15/2007 13:54:xx.xx8, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[conq_barons_triggerbox]
02/15/2007 13:54:xx.xx8, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[lords_barons_triggerbox]
02/15/2007 13:54:xx.xx8, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[mag_barons_triggerbox]
02/15/2007 13:54:xx.xx8, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[sav_barons_triggerbox]
02/15/2007 13:54:xx.xx8, [.\NPC.cpp][6513] Invalid Despawn() called count[3], npc[mag_barons_triggerbox]
02/15/2007 13:54:xx.xx8, [.\NPC.cpp][6513] Invalid Despawn() called count[3], npc[sav_barons_triggerbox]
:.(
any other suggestion?
k , i did what you told me to do delete blocks 1004 timer in party_private
and private wizard... and delete // party died handler i tried also many other things..........and still have this:
:.(
any other suggestion?
something wrong in fix :) Attach full code here, i'll check
THanks HF,
dont know how to thank you for your great effort doing this :)
im realy going insane...i have tried so many things:
i'll explain the symptomes in more detail:
1.when l2npc is fuly loaded evrything is fine
2.no one have to be connected to server and the errors will still pop up
3.the errors are starting about 1-2 hours after l2npc is fully loaded
4.i will attach AI.obj before and after trying to fix this , both in same zip
http://files.filefront.com/AIrar/;6752094;;/fileinfo.html
THanks HF,
dont know how to thank you for your great effort doing this :)
im realy going insane...i have tried so many things:
i'll explain the symptomes in more detail:
1.when l2npc is fuly loaded evrything is fine
2.no one have to be connected to server and the errors will still pop up
3.the errors are starting about 1-2 hours after l2npc is fully loaded
4.i will attach AI.obj before and after trying to fix this , both in same zip
http://files.filefront.com/AIrar/;6752094;;/fileinfo.html
i cant download it.
O! 5mb! so much. Share only party_private class... it 1kb and 10 byte in rar :)
ok here is the short version
i have attached here only the 2 classes that i have changed for this error
class 1 party_private : party_private_param
class 1 party_private_wizard : party_private_param_wizard
thanks again
Вложения из исходного сообщения (сами файлы в копии отсутствуют):
AI_Moded.rar — 3166 байт
k , i did what you told me to do delete blocks 1004 timer in party_private
and private wizard... and delete // party died handler i tried also many other things..........and still have this:
02/15/2007 13:17:xx.xx4, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[corrupted_knight]
...
02/15/2007 13:17:xx.xx8, [.\NPC.cpp][6513] Invalid Despawn() called count[2], npc[corrupted_guard_a]
...
:.(
any other suggestion?
ok here is the short version
i have attached here only the 2 classes that i have changed for this error
class 1 party_private : party_private_param
class 1 party_private_wizard : party_private_param_wizard
thanks again
This classes same as main. No errors.
But.. see on your npc list. Check Npc ai tree. Example, corrupted_guard_a have not this classes (private and etc.) I dont know why you see this error.
It means that the your npc (in error log) does not belong to our error. I have not this logs. Your scripts somewhere bad, because this (for one example)
- 'corrupted_guard_a' not party mobs and cant use this fixed classes
- only one 'skull_collector' summon this 'corrupted_guard_a' but he dont use party class too.
I dont know why you have this problem.
i thought its something strange....... :|
i also have a friend that use same scripts as mine
and doesnt get these errors .
if anyone can say what it could be thanks
I just got this error today for the first time.. it appeared after the power went off.. so I think, it's really something in database has been corrupted.
I'll check things out and report again later.
-----------------------------------------------------
Well..Server is running for 1 day and 22 minutes now and no single despawn error appeared.. All I did was just restarting server and reindexing database.
I also renamed some procedures, just changed letters case. like:- Lin. to lin.
no all mobs you are found
npc_begin zzoldagu 10364 [sharuks_sniper] level=22
npc_begin zzoldagu 10491 [gwindorr_s_guard] level=39
And etc... This mob not archer - is spearman...
but have raid_archer AI as parent :P
andreykst
31.05.2007, 09:34
fuck... bug found and fixed. Get brain and hand and...
open ai.obj and npcdata
find in ai.obj ".... : raid_archer"
and check this npc in npcdata for exist this param. This all...
But one problem. This skill no one... have "power_shot.." have "stun_shot" and different skill_level. What need to set in each npc and no will do error? :)
Mob level + decompiled client data.
Mob level + decompiled client data.
what a "client data" you mean?
andreykst
31.05.2007, 09:38
what a "client data" you mean?
mobskillanimgrp.txt
mobskillanimgrp.txt
there have no more data for all mobs. ~30% data have there.