PDA

View Full Version : AI coding question and duplicate labels


Kirikups
10.03.2006, 16:06
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

Sauron
10.03.2006, 16:33
nope

kiralex2
10.03.2006, 17:51
On idea is not present because it is impossible to jump from class A in class B.

Kirikups
10.03.2006, 21:04
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

kiralex2
10.03.2006, 22:32
I think such problems to occur not will if use NASC

Xellos
10.03.2006, 23:36
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

Aikeleer
11.03.2006, 00:04
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.

Xellos
11.03.2006, 00:11
@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...)

Aikeleer
11.03.2006, 00:14
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.

Stazis
11.03.2006, 04:54
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.

Xellos
11.03.2006, 09:17
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

Kirikups
11.03.2006, 13:23
erf i think you got the point :D 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

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.

Sauron
11.03.2006, 13:33
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.

kvoxi
11.03.2006, 15:04
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