It's to Send message probNull pointer maybe since you don’t know what it does
No :(Same problem, have u got solution yet
How?hook this and save the instance pointer
What's the game?How?
public PhotonMessageInfo(PhotonPlayer, player, int timestamp, PhotonView view)
How to hook it when it doesn't say what the data type is? It's not a bool or a void function so idk
Hide OnlineWhat's the game?
what's the problem?Hide Online
void (*OnRequestSpawn)(void *instance, void *PhotonPlayer, void *PhotonMessageInfo);How?
public PhotonMessageInfo(PhotonPlayer, player, int timestamp, PhotonView view)
How to hook it when it doesn't say what the data type is? It's not a bool or a void function so idk
Game crashvoid (*OnRequestSpawn)(void *instance, void *PhotonPlayer, void *PhotonMessageInfo);
and save Photonmessageinfo as void *
C++:struct PhotonMessageInfo { void *player; int timestamp; void *view; }; void (*OnRequestSpawn)(void *instance, void *PhotonPlayer, PhotonMessageInfo Info); PhotonMessageInfo info = {PhotonPlayer, Num, PhotonView};
void (*old_RoomMaster_Update)(void *instance);
void RoomMaster_Update(void *instance) {
if(instance!=nullptr) {
void *photonView = *(void **) ((uint64_t) instance + 0xC);
if(RespawnAll) {
if(PhotonNetwork_get_player!=nullptr && PhotonNetwork_get_PlayerList!=nullptr) {
auto PhotonPlayers = PhotonNetwork_get_PlayerList();
for (int i = 0; i < PhotonPlayers->getLength(); ++i) {
auto PhotonPlayer = PhotonPlayers->getPointer()[i];
if(PhotonPlayer!=nullptr) {
PhotonMessageInfo info = {PhotonNetwork_get_player(), 3059293, photonView};
RoomMaster_OnRequestRespawn(instance, PhotonPlayer, info);
RespawnAll=false;
}
}
}
}
}
old_RoomMaster_Update(instance);
}
Reply to any post 5 times or morehow do I make help thread
Not workReply to any post 5 times or more
Not work
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