Thread: [Guide] AI
View Single Post
Old 21.06.2007, 16:10   #4
ateh
Архивный участник
 
Join Date: Apr 2006
Posts: 118
Default

Quote:
Originally Posted by HF View Post
Can give how it to see in decompiled mode?

add = +
xor = xor
mod = /
...
That's what I added to Sauron's decompiler:
Code:
			case 'mul':
				$stack[$sp-1] =  $stack[$sp-1].' * '.$stack[$sp];
				if($sp != 0) $stack[$sp-1] = '( '.$stack[$sp-1].' )';
				$sp--; array_pop($stack);
				break;
			case 'xor':
				$stack[$sp-1] =  $stack[$sp-1].' ^ '.$stack[$sp];
				if($sp != 0) $stack[$sp-1] = '( '.$stack[$sp-1].' )';
				$sp--; array_pop($stack);
				break;
			case 'mod':
				$stack[$sp-1] =  $stack[$sp-1].' % '.$stack[$sp];
				if($sp != 0) $stack[$sp-1] = '( '.$stack[$sp-1].' )';
				$sp--; array_pop($stack);
				break;
			case 'bit_or':
				$stack[$sp-1] =  $stack[$sp-1].' | '.$stack[$sp];
				if($sp != 0) $stack[$sp-1] = '( '.$stack[$sp-1].' )';
				$sp--; array_pop($stack);
				break;
			case 'bit_and':
				$stack[$sp-1] =  $stack[$sp-1].' & '.$stack[$sp];
				if($sp != 0) $stack[$sp-1] = '( '.$stack[$sp-1].' )';
				$sp--; array_pop($stack);
				break;
			case 'negate':
				$stack[$sp] *= -1;
				break;
			case 'not':
				$stack[$sp] = '~('.$stack[$sp].')';
				break;
Well, some of this lines were already there, so check which you don't have.

Quote:
Originally Posted by HF View Post
Yes. It question has been discussed some month ago. But.. i told only what i find in retail AI.obj. All handlers have value equal amount line into handler without Lxx, Empty lines and Variables block. Maybe you know "NCSoft real true" or have retail Compiler?
Well, I don't have retail compiler ;P But I was sure I had original AI from begining and there Lxxx were counted into handler... Gonna try with lowering this number by count of Lxxx and see what happens
ateh is offline