Jump to content

Recommended Posts

Posted

¡Hola!

¡Encontré una solución para el problema al seleccionar el personaje en la pantalla de selección si estás tratando de jugar en el servidor Home (Virtualbox) con una IP pública!

Anteriormente, tenía que usar el Adaptador de bucle invertido de Microsoft con la combinación de PortMaps, pero esto es más fácil porque solo tiene que modificar 1 archivo en la fuente del servidor para que funcione.

Entonces, para que funcione, deben abrir Desc_Client.cpp en la fuente de su servidor /game/src.

Buscamos:

if (!bSentBoot)

 

Tendrán un código parecido a este:

if (!bSentBoot)
               {
                  bSentBoot = true;
                  TPacketGDBoot p;
                  p.dwItemIDRange[0] = 0;
                  p.dwItemIDRange[1] = 0;
                  memcpy(p.szIP, g_szPublicIP, 16);
                  DBPacket(HEADER_GD_BOOT, 0, &p, sizeof(p));
               }
            }

            TEMP_BUFFER buf;

            TPacketGDSetup p;

            memset(&p, 0, sizeof(p));
            strlcpy(p.szPublicIP, g_szPublicIP, sizeof(p.szPublicIP));

 

 

Ahora todo lo que tienen que hacer es reemplazar ese código por este:

 

if (!bSentBoot)
               {
                  bSentBoot = true;
                  TPacketGDBoot p;
                  p.dwItemIDRange[0] = 0;
                  p.dwItemIDRange[1] = 0;
                  memcpy(p.szIP, "TU IP EXTERNA AQUÍ", 16);
                  DBPacket(HEADER_GD_BOOT, 0, &p, sizeof(p));
               }
            }

            TEMP_BUFFER buf;

            TPacketGDSetup p;

            memset(&p, 0, sizeof(p));
            strlcpy(p.szPublicIP, "TU IP EXTERNA AQUÍ", sizeof(p.szPublicIP));

 

 

¡Y LISTO!, No olviden configurar el reenvío de puertos de su enrutador para que funcione!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies to enhance your browsing experience and provide relevant content. By continuing to browse, you agree to our We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. and Terms of Use. For more information on how we protect your data, please check our Privacy Policy.