Skip to content

Devo's Map Doctor 3.0.4

Choose a tag to compare

@devoltzz devoltzz released this 30 Nov 20:44
· 515 commits to main since this release

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.