template <typename T>
struct monoArray
{
void* klass;
void* monitor;
void* bounds;
int max_length;
void* vector [1];
int getLength()
{
return max_length;
}
T getPointer()
{
return (T)vector;
}
};
monoArray<void *> *(*PhotonNetwork_get_OtherPlayers)() = (monoArray<void *> *(*)())il2cppAddress + 0x84EB8C;
auto photonplayers = PhotonNetwork_getOtherPlayers();
for (int i = 0; i < photonplayers->getLength(); ++i)
{
auto photonplayer = photonplayers->getPointer()[i];
}
useError' bro
Not working, error'use
monoArray<void **> instead of monoArray<void *>
Not working, error'
Can you help me with List<>. I dont know how to hook that
Code:// RVA: 0x140D26C Offset: 0x140D26C VA: 0x140D26C public static List<RemotePlayer> GetRemotePlayers(Predicate<RemotePlayer> predicate) { }
You must make that object and reference to itI mean how can you get the predicate<playerbase> because you need it in order for the hook to work correctly
// RVA: 0x140C528 Offset: 0x140C528 VA: 0x140C528
public static List<string> GetAllPlayersIdShuffled() { }
monoList<monoString> *(*GetPlayerIds)() = (monoList<monoString> *(*)()) getAbsoluteAddress(targetLibName, 0x140C528);
auto getplayerids = GetPlayerIds();
Another question: I want to read c# list of strings
Code:// RVA: 0x140C528 Offset: 0x140C528 VA: 0x140C528 public static List<string> GetAllPlayersIdShuffled() { }
Is this how I should do it?
I dont know how to read it. Help pleaseCode:monoList<monoString> *(*GetPlayerIds)() = (monoList<monoString> *(*)()) getAbsoluteAddress(targetLibName, 0x140C528); auto getplayerids = GetPlayerIds();
In c# predicate class only returns boolean, true or false. Since it only returns that can you do this?You must make that object and reference to it
monoList<void**> *(*GetPlayers)(bool) = (monoList<void**> *(*)(bool)) getAbsoluteAddress(targetLibName, offset);
public Boards[] boards; // 0x54
void (*_casMenuUpdate)(void *ins);
void casMenuUpdate(void *ins) {
if (ins != NULL) {
monoArray<void> *boards = *(monoArray<void>**)((uint64_t) ins + 0x54);
if (boards != NULL) {
for (int i = 0; i < boards->getLength(); i++) {
auto board = (*void) boards->getPointer();
board[i] = 0;
}
}
}
}
Have you done it with struct?
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies
We use cookies to personalize content and ads, to provide social media features and to analyse our traffic. We also share necessary information with our advertising and analytics partners to optimize your experience on our site.
Learn more about cookies