Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Help
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 10.03.2006, 16:06   #1
Kirikups
Архивный участник
 
Join Date: Oct 2005
Posts: 175
Default AI coding question and duplicate labels

hi,

maybe a noob question but i need to be sure, if i use L666 in class A : default_npc and L666 again in class B : default_npc ... can i have problems ?

Regards
Kirikups is offline  
Old 10.03.2006, 16:33   #2
Sauron
Архивный участник
 
Join Date: Feb 2005
Posts: 357
Default

nope
Sauron is offline  
Old 10.03.2006, 17:51   #3
kiralex2
Архивный участник
 
Join Date: Jan 2006
Posts: 73
Default

On idea is not present because it is impossible to jump from class A in class B.
kiralex2 is offline  
Old 10.03.2006, 21:04   #4
Kirikups
Архивный участник
 
Join Date: Oct 2005
Posts: 175
Default

ok ty very mush for your answer, i ask that because i wrote some new ai and i got some strange error about all (it seems) quests for 2nd profession, i have to remove OCCUPATION checking lines to able players to continue quest, npc say "u are have not reached 1st occupation blabla you are a noob blabla", and i had to do that for human mages and orcs yet :/ then i dunno really if i made something made with AI or if NPC server is broken or if quest is really bugged ... regards
Kirikups is offline  
Old 10.03.2006, 22:32   #5
kiralex2
Архивный участник
 
Join Date: Jan 2006
Posts: 73
Default

I think such problems to occur not will if use NASC
kiralex2 is offline  
Old 10.03.2006, 23:36   #6
Xellos
Архивный участник
 
Join Date: Feb 2006
Posts: 88
Default

duplicate labels can cause some strange side effects
even when u use NASC
(sure, u can't jump from one class to another)

or do u have a complete ai_mmerged.txt?
(or better the sources for all quests? ai_data, questdata, macros?)
to run a complete ai.obj rebuild from source?

I prefer to avoid duplicates, because I had some trouble...
and after renumbering the whole AI, all probs are gone now
Xellos is offline  
Old 11.03.2006, 00:04   #7
Aikeleer
Архивный участник
 
Join Date: Jun 2005
Posts: 374
Default

Yep, try to use http://home.aikeleer.nl/testreplacer
i.e.:

I got a script with L0 till L429 and it has to go to L50000 till L50429

Begin is L0, so fill in 0
'Moet naar' is L50000, so 50000

Code = ai code.

it'll go through and update the Begin+500 till the New+500.
Aikeleer is offline  
Old 11.03.2006, 00:11   #8
Xellos
Архивный участник
 
Join Date: Feb 2006
Posts: 88
Default

@Aikeleer:

I have a similiar thing ^^

btw - it will be perfect when u add such a replace for strings too
(a mate got a prob with a small AI that showed a wrong html - string label dupe...)
Xellos is offline  
Old 11.03.2006, 00:14   #9
Aikeleer
Архивный участник
 
Join Date: Jun 2005
Posts: 374
Default

Yep, that's right, when I got time I'll make that too.

What you see is a little draft thingy I made real quick for my files, that's why it's in Dutch too. :P So I didn't really put much effort in it.
Aikeleer is offline  
Old 11.03.2006, 04:54   #10
Stazis
Архивный участник
 
Join Date: Feb 2005
Posts: 200
Default

problem with quest's and occupations can be coused by incorrect
category_data.txt file

if it is not parsed correctly - NPC.exe does not know such a categories as occupation,class etc.

check first lines of npc.exe error log.
Stazis is offline  
Old 11.03.2006, 09:17   #11
Xellos
Архивный участник
 
Join Date: Feb 2006
Posts: 88
Default

i hope that people read the error messages first, before asking here

but if u have problems with categorydata.txt:
u have to check category_pch.txt (definition of category ids)
and manual_pch.txt (definition of npc-/job-class names and such things)
this two files are involved for parsíng of the categorydata.txt
Xellos is offline  
Old 11.03.2006, 13:23   #12
Kirikups
Архивный участник
 
Join Date: Oct 2005
Posts: 175
Default

erf i think you got the point i added 2 categories in category_data.txt for c4 pets (babies and parents) and i forgot to add them in category_pch.txt ... i am a noob, ty for your help :P

Quote:
Originally Posted by Stazis
problem with quest's and occupations can be coused by incorrect
category_data.txt file

if it is not parsed correctly - NPC.exe does not know such a categories as occupation,class etc.

check first lines of npc.exe error log.
Kirikups is offline  
Old 11.03.2006, 13:33   #13
Sauron
Архивный участник
 
Join Date: Feb 2005
Posts: 357
Default

Quote:
Originally Posted by Xellos
duplicate labels can cause some strange side effects
even when u use NASC
(sure, u can't jump from one class to another)

or do u have a complete ai_mmerged.txt?
(or better the sources for all quests? ai_data, questdata, macros?)
to run a complete ai.obj rebuild from source?

I prefer to avoid duplicates, because I had some trouble...
and after renumbering the whole AI, all probs are gone now
u don't need to have ai_data, questdata and macros, just decompile ai.obj and everything will be in there. Anyway it's useless, it's stupid to waste 20min everytime you want to compile a new ai or make changes.
Sauron is offline  
Old 11.03.2006, 15:04   #14
kvoxi
Архивный участник
 
Join Date: Oct 2005
Posts: 102
Default

Quote:
Originally Posted by Sauron
u don't need to have ai_data, questdata and macros, just decompile ai.obj and everything will be in there. Anyway it's useless, it's stupid to waste 20min everytime you want to compile a new ai or make changes.
great agree!!!
thx, Sauron
kvoxi 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 23:42.