Realm/Core: Implement realm category mapping using realm zone and major version #570
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.
🍰 Pullrequest
The current configuration option for realm categories via the "RealmZone" option in cmangos-classic is causing issues. In version 1.12, only a maximum of four realm categories (1, 2, 3, 5) per locale/region exist. If a different value, such as 12 (RealmZone: Russian, Cyrillic), is used to set the cyrillic character set, the realm will not appear on the clients realm list. This limitation prevents consistent assignment of a valid realm category alongside the desired character set.
This PR implements a configuration option for realm categories (defined in Cfg_Categories.dbc) that is independent of the character set setting of "RealmZone".Unlike TBC and WotLK, the categories are not uniquely numbered in 1.12; instead, some entries use the same ID for multiple entries. In cmangos-tbc and cmangos-wotlk, the realm category corresponds to the 'RealmZone' setting, which also configures the available character set. In Vanilla, character set configuration cannot be done directly via the realm category due to collisions in numbering (for example, enUS and ruRU use different character sets but have the same region and category IDs in 1.12).
The new setting "RealmCategory" configures the realm category based on the client locale in useThe setting "RealmZone" now only configures the server side character set//UPDATE:
To ensure that the realm daemon remains compatible with other versions, the appropriate realm category is now mapped based on the realm zone setting and the major client version.
Issues
How2Test
Todo / Checklist
Cfg_Categories.dbc (enUS)
Cfg_Categories.dbc (ruRU)