View Full Version : index is not for NPC! at file [NPCSocket.cpp], line 367
index is not for NPC! at file [NPCSocket.cpp], line 367
Server start spamming this error.. and lagging..
why? how to find which NPC is bad?
index is not for NPC! at file [NPCSocket.cpp], line 367
Check that line in anything npc related.
hehe I dont bother you if I dont think this is really weird problem ;-)
I checked npcdata for that line and it contain normal c1 monster..
npc_begin warrior 367 [merkenis_escort] level=21 exp=1023784.7 acquire_exp_rate=5.72 undying=0 can_be_attacked=1 acquire_sp=145 race=undead sex=male temper=100 safe_height=100 org_jump=15 skill_list={@s_soft_bones;@s_unholy} magic_list={} max_item=50 item_make_list={} corpse_make_list={{[charcoal];1;1;95};{[blue_diamond_necklace];1;1;1.6545}} additional_make_list={} additional_make_multi_list={{{{[adena];428;764;100}};100};{{{[bone_shield];1;1;xx.xx59};{[hard_leather_helmet];1;1;xx.xx41}};1.8305};{{{[varnish];1;1;xx.xx18};{[coal];1;1;xx.xx18};{[charcoal];1;1;xx.xx18};{[cokes];1;1;4.902};{[key_of_thief];1;1;5.8824};{[scrl_of_ench_am_d];1;1;0.9802}};xx.xx05}} slot_chest=[] slot_rhand=[falchion] slot_lhand=[] base_attack_type=fist base_can_penetrate=0 base_attack_range=40 base_damage_range={0;0;80;120} base_rand_dam=30 str=40 int=21 dex=30 wit=20 con=43 men=10 hp_increase=40 mp_increase=7 org_hp_regen=3.5 org_mp_regen=1.5 ground_low={60;0;10} ground_high={140;-30;30} underwater_low={50;0;10} underwater_high={0;0;30} fly_low={0;0;10} fly_high={0;-30;30} float_low={0;0;10} float_high={0;-30;30} org_earshot=100 sight={0;0;2500;120;5} agro_range=1000 org_hp=4xx.xx386028128 org_mp=205.2 base_defend=xx.xx05874404475 base_magic_attack=xx.xx26319401133 base_magic_defend=xx.xx09496463517 base_physical_attack=xx.xx9244061454 physical_hit_modify=4.75 physical_avoid_modify=0 base_attack_speed=253 base_reuse_delay=0 base_critical=4 magic_use_speed_modify=0 status={normal} align=-441 collision_radius=11 collision_height=25 category={} clan={@skeleton_clan} clan_help_range=300 guild={} pledge={} pledge_leader=0 alliance={} alliance_leader=0 ignore_clan_list={} ruler=0 ruling_domain={} npc_ai={[merkenis_escort]} corpse_time=7 no_sleep_mode=0 npc_end
class merkenis_escort : warrior_aggressive
class_end
i removed it and get it again.. what another files is about npcs?
I look at pc_parameter and settings.. and nothing wierd
Unfortunately, that line number is the line in the NPCSocket.cpp file at which the warning occured, which is no use to us since we don't have the source code.
From what I gathered while looking at the server, this error occurs when L2NPC sends a NpcMovePacket for an entity which exists, but is not considered to be a NPC by L2server.
If you've made any changes to ai.obj that deal with npc movement, that may be a good place to check.
I dont made any changes and this error apear only after server restart.. first 20 minutes its ton of this messages.. total spam.. server is lagged like hell.. after 20 minutes this messages stop and server is ok :(
PLEASEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
ANYBODY HELP ME ;-((
MY BRAIN IS BURNED ;-( I start server, people start joining.. and server in 70% of cases start spamming this error and server start lagging as hell .. only with 100 people and 300k pending writes
I tried everything... PLZ HELP ;-(
Try tossing in an old ai.obj and see if it fixes the problem. If it does, then there's your answer. I've been getting these weird errors (not the same as yours) lately, and I usually revert to an older file if I can't figure it out. That usually help me identify where the problem is.
I really hate the ai.obj, lol. :roll:
hehe same here ;-( thanks... but weird thing is, this error I get only sometimes
hmm I have only two c3 ai ;-( ... can anyone share yours?
or I make myself from c2 ... c2+adding ai for c2/c3 npcs = c3 ai ?
When I try use c2 ai .. I saw errors like no (monster_name) ai handler.. but there whas that ai handler..