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

Aperta Adatta ai principianti
#4,949 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
go, typescript
Ambito
frontend, game-dev

Direzione di ricerca

Inizia da inventory-notices.ts e dalla sezione 4 del file referenziato research/findings/forgotten-world-hole-location-v1188.md per confermare la corrispondenza dell’errore e il messaggio nativo. Trova le voci di testo di Forgotten World e il test per le notifiche sull’uso degli oggetti; aggiungi copertura per [2, 0x51] con l’interruttore attivato e disattivato. Il lavoro è terminato quando l’interruttore attivato mostra la notifica del livello e quello disattivato mantiene il comportamento attuale.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Go
Stelle
97
Fork
61
Merge medio
4h 2m
PR unite (30g)
969

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di opensro-dev/opensro

Tutte le issue di opensro-dev/opensro

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.