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 


DotNetDataCollector incorrect field descriptions in SD?

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

Joined: 16 Oct 2014
Posts: 8

PostPosted: Sun Feb 01, 2015 7:35 am    Post subject: DotNetDataCollector incorrect field descriptions in SD? Reply with quote

I'm using Structure Dissect on a .net game (Rogue Legacy). Using the latest DotNetDataCollector (july 6 2014), it seems the descriptions of the fields could be wrong.

See attached screenshot of the structure as example. The values and types all seem correct, but the descriptions are weird. Offsets 0014 and 0018 for example are called "Explosive_Expert" and "Icicle" but I'm almost certain they're supposed to be width and height. Same with offsets 0048 and 004C, should be X and Y positions (a Vector2 struct).

Comparing it to the decompiled source code they don't match up, some fields are missing and others appear multiple times.

Thoughts?

(P.S. DotNetDataCollector is fucking awesome though... did not discover it until I'd already been at it several hours with an older version of CE, and after upgrading and suddenly seeing the text 'RogueLegacy.RoomObj' in the Structure dissect it blew my mind Very Happy .)



SD.png
 Description:
 Filesize:  82.45 KB
 Viewed:  7377 Time(s)

SD.png


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 358

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

PostPosted: Sun Feb 01, 2015 7:52 am    Post subject: Reply with quote

Not really sure, I know that the entries with _2 are part of a vector (2nd part of the 2 field vector with the same name)

You restarted cheat engine after replacing the dotnetdatacollector exe's ?

do you know if the original one does it show it like this as well ?

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
Novakin
How do I cheat?
Reputation: 0

Joined: 16 Oct 2014
Posts: 8

PostPosted: Sun Feb 01, 2015 8:48 am    Post subject: Reply with quote

Yep restarted computer a few times just to make sure.

I went back to the old DotNetDataCollector (the one packaged with the CE 6.4 download), uninstalled CE and removed folder, reinstalled CE. Aside from not showing the superclass fields (which was fixed in the later version of DotNetDataCollector) the descriptions look the same. See attached screenshot.

The entries with _2 are interesting, I count 5 of them in my first screenshot that occur in the superclass, and when I look at the source code the superclass also has 5 Vector2 fields. So it looks like it gets that right, just like almost everything else. Just the description part that's odd.

I added the decompiled code of both classes (RoomObj and it's super GameObj) in case that helps any:
pastebin(dot)com/7zbU4gKX
pastebin(dot)com/4KVchvHd



SD_old.png
 Description:
 Filesize:  76.04 KB
 Viewed:  7360 Time(s)

SD_old.png


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 358

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

PostPosted: Sun Feb 01, 2015 11:20 am    Post subject: Reply with quote

i havn't checked the class yet, but am i correct in assuming the weird names(excluding the_2,3,4...) show up only in fields declared by the superclass(es) ?
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
Novakin
How do I cheat?
Reputation: 0

Joined: 16 Oct 2014
Posts: 8

PostPosted: Sun Feb 01, 2015 11:45 am    Post subject: Reply with quote

I hadn't noticed before but you're right. The fields from the class itself (after offset 0074) have correct descriptions but the fields from the superclass (before offset 0074) are the odd ones.

Would it have anything to do with the fact that the superclass is from a different dll / assembly?

class (RoomObj): E:\SteamLibrary\steamapps\common\Rogue Legacy\RogueLegacy.exe
superclass (GameObj): E:\SteamLibrary\steamapps\common\Rogue Legacy\DS2DEngine.dll
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 358

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

PostPosted: Sun Feb 01, 2015 12:04 pm    Post subject: Reply with quote

it's possible it's referencing the string index in the wrong assembly. i'll add it to the stuff that needs to be checked
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
Novakin
How do I cheat?
Reputation: 0

Joined: 16 Oct 2014
Posts: 8

PostPosted: Sun Feb 01, 2015 12:07 pm    Post subject: Reply with quote

Ok, thanks!
Back to top
View user's profile Send private message
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