|1.12.1] - GetObjectPtr error The value of ESP was not properly saved menu

User Tag List

Results 1 to 1 of 1
  1. #1
    Lywbringer's Avatar Member
    Reputation
    11
    Join Date
    Sep 2022
    Posts
    14
    Thanks G/R
    2/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    |1.12.1] - GetObjectPtr error The value of ESP was not properly saved

    I have another question regarding the function GetObjectPtr, when I use this in c# it works fine:

    Code:
    const int GET_OBJECT_PTR_FUN_PTR = 0x00464870;
    
    [UnmanagedFunctionPointer(CallingConvention.StdCall)]
    delegate IntPtr GetObjectPtrDelegate(ulong guid);
    
    static readonly GetObjectPtrDelegate GetObjectPtrFunction =
        Marshal.GetDelegateForFunctionPointer<GetObjectPtrDelegate>((IntPtr)GET_OBJECT_PTR_FUN_PTR);
    
    internal static IntPtr GetObjectPtr(ulong guid) {
        return GetObjectPtrFunction(guid);
    }
    But when I use this in C++ it returns the error: "The value of ESP was not properly saved across a function call"

    Code:
    intptr_t Functions::GetObjectPtr(unsigned long guid) {
    	typedef intptr_t __stdcall func(unsigned long);
    	func* function = (func*)GET_OBJECT_PTR_FUN_PTR;
    	intptr_t ptr = function(guid);
    	return ptr;
    }
    I tried using different conventions for GetObjectPtr like __fastcall or __cdecl but nothing is working !


    EDIT:

    Found my error, you can delete this post, I'm sorry for spam !

    It was:

    Code:
    typedef intptr_t __stdcall func(unsigned long);
    to

    Code:
    typedef intptr_t __stdcall func(unsigned long long);
    Last edited by Lywbringer; 09-17-2022 at 05:33 AM.

    |1.12.1] - GetObjectPtr error The value of ESP was not properly saved
  2. Thanks Hazzbazzy (1 members gave Thanks to Lywbringer for this useful post)

Similar Threads

  1. Estimating the value of an account?
    By SevenToNeven in forum Path of Exile
    Replies: 0
    Last Post: 11-02-2018, 04:35 AM
  2. [Auction House] Please help to estimate the value of my Account that i want to sell!
    By Niek in forum World of Warcraft General
    Replies: 3
    Last Post: 10-27-2017, 01:45 AM
  3. Niantic recorded the location of Pokemon encounter, not capture.
    By Heindrich in forum Pokemon GO Hacks|Cheats
    Replies: 5
    Last Post: 09-29-2016, 05:37 PM
  4. Need a rough estimate on the value of my WoW account...
    By Tawz in forum World of Warcraft General
    Replies: 8
    Last Post: 08-08-2012, 01:36 PM
  5. Replies: 0
    Last Post: 02-12-2007, 08:47 PM
All times are GMT -5. The time now is 10:20 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search