Results 1 to 4 of 4
  1. #1
    Dwar
    Dwar is offline
    Veteran Dwar's Avatar
    Join Date
    2010 Mar
    Posts
    2,222
    Thanks Thanks Given 
    211
    Thanks Thanks Received 
    2,230
    Thanked in
    292 Posts
    Rep Power
    10

    Just Cause 2 Unlimited Ammo with CE and Ollydbg

    Just Cause 2 Unlimited Ammo Tutorial
    Let's get started.

    Load the game and attach Cheat Engine. After that enter you current ammunition (167 in my case) in Value textbox and hit New Scan.

    Go back in game and shoot once, twice or more and reload. Open up CE and enter new ammunition value (166 for me) and hit Next Scan. Only two addresses...this is going to be easy

    Just to be sure go back in game, shoot some more and reload. Open up CE and check the addresses. For me the value above changed randomly to 17 and quickly up to 161, but I only shot once so I need value 165 and only one address holds it.
    Double click on the address and it will be added to memory list. Now right click on the newly added address and choose "Find out what writes to this address." It will ask you do you want to attach Cheat Engine to processes. Hit yes.

    Go back into the game, shoot and reload once. Come back to Cheat Engine and look at "The following opcodes changed the selected address" window. You should have one line if you shot once. Select it and hit "More information." Notice the red line. This is what we need. Write down the address 00579d50.

    Extra information: Some of you might wonder why not to use Ollydbg after we've found the address and the value. It seems Steam doesn't like debuggers much and so when Olly hit the breakpoint game crashed.

    Open up Ollydbg and go to File -> Attach -> Find and select JustCause2.exe -> Click attach. Ollydbg pauses the process and brings up ntdll module. So, click the big E button after L. Double-click on JustCause2.exe.



    Right click anywhere in the code window and choose Go to -> Expression. Type in the address you wrote down before (00579d50) and click OK.

    This is where we end up. Looks familiar right?
    We few ways to get unlimited ammunition :
    1. NOP the 00579D4E line. This way after reloading 0 bullets will be added(removed (next line).
    2. NOP the 00579D50 line. Nothing will be added to address thus ammunition won't change.
    3. Change ADD to SUB. This way instead of removing bullets on every reload you get more. I like this one the most so we'll go with it.
    4. ...there are actually many other ways


    Double-click on 00579D50 line and change ADD to SUB, click assemble.

    Done. Continue process (click F9) and you have unlimited ammo.
    Game will crash when you die

    This happens because everything hates Ollydbg. Write your tiny trainer to patch one byte at address 00579D50. That byte would be 0x29 as you can see in Ollydbg once you've changed ADD to SUB.
    So, WriteProcessMemory would look something like this :
     byte patch = {0x29};
    WriteProcessMemory(hProc, (LPVOID)0x00579D50, &patch, 1, 0);

    Simple as that.
    By epox
    Please, post your questions on forum, not by PM or mail

    I spend my time, so please pay a little bit of your time to keep world in equilibrium

  2. #2
    gosicks
    gosicks is offline
    New member
    Join Date
    2010 Oct
    Posts
    31
    Thanks Thanks Given 
    0
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts
    Rep Power
    0
    hmmm....in my game always crash when attach to debuger.... and i have no idea for scanning ammo

  3. #3
    Dwar
    Dwar is offline
    Veteran Dwar's Avatar
    Join Date
    2010 Mar
    Posts
    2,222
    Thanks Thanks Given 
    211
    Thanks Thanks Received 
    2,230
    Thanked in
    292 Posts
    Rep Power
    10
    Quote Originally Posted by gosicks View Post
    always crash when attach to debuger
    Try another CE version, e.g. 5.5. Or use ollydbg
    Please, post your questions on forum, not by PM or mail

    I spend my time, so please pay a little bit of your time to keep world in equilibrium

  4. #4
    SaptaAgunk
    SaptaAgunk is offline
    New member SaptaAgunk's Avatar
    Join Date
    2010 Dec
    Posts
    13
    Thanks Thanks Given 
    14
    Thanks Thanks Received 
    0
    Thanked in
    0 Posts
    Rep Power
    0
    so what if we want to make a trainer or as DLL injection
    that his use of only pressing the hotkey on your keyboard
    so that the beep and active cheat!

    can I have some source code with DevC + + language?
    and not detected by HackShield

    Before Thanks!

Similar Threads

  1. [Bug] Infinite Ammo
    By kj_mendes2 in forum Aika Bots, Hacks, Cheats
    Replies: 8
    Last Post: 2012-07-15, 05:57 PM
  2. [Bug] Infinite Ammo !
    By FOXX in forum Aika Bots, Hacks, Cheats
    Replies: 24
    Last Post: 2012-07-09, 02:08 AM
  3. [Tutorial] Ammo Bug
    By Hourk in forum Aika Bots, Hacks, Cheats
    Replies: 4
    Last Post: 2012-06-20, 05:35 PM
  4. [Request] Dungeons & Dragons Online Unlimited
    By CriticalError in forum Research Requests
    Replies: 0
    Last Post: 2012-02-25, 12:47 PM

Posting Permissions

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