Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 04.03.2006, 14:00   #1
Xellos
Архивный участник
 
Join Date: Feb 2006
Posts: 88
Default AI.obj decompiler

ok, here is another project...

I tried to get Valakas Lair working but the server does not liked the map and someone told me to lok into ai scripts from Antaras Lair.

But this ai.obj is not really human readable...
so I tried to fully decompile this thing.

Here is the plan how the decompiler will work:
1.0 decompile bytecode into high language function calls
1.1 transform stackvalues that are pointers to variable-/struct-names
1.2 transform call parameter constants into human readable (items, skills etc.)
1.3 transform comparisms into names when possible (npc_class_id == @keltir)
2. regroup branches to make if-then-elseif-else and/or select-case structures

the engine is fully working for pass1,
only some data for the transformations is missing (pass1_v0)

pass1_v0 decompiled pp-release ai.obj
(this archive contains one file per ai-class to get a better overview)

Please PM me when someone got an idea how to improve pass2 decompilation.
Xellos 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 15:56.