Trying to make own aob hack, need some help (solipskier)
-migrated-
Hi,


I'm trying to make my own aob hacks.. just for fun sakes : )

Now I'm trying to do it on the game solipskier, there already exists one that makes sure only tunnels appear.. (and sometimes a kill gate..)


Anyway what I wanted to try was make it so that the game is as normal BUT you ALWAYS get a perfect tunnel whenever you have hit the tunnel..

So what I did was search the function that handeled the tunnels in the Main part of the actions dir (calling it a dir cause it comes in handy to do that :p ) in the swf file..


Code: [Select]
public function tunnelGateHit() : void
        {
            if (inkJar > 0)
            {
                inkJar = inkJar + 0.25;
            }
            var _loc_2:* = perfectTunnelCount + 1;
            perfectTunnelCount = _loc_2;
            scorekeeper.crossTunnelGate();
            if (perfectTunnelCount == 40)
            {
                scorekeeper.perfectTunnel();
            }
            return;
        }// end function

      
Code: [Select]

public function tunnelGateHit() : void
        {
//d0
_as3_getlocal <0>
//30
_as3_pushscope
//60 4c
_as3_getlex inkJar
//24 00
_as3_pushbyte 0
//0e 09 00 00
_as3_ifngt offset: 9
//5e 4c
_as3_findproperty inkJar
//60 4c
_as3_getlex inkJar
//2f 10
_as3_pushdouble 0.25
//a0
_as3_add
//68 4c
_as3_initproperty inkJar
//5d 51
_as3_findpropstrict perfectTunnelCount
//2a
_as3_dup
//d5
_as3_setlocal <1>
//66 51
_as3_getproperty perfectTunnelCount
//c0
_as3_increment_i
//d6
_as3_setlocal <2>
//d1
_as3_getlocal <1>
//d2
_as3_getlocal <2>
//61 51
_as3_setproperty perfectTunnelCount
//08 02
_as3_kill <2>
//08 01
_as3_kill <1>
//60 22
_as3_getlex scorekeeper
//4f 87 03 00
_as3_callpropvoid crossTunnelGate(param count:0)
//60 51
_as3_getlex perfectTunnelCount
//24 28
_as3_pushbyte 40
//14 06 00 00
_as3_ifne offset: 6
//60 22
_as3_getlex scorekeeper
//4f 8b 03 00
_as3_callpropvoid perfectTunnel(param count:0)
//47
_as3_returnvoid
        }// end function


Now what I did was change these lines:

Code: [Select]
//24 28
_as3_pushbyte 40
//14 06 00 00
_as3_ifne offset: 6

to

Code: [Select]
//24 00
_as3_pushbyte 40 ----> 0
//0e 06 00 00
_as3_ifne offset: 6   ----> ifngt offset: 6

So then:

Code: [Select]
if (perfectTunnelCount == 40)
            {
                scorekeeper.perfectTunnel();
            }

Should be changed to:

Code: [Select]
if (perfectTunnelCount > 0)
            {
                scorekeeper.perfectTunnel();
            }

This gives:

24 28 14 06 00 00
24 00 0e 06 00 00

So I open cheat engine, load the game in firefox..

Search the first aob, find it.. double click it, edit the value and change it to the second aob..

I go into a tunnel.. Now every hit should give a perfectTunnel()...
But it doesn't..


Any ideas?

I'd really like to learn : )
Never let a computer tell me shit.
did you try

Code: [Select]
//24 00
_as3_pushbyte 40 ----> 0
//0e 00 00 00
_as3_ifne offset: 6   ----> ifngt offset: 0
in other words
Code: [Select]
var _loc_2:* = perfectTunnelCount + 1;
            perfectTunnelCount = _loc_2;
            scorekeeper.crossTunnelGate();
            scorekeeper.perfectTunnel();

            return;

but try this guy

try this guy set count to 40 and then proceed to not give a damn what its value is.
d0 30 60 4c 24 00 0e 09 00 00 5e 4c 60 4c 2f 10 a0 68 4c 5d 51 2a d5 66 51 c0 d6 d1 d2 61 51 08 02 08 01 60 22 4f 87 03 00 60 51 24 28 14 06 00 00 60 22 4f 8b 03 00 47

d0 30 60 4c 24 00 0e 09 00 00 5e 4c 60 4c 2f 10 a0 68 4c 5d 51 2a d5 24 28 02 d6 d1 d2 61 51 08 02 08 01 60 22 4f 87 03 00 60 51 24 28 14 00 00 00 60 22 4f 8b 03 00 47

Code: [Select]
//d0
_as3_getlocal <0>
//30
_as3_pushscope
//60 4c
_as3_getlex inkJar
//24 00
_as3_pushbyte 0
//0e 09 00 00
_as3_ifngt offset: 9
//5e 4c
_as3_findproperty inkJar
//60 4c
_as3_getlex inkJar
//2f 10
_as3_pushdouble 0.25
//a0
_as3_add
//68 4c
_as3_initproperty inkJar
//5d 51
_as3_findpropstrict perfectTunnelCount
//2a
_as3_dup
//d5
_as3_setlocal <1>
//24 28
_as3_pushbyte 40
//02
_as3_NOP
//d6
_as3_setlocal <2>
//d1
_as3_getlocal <1>
//d2
_as3_getlocal <2>
//61 51
_as3_setproperty perfectTunnelCount
//08 02
_as3_kill <2>
//08 01
_as3_kill <1>
//60 22
_as3_getlex scorekeeper
//4f 87 03 00
_as3_callpropvoid crossTunnelGate(param count:0)
//60 51
_as3_getlex perfectTunnelCount
//24 28
_as3_pushbyte 40
//14 00 00 00
_as3_ifne offset: 6
//60 22
_as3_getlex scorekeeper
//4f 8b 03 00
_as3_callpropvoid perfectTunnel(param count:0)
//47
_as3_returnvoid


also without looking I would presume you would need to look at the score keeper  tunnel functionas well as well



I use this AoB tool to make all the AoBs I post. Try the online version if you dont feel like downloading it.
"Obviously, windows are central to Windows. They are so important that they named the operating system after them. But what is a window?"