Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 24.10.2006, 02:03   #1
Sauron
Архивный участник
 
Join Date: Feb 2005
Posts: 357
Default 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....
Sauron is offline  
Old 24.10.2006, 02:19   #2
TheOrder
Архивный участник
 
Join Date: Sep 2005
Posts: 731
Default

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
TheOrder is offline  
Old 24.10.2006, 05:47   #3
Koner
Архивный участник
 
Join Date: Sep 2005
Posts: 212
Default

omg! O_o
Very big thx Sauron!
gj
Koner is offline  
Old 24.10.2006, 06:11   #4
mcrabben7
Архивный участник
 
Join Date: Apr 2006
Posts: 461
Default

Thanks for the share. Good job!
mcrabben7 is offline  
Old 24.10.2006, 06:15   #5
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

Great share Sauron!!
hel is offline  
Old 24.10.2006, 06:16   #6
Domzelan
Архивный участник
 
Join Date: Apr 2005
Posts: 599
Default

Very good - THX!
Domzelan is offline  
Old 24.10.2006, 06:43   #7
ismael66
Архивный участник
 
Join Date: Sep 2006
Posts: 122
Default

Nice,Keep up the good work
ismael66 is offline  
Old 24.10.2006, 06:45   #8
SlayerX
Архивный участник
 
Join Date: Dec 2005
Posts: 82
Default

Godlike share, good job
SlayerX is offline  
Old 24.10.2006, 08:36   #9
GMan
Архивный участник
 
Join Date: Sep 2005
Posts: 198
Default

Thank you sooo much, now i can really start to learn C4 AI.
GMan is offline  
Old 24.10.2006, 09:38   #10
cypher
Архивный участник
 
Join Date: Oct 2005
Posts: 166
Default

Kicks arse ... and I suppose next one comming is the SauComp.

Cheers
cypher is offline  
Old 24.10.2006, 13:15   #11
barabashka
Архивный участник
 
Join Date: Jan 2006
Posts: 55
Default

Greate work. Tnx.
barabashka is offline  
Old 24.10.2006, 13:16   #12
Domzelan
Архивный участник
 
Join Date: Apr 2005
Posts: 599
Default

Yes we can decompile and what about compile?

rus: А как компилировать то всё это?
Domzelan is offline  
Old 24.10.2006, 19:08   #13
MuNLoK
Архивный участник
 
Join Date: Sep 2005
Posts: 255
Default

thank Sauron, very nice share
MuNLoK is offline  
Old 24.10.2006, 19:32   #14
dinesat4
Архивный участник
 
Join Date: Jul 2005
Posts: 123
Default

Good Work ^^

now you have to work to... how compile? :P
dinesat4 is offline  
Old 24.10.2006, 19:56   #15
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

Thanks a lot Sauron! This will be really useful!
m4rk is offline  
Old 24.10.2006, 23:20   #16
adriahu
Архивный участник
 
Join Date: Oct 2006
Posts: 47
Default

it's translator, not decompiler
adriahu is offline  
Old 25.10.2006, 02:32   #17
fanatic
Архивный участник
 
Join Date: May 2006
Posts: 28
Default

Awesome work ! World woud be great if all ppl are like u and humordwarf! ^^
fanatic is offline  
Old 25.10.2006, 03:18   #18
Guaresnay
Архивный участник
 
Join Date: Oct 2005
Posts: 113
Default

ty so much, great share dude
Guaresnay is offline  
Old 25.10.2006, 04:08   #19
karabas
Архивный участник
 
Join Date: Jul 2005
Posts: 27
Default

Thank Sauron!!! Good Work!
karabas is offline  
Old 25.10.2006, 04:09   #20
Isachs
Архивный участник
 
Join Date: Aug 2006
Posts: 30
Default

Awesome work, thx ^^
Isachs is offline  
Old 25.10.2006, 21:44   #21
hhk31257
Архивный участник
 
Join Date: May 2006
Posts: 166
Default

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.
hhk31257 is offline  
Old 25.10.2006, 22:24   #22
Sauron
Архивный участник
 
Join Date: Feb 2005
Posts: 357
Default

i code directly in ai.obj.

i have a c1 compiler in php, maybe in a near future i'll addapt it to c4.
Sauron is offline  
Old 26.10.2006, 00:03   #23
BloodLine
Архивный участник
 
Join Date: May 2006
Posts: 26
Default

thank you Sauron great share
BloodLine is offline  
Old 27.10.2006, 06:00   #24
RmzVoid
Архивный участник
 
Join Date: Apr 2005
Posts: 357
Default

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 );
}
RmzVoid is offline  
Old 27.10.2006, 07:43   #25
Mark20
Архивный участник
 
Join Date: Jan 2006
Posts: 54
Default

Quote:
Originally Posted by RmzVoid View Post
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);

Maybe is duo to different ids...?

Quote:
Originally Posted by Sauron View Post
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.
Mark20 is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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:28.