Jump to content
  • 0

How to work with Dictionary and List in Unity


Aintihi
 Share

Question

So, I have some experience with gg. But I can't figure out how to interact with Dictionary and List. The game is on Unity.
 For example, I have a field "public Dictionary<ulong, string> nicknamesList;", can I get/change the value, see the keys?
Thanks

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
On 9/22/2023 at 4:35 AM, kiynox said:

[ @Aintihi ]
---
I'm afraid you need to Hook your game through Mod Menu, it would be hard/can't be done in Game Guardian. You can try to learn Hooking the game and use this struct to cycle trough monoArray or monoDictionary: Structs and here's how you can implement it: monoDictionary. You can also ask about Mod Menu related in there.
---

I want to maximize the use of gg for this game hack, so it isnt work for me, but thanks anyway. Although it is strange that there is no way to work with the dicts given the capabilities of gg.

Link to comment
Share on other sites

  • -1

[ @Aintihi ]
---
I'm afraid you need to Hook your game through Mod Menu, it would be hard/can't be done in Game Guardian. You can try to learn Hooking the game and use this struct to cycle trough monoArray or monoDictionary: Structs and here's how you can implement it: monoDictionary. You can also ask about Mod Menu related in there.
---

Link to comment
Share on other sites

  • -1

template <typename K, typename V> struct monoDictionary { void *unk0; void *unk1; monoArray<int **> *table; monoArray<void **> *linkSlots; monoArray<K> *keys; monoArray<V> *values; int touchedSlots; int emptySlot; int size; K getKeys(){ return keys->getPointer(); } V getValues(){ return values->getPointer(); } int getNumKeys(){ return keys->getLength(); } int getNumValues(){ return values->getLength(); } int getSize(){ return size; } };

 

 

 

 

 

for(int u = 0; u < players->getNumValues(); u++) {
void* closestEnemy = players->getValues();

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.