Need help with writing code that is version independent menu

User Tag List

Results 1 to 5 of 5
  1. #1
    whitea2's Avatar Member
    Reputation
    1
    Join Date
    Sep 2012
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help with writing code that is version independent

    I'm attempting to write my code so that it is version independent and I don't have to search for the new offset every time a patch is released.

    In version 15.572, the instruction which determines the first offset to pointers for player_x, player_y etc. is at address:
    Gw2.exe + 6A840 "mov eax, Gw2.exe+011B39F0"

    This value + 20C which gets added later in the code is consistent with what others have already posted. I could simply read the postbyte stored there to determine the first pointer. However, from my understanding of compilers, I think the location of this instruction will change with each patch. Therefore, I'm back to square one.

    Does anybody have any tips on writing code that is version independent. It's cumbersome to manually search for offsets to get my speed/gravity program working again. Thanks in advance for any help.

    Disclaimer: I'm new to the memory reading/writing section of botting although I have a strong understanding of memory maps, asm. etc. If this question is too noobish for this forum, sorry and feel free to delete/ignore it.

    Need help with writing code that is version independent
  2. #2
    DarkLinux's Avatar Former Staff
    CoreCoins Purchaser Authenticator enabled
    Reputation
    1584
    Join Date
    May 2010
    Posts
    1,829
    Thanks G/R
    188/531
    Trade Feedback
    16 (100%)
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    You will need to create a pattern... Google IDA pattern plugin or something... The address will change, but not the code (most of the time). So you search for the code, ones you have found the code you will have the offset.
    Last edited by DarkLinux; 09-27-2012 at 11:41 AM.

  3. #3
    Jaerin's Avatar Former Staff
    Reputation
    641
    Join Date
    Sep 2008
    Posts
    1,290
    Thanks G/R
    29/126
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to use signature scanning:

    Signature Scanning - AlliedModders Wiki

    Basically you are automatically scanning for the code around that function so that you can automatically see when it moves.

  4. #4
    whitea2's Avatar Member
    Reputation
    1
    Join Date
    Sep 2012
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks so much for the information and responses. I'll be sure to read up on it. If I ever get anything decent written, I'll be sure to post it.

  5. #5
    mrLudijak's Avatar Private
    Reputation
    1
    Join Date
    Sep 2012
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can pretty much get anything from this.

    Code:
    WorldViewContext = Tools.FindPattern(GW2Base,0x168C000,(PBYTE)"\xA1\x00\x00\x00\x00\x85\xC0\x75\x19\x68", "x????xxxxx");
    		
    		if(WorldViewContext)
    		{
    		WorldViewContext+=1;
                    pWvw = (CWvContextPtr*)(DWORD*)*(DWORD*)WorldViewContext;
                    ...
                    }
    Last edited by mrLudijak; 10-02-2012 at 02:27 AM.

Similar Threads

  1. [Selling] Need help with selling account -.- any website that accept accounts fast and safe?
    By Dybbiz in forum General MMO Buy Sell Trade
    Replies: 0
    Last Post: 12-16-2012, 02:08 PM
  2. Replies: 1
    Last Post: 07-10-2012, 03:49 PM
  3. need help with this c++ code
    By igud2 in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 05-06-2009, 06:09 AM
All times are GMT -5. The time now is 10:27 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search