PDA

View Full Version : Undefined (or unregistered) Help?


BRuTALHiTMAN
03.08.2007, 16:47
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
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
[ub3rguard] = 1032527

ai.obj
class 1 ub3rguard : ol_mahum_patrol
class_end

manual_pch
[bodyguard_clan] = 102

anyone have any ideas why this wont load??

_Untitled
03.08.2007, 16:50
try lower id .... lower than 15000

~Marquis~
03.08.2007, 16:55
a guard with ol_mahum_patrol's ai ? :/

BRuTALHiTMAN
03.08.2007, 17:18
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
03.08.2007, 17:33
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?

FidoW
03.08.2007, 17:34
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.

mov r9d, 0F7CD8h

BRuTALHiTMAN
03.08.2007, 17:51
well i tried lowering the ID and that still didn't work, so hexing the l2server.exe wouldn't help either would it?

Kation
03.08.2007, 18:30
Check your script files at 180 line. (npcdata,npcpos,npc_pch).
i got npc with id 35579+ and they work...

BRuTALHiTMAN
03.08.2007, 18:37
npcpos.txt@ line 180:
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
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
[__greater_stone_golem] = 1000180

i also did not touch this :( thanks for the suggestion tho, any more ideas?

FidoW
03.08.2007, 18:50
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 ]

BRuTALHiTMAN
03.08.2007, 18:54
would sharing the whole npcdata, npc_pch, and npcpos help?

Kation
03.08.2007, 19:33
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):

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:

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 ;)

BRuTALHiTMAN
03.08.2007, 19:36
but i can't even //summon it?? and i looked at it and it looks fine...

Kation
03.08.2007, 19:38
pack your npcdata/pos/pch and upload somewhere (not to megaupload).

BRuTALHiTMAN
03.08.2007, 19:47
i uploaded them to the forums^^

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
newnpcs.rar — 1036943 байт

Kation
03.08.2007, 21:19
u forgot about 1 important error :

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.)

BRuTALHiTMAN
03.08.2007, 21:59
hey thanks that seemed to fix it ^^ any idea what's wrong with that line?