Thread: [Guide] AI
View Single Post
Old 21.06.2007, 19:57   #1
tpuNIsher
Архивный участник
 
Join Date: Mar 2006
Posts: 685
Default

Great thread indeed. Pretty awesome job HF.

Quote:
Originally Posted by HF View Post
AI.obj file always have this header.

Retail build523

Code:
SizeofPointer 8
SharedFactoryVersion 429
NPCHVersion 413
NASCVersion 235
NPCEventHVersion 125
Debug 0
Parameters unknown.

Note: But L2Npc.exe show red error about bad version.
Work parameters:

Code:
SizeofPointer 8
SharedFactoryVersion 427
NPCHVersion 408
NASCVersion 235
NPCEventHVersion 125
Debug 0
About that..my 2 cents..

Those're revisions. SizeofPointer is the pointer which makes the ai.obj 'xx-bits'.. so.. 8^8 = 64 bit. 20^8 = 160 bits. try it, u'll see msg.. like.. Invalid ai.obj compiled from 160 bit nasc blabla in console if u change the pointer to 20. it's hardcoded in l2npc.

SharedFactoryVersion is a version info too l2npc related, also hardocded.
NPCHVersion aka npc.h version is header for nasc obviously, so anyways.. true values depends on l2npc itself. it's hardcoded in l2npc.
NASCVersion..nasc version ai was compiled from..also hardcoded in l2npc..
NPCEvent header.. also hardcoded..
i dunno about debug.. yet.

And also.. the true values for each of these in l2npc..IDA wise..

Code:
SharedFactoryVersion:
.rdata:0000000000691CB8 aRevision427    db '$Revision: 427 $',0 ; DATA XREF: sub_581860+42A

NPCHVersion:
.rdata:00000000006909C8 -> SharedFactoryVersion ver info start.

NASCVersion:
.rdata:000000000067E078 aRevision235    db '$Revision: 235 $',0 ; DATA XREF: .text:000000000042C32B

NPCEventHVersion
starting of the NPCEventVersion version info is at: .rdata:00000000006909B0 ...
it's different for diff l2npc. that's all.
tpuNIsher is offline