View previous topic :: View next topic |
Author |
Message |
Prehistoricman Advanced Cheater Reputation: 0
Joined: 02 Aug 2016 Posts: 80
|
Posted: Sat Oct 28, 2017 4:55 pm Post subject: Compare structure instances? |
|
|
Let's say I have a way to find all the structures for all vehicles in a game.
And I want to find out what its values represent (given there are many results)
How do I solve the problem of finding out what values in the struct are bigger/smaller than in a different instance of the struct? Going back to my example, I know that car x goes faster than y. And I want to find all i for x[i] > y[i]
_________________
Er, hi |
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sat Oct 28, 2017 7:30 pm Post subject: |
|
|
Tools > Dissect data/structure (Ctrl+Alt+D)
|
|
Back to top |
|
|
Prehistoricman Advanced Cheater Reputation: 0
Joined: 02 Aug 2016 Posts: 80
|
Posted: Sat Oct 28, 2017 9:03 pm Post subject: |
|
|
Yes, I'm aware of that. I'm also aware you can add extra columns with extra addressed, and the lines light up different colours when they have different values.
What I'd like to do is more like a scan. A comparison! Looking through them manually isn't an option in my case. The game I'm working on at the moment has structs over 6KB and I can't look through all that manually.
_________________
Er, hi |
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sat Oct 28, 2017 11:10 pm Post subject: |
|
|
Do a search? Ctrl+F
|
|
Back to top |
|
|
Prehistoricman Advanced Cheater Reputation: 0
Joined: 02 Aug 2016 Posts: 80
|
Posted: Sun Oct 29, 2017 10:16 am Post subject: |
|
|
Okay... now what do I do?
Description: |
|
Filesize: |
4.66 KB |
Viewed: |
6801 Time(s) |
|
_________________
Er, hi |
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sun Oct 29, 2017 11:45 am Post subject: |
|
|
Type the value for which you wanted to "scan" and then click "Find".
|
|
Back to top |
|
|
Prehistoricman Advanced Cheater Reputation: 0
Joined: 02 Aug 2016 Posts: 80
|
Posted: Sun Oct 29, 2017 8:49 pm Post subject: |
|
|
Right but I don't know what I'm searching for. Also what if the value I'm searching for is 1 pointer level deep?
Also this isn't comparing structures.
_________________
Er, hi |
|
Back to top |
|
|
Prehistoricman Advanced Cheater Reputation: 0
Joined: 02 Aug 2016 Posts: 80
|
Posted: Fri Mar 16, 2018 6:29 pm Post subject: |
|
|
It's like half a year later and I've found my answer lol
https://www.youtube.com/watch?v=4qY-pxBoTv4
It's called Structure Spider. I thought the spider was for finding how two different structures relate to each other in terms of pointers. But this is cool too
_________________
Er, hi |
|
Back to top |
|
|
|