Jump to content
  • 0

problem when adding new npc


girogius
 Share

Question

hi, I want to add new npc to server... I did same thing before but now i'm getting error that i've never seen.

 

when I try to summon this npc with builder character Im getting error:

undefined or unregistered classId[1037018]

undefined or unregistered name[]

invalid npc name [] at file [.\NpcSocket.cpp], line[232]

[0][0][0][0][0][0][0]

 

 

 

npcdata.txt:

npc_begin	citizen	37018	[server_buffer]		category={}	level=70	exp=429634523	ex_crt_effect=1	unique=0	s_npc_prop_hp_rate=1	race=fairy	sex=female	skill_list={@s_npc_prop_race_fairy;@s_npc_prop_hp_lv_p0;@s_npc_prop_mp_lv_p0;@s_npc_prop_pa_lv_p0;@s_npc_prop_ma_lv_p0;@s_npc_prop_pd_lv_p0;@s_npc_prop_md_lv_p0;@s_npc_prop_armor_type_n;@s_npc_prop_weapon_type_sword;@s_full_magic_defence}	slot_chest=[]	slot_rhand=[]	slot_lhand=[]	collision_radius={5;5}	collision_height={25;25}	hit_time_factor=0.72	hit_time_factor_skill=-1	ground_high={120;0;0}	ground_low={80;0;0}	str=40	int=21	dex=30	wit=20	con=43	men=20	org_hp=2444.46819	org_hp_regen=7.5	org_mp=1345.8	org_mp_regen=2.7	base_attack_type=sword	base_attack_range=40	base_damage_range={0;0;80;120}	base_rand_dam=30	base_physical_attack=688.86373	base_critical=4	physical_hit_modify=4.75	base_attack_speed=253	base_reuse_delay=0	base_magic_attack=470.40463	base_defend=295.91597	base_magic_defend=216.53847	base_attribute_attack={none;0}	base_attribute_defend={150;150;150;150;150;150;150}	physical_avoid_modify=0	shield_defense_rate=0	shield_defense=0	safe_height=100	soulshot_count=0	spiritshot_count=0	clan={}	ignore_clan_list={}	clan_help_range=300	undying=1	can_be_attacked=0	corpse_time=7	no_sleep_mode=0	agro_range=1000	passable_door=0	can_move=1	flying=0	has_summoner=1	targetable=1	show_name_tag=1	npc_ai={[hellfire_buffer];{[fnHi]=[hellfire_buffer.htm]};{[MoveAroundSocial]=0};{[MoveAroundSocial1]=0}}	event_flag={0}	unsowing=1	acquire_exp_rate=0	acquire_sp=0	acquire_rp=0	corpse_make_list={}	additional_make_list={}	additional_make_multi_list={}	ex_item_drop_list={}	npc_end

 

npc_pch.txt:

[server_buffer] = 1037018

 

 

Npcgrp.dat:

37018	LineageMonster.pixy	LineageMonsters.pixy_m00	2	LineageMonstersTex.pixy_t00	LineageMonstersTex.pixy_t01						0			22	4416	13	4408	9	4410	9	4411	9	4412	13	4413	13	4414	3	4011	5	4282	1	11643	1	14622	1																	1.37500000	0		1				2	MonSound.Hit_Soul_7	MonSound.Hit_Soul_8				3	MonSound.pixy_dmg_1	MonSound.pixy_dmg_2	MonSound.pixy_dmg_3	0			1	0								LineageEffect.p_u002_a	0	50.00000000	250.00000000	70.00000000	0	1	0			

 

npcName-e.dat:

37018	a,Server Buffer\0	a,	9C	E8	A9	-1

 

Link to comment
Share on other sites

Recommended Posts

  • 0
2 hours ago, girogius said:

 

I fixed npc errors... I copied that skills because originals have time about 19 min, I want same buffs for buffer but different time 1 hour, how can i do this right way?

 

Edit: thank you for your time.

Skills aren't super easily copied, which version of L2 are you working on?

 

Here's the usual process:

 

1. Find and copy skill entry in skilldata.txt, give new ID

2. Find and copy skill entry in skillgrp.dat, give same new ID

3. Find and copy skill entry in skillname-e.dat, give same new ID

4. Find and copy skill entry in skillsoundgrp.dat, give same new ID

5. Generate the skill entry in skill_pch.txt. This follows a specific algorithm, it isn't as easy as npc_pch or item_pch. Cubafull shared one for HF, you can find it here:

 

 

You're welcome, good luck.

Link to comment
Share on other sites

  • 0

You have an extra space after [server_buffer] in npcdata.txt, maybe it's that.

 

It's definitely a server-side issue, so don't worry about the .dat files. Did you remember to restart cache too?

Edited by Bumble
Link to comment
Share on other sites

  • 0
1 hour ago, Bumble said:

You have an extra space after [server_buffer] in npcdata.txt, maybe it's that.

 

It's definitely a server-side issue, so don't worry about the .dat files. Did you remember to restart cache too?

 

yes I restarted cache 10 times 😞 also removed that extra space but still not working

Edited by girogius
Link to comment
Share on other sites

  • 0

Can you post your error log from npcserver and l2server?

 

There's a chance there's nothing wrong with this entry, but one of the NPCs above it is not working right. NPCServer loads NPCs from npcdata.txt from the top, and if it finds an incorrect entry, it stops. All the NPCs up to that point are still loaded. If this is the case, the NPC you're trying to spawn is never loaded.

  • Upvote 1
Link to comment
Share on other sites

  • 0
13 minutes ago, Bumble said:

Can you post your error log from npcserver and l2server?

 

There's a chance there's nothing wrong with this entry, but one of the NPCs above it is not working right. NPCServer loads NPCs from npcdata.txt from the top, and if it finds an incorrect entry, it stops. All the NPCs up to that point are still loaded. If this is the case, the NPC you're trying to spawn is never loaded.

i have 2 custom npc the firs one is loading but buffer no, the biffer is under manager liek this:

 

//server manager
npc_begin	citizen	37017	[server_manager]	category={}	level=80	exp=4200000000	ex_crt_effect=1	unique=0	s_npc_prop_hp_rate=1	race=construct	sex=female	skill_list={@s_npc_prop_race_construct;@s_npc_prop_hp_lv_p0;@s_npc_prop_mp_lv_p0;@s_npc_prop_pa_lv_p0;@s_npc_prop_ma_lv_p0;@s_npc_prop_pd_lv_p0;@s_npc_prop_md_lv_p0;@s_npc_prop_armor_type_n;@s_npc_prop_weapon_type_sword;@s_npc_abnormal_immunity;@s_full_magic_defence}	slot_chest=[]	slot_rhand=[]	slot_lhand=[]	collision_radius={25;25}	collision_height={47.5;47.5}	hit_time_factor=0.6	hit_time_factor_skill=-1	ground_high={1;0;0}	ground_low={1;0;0}	str=40	int=21	dex=30	wit=20	con=43	men=20	org_hp=3290.11306877694	org_hp_regen=8.5	org_mp=1674.8	org_mp_regen=3	base_attack_type=sword	base_attack_range=40	base_damage_range={0;0;80;120}	base_rand_dam=30	base_physical_attack=970.537548504614	base_critical=4	physical_hit_modify=5	base_attack_speed=253	base_reuse_delay=0	base_magic_attack=662.751329129412	base_defend=341.375	base_magic_defend=249.80341	base_attribute_attack={none;0}	base_attribute_defend={20;20;20;20;20;20;0}	physical_avoid_modify=0	shield_defense_rate=0	shield_defense=0	safe_height=100	soulshot_count=0	spiritshot_count=0	clan={}	ignore_clan_list={}	clan_help_range=0	undying=1	can_be_attacked=0	corpse_time=7	no_sleep_mode=0	agro_range=0	passable_door=0	can_move=0	flying=0	has_summoner=0	targetable=1	show_name_tag=1	npc_ai={[server_manager]};{[fnHi]=[server_manager.htm]};	unsowing=1	acquire_exp_rate=0	acquire_sp=0	acquire_rp=0	corpse_make_list={}	additional_make_list={}	additional_make_multi_list={}	ex_item_drop_list={}	npc_end


//buffer
npc_begin	guard	37018	[server_buffer]	category={}	level=80	exp=4200000000	ex_crt_effect=1	unique=0	s_npc_prop_hp_rate=1	race=fairy	sex=female	skill_list={@s_npc_prop_race_fairy;@s_npc_prop_hp_lv_p0;@s_npc_prop_mp_lv_p0;@s_npc_prop_pa_lv_p5;@s_npc_prop_ma_lv_p5;@s_npc_prop_pd_lv_p5;@s_npc_prop_md_lv_p5;@s_npc_prop_armor_type_n;@s_npc_prop_weapon_type_sword}	slot_chest=[]	slot_rhand=[]	slot_lhand=[]	collision_radius={5;5}	collision_height={25;25}	hit_time_factor=0.72	hit_time_factor_skill=-1	ground_high={120;0;0}	ground_low={80;0;0}	str=40	int=21	dex=30	wit=20	con=43	men=20	org_hp=2880.37628	org_hp_regen=8.5	org_mp=1674.8	org_mp_regen=3	base_attack_type=sword	base_attack_range=40	base_damage_range={0;0;80;120}	base_rand_dam=30	base_physical_attack=894.75854	base_critical=4	physical_hit_modify=4.75	base_attack_speed=253	base_reuse_delay=0	base_magic_attack=611.00409	base_defend=341.375	base_magic_defend=249.80341	base_attribute_attack={none;0}	base_attribute_defend={150;150;150;150;150;150;150}	physical_avoid_modify=0	shield_defense_rate=0	shield_defense=0	safe_height=100	soulshot_count=0	spiritshot_count=0	clan={@all_elemental2_clan}	ignore_clan_list={}	clan_help_range=300	undying=1	can_be_attacked=0	corpse_time=7	no_sleep_mode=0	agro_range=1000	passable_door=0	can_move=1	flying=0	has_summoner=0	targetable=1	show_name_tag=1	npc_ai={[bloody_pixy];{[fnHi]=[bloody_pixy001.htm]};{[MoveAroundSocial]=0};{[MoveAroundSocial1]=0}};	unsowing=1	acquire_exp_rate=0	acquire_sp=0	acquire_rp=0	corpse_make_list={}	additional_make_list={}	additional_make_multi_list={}	ex_item_drop_list={}	npc_end

 

inside npcserver logs server_manager is only mentioned once idk if its a problem

 

03/24/2021 01:34:39.606, MakerLog(Territory: npc_buffer_oren_01 (82674, 54141, -1488)) Set MaxZ or MinZ Failed 
03/24/2021 01:34:39.606, MakerLog(Territory:            npc_buffer_oren_01 , minZ[-1480])'s (  82674,   54141,   -1488) NPC[server_manager] is outsider. [NSD]

Edited by girogius
Link to comment
Share on other sites

  • 0

The MakerLog territories is not an issue, it's just saying that the spawn point of the NPC is currently out of the designated spawn area. It doesn't prevent spawning.

 

The example you just showed is different from the example in your first post. The new server_buffer you just showed, is now a guard and now has the AI of a bloody_pixy. Why is it different this time?

 

 

Link to comment
Share on other sites

  • 0
2 minutes ago, Bumble said:

The MakerLog territories is not an issue, it's just saying that the spawn point of the NPC is currently out of the designated spawn area. It doesn't prevent spawning.

 

The example you just showed is different from the example in your first post. The new server_buffer you just showed, is now a guard and now has the AI of a bloody_pixy. Why is it different this time?

 

 

 

i'm just changing things trying to make it work...

I copied pixy because the npc have pixy textures

Edited by girogius
Link to comment
Share on other sites

  • 0

Try placing it earlier in the npcdata.txt and see if the error persists.

 

Edit: Also make sure the class (citizen) and AI is functional. You want an AI that inherits from the citizen AI.

Edited by Bumble
Link to comment
Share on other sites

  • 0
6 minutes ago, Bumble said:

Try placing it earlier in the npcdata.txt and see if the error persists.

 

Edit: Also make sure the class (citizen) and AI is functional. You want an AI that inherits from the citizen AI.

 

i put buffer top of manager and now buffer working and manager not... 

for manager is says unregistered class id like it was for buffer before 

Link to comment
Share on other sites

  • 0
7 minutes ago, Bumble said:

Can you upload your npc_pch and npcdata.txt somewhere so i can look closer

 

 

https://drive.google.com/file/d/1-YlAtMgq_Ez3Ffe2D2vyCB9baI03HHQM/view?usp=sharing

 

just changed to citizen and added my own ai named hellfire_buffer, ai have no problem it showing html.. 

Edited by girogius
Link to comment
Share on other sites

  • 0
3 minutes ago, Bumble said:

I'm not seeing anything wrong in those. Could you upload the logs?

 

server logs: https://drive.google.com/file/d/1wJtNOoWhRoSunUwa3WexR66bIKXN1fYY/view?usp=sharing

 

npc logs: https://drive.google.com/file/d/1z0ogffOyDVoZkCQTWtJs47TdIJiSCqGx/view?usp=sharing

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock