| View previous topic :: View next topic |
| Author |
Message |
Lord Helmchen How do I cheat?
Reputation: 0
Joined: 22 May 2008 Posts: 4
|
Posted: Thu May 22, 2008 8:44 am Post subject: std::string/stl::basic_string pointer trouble |
|
|
Hi,
I'm currently trying to find the pointer path to a unicode string in a game. Sadly without success.
The string is used in an ingame dialog, which gets reinstanced as soon as I open it again. However it's possible to change that string without changing the pointer path.
The problem I'm running into is, that I cannot find the spot where the pointer to the string is referenced from.
I scan for the text and get one result (the wchar[] holding the actual value).
I scan for the address of the text and get the std::string position + 4.
Now however these two spots don't get referenced anymore - searching for these two values does not return any results.
And when I place breakpoints in there I just get suggestions for these two addresses/values.
I am sure that this string is part of another bigger class.
Any help or suggestion is welcome.
|
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Thu May 22, 2008 10:57 am Post subject: |
|
|
Suggestion:
1. Game name if it even is one.
2. Links and images would be nice.
3. Little more about what your wanting to do with the string.
|
|
| Back to top |
|
 |
Lord Helmchen How do I cheat?
Reputation: 0
Joined: 22 May 2008 Posts: 4
|
Posted: Thu May 22, 2008 11:03 am Post subject: |
|
|
It's Shadowbane.
I'm trying to fill that dialog (summon) from a macro program, without having to send keys. So I'd basically just allocate a new wchar[] and change the pointer.
I'll try to give you some screenshots later. I'm currently doing a deep pointer scan that might take 2 more hours.
But I can try to detail the actual problem:
The thing is, that when I watch the pointer to the first character of the wchar, I just get code locations inside the std::string or stl::basic_string. Allocation and = to be exact. And I am unable to set a breakpoint on these functions to check the call stack for backtracing, because these function get called all the time from other places (no wonder).
*edit
I stopped that scan as it took forever. Perhaps I'll try that later again during night.
Here is a screenshot:
forum.cheatengine.org/files/summon_413.png
*edit2
Doing a pointer scan over night gave me a working pointer.
|
|
| Back to top |
|
 |
|