Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 03.08.2007, 16:47   #1
BRuTALHiTMAN
Архивный участник
 
Join Date: May 2006
Posts: 38
Default Undefined (or unregistered) Help?

I'm making some new things, and among them are NPC's.. but after i make them and put them in the new ones error out and i got this:

[.\ObjectDB.cpp]undefined (or unregistered) Name[ub3rguard]
invalid npc name [ub3rguard] at file

npcdata.txt
Code:
npc_begin	guard	32527	[ub3rguard]	level=80	acquire_exp_rate=0	acquire_sp=0	unsowing=1	clan={@bodyguard_clan}	ignore_clan_list={}	clan_help_range=1200	slot_chest=[]	slot_rhand=[dark_elven_bow]	slot_lhand=[]	shield_defense_rate=0	shield_defense=0	skill_list={@s_race_undead;@s_full_magic_defence}	npc_ai={[ub3rguard];{[fnHi]=[ub3rguard001.htm]};{[MoveAroundSocial]=0};{[MoveAroundSocial1]=120};{[MoveAroundSocial2]=120}}	category={}	race=darkelf	sex=female	undying=1	can_be_attacked=0	corpse_time=7	no_sleep_mode=0	agro_range=1200	ground_high={160;0;0}	ground_low={50;0;0}	exp=2099325834	org_hp=28xx.xx	org_hp_regen=8.5	org_mp=1674.8	org_mp_regen=3	collision_radius={7;7}	collision_height={25;25}	str=99	int=99	dex=99	wit=99	con=99	men=10	base_attack_type=bow	base_attack_range=1100	base_damage_range={0;0;10;0}	base_rand_dam=10	base_physical_attack=59xx.xx672	base_critical=8	physical_hit_modify=0	base_attack_speed=800	base_reuse_delay=150	base_magic_attack=611	base_defend=3xx.xx	base_magic_defend=249.8	physical_avoid_modify=0	soulshot_count=9000	spiritshot_count=9000	hit_time_factor=0.6	item_make_list={}	corpse_make_list={}	additional_make_list={}	additional_make_multi_list={}	hp_increase=0	mp_increase=0	safe_height=100	npc_end
npc_pch.txt
Code:
[ub3rguard] = 1032527
ai.obj
Code:
class 1 ub3rguard : ol_mahum_patrol
class_end
manual_pch
Code:
[bodyguard_clan]	=	102
anyone have any ideas why this wont load??
BRuTALHiTMAN is offline  
Old 03.08.2007, 16:50   #2
_Untitled
Архивный участник
 
Join Date: Sep 2006
Posts: 122
Default

try lower id .... lower than 15000
_Untitled is offline  
Old 03.08.2007, 16:55   #3
~Marquis~
Архивный участник
 
Join Date: Dec 2006
Posts: 252
Default

a guard with ol_mahum_patrol's ai ? :/
~Marquis~ is offline  
Old 03.08.2007, 17:18   #4
BRuTALHiTMAN
Архивный участник
 
Join Date: May 2006
Posts: 38
Default

yeah i saw it on a previous topic, settting it in the same clan as town NPC's they attack anything that hits town NPC's
BRuTALHiTMAN is offline  
Old 03.08.2007, 17:33   #5
BRuTALHiTMAN
Архивный участник
 
Join Date: May 2006
Posts: 38
Default

08/03/2007 10:32:xx.xx1, [.\ObjectDB.cpp][203] undefined (or unregistered) Name[ub3rguard]
08/03/2007 10:32:xx.xx1, invalid npc name [ub3rguard] at file[.\NpcSocket.cpp], line[180]
08/03/2007 10:32:xx.xx1, [0][0][0][0][0][0][0]

i changed it's ID to 14998 and same thing anymore ideas?
BRuTALHiTMAN is offline  
Old 03.08.2007, 17:34   #6
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

Quote:
Originally Posted by _Untitled View Post
try lower id .... lower than 15000
or hex l2server to accept higher ids

You will need to replace 1015000 to 1050000 for example.... in hex format of course.

Code:
mov     r9d, 0F7CD8h
FidoW is offline  
Old 03.08.2007, 17:51   #7
BRuTALHiTMAN
Архивный участник
 
Join Date: May 2006
Posts: 38
Default

well i tried lowering the ID and that still didn't work, so hexing the l2server.exe wouldn't help either would it?
BRuTALHiTMAN is offline  
Old 03.08.2007, 18:30   #8
Kation
Архивный участник
 
Join Date: Oct 2006
Posts: 57
Default

Check your script files at 180 line. (npcdata,npcpos,npc_pch).
i got npc with id 35579+ and they work...
Kation is offline  
Old 03.08.2007, 18:37   #9
BRuTALHiTMAN
Архивный участник
 
Join Date: May 2006
Posts: 38
Default

npcpos.txt@ line 180:
Code:
npc_begin	[doom_archer_agit]	pos={178640;-18216;-2200;-16384}	total=1	respawn=2hour	dbname=[devastated_049]	dbsaving={death_time;parameters;pos}	npc_end
there's no way that's the problem, lol, next

npcdata.txt @ line 180
Code:
npc_begin	warrior	180	[__greater_stone_golem]	level=1	acquire_exp_rate=xx.xx	acquire_sp=2	unsowing=0	clan={}	ignore_clan_list={}	clan_help_range=300	slot_chest=[]	slot_rhand=[]	slot_lhand=[]	shield_defense_rate=0	shield_defense=0	skill_list={@s_race_beast}	npc_ai={[default_npc];{[MoveAroundSocial]=90};{[MoveAroundSocial1]=90};{[MoveAroundSocial2]=90}}	category={}	race=beast	sex=male	undying=0	can_be_attacked=1	corpse_time=7	no_sleep_mode=0	agro_range=1000	ground_high={120;0;0}	ground_low={30;0;0}	exp=1	org_hp=xx.xx519	org_hp_regen=2	org_mp=40	org_mp_regen=0.9	collision_radius={14;14}	collision_height={14.5;14.5}	str=40	int=21	dex=30	wit=20	con=43	men=10	base_attack_type=sword	base_attack_range=40	base_damage_range={0;0;80;120}	base_rand_dam=30	base_physical_attack=8.47458	base_critical=4	physical_hit_modify=4.75	base_attack_speed=253	base_reuse_delay=0	base_magic_attack=5.78704	base_defend=xx.xx444	base_magic_defend=xx.xx252	physical_avoid_modify=0	soulshot_count=0	spiritshot_count=0	hit_time_factor=0.24	item_make_list={}	corpse_make_list={}	additional_make_list={}	additional_make_multi_list={}	hp_increase=0	mp_increase=0	safe_height=100	npc_end
i didn't touch this so hopefully this is ok? lol

npc_pch.txt @ line 180
Code:
[__greater_stone_golem] = 1000180
i also did not touch this thanks for the suggestion tho, any more ideas?
BRuTALHiTMAN is offline  
Old 03.08.2007, 18:50   #10
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

Quote:
Originally Posted by Kation View Post
Check your script files at 180 line. (npcdata,npcpos,npc_pch).
i got npc with id 35579+ and they work...
file[.\NpcSocket.cpp], line[180]

That error is refering to source code... which we dont have [ NpcSocket.cpp ]
FidoW is offline  
Old 03.08.2007, 18:54   #11
BRuTALHiTMAN
Архивный участник
 
Join Date: May 2006
Posts: 38
Default

would sharing the whole npcdata, npc_pch, and npcpos help?
BRuTALHiTMAN is offline  
Old 03.08.2007, 19:33   #12
Kation
Архивный участник
 
Join Date: Oct 2006
Posts: 57
Default

Quote:
Originally Posted by FidoW View Post
file[.\NpcSocket.cpp], line[180]

That error is refering to source code... which we dont have [ NpcSocket.cpp ]
right, confused ...line[180] with similar error ([11299] was the line with error):
Code:
07/20/2007 09:06:xx.xx3, [.\ObjectDB.cpp][203] undefined (or unregistered) Name[sb_erase1]
07/20/2007 09:06:xx.xx3, Undefined word[sb_erase1] in line [11299]
anyway, when i had this error:
Code:
07/22/2007 20:16:xx.xx5, [.\ObjectDB.cpp][203] undefined (or unregistered) Name[gatekeeper_bilia]
07/22/2007 20:16:xx.xx5, invalid npc name [gatekeeper_bilia] at file[.\NpcSocket.cpp], line[180]
Just fixed npcname in npc pos... so u got fix, perhaps
Kation is offline  
Old 03.08.2007, 19:36   #13
BRuTALHiTMAN
Архивный участник
 
Join Date: May 2006
Posts: 38
Default

but i can't even //summon it?? and i looked at it and it looks fine...
BRuTALHiTMAN is offline  
Old 03.08.2007, 19:38   #14
Kation
Архивный участник
 
Join Date: Oct 2006
Posts: 57
Default

pack your npcdata/pos/pch and upload somewhere (not to megaupload).
Kation is offline  
Old 03.08.2007, 19:47   #15
BRuTALHiTMAN
Архивный участник
 
Join Date: May 2006
Posts: 38
Default

i uploaded them to the forums^^

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
newnpcs.rar — 1036943 байт
BRuTALHiTMAN is offline  
Old 03.08.2007, 21:19   #16
Kation
Архивный участник
 
Join Date: Oct 2006
Posts: 57
Default

u forgot about 1 important error :
Code:
08/03/2007 23:00:xx.xx1, [.\ObjectDB.cpp][382] Parsing Objects file failed line(5733)
its npcdata.txt
put your ub3rguard data (npc_begin bla bla bla... npc_end) under this line (5733) in npcdata, and u will not get error :P. (i'm 99%sure that line[180]=npcpos.txt xD.)
Kation is offline  
Old 03.08.2007, 21:59   #17
BRuTALHiTMAN
Архивный участник
 
Join Date: May 2006
Posts: 38
Default

hey thanks that seemed to fix it ^^ any idea what's wrong with that line?
BRuTALHiTMAN is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 19:12.