![]() |
|
|
#1 |
|
Архивный участник
Join Date: Feb 2006
Posts: 88
|
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. |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Oct 2005
Posts: 102
|
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 |
|
|
|
|
#3 |
|
Архивный участник
Join Date: Feb 2006
Posts: 88
|
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: |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Oct 2005
Posts: 102
|
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 |
|
|
|
|
#5 |
|
Архивный участник
Join Date: May 2005
Posts: 2,033
|
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"
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Nov 2004
Posts: 1,405
|
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! |
|
|
|
|
#7 |
|
Архивный участник
Join Date: Feb 2006
Posts: 88
|
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 |
|
|
|
|
#8 | |
|
Архивный участник
Join Date: Feb 2005
Posts: 357
|
Quote:
|
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: May 2005
Posts: 2,033
|
hey, i didnt say its comfortable...
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|