360haven works best with JavaScript enabled
[Tutorial] Part5: How to find judgment method for code cave
Loading
Page 1 of 2 12 LastLast
Results 1 to 8 of 11
  1. #1
    Traine Dev
    modder
    bagakkkk is offline
    Join Date : Aug 2012
    Posts : 26
    Array

    Part5: How to find judgment method for code cave

    method 1: compare registers
    see Optantic's tut

    method 2: compare patterns
    1. get player HP offset
    2. dump range: player offset +/- 0x200
    3. replay or load game
    4. repeat 1~3 several time

    5. get another enemy HP offset
    6. dump range: enemy offset +/- 0x200
    7. repeat 5~6 several time

    8. use tool to compare difference between player and enemy
    9. you got some offsets and values
    10. you can choose one to judge player and enemy

    if(*(DWORD*)(hp_addr + 0x0C) == 0xABCD1234)
    {
    if(HP_cheat_on)
    {
    ...........................
    }
    }
    else
    {
    if(InstantKill_cheat_on)
    {
    ...........................
    }
    }

    you can write search function and patterns method to locate player offset without code cave (xbox games, diable3, blue dragon)
    Last edited by bagakkkk; 12-12-2013 at 05:27 PM.


  2. The Following 4 Users Say Thank You to bagakkkk For This Useful Post:


  3. #2
    Traine Dev
    optantic

    optantic is offline
    Join Date : Mar 2012
    Posts : 768
    Array

    Re: Part5: How to find judgment method for code cave

    in other words, Ducktales Remastered HD

    if(*(DWORD*)(hp_register + 0x64) == 0x5363726F ) // Scrooge = Player HP
    else = Enemy HP


  4. The Following 2 Users Say Thank You to optantic For This Useful Post:


  5. #3
    Eternal Dragoon
    Rpg_Fan

    Serious_M is offline
    Join Date : Dec 2010
    Location : Netherlands , Amsterdam
    Age : 40
    Posts : 13,028
    Array

    Re: Part5: How to find judgment method for code cave

    nice tuts share bagakkkk and optantic
    Downloads : 59 || Uploads : 1 || Rep Power : 18491 || Posts : 13,028 || Thanks : 3,665 || Thanked 1,794 Times in 1,447 Posts


    Serious_M

  6. #4
    Traine Dev
    rafaelstefany is offline
    Join Date : Nov 2012
    Posts : 55
    Array

    Re: Part5: How to find judgment method for code cave

    Quote Originally Posted by optantic View Post
    in other words, Ducktales Remastered HD

    if(*(DWORD*)(hp_register + 0x64) == 0x5363726F ) // Scrooge = Player HP
    else = Enemy HP
    What you are using as "hp_register".
    Is the address on your exemple a static address?

  7. The Following User Says Thank You to rafaelstefany For This Useful Post:


  8. #5
    Traine Dev
    cosmatypk is offline
    Join Date : Sep 2011
    Posts : 47
    Array

    Re: Part5: How to find judgment method for code cave

    Quote Originally Posted by rafaelstefany View Post
    What you are using as "hp_register".
    Is the address on your exemple a static address?
    This value (address) in the register r3.
    DWORD hp_register;
    __asm mr hp_register,r3
    * (DWORD *) (hp_register + 0x64) == 0x5363726F -This value is by address of register r3.

  9. #6
    Traine Dev
    rafaelstefany is offline
    Join Date : Nov 2012
    Posts : 55
    Array

    Re: Part5: How to find judgment method for code cave

    Quote Originally Posted by cosmatypk View Post
    This value (address) in the register r3.
    DWORD hp_register;
    __asm mr hp_register,r3
    * (DWORD *) (hp_register + 0x64) == 0x5363726F -This value is by address of register r3.
    Thanks dude.
    By the way, any way to convert ppc intruction to byte code?

  10. #7
    Retired Staff

    thegutta is offline
    Join Date : Jun 2011
    Location : On Top Of The World
    Posts : 10,471
    Array
    Twitter: @

    Re: Part5: How to find judgment method for code cave

    Great TuT share bagakkkk :)
    Downloads : 47 || Uploads : 0 || Rep Power : 15561 || Posts : 10,471 || Thanks : 3,231 || Thanked 1,396 Times in 1,224 Posts



  11. #8
    Traine Dev
    optantic

    optantic is offline
    Join Date : Mar 2012
    Posts : 768
    Array

    Re: Part5: How to find judgment method for code cave

    Quote Originally Posted by rafaelstefany View Post
    What you are using as "hp_register".
    Is the address on your exemple a static address?
    822E6F14 stfs fr13,2ACh(r3) // HP Breakpoint, r3(base address) + 0x2AC = in game HP address
    hit player
    r3 = 00000000BCA1FF00

    after HP address has changed in game , set Breakpoint on 0x822E6F14 and get hit by cpu, will always give you the new r3 (base address) for Player's HP address

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. [Tutorial] Part6: How to solve "b, ble, blt, beq, bge, bgt" in code cave
    By bagakkkk in forum Tutorials
    Replies: 3
    Last Post: 08-30-2016, 06:40 PM
  2. code cave help [teamviewer]
    By matthewjohn in forum Help & Support
    Replies: 0
    Last Post: 04-21-2014, 09:11 PM
  3. [Tutorial] Part4: How to debug code cave
    By bagakkkk in forum Tutorials
    Replies: 0
    Last Post: 12-12-2013, 01:35 PM
  4. [REQUEST] How do you make a code cave?
    By Errorjack in forum Help & Support
    Replies: 1
    Last Post: 03-13-2013, 04:57 PM

Visitors found this page by searching for:

Nobody landed on this page from a search engine, yet!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

About 360haven

    360haven is an Forum Devoted To Game modding Fans from all over the world.

    An Awesome Community of Xbox 360 Gamers, Modders and Developers who Create & Share Tutorials, Applications, Gfx, Trainers and Gamesaves.

    A haven for the l33t.
    A scarce paradise for modders.

★★★★★¯\_(ツ)_/¯