Dimension Hole: a use refused for level shows no message (port UIIT_MGS_ERR_GOD_LEVEL)

Abierto Apto para principiantes
#4,949 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
78/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
go, typescript

Línea de trabajo

Empieza con inventory-notices.ts y la sección 4 del archivo research/findings/forgotten-world-hole-location-v1188.md referenciado para confirmar la correspondencia del error y el mensaje nativo. Busca las entradas de texto de Forgotten World y la prueba de los avisos al usar objetos; añade cobertura para [2, 0x51] con el interruptor activado y desactivado. La tarea estará terminada cuando el interruptor activado muestre el aviso de nivel y el desactivado conserve el comportamiento actual.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

What happens

A player right-clicks a Dimension Hole whose level band they are outside, and nothing happens. The server refuses the use correctly (0xB5BD result 2, code 0x51, i.e. 0x1851), but the client's item-use notice mapper (inventory-notices.ts, category 1) has no line for 0x51, so the refusal is silent. The player can't tell why the Hole didn't work.

Seen on a dev stack with SRO_FORGOTTEN_WORLD_ENTRY=on: a level-120 character got item-use: refused code=81 for every Hole it held. The highest band is 101..110.

Native

The VSRO 1.188 client routes the Hole handler's refusals through its item-use error table. See research/findings/forgotten-world-hole-location-v1188.md, section 4:

Server code Meaning VSRO 1.188 client v1.696 client
0x1851 level outside the Hole's P3..P4 UIIT_MGS_ERR_GOD_LEVEL "Required level is not reached for entering." same
0x184b user is in an instance world no message UIIT_STT_SKILL_POINT_USE_TOWN
0x1852 no free layer no message UIIT_MSG_INSTANCEDUNGEON_ERROR_MSG_01
0x183e target world not found / layer request failed UIIT_MSG_STRGERR_CANNOT_BE_USED same (already shown by the port)

The v1.150 client has none of the God keys. Neither UIIT_MGS_ERR_GOD_LEVEL nor its text is shipped by the port yet.

To do

  • Ship UIIT_MGS_ERR_GOD_LEVEL (VSRO 1.188 TextUISystem.txt, English "Required level is not reached for entering.") with the Forgotten World text. Map item-use code 0x51 to it, under the same switch as the Hole (SRO_FORGOTTEN_WORLD_ENTRY).
  • Keep 0x184b and 0x1852 silent, as VSRO 1.188 does. Showing the v1.696 lines for them would be a later-client extra, and would go behind its own flag if wanted.
  • Add a test that a 0xB5BD [2, 0x51] answer produces the level notice with the switch on, and stays as today with it off.

Related: #4896, #4939.

Lenguaje dominante
Go
Estrellas
97
Forks
61
Merge medio
4 h 2 min
PR fusionados (30 d)
969

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de opensro-dev/opensro

Todos los issues de opensro-dev/opensro

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.