Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


std::string/stl::basic_string pointer trouble

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Lord Helmchen
How do I cheat?
Reputation: 0

Joined: 22 May 2008
Posts: 4

PostPosted: Thu May 22, 2008 8:44 am    Post subject: std::string/stl::basic_string pointer trouble Reply with quote

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
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Thu May 22, 2008 10:57 am    Post subject: Reply with quote

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
View user's profile Send private message
Lord Helmchen
How do I cheat?
Reputation: 0

Joined: 22 May 2008
Posts: 4

PostPosted: Thu May 22, 2008 11:03 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites