How to Refresh channel state with button on Channel Select when is Down or Busy?
#4


4 hours ago, Andrein95 said:




/index.php?/profile/14423-nicolasg/&do=hovercard" data-mentionid="14423" href="/index.php?/profile/14423-nicolasg/" rel="">@nicolasg I've seen that you implemented that refresh. Could you give me any hint how to reach that?



Thanks




u can reconnect to LoginServer using _cmiComm.Reconnect (Can found info about it in the src), send a package asking for the data, in my case i hooked CDescriptor::operate (LoginServer Descriptor), before switch (client_type_) check if msg->m_mtype is the same what u send from Client for asking about channels data, if is that, send the data 

for (int i = 0; i < gserver.m_nConnector; i++) {
            CNetMsg::SP rmsg(new CNetMsg);
            PlayerNumMsg(rmsg, -1, -1, i);
            SEND_Q(rmsg, this);
        }

for the rest you can track MSG_LOGINSERV_PLAYER in client side.

 

little bit tricky and dirty, but essentially it works.



Messages In This Thread
[No subject] - by Andrein95 - 05-21-2023, 10:22 AM
[No subject] - by nicolasg - 05-21-2023, 06:43 PM
[No subject] - by Andrein95 - 08-21-2023, 08:50 AM
[No subject] - by nicolasg - 08-21-2023, 12:15 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)