View previous topic :: View next topic |
Author |
Message |
projetof Advanced Cheater Reputation: 0
Joined: 03 Oct 2006 Posts: 62
|
Posted: Sun Sep 13, 2015 9:18 am Post subject: The Random Chest |
|
|
Hello everyone.
I was searching something like that but found anything so I started this thread.
Some game I play theres a treasure chest who pops a random iten when opened. Like 5 different itens. This value is fixed. Fromd good to worst.
Is there any way to fix this value in order to reach only one item from all the 5 possibilities?
Thank you. |
|
Back to top |
|
|
Gniarf Grandmaster Cheater Supreme Reputation: 43
Joined: 12 Mar 2012 Posts: 1285
|
|
Back to top |
|
|
Zanzer I post too much Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sun Sep 13, 2015 12:10 pm Post subject: |
|
|
This could be a tough one.
The game may do its random roll when the chest spawns or when the chest is opened.
In essence, you need to find the static list from where it retrieves the items it can contain.
A nice place to start is as Gniarf said, find the structure associated with the chest.
This may give you a pointer to the list of items it contains or maybe just some identifier.
You may be able to use that identifier to find out what accesses it and trace that code.
Or look for other addresses containing that identifier and see if the memory nearby contain item details.
Of course, if the item inside is selected when the chest spawns, all of the randomization will have already occurred.
You won't be able to find any useful functions which will have already spawned the item.
Maybe if the game reuses the same memory when the chest respawns...
Another approach may be to find the identifiers associated to each item it can contain.
Do a Grouped search looking for those 5 identifiers within close proximity to each other.
This could be the list from where the chest selects the item.
However, if you know how the item identifiers work, you might as well just change an existing item to the one you want.
This also depends on how the game controls inventory.
Your best hope is that the game is Mono or .NET so you can find the function by name. |
|
Back to top |
|
|
Snow1337 Catastrophic Cheatah Reputation: 1
Joined: 12 Oct 2004 Posts: 183 Location: Your, Computer
|
Posted: Sun Sep 13, 2015 1:17 pm Post subject: |
|
|
I successfully did it with rupees in Zelda but those values have decimals which make it easier, I did it in a chest game.. all I did was search for the value of the rupee as it appeared above the chest (I paused the game with the chest open), then changed the value _________________
|
|
Back to top |
|
|
projetof Advanced Cheater Reputation: 0
Joined: 03 Oct 2006 Posts: 62
|
Posted: Sun Sep 13, 2015 2:08 pm Post subject: |
|
|
Thank you everyone for the replies.
Updating. The chest is just like zelda, but with random itans instead. You don't break the chest, just go to it and open it.
Gonna try the randomizer, thank you
I'll update this thread if i got something. |
|
Back to top |
|
|
Snow1337 Catastrophic Cheatah Reputation: 1
Joined: 12 Oct 2004 Posts: 183 Location: Your, Computer
|
Posted: Sun Sep 13, 2015 5:04 pm Post subject: |
|
|
It will be hard to target the specific chest because you can only search once or twice for the value seeing as each chest has its own address and once its open.. your Unknown Value search ends. Unless
If you can save the game before you open it, search Unknown Value, reopen save game and search Has Changed.. go back to game, walk around (dont open chest), search Unchanged Value.. keep doin this until you have the value of one chest then open the Memory Viewer, the next chests are most likely 02/04/0C or 0E bytes from each other and each one has either a 1-10(A) randomizer or it carries the value of the item in different codes (i.e 03 being Dagger)
Good luck _________________
|
|
Back to top |
|
|
projetof Advanced Cheater Reputation: 0
Joined: 03 Oct 2006 Posts: 62
|
Posted: Mon Sep 14, 2015 9:56 am Post subject: |
|
|
Thank you.
The good poinnt is that you can go back to the stage after you loof the previous chest and it will be there again and again. But the item will be random every time you open it.
So you basically can keep opening it every time you clear the stage.
I know with trial and error each one of the 5 itens the chest will grant you. But I failed to find the address for each one of them. Still looking for it. |
|
Back to top |
|
|
Snow1337 Catastrophic Cheatah Reputation: 1
Joined: 12 Oct 2004 Posts: 183 Location: Your, Computer
|
Posted: Mon Sep 14, 2015 10:32 am Post subject: |
|
|
Just keep doing Unknown/Changed/Unchanged.. once you have one of them then you can figure out the algorithm of the rest by either Memory Viewer pr Dissecting the Data Structure _________________
|
|
Back to top |
|
|
|