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 


Shadow function in Structure Spider?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
predprey
Master Cheater
Reputation: 24

Joined: 08 Oct 2015
Posts: 486

PostPosted: Mon Jan 25, 2016 10:15 am    Post subject: Shadow function in Structure Spider? Reply with quote

what exactly is the "has shadow" function for?

i was using structure spider for comparing changes in a huge data structure. i was comparing two locked data from "Dissect data/structure", but using the shadow function seems to be comparing the data at the original address instead of where the shadowcopies are respectively.

what made me thought so was because using the shadow function yielded zero differences while setting the shadowcopies' address as the base address yielded results.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25832
Location: The netherlands

PostPosted: Mon Jan 25, 2016 5:35 pm    Post subject: Reply with quote

it's useful for cases where you have a copy of a memory region but located at a different spot.
with the shadow option you can make it so pointer references inside that block actually point to the copy (structure dissect has this feature too)

this is very useful with stack snapshots, e.g the s button in the more info screen has an option to make a copy. and the you can follow the stack references and build a local pointerpath with it

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
predprey
Master Cheater
Reputation: 24

Joined: 08 Oct 2015
Posts: 486

PostPosted: Tue Jan 26, 2016 3:05 am    Post subject: Reply with quote

yea, i read that in the float up dialog when hovering over the shadow option, but i don't think i fully understand its meaning.

is it right to say that the data being compared is still the one at the base region, but if there are pointers in that data, they would be referencing the data in the shadowcopy instead?

so for my case, where i'm just searching for changes in a simple data structure that contains no pointers, specifying the location of the shadowcopy under the shadow option is wrong, because it is comparing data at the base address which is one and the same thus not finding any differences in the data.

but if this is so, why does CE automatically fill in the addresses as such when i open structure spider from the right click menu of a locked data structure in "Dissect data/structure"?
Back to top
View user's profile Send private message
predprey
Master Cheater
Reputation: 24

Joined: 08 Oct 2015
Posts: 486

PostPosted: Wed Jan 27, 2016 1:09 pm    Post subject: Reply with quote

i think this picture can explain better for me lol. so i have two shadowcopies of the structure at 0x016A8424. they have differences at a few locations but the scan doesn't find any.

so i guess i'm using it wrongly and should be using the shadow function for scanning for pointers, not for comparing shadowed structures?



Untitled.jpg
 Description:
 Filesize:  74.56 KB
 Viewed:  8242 Time(s)

Untitled.jpg


Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Wed Jan 27, 2016 2:59 pm    Post subject: Reply with quote

You probably need "dissect data" (aka "structure dissect") for this.

Open "structure dissect", add address, lock it (right click edit box), do something in game, add the same address, lock it, define new structure.

_________________
Back to top
View user's profile Send private message MSN Messenger
predprey
Master Cheater
Reputation: 24

Joined: 08 Oct 2015
Posts: 486

PostPosted: Wed Jan 27, 2016 6:54 pm    Post subject: Reply with quote

yea i used dissect before this, the locked structures are from "structure dissect". but my structure is quite big, not the 8192 size above, but a entire savefile decrypted in memory, thus searching manually for differences requires a lot of scrolling and takes too much time
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25832
Location: The netherlands

PostPosted: Thu Jan 28, 2016 4:12 am    Post subject: Reply with quote

easiest is just save both those memory regions to a file and then compare them.
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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