Repository navigation
feat(warps): the warp list and its move rules as data, with a Warp List editor - #177
Merged
Merged
Conversation
Mosch0512
force-pushed
the
feat/warp-list-data
branch
3 times, most recently
from
November 20, 2026 09:09
bc93f9c to
6a5d2f5
Compare
The M window's warp list, /move, /warp and the control socket's warp read Data/Maps/Warps.json instead of the movereq_<lang>.bmd files. The move rules that were hard-coded are fields of each warp: the class level discount, needsOneOf/notWith equipment rules, PvP-server-only and Gens-only warps, the blocked message, and the new minMasterLevel and minResets, which OpenMU's WarpRequirementsExtended also sends. Warp names follow the UI language. MuEditor gets a Warp List window with a Translations tab and Data Checks. The client saves the key configuration as each setting changes and before a warp, once the character's stored one has arrived (or 2 seconds after the join for a new character), resets it for each new character, and restores the chat box size and transparency at login.
Mosch0512
force-pushed
the
feat/warp-list-data
branch
from
November 20, 2026 14:32
3a91df3 to
889c268
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The M window's warp list (and
/move,/warp) is data now:src/bin/Data/Maps/Warps.jsonreplaces themovereq_<lang>.bmdfiles, the move rules that were hard-coded are fields of each warp, and MuEditor gets a Warp List window. The client also saves the key configuration as it changes and before a warp from the M window,/warpor the control socket.What it does
/movename, level, zen and gate. The four movereq bmd files are removed (also the unused JapaneseData/Local/Movereq.bmd). The max level is dropped: neither the client nor OpenMU checks it./moveand the control socket):noClassDiscounton Swamp of Calmness (33) replaces the old "level 400" check;needsOneOf/notWith: single items, item tags (withexcept) or any wings. Icarus (23) needs wings or aflyingmount and not Horn of Uniria or a transformation ring except panda/skeleton; Atlans (11-13) not Horn of Uniria or Dinorant;pvpServersOnlyandgensOnly(Vulcanus 42);blockedMessage: which text a blocked/moveshows; the two old messages stay, a new general text covers other warps;minMasterLevelandminResets(0 = none); the M window shows "ML n" / "R n" when set, on a second line of the row under the level (beside it they ran into the zen; a layout test checks all three themes), red when they are missing (the level only when the level is); the wheel moves row top to row top./move), unknown message keys, odd values./warpor the control socket (/movegoes to the server as chat and saves nothing first). Saves wait until the stored configuration has arrived, or 2 seconds after the join once the map has loaded (a new character gets none); a save asked in that time goes once it is over, and is dropped when the stored configuration arrives first, unless its chat box byte holds no size or transparency. Leaving the game, the session or the game server (the menu exit, logout, a server change, closing the window, the control socket'squit) saves only when a save would go at once, so in the first 2 seconds the reset keys never overwrite the stored layout. Entering the game resets everything the key configuration holds in one place (ResetKeyConfiguration: empty skill keys and Q/W/E/R, auto attack on, whisper sound off, slide help on, a 6-line chat box at transparency 0.6), so one character's keys and options don't carry over to the next;InitGameno longer resets auto attack and whisper sound on its own.IsTheMapInDifferentServeris removed, and so are the unusedIsMapMove,IsLuckySealBuff,IsLuckySealand their hard-coded map name list. The join now restores the chat box size and transparency from the stored configuration (the client used to read them and throw them away), and the client saves the lines the box shows (it used to send the number of chat messages in the log / 3). A character last saved by an older client therefore gets an unrelated chat box size once (for example 12 lines from 12 logged messages), until the player changes it; the byte has no free bits to tell old values apart.docs/warp-list.mdrewritten; links from dev-editor, map-data, item-data, translation-system.OpenMU's
WarpListExtendedstill overrides level and zen, as before; a warp that is also in the data file keeps its rules. The newWarpRequirementsExtended(C2 F5 0B, MUnique/OpenMU#1547) also sets master level and resets for the server's warps; the server's list wins for them like for level and zen.How it was checked
map_data_tests53/53 (reader/writer, rules, the chat check, master level and resets, UI-language rename, the Warp List window, Data Checks),test_warp_list11/11, the newtest_key_configuration_gate(6) andtest_chat_box_configuration(2), and three layout tests inrml_styling_regression_tests, in all three themes: the M window's second line against the widest zen, with the model bound only a row with a master level or resets gets it (with its own red), and the wheel moves one row per notch, a two-line row too; every new test fails under a mutation. The warp tests restore the item list they load (ShippedItemsScope) and the M window's list (MoveListScope).What players see change (each in its own commit)
/warp; a new character no longer gets the previous character's Q/W/E/R, slide help or chat box./move Atlans2checks Atlans2's rules (it used to check Atlans's, whose name is also in the text)./move Icaruswith wings and a Panda or Skeleton ring works, as the M window already allowed.Decided by me
Data/Maps/Warps.json; the key isnameper language, as Monsters.json.{"item": {"group": 13, "number": 2}}.needsOneOfcounts only items that are not broken.WarpMessages): the game texts have no lookup by key./move(or the warp word) names, by its shown name or/movename in any case, as/warpfinds it; only when no warp is that word does the original client's quirk apply (the first warp whose name is in the text). Only the equipment rules are checked there (the server checks the rest)._2,_3and so on when another warp already has the name or/movename, in any case.Not done here
map_file_lists_testsfails on main already (OptionRules.json missing in Shared.json); not touched.Size
About 7.0k added lines in 85 commits.