Skip to content

Releases

Devo's Map Doctor 3.0.12

Choose a tag to compare

@devoltzz devoltzz released this 04 Dec 22:32

Added

  • Translation log. The Translation page now shows, while it runs, what is being translated, how fast (pieces per second, now and on average) and how long is left. Ctrl+L opens a log of every job of the session anywhere in the window, with the time each one took, and the last translation is also written next to the map as <map>_translation_log.txt. The command line prints the same summary at the end of a translation.
  • Port of maps made for the Korean TMO launcher. The port answers the launcher the way it would (logged in, the server time). A map that saves only on the launcher's server keeps that save on this PC, in the map's save folder. A map that already runs on Reforged gets only this, and the rest of it stays byte for byte. The command line takes --no-tmo and --tmo-save=local|server.
  • Port of the old KK platform maps with the map hidden after the MPQ (the "KK virtual MPQ", like an old 羁绊1). Before, Port refused them as encrypted. The diagnosis now says that the MPQ holds only the platform's loader and the map is stored after it (issue #133).
  • KK platform maps in the CAME container (issue #133, and the map of #126/#128):
    • Fix map now opens the models and textures the platform wraps in JRP1 envelopes. The key is in the platform files the map carries, so the fixed map shows its art outside the platform. Before, they stayed sealed and the game showed green and missing textures.
    • The map's Lua game in the platform's EHTA package is opened too: Fix map writes its modules as readable .lua files under ehta\ in the map, and extract --source writes them as a folder. One build of the platform engine is read; a map with another build says so, and the rest of it is still fixed.
    • A new Fix map option, Keep the platform data (off by default): the fixed copy also keeps the platform loader and its encrypted container, so it still starts on the KK platform. It is about twice as big. The command line takes --keep-platform-data.
  • extract --source for maps with packed Lua modules (the xmload maps): the compiled Lua 5.3 modules come out as readable Lua text (issue #122).

Improved

  • xmload maps (issue #122):
    • The author's online services that a map calls are now answered on the player's PC, with the rules read from the map's own code. Rewards, the bag, pets, forging and check-in work again, and their data is kept in the map's local save.
    • XMGetDamageAbility now gives the attack ability on a normal attack. Before, it gave 0.
    • Port now keeps the map's own art that sits on game paths, and still removes the old client's copies.
  • Open in World Editor, GUI triggers: more lines come back as GUI instead of Custom script. This covers 9-character rawcodes (a skin with its model) in Lua maps, and map functions with no parameter called from trigger actions, which come back as "Run Trigger".
  • Fix map and Open in World Editor: a real file that has no name in the map now takes its name from the shared name list, when the list has exactly one match and it is not a decoy. The shared name list has 93 new names.
  • Models with more than 256 vertex groups:
    • In the 2.0.4 output they are now split into parts the format can hold, and keep their HD materials. Before, they fell back to the classic format.
    • The 3.0 output is now checked by a strict reader too.
    • The classic output of ladder and bridge models no longer loses a chunk.
  • Open in World Editor: screen texts that an optimizer left in string variables with short names now come back as plain text where the script uses them, so they read in the editor (issue #133, a Dota AI map). Nothing there was encrypted.
  • Port to an older version (1.24 to 1.28):
    • A map made on Reforged now appears in the map list of the older game. Its file was copied as it was, without the map header the classic game needs to list a map (issues #149 and #150).
    • Port says when the file name is too long for the map list of the older game, and when the map ends the game at the start with too few human players (a check of the map itself, which Port keeps).
    • The map size notes now say that 8 MB and 128 MB are the limits of the unpatched game: the patches and loaders many players use raise them.
  • The progress bar estimate now uses what the opened map contains, so it is closer to the real time. The Triggers tab is faster on big maps.
  • The site uses much less memory on big maps. Port and Player guide of a 465 MB map now fit, and the page asks before a big job only when the map really needs it.
  • The shared name list has the names of the 我在峡谷打僵尸 map from issue #133.
  • The screen texts in all 16 languages were reviewed, and wrong or untranslated lines were fixed.

Fixed

  • A port layer function (DzSetUnitAbilityButtonPos) could create its data table on one machine only, which can desync a multiplayer game. It is now created at map load on every machine.

Known limits

  • Nothing in this release was tested in the game.
  • extract --source does not write the table of the map's own natives in the released program: that table needs a CPU emulator that is not bundled. The README says why.

Devo's Map Doctor 3.0.11

Choose a tag to compare

@devoltzz devoltzz released this 04 Dec 01:57

Fixed

  • Old KK platform maps with the map hidden after the MPQ (the "KK virtual MPQ" with its whole map inside, like an old 羁绊1): "Fix map" now writes the whole map back as a normal map, and "Open in World Editor" opens it. Before, the program said the real map was not in the file (issue #133).
  • Open in World Editor, KKWE compiled scripts edited after they were compiled (for example a trigger added by a map re-upload site): the script now goes back into JASS, and compiled again it still gives the same instructions as the map. The added trigger stays in the script as it is in the map (issue #133).
  • KK platform CAME maps without their usual marker (like 我在峡谷打僵尸 1.0.62): "Fix map" now decrypts them. Files with the platform's JRP1 asset protection stay as they are (issue #133).
  • 85 more KK platform natives from a newer KKWE (item tooltips and ability fields, buff events and others) are declared (issue #133).
  • The program now forgets the result of an earlier diagnosis when it is updated, so a map that an older version could not open is diagnosed again by the new one.

Known limits

  • Port does not take the old KK virtual MPQ maps yet: use "Fix map" first.
  • Nothing in this release was tested in the game.

Devo's Map Doctor 3.0.10

Choose a tag to compare

@devoltzz devoltzz released this 03 Dec 22:55

New

  • Faster map opening. The quick tabs (Script, Cheat pack, QoL) now unlock first instead of waiting for the file list, the file names are worked out once per map instead of several times at once, and the results of each tab are kept for the map, so opening the same map again is almost instant. In my tests the Cheat pack tab unlocked in 17 to 38 seconds instead of 77 to 188, and a map opened again was ready in 16 to 44 seconds instead of 107 to 258. The "Runs on Reforged?" check is much faster on maps with many constants (46 s to 0.3 s on one map), and the game's own models are measured once instead of on every map.
  • A better time estimate on the progress bar. The bar now knows how long each stage of a job usually takes (measured on real jobs), shows "about N min left" from the first run of a job, corrects itself from how fast the job is going, and no longer jumps backwards. The long stages of Open in World Editor and Fix map now report their own progress.
  • Open in World Editor, readable names (new option). When a protector renamed everything to names like OoOo00oo, the copy gets names by role and type instead: triggers by their event (Trig_UnitDeath_3), variables by type (unit_12), functions by role. The original names cannot come back, but the script becomes readable. Normal maps are not touched (issue #133).
  • Script text split into single bytes (a table indexed by StringHash sums, as in 武林浩劫) is joined back into whole sentences in Open in World Editor and in translation (issue #133).
  • The website opens maps up to 1 GB. The page now reads the map from your file in pieces instead of copying it whole into memory, and the saved maps come out the same way. After opening a map it shows how much memory the big jobs will need, and before a job that may not fit it asks first ("Run anyway", or download the program) instead of refusing (issue #142).

Fixed

  • Port with art packages: file names the script builds ("path" + I2S(n) + ".blp") and unit portraits are now brought from the packages; before, some UI animation textures were left out without a warning. The report also lists what of the packages was left out and why (issues #124, #133).
  • KK maps: 39 more KK platform natives are declared, and three more platform server calls answer as if the server were there (the account id, the unit level, equipped server archive items). The report now says which natives come from the KK platform and which come from the japi/YDWE plugins (like EXSetAbilityString) instead of calling all of them KK (issues #133, #141).
  • Translation: Chinese numbers written in words (一万, 十万, 百分之二十) become digits before translating, and very short texts are read in the map's own text encoding instead of a guess.
  • Masked art files (the Qimp scheme): the names of most files that came back without a name are now recovered from the files themselves.
  • The shared file-name list (names.npz) was cleaned: install folders, links, placeholders and other entries that are not map files were taken out. A name that any real map uses stays.

Known limits

  • The time estimate is still rough at the start of a long Open in World Editor (the number of triggers decides it and is only known half way).
  • Nothing in this release was tested in the game.

Devo's Map Doctor 3.0.9

Choose a tag to compare

@devoltzz devoltzz released this 03 Dec 16:30

Changed

Known limits

  • Nothing in this release was tested in the game.

Devo's Map Doctor 3.0.8

Choose a tag to compare

@devoltzz devoltzz released this 03 Dec 15:36

New

  • Translation, a third quality: "Large". It uses Tencent's Hy-MT3 translation model (1.8B, Apache-2.0) through llama.cpp, and its translations are much closer to what a person would write than the other two qualities. The first time you choose it, the program downloads the model (1.35 GB) and llama.cpp (about 25 to 40 MB); after that nothing leaves your computer. It uses your graphics card when it has one (Vulkan), and the processor otherwise. It is slower: on a big Chinese RPG it took about 2.5 minutes with a graphics card, and it can take 30 minutes or more with the processor alone. "Best" stays the default.
  • Open in World Editor, KKWE compiled scripts (kkmap.jc) that call a platform native the program does not know: the native's signature is now worked out from the compiled script itself, so the script still goes back into JASS. The two natives of the report are also added (DzUnitUIClearLevelArrayInteger, DzSetUnitDataCacheReal).

Fixed

  • Cheat pack on a Lua map with many top-level local variables (for example FiresOverEversong): the injected Lua pushed the map past Lua's limit of 200 local variables and the syntax check refused it. The injected code now runs in a function of its own and adds no local variable to the map's own. The same was done for the other code the program adds to a Lua map (the lobby image, the quality-of-life changes, the diagnosis copy). If the map alone is already over the limit, the message now says that the problem is in the map itself.

Known limits

  • The web page cannot open very big maps (about 2 GB of memory at most): use the program for Windows or Linux for those.
  • Nothing in this release was tested in the game.

Devo's Map Doctor 3.0.7

Choose a tag to compare

@devoltzz devoltzz released this 02 Dec 14:59

New

  • Maps whose art is encrypted for the platform plugin (万华镜 and the same family): these maps keep their own models and textures under a 16-byte XOR that only the platform plugin reads, so in Reforged, or after "Fix map" turned the plugin off, they do not load. The diagnosis now counts them ("Runs on Reforged?" says so), "Fix map" decodes them in the fixed copy, and Port to Reforged decodes them by itself. On 万华镜 v0.188: 1,471 models and 3,441 textures decoded.
  • The texture names of those models: the models name their textures like MH-1060390113.blp, but the plugin stores each texture under another name (a hash of IMG-1060390113). "Fix map" and Port now give each texture the name its models use, so the models show their textures without the plugin. This also applies to the .asi art packs: "Fix map" on a pack adds the names, and Port with --package= finds them (on A_WanHuaJing_mod_0.2.asi: 260 of 260 textures).
  • Port to Reforged, maps of the YDWE Lua engine that call its DLL through japi wrappers in the script: the port now gives those wrappers a body in the layer where one exists, and says which ones answer 0.

Known limits

  • 万华镜 v0.188 ported with all its art is about 785 MiB, more than the 512 MiB Warcraft III opens.
  • A map fixed this way is meant to be played without the plugin: the plugin's own texture names are replaced by the ones the models use.
  • Nothing in this release was tested in the game.

Devo's Map Doctor 3.0.6

Choose a tag to compare

@devoltzz devoltzz released this 02 Dec 04:09

New

  • "Runs on Reforged?" points at the likely cause of a desync: a new item lists the script lines (JASS and Lua) that change the game inside a branch that runs for one player only (GetLocalPlayer), the usual cause of a multiplayer desync. It is a heuristic and only informs. The replay reader now points to it when a replay looks like a desync.
  • The crash reader reads the stack: when the installed game is the same build as the one that crashed, the report of a Crash.txt now lists each stack frame with its function and, for C++ virtual methods, its class. Otherwise it says why it cannot (another build, no game found).
  • Translation:
    • The Lua modules encrypted with TTP2 (the maps_dz_rpg family) are decrypted with the key of the map's own loader, so their texts can be exported and translated; a translated copy encrypts them again.
    • The text a GRT protector split into letters is joined back into whole texts for the export.
    • The standard Warcraft text of maps made with a Chinese client gets Blizzard's official English directly, instead of a machine translation.
    • New option, off by default: "Keep the original language too". The translation becomes the default text, and players whose game is in the map's own language still see the original (one map, the game picks). Not tested in the game yet.
  • QoL, new option off by default: "Hero keys Q W E R": the four hero abilities of the bottom row on Q W E R, and the tooltips show the new key. Test the map in the game.
  • Script, new action: "Convert the script to Lua": saves a copy of a JASS map with the same script in Lua, for the game 1.31 or later, and lists the cases only the game decides. Test the map in the game before sharing it.
  • Art packages (.asi) with models and textures under a 16-byte XOR (万华镜): the diagnosis counts them, and "Fix map" on the package saves <package>_fixed.asi with them decoded. Port to Reforged with --package= reads them by itself.
  • Player guide: units a trigger creates for an enemy are listed as monsters (waves), shop stock added through a variable or a table is listed, abilities a trigger gives to a hero are listed, and quests without text are kept with their objectives and the triggers that change them.
  • GUI triggers: on Lua maps the rawcode in a number parameter (FourCC("h000")) is now a GUI value; maps whose script still holds raw vJASS (libraries, scopes, structs never compiled) now get the same trigger rewrites outside those blocks.

Fixed

  • Open in World Editor for the classic game (--editor-version=1.27) on a KK/j2b compiled map: the platform plugin's functions (EXSetEffectSize, EXExecuteScript, short names like Bq0...) were written as native, so the platform's 1.27 game showed an error window for each one. They stay functions now. On 羁绊1: 88 natives became the 61 the platform really has (issue 133).
  • Open in World Editor on a map with SLK object tables (英灵传说): a new unit or item was written as a copy of the game object it looked most like, and that object's settings the map does not set came back. Hero cards got "Requires: Keep" and could not be bought, and a shop sold the Goblin Merchant's items. Those settings are now written empty, as the map has them (issue 133).
  • The simulated start of a Lua-route port: an error in the simulated main was saved under one name and read under another, so it was never shown.
  • The GUI restoration of a raw vJASS map: a vJASS block placed just before a trigger function could leave the header together with that function.
  • Public texts: engine messages, report keys and option codes that were still in Portuguese are English now (option codes are data:...; the old dados:... is still accepted), and the model checker's rule ids in MANIFEST.json are English.

Known limits

  • Nothing in this release was tested in the game. The new options that change a map (keep the original language, hero keys, convert to Lua) are off until you turn them on.
  • A map whose files are wrapped by the KK resource protection (JRP1) still cannot be opened.
  • The art of the 万华镜 plugin's own renderer (glTF, WEBP, PNG with a header) cannot be used by Warcraft III.

Devo's Map Doctor 3.0.5

Choose a tag to compare

@devoltzz devoltzz released this 01 Dec 16:27

New

  • Fix map on a StarWE/MemHack model pack (.mix): the packs these maps ask you to put in the Warcraft III folder keep their models in the platform's encrypted format (MHEC), which only the platform plugin reads. Open the pack in the Doctor and click "Fix map": it saves <pack>_fixed.mix with every model as a normal MDX. Put that copy in place of the original pack (same file name). The key comes from the map that uses the pack: when you have opened that map in the Doctor once, the key is remembered on your computer and the pack can be fixed. On the command line: fix <pack> --plugin=<map>. On the reported 折光 packs: 671 of 671 and 1,300 of 1,300 models converted.
  • Port to Reforged 3.0 with --package=: the MHEC models of the packs are now read as normal models and imported into the ported map, and the report counts them.

Fixed

  • Port to Reforged 3.0, a map whose file table is almost full that receives many new files: the step "Assembling the ported map" never finished (one CPU core at 100% and the memory growing for hours). The table now grows only as much as the new files need. On 折光 with both of its packs (11,185 files added) the port finishes in about 37 minutes.
  • Port to Reforged 3.0, a map with files wrapped by the KK resource protection (JRP1): the port stopped with "could not be removed: None". It now stops with the real reason: the content is in envelopes whose key comes from the platform session, not from the map (issue 132).
  • The text about the JRP1 limit: it now says that the envelopes hold the art (models and textures) and that the Lua game of those maps is in a separate encrypted block (EHTA).

Known limits

  • 折光 ported with all the art of its two packs is about 1,271 MiB, more than the 512 MiB Warcraft III opens.
  • A map whose files are wrapped by JRP1 still cannot be opened by Fix map or Port: ask the author for a copy without the platform protection.
  • Nothing in this release was tested in the game, and I did not run the tests or the battery for it.

Devo's Map Doctor 3.0.4

Choose a tag to compare

@devoltzz devoltzz released this 30 Nov 20:44

Fixed

  • Fix map, the StarWE/MemHack maps (a verification popup that closes the game): 3.0.1 turned off the platform plugin of these maps, which stopped the popup, but the same plugin was the only thing that could read the map's models: every model was kept in the plugin's own encrypted format (MHEC), so with the plugin off many models did not load. Fix map now also decodes those models into normal MDX models in the fixed copy (536 of 536 on the map that was reported). The model packs these maps ask you to put in the Warcraft III folder (.mix) use the same format, and this release does not decode a pack yet.
  • Open in World Editor, a KKWE map whose compiled script was patched after it was compiled: a Lua loader inserted into main reused one register, so every register after it was one lower than a normal compile gives, and the proof refused the map ("the map has MOVRLITERAL rce, the restored text gives MOVRLITERAL rcf"). The proof now accepts exactly that case and nothing more: one stalled register counter, every later register shifted by one, and no value carried across that point. Any other difference is still refused. The map that was reported now opens in the World Editor. Thanks to zrlink for the analysis.
  • Port to Reforged 3.0, Undefined type dzeffectgroup: a KK map can declare the platform's DzEffectGroup* natives without the type dzeffectgroup line (it came from the platform's own common.j). When nothing calls them they are now removed like the rest of that unused library, and when the map uses them the port declares the type, so the port no longer stops there.
  • Fix map, a KK map whose SDK key is unknown ("CAME container ... the SDK is unknown"): the key was inside the SDK, between the 4-byte boundaries the search looked at. The Doctor now also tries the keys of the SDK builds it already knows and then searches the SDK at every byte offset, so issue 126's map (296 MB, SDK 231ccf80) decrypts without a previous run.

Known limits

  • A map whose files are wrapped by the KK platform's resource protection (JRP1): each file (models, textures and the Lua modules of a YDWE-Lua game) is in its own AES-256-GCM envelope, and the master key comes from the platform session: it is not in the map, so neither "Fix map" nor Port can open the content. A game that runs inside those files stays unreadable, and the report now says exactly that instead of "the Lua modules are not in the archive" (issues 126 and 128). Ask the author for a copy without the platform protection.
  • A StarWE/MemHack map already fixed by 3.0.1 to 3.0.3 (plugin off, models still encoded) is not recognized again: run Fix map on the original map.
  • The decoded models turn off the platform layer of those maps (its video, screen effects and saved player data), as in 3.0.1.
  • Nothing in this release was tested in the game, and I did not run the tests or the battery for it.

Devo's Map Doctor 3.0.3

Choose a tag to compare

@devoltzz devoltzz released this 30 Nov 13:14

Fixed

  • Port to Reforged 3.0, a start-up that declares local variables: the map's start (its main function) used to stay on the loading screen when it declared a local variable (the report said "it could not be moved past it (a local variable in main: local weathereffect we)"). Those variables now become globals, and the start runs after the loading screen like on every other map.
  • Port to Reforged 3.0, models with several dots in the name, in the object data: the port already gave these models a copy under a name Reforged loads, and the script asked for the copy, but the unit, item and ability data (war3map.w3u, w3t, w3a and the rest) still named the dotted files, so those units and effects had no model in Reforged. The object data now names the copies too, and the "change those model paths in the object editor" warning is gone. On the map that was reported, 50 model paths were fixed (47 in the units, 3 in the abilities).

Known limits

  • Nothing in this release was tested in the game, and I did not run the tests or the battery for it.