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

Aberta Para iniciantes
#4,949 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
78/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
go, typescript
Domínio
frontend, game-dev

Direção de pesquisa

Comece por inventory-notices.ts e pela seção 4 do arquivo referenciado research/findings/forgotten-world-hole-location-v1188.md para confirmar o mapeamento do erro e a mensagem nativa. Encontre as entradas de texto de Forgotten World e o teste de avisos de uso de itens; adicione cobertura para [2, 0x51] com a opção ativada e desativada. O trabalho estará concluído quando a opção ativada mostrar o aviso do nível e a desativada preservar o comportamento atual.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
Go
Estrelas
97
Forks
61
Merge médio
4h 2min
PRs com merge (30d)
969

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de opensro-dev/opensro

Todas as issues de opensro-dev/opensro

Issues semelhantes

Mais issues de Go

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.