Xellos
04.03.2006, 14:00
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 (http://l2.t-u-x.org/ai_decompiled_pass1_v0.zip)
(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.
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 (http://l2.t-u-x.org/ai_decompiled_pass1_v0.zip)
(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.