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;
}
};
yes, I have it in the Unity.h file, did I take a screenshot to let you know what went wrong?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
The pointer has errors, I personally cant help you because I have never modded a dictionary before, only list and array
do you have a dimain.cpp dictionary hook reference? I'm looking for a reference, it's not here, but about the monolist, I'm confusedThe pointer has errors, I personally cant help you because I have never modded a dictionary before, only list and array
but if I remove the asterisk int * into int it works the error goes away, but there is still an error funticon getValues(); and getNumValues();The pointer has errors, I personally cant help you because I have never modded a dictionary before, only list and array
no copy paste, is real my mod menuI think you need to know to do basic function pointer first, not just a copy pasta
you can see my thread 2021I think you need to know to do basic function pointer first, not just a copy pasta
// 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// 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);