![]() |
C4 AI Decompiler
this was done with c4 original ids (i know they are wrong) so there are 2 options, or decompiled original ai.obj which has to be place in the folder root or replace all the ids with the onces used by the ai.obj you want to decompile.
http://rapidshare.com/files/437524/C...piler.rar.html theorically supports while, for, select case, if, else if, else, complex strings (var + "text" + var), buylist, teleportlist.... |
w0000t Sauron Awsome job ! Think you just got boored lol and decided to do it !
Since i thought you retired and shit ! Manny thanks for the decompiler and for all things you cleared and helped me out on ! Tavi |
omg! O_o
Very big thx Sauron! gj ;) |
Thanks for the share. Good job!
|
Great share Sauron!!
|
Very good - THX! :)
|
Nice,Keep up the good work :)
|
Godlike share, good job
|
Thank you sooo much, now i can really start to learn C4 AI.
|
Kicks arse :) ... and I suppose next one comming is the SauComp.
Cheers |
Greate work. Tnx.
|
Yes we can decompile and what about compile? :)
rus: А как компилировать то всё это? :) |
thank Sauron, very nice share :)
|
Good Work ^^
now you have to work to... how compile? :P |
Thanks a lot Sauron! This will be really useful!
|
it's translator, not decompiler ;)
|
Awesome work ! World woud be great if all ppl are like u and humordwarf! ^^
|
ty so much, great share dude :D
|
Thank Sauron!!! Good Work!
|
Awesome work, thx ^^
|
is it possible to tell us how you compile your C4 ai?
because atm we use your decompiler and to compile we first compile it with the C1 compiler and then convert it to C4 but the converter is very error sensitive... any information on this would be very appreciated. |
i code directly in ai.obj.
i have a c1 compiler in php, maybe in a near future i'll addapt it to c4. |
thank you Sauron great share
|
10x for this tool.
Now very easy look in ai but some bugs present i0 = myself->FloatToInt(myself.sm.x); i1 = myself->FloatToInt(myself.sm.creature); i2 = myself->FloatToInt(myself.sm.z); should be i0 = myself->FloatToInt(myself.sm.x); i1 = myself->FloatToInt(myself.sm.y); i2 = myself->FloatToInt(myself.sm.z); also if( 268435456 ) { myself.i_ai0 = 1; myself.sm.param3 = ( myself.sm.param3 - 268435456 ); } to if( myself.sm.param3 & 268435456 ) { myself.i_ai0 = 1; myself.sm.param3 = ( myself.sm.param3 - 268435456 ); } |
Quote:
Maybe is duo to different ids...? Quote:
|
Mark20 ok, I cant read :)
cant fix festival mobs, dont understand that wrong ( |
Now i can fix that bitch puss the cat....
nathan b) |
Somebody can explain to me why these parameters repeat? And where true.
8|default|x 12|default|y 16|default|y 24|default|z 40|default|name 68|default|x 72|default|y 76|default|z 90|default|name 200|default|name Still more some examples. |
i scaned for all vars ids, some were repeted with diferent ids
ex: push_event // myself push_const 704 add fetch_i // sm push_const 544 add fetch_i // x push_const 8 push_event // record0 push_const 712 add fetch_i // x push_const 68 add default is the handler, cos i think (i don't remember) some ids are unique in some handlers. |
Quote:
2) When I searched for correct values, I too have met that these two functions do not give in to logic. There can be you can tell conditions for them? 251658240|Next,0,0 251658242|RandomSelectOne,0,0 335544320|Next,0,0 335544321|RandomSelectOne,0,0 3) Why many fetch_i have erroneous values? It specially? :) I mean what already for a long time are corrected and published and at this forum. for example: fetch_i // max_magic_level push_const 2096 must be 2088 and etc |
Original message
* Script Checker and Fixer Modules * New- Ai.obj Fixer: Check of a file on correct values in func_call, fetch_i, push_event and correction. Support log. New- Ai.obj Handler Line checker: Check of a file on quantity of lines in Handler.. Support log. 4.0.7.1 + Script Checkers: 'Ai.obj Fixer' remove to "Scripts file checker" * Script Checkers: 'Ai.obj Fixer' Files from Sauron C4Decompiler knowledge base are used. But with corrections and changes in a format of files for work with this program. 4.0.7.0 + Start new project - "Scripts file checker". Checking on correct numbers, formats and etc. + Script Checkers: 'AI Handler Line checker'. Calculate defined and real line numbers in handler. 4.0.6.0 - AiInjector: 'Split' and 'Inject' compatible with C4 AI.obj now. File structure for "Ai.obj Fixer' in original message. Letter to Sauron Sauron, I would like to communicate to you with the purpose of a finding of correct values and with the purpose of the further cooperation. |
Does anyone have a compiler for it??? Like nasc but i ve old version. Please share latest version.
|
Code:
class npcbuffer : citizen |
Quote:
|
Now we need compiler :)
|
Wrote him ;)
|
//eng
And at me here what question and as me back to collect ai sorri me eng is bad //rus а у меня вот какой вопрос а как мне обратно собрать ai |
Yea seriously, a compiler does need to be made and shared because stack machine will kill me soon...
i can code AI in "Code Form" but not as raw as that, a compiler will save my life xD |
Juts revert a process :P
|
Quote:
|
| All times are GMT. The time now is 22:59. |