Repository navigation
MU-Guard: aviso de estado al juego y validar al volver mu-guard - #249
Open
EmanuelCatania wants to merge 1 commit into
Open
EmanuelCatania wants to merge 1 commit into
EmanuelCatania wants to merge 1 commit into
Conversation
El GameServer le manda a cada jugador el estado de mu-guard cada 5 s (F1:07, mismo tamaño siempre, dentro del canal cifrado). Con el ticket exigido, quien entró con mu-guard caído queda pendiente: cuando vuelve, el aviso le pide un ticket y el juego lo manda solo por la misma conexión (F1:08). Sin ticket válido en 60 s, se lo desconecta. El juego no relaja nada por el aviso: sólo lo registra.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Va encima de #248. Cierra lo que quedaba del paso 1 en el diseño (sección 4c).
Qué hace
MU_GUARD_REQUIRED=1, el que entra con mu-guard caído queda pendiente. Cuando vuelve, el aviso le poneNeedTicket; el juego le pide un ticket al guardián y lo manda por la misma conexión. Ticket válido → la sesión queda atada al guardián como un login normal (y se le haceIdentify). Inválido, o sin ticket enRevalidateSeconds(60), → desconectado. Si mu-guard se vuelve a caer antes, el plazo arranca de nuevo.Constantes nuevas en
GuardProtocol.h(las dos copias,check_shared_sources.pyOK). F1:07 en un cliente viejo cae en eldefault("unhandled") y no rompe nada.Probado
VPS de pruebas, juego abierto desde el launcher:
CAIDO;Login sin validar: mu-guard caido;ARRIBAa las 12:28:32 ySesion validada al volver mu-guarda las 12:28:33, sin desconexión.Sin probar: el caso de un juego que no valida (se desconecta a los 60 s).