Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
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  
Old 04.03.2006, 14:21   #2
kvoxi
Архивный участник
 
Join Date: Oct 2005
Posts: 102
Default

May i ask you, why u share archive with 2402 files.
Every file have same structrure.
Why i need download 1 MB to see 2402 non-difference files?
If u try make a decompiler, post only 2-3 files for test, please
kvoxi is offline  
Old 04.03.2006, 14:29   #3
Xellos
Архивный участник
 
Join Date: Feb 2006
Posts: 88
Default

open your eyes! look at the size of the files...
and open the larger files...
it's the complete project folder...
it's like in ai.obj... some classes are empty :angryfire:
Xellos is offline  
Old 04.03.2006, 14:46   #4
kvoxi
Архивный участник
 
Join Date: Oct 2005
Posts: 102
Default

ok, ok
i open the largest file. this is tor.txt (filesize is 115263 bytes)
and what?
what something interesting in this file? nothing special...
like as other 2401 files...
i don`t undestand, really
kvoxi is offline  
Old 04.03.2006, 15:16   #5
toolpunk
Архивный участник
 
Join Date: May 2005
Posts: 2,033
Default

uhm...
though i like the idea of an ai.obj decompiler i gotta tell you that this file is readable...
enough info has been shared and many people CODED new stuff in that compiled "language"
toolpunk is offline  
Old 04.03.2006, 15:17   #6
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

chill... it's in it's infant stage.
and i believe there's some value in doing this...
(i prefer high level programming rather then doing low level programming... ((sry to them asm freaks :X))

wish u luck in this project Xellos!
Digital is offline  
Old 04.03.2006, 15:22   #7
Xellos
Архивный участник
 
Join Date: Feb 2006
Posts: 88
Default

thx Digital,

my main goal is to get better AIs for raid bosses

and antaras is a good example of what's possible
but i don't want to code such a thing in ai.obj style ^^

and it's easier to rebuild the whole ai.obj from one script than adding new code where we have to substitute all jump lables
Xellos is offline  
Old 04.03.2006, 20:16   #8
Sauron
Архивный участник
 
Join Date: Feb 2005
Posts: 357
Default

Quote:
Originally Posted by toolpunk
uhm...
though i like the idea of an ai.obj decompiler i gotta tell you that this file is readable...
enough info has been shared and many people CODED new stuff in that compiled "language"
yes is readable but i can take the hole week to code a quest.
Sauron is offline  
Old 04.03.2006, 20:19   #9
toolpunk
Архивный участник
 
Join Date: May 2005
Posts: 2,033
Default

hey, i didnt say its comfortable...
toolpunk 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 19:05.