[Help] Converting offsets

This is a discussion on [Help] Converting offsets within the Warcraft 3 Hacks, bots and tools board part of the Warcraft 3 forum category; Hi all, i have been reading on how to convert offsets, a post by TyranO, but i dont understand.. Check ...

Results 1 to 4 of 4
  1. #1
    ginocapo is offline Wannabe Member
    Array
    Join Date
    May 2011
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0

    [Help] Converting offsets

    Hi all, i have been reading on how to convert offsets, a post by TyranO, but i dont understand..



    Check his post:
    Converting hacks between game versions (WC3 example)

    Hi, I don't have the time to convert or make hacks no more, so I am going to tell you guys (the smarter) how to do it. You do not need the source of a hack to do this. Note that these steps are meant for somebody who has some computer knowledge, and some reverse engineering knowledge (very basic).

    Tools needed:

    - OllyDBG
    - Warcraft Version Switcher
    - ProcessExplorer
    - A brain

    First step is to have the game installed at two places on your computer (copy/paste WC3 folder). One of them should be patched to the latest WC3 patch. The other one should be patched to the old patch (using Warcraft 3 Version switcher).

    You will now have Warcraft 3-I (new patch) and Warcraft 3-2 (old patch)

    If you have the source of the hack:

    1. Download Warcraft version switcher.
    2. Download ProcessExplorer and install it.
    3. Open Warcraft 3, latest game version (Warcraft 3-I)
    4. Close Warcraft 3 Game Handle inside ProcessExplorer
    5. Open Warcraft 3-2, which should be set to an older version using Warcraft Version Switcher
    6. Open OllyDBG on both warcrafts.
    7. "Go to" the offsets in Warcraft 3-2 that were used in the old hack.
    8. At the offset, copy some the bytes (at least 10 I'd say, but depends), and search for them in Warcraft-1 (OllyDBG) (be careful of longer jumps and calls, only use bytes you know will stay the same on both versions)
    9. You should now have the new offsets.
    10. Compile with your new offsets.

    If you don't have the source:
    1. Open the old hack.
    2. Open Warcraft 3-2.
    3. Attach OllyDBG on Warcraft 3-2.
    4. Use features on the hack, then check for patches.
    5. You should now have most of the offsets.
    6. Take them down.
    7. Convert them using the steps aforementioned.
    8. Once you have the new offsets, search and replace them using an hex editor.


    Link: Converting hacks between game versions (WC3 example)

    But i dunno what to do in step 6: Open OllyDBG on both warcrafts., because in step 4:4. Close Warcraft 3 Game Handle inside ProcessExplorer he close the Warcraft 3 handle, so how i can have both warcraft open if i closed 1 before? If you can help me please, i would be gratefull ! Thanks !!

  2. #2
    YourName's Avatar
    YourName is offline THE ONE AND ONLY DARK KNIGHTY


    Array
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    1,553
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    16
    Reputation
    1088
    If you close the game handle it will still be kept open by Olly iirc. So the step is perfectly valid.
    Providing you with foolish stuff since 2007.

  3. #3
    ginocapo is offline Wannabe Member
    Array
    Join Date
    May 2011
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    0
    Reputation
    0
    i need to convert these offsets from DarkSupremo, which are for 1.25b, but i need for 1.24e, and i dont know how to convert :/


    //Ally Hero icon
    puts("Ally Hero icon");
    PATCH(0x370990,"\xE8\x3B\x28",3);
    PATCH(0x370995,"\x85\xC0",2);
    PATCH(0x370998,"\x84",1);
    PATCH(0x37099D,"\xEB\xC9\x90\x90\x90\x90",6);
    //Enemy Hero icon puts("- Enemy Hero icon");
    PATCH(0x370990,"\xE8\x3B\x28",3); PATCH(0x370995,"\x85\xC0",2);
    PATCH(0x370998,"\x85",1);
    PATCH(0x37099D,"\xEB\xC9\x90\x90\x90\x90",6);
    //All Hero icon
    puts("All Hero icon");
    PATCH(0x370995,"\xEB\x06",2);
    PATCH(0x37099D,"\xEB\xC9\x90\x90\x90\x90",6);
    Last edited by ginocapo; 03-09-2012 at 09:24 PM.

  4. #4
    Farid.Agl's Avatar
    Farid.Agl is offline Advanced Hacker

    Array
    Join Date
    Sep 2011
    Posts
    448
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Rep Power
    8
    Reputation
    322
    At patch 1.25b go to these addresses, copy some bytes that you are sure will be same on other patches, go on your desired patch and search for bytes you copied previously.
    Just update the addresses and you are done.
    http://faridaghili.ir

Similar Threads

  1. Replies: 1
    Last Post: 02-09-2012, 11:51 PM
  2. Converting .jar files to .ali
    By Ryan in forum Entertainment
    Replies: 7
    Last Post: 06-05-2008, 08:09 AM
  3. Converting Forum
    By hendricius in forum Entertainment
    Replies: 3
    Last Post: 03-09-2007, 11:21 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
  •