This is the AMP version of this page.
If you want to load the real page instead, click this text.

Solved help me hook monoDictionary

Status
Not open for further replies.

alsya

Solid & Active Platinian

can anyone help me how to solve the error, and what is wrong with my mod menu hook, is there any reference for the monoDictionary source code hook?
 
Do you have the struct included? If you dont, here it is.


C++:
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;
    }
};

from the looks of it, "players" is already a variable. You didnt give any actual error message so I cant really help much
 
yes, I have it in the Unity.h file, did I take a screenshot to let you know what went wrong?
 

// String / monoString
auto example= *(Dictionary<void *, String **> **)((uint64_t)instance + offset here);

// Int
auto example= *(Dictionary<int *, void **> **)((uint64_t)instance + offset here);

//void *
auto example= *(Dictionary<void *, void **> **)((uint64_t)instance + offset here);

//Random
auto example= *(Dictionary<uintptr_t , uintptr_t **> **)((uint64_t)instance + offset here);
 
oke thanks, i will try for this
 
Status
Not open for further replies.