CheckGuildName
function · ui · orchestration
- Address
0x4f5160· 140 bytes, up to0x4f51eb- Signature
uint32_t __fastcall (const char *name)- Meaning
- Returns 1 for a valid guild name, else shows the reason and returns 0
- Confidence
- verified, proof one
- Finding
- ui/petition#guild-name-check
Finding: Guild name check in ui: guild charters and petitions
0x4f5160(name) returns 1 only for a name the checker 0x6c9b70 accepts (code 13). Every other code shows a
message and returns 0: 0 ERR_GUILD_ENTER_NAME, 1 ERR_GUILD_NAME_TOO_SHORT, 4 ERR_GUILD_NAME_MIXED_LANGUAGES,
5 ERR_GUILD_NAME_PROFANE, 6 ERR_GUILD_NAME_RESERVED, 10 ERR_GUILD_NAME_INVALID_SPACE, 11
ERR_GUILD_NAME_NAME_CONSECUTIVE_SPACES, and 2, 3, 7, 8, 9 or above 11 ERR_GUILD_NAME_INVALID. The checker runs the
validator 0x6c96c0 with the locale index, a space as the one extra character, the NamesProfanity and ChatProfanity
lists on and NamesReserved off, so a list hit is code 6. It turns an accept of more than 24 UTF-16 units into code 2.
A space is accepted in the middle only: first or last gives 10, after a space 11.
The derivation is in the doc.
Callers 2
Callees 2
- CGGameUI::DisplayError ui
- ValidateGuildName unassigned
Calls and jumps by a bare address, from tables/calls.tsv.