News

Jorsys Jorvik Systems is a site dedicated to modding and reverse engineering WarCraft I, WarCraft II and StarCraft I. The goal is to provide tools, documentation and tutorials to facilitate understanding of what's going on under the hood in these classic games, as well as collections of mods to change them.
MPQDraft 2026-12-01 beta released
Posted by Ojan

I have released MPQDraft 2026-12-01 beta. MPQDraft is a modding tool that allows in-memory patching of game data files, added features through plugins, and creation of self-executing mods (SEMPQs).

As I wrote a couple of weeks ago, I wanted to modernize MPQDraft before going further with AxeGraft. That turned into the largest update since I picked the program up: 265 commits since the release in September. It is a beta, since this much change leaves room for mistakes, so please try it and tell me what breaks.

MPQDraft logo

A new kind of plugin

Plugins have worked the same way ever since Quantam (Justin Olbrantz) originally designed them. Those old plugins still work, but there is now a new kind beside them. New plugins:

  • can be written in any language that can make a 32-bit Windows DLL, plain C included, and not only in C++.
  • describe themselves in a short text, so MPQDraft can list them without running them. A broken plugin does no harm until it is ticked.
  • can have settings, such as a file, some text, a yes or no, or a choice. MPQDraft shows them under the plugin list and remembers them, and they work in SEMPQs too. They can be given on the command line too, with --plugin-option.
  • can be translated, and are told which language to show their own messages in.
  • are told the game, its version, the MPQs and the other plugins before the game starts. A SEMPQ whose plugin doesn't work with the player's version of the game can say so, instead of starting the game.
  • can list the MPQs open in the game, read files from them, and replace functions the game calls. Several plugins can replace the same function and still work together.
  • can say that they need another plugin, have to start after it, or don't work with it.
  • can report errors and warnings, which are shown once the game has ended.

For plugin authors there is now a plugin SDK, released as a zip beside MPQDraft. It has a guide, the plugin interface, and a sample plugin with its source, which reports the files a game opens. The sample can be used under the MIT license, so a plugin started from it can have any license.

Other news

  • When a game can't be started or patched, MPQDraft now says why: the program is 64-bit, needs administrator rights, doesn't use MPQs, or which MPQ or plugin couldn't be loaded. It used to say only that the patch failed.
  • When the game crashes, MPQDraft says so once the game has ended, and names the plugin if the crash was in one.
  • Up to 64 MPQs and 32 plugins can be used at once, instead of 8 of each.
  • MPQs, plugins and folders of MPQs can be dropped on MPQDraft, which opens the patch wizard with them added.
  • Releases are no longer packed with Enigma Virtual Box, and games are started in a different way. Both of these made antivirus software flag MPQDraft. The files are also much smaller.
  • There is a debug log, for help with a game that won't patch.
  • The command line now shows its output in the terminal it is started from. Before, it was only seen when sent to a file.

Fixes

The list of fixes is far too long to repeat here, but these are the ones I think matter most:

  • Diablo II and Warcraft III can be patched again from the patch wizard, and now also from the command line. MPQDraft patched their launchers instead of the games, so mods gave an error and plugins had no effect.
  • Diablo, Hellfire and Lords of Magic SE are patched again when started from the patch wizard.
  • Mods now load in StarCraft 1.05 and Brood War 1.05 to 1.07, which used to close with "the patch MPQs could not be loaded".
  • MPQs higher up in the patch wizard's list now take priority over those below them, as the wizard says. Saved lists may need reordering.
  • The patch wizard no longer stays on screen, not responding, for as long as the game runs.
  • A SEMPQ now starts the game in the game's own folder, and one that has been cut short or damaged says that it is corrupted, rather than crashing.
  • Games, mods and plugins in folders with non-English letters now work.
  • MPQDraft and SEMPQs no longer leave files behind in the temporary folder.

Quite a few of these were things that worked in the 2009 release and had stopped working since. There are now automated tests to keep that from happening again, which run on every build, on Windows and on Linux. They include running a stand-in game through the patcher.

See the changelog for everything that has changed.

Download

Find the beta here. The latest full release is still 2026-09-13, which the MPQDraft page links to.

AxeGraft page
Posted by Ojan

I finally got around to make a page for AxeGraft, here.

AxeGraft is a tool I released earlier this month. While many things in StarCraft and Warcraft II are stored in files that are easily editable and modifiable, a fair chunk of things are built directly into the game executable themselves. Most notably, these include what buttons and abilities each unit has, what buildings can do, and what the tech-tree looks like.

AxeGraft

With AxeGraft, this is now modifiable! It consists of an Editor where you make your edits, and a Patcher where you load a set of edits. The Editor runs directly in your browser, while the Patcher is a plugin for MPQDraft. It has support for nearly all versions of StarCraft: Brood War <= version 1.17, and for Warcraft II: Battle.net Edition.

Read more about this successor to FireGraft / StarGraft / MemGraft / WarHack here!

scmJS 0.19.0 released
Posted by Ojan

Version 0.19.0 of scmJS was released on 26 November 2026. scmJS is a map editor for StarCraft, Brood War and StarCraft: Remastered by jeany55. It takes inspiration from StarEdit, SCMDraft 2 and StarForge, and runs either as a desktop app for Windows, macOS and Linux, or directly in the browser at scmjs.dev/editor.

Changes in scmJS 0.19.0:

Tools ▸ Compare Maps… holds the open map against another version of it and marks on the map where the two differ. Replay analysis now writes a build order the way players do and shows when production stood idle.

Comparing maps

  • Tools ▸ Compare Maps… compares the open map with another open map, or with itself as it is now, so that everything you change from then on is shown. The dialog counts the ground, units and locations that differ, with a button for each place that goes there.
  • View ▸ Differences draws them on the map and follows your edits: changed ground in magenta, what only this map has in green, what only the other has in red, and what moved or changed in yellow. Each open map keeps its own comparison when you switch tabs.
  • Comparing changes neither map. Triggers, strings, players and settings are not compared here; scmjs map diff lists those from a terminal.

Replays

  • Aftermath 0.28.0 writes an analysed game's build order with the supply each step was begun at (9 Spawning Pool), under a card that names the opening.
  • View ▸ Replay Analysis has a Macro tab: when each production building stood idle while there was money to spend, and when workers stopped.

Plugins

  • Aftermath 0.28.0: the build order in players' notation, and the Macro tab.

For plugin authors

  • @scm-js/core exports the comparison the editor draws from: diffChanges for what differs from one map to another, changedPlaces for the differing ground joined into boxes, and unitChanges, locationChanges and anyChange.
  • The API version stays 1.

Download:

Find version 0.19.0 of scmJS here.

A flurry of tool releases
Posted by Ojan

There is so much happening in the community right now that it is hard to keep up! Despite the age of the games, tools for both StarCraft and WarCraft II are getting new releases at a rapid pace, and several of them have put out a whole string of versions since I last wrote about them. Here is a roundup of the latest releases of mpqcli, RuneFoundry, PUDForge, StarDraft 2, Chkdraft and scmJS.


mpqcli

Version 0.13.3 of mpqcli was released on 20 November 2026. mpqcli is a command-line tool by Thomas Laurenson to create, list, extract and modify MPQ archives. MPQ archives were used for many years by Blizzard games such as StarCraft I and Warcraft II, and contain the game assets that game modifications change.

There have been two releases since the last time mpqcli was in the news here: 0.13.2 and 0.13.3.

Changes in mpqcli 0.13.3:

Fixed

  • Store, list, extract and read file names with non-ASCII characters correctly on Windows 10 version 1903 and later
  • Print non-ASCII file names correctly in the Windows console
  • Exit with 130 on Windows when interrupted, as on Linux, instead of 3
  • End by SIGTERM when stopped with SIGTERM, so a shell reports 143 rather than an interrupt's 130

Changes in mpqcli 0.13.2:

Changed

  • Say on stderr when read or extract uses the default locale because the file has no copy in the one asked for

Fixed

  • Extract each name once when extracting every file, under the locale it is stored in, and name the left-out locales on stderr
  • Extract files stored only under a non-default locale when extracting every file, instead of failing
  • List every locale of a name stored under more than 32, instead of reading past a buffer
  • Show an empty time in list for a file time that cannot be converted, instead of reading past a buffer

Download:

Find version 0.13.3 of mpqcli here.


RuneFoundry

Version 0.6.5-alpha of RuneFoundry was released on 9 October 2026. RuneFoundry is a set of mod tools for Warcraft II Remastered by milestone. It has two programs: a launcher that installs and plays mods, and an editor that makes them. It can edit things like campaigns, AI scripts, sprites and unit and weapon properties.

Changes in RuneFoundry 0.6.5-alpha:

If Warcraft II or Battle.net is set to run as administrator, RuneFoundry now says so and explains how to turn it off. That setting stops a mod's rules from working.

Download:

Find version 0.6.5-alpha of RuneFoundry here.


PUDForge

Version 0.1.80 of PUDForge was released on 13 October 2026. PUDForge is a map editor for Warcraft II by milestone, which runs on Windows. The map format is the same in the original DOS versions of Warcraft II as in the Battle.net Edition and the Remastered version, so its maps work in all of them.

Changes in PUDForge 0.1.80:

New

  • Help, Report an Issue sends your text to the PUDForge issue list. The reply gives a link to the issue.
  • Each right-click menu has Report an Issue with the item that you clicked.
  • After a crash, PUDForge asks at the next start to send a crash report.

Download:

Find version 0.1.80 of PUDForge here.


StarDraft 2

Version 0.9.2 of StarDraft 2 was released on 24 November 2026. StarDraft 2 is a map editor for StarCraft: Remastered on Windows by Milestone and iDoodler. It can be used for classic maps, but its main focus is EUD maps, where it brings the editing of the map, the game data and the triggers together in one place.

There have been 22 releases since the last time StarDraft 2 was in the news here, all of which are found on the releases page. The changes in the three latest are listed below.

Changes in StarDraft 2 0.9.2:

Video: the new features of 0.9.2

New

  • File > Import from SCMSCX: search scmscx.com, then download and open a map in one step.
  • Fog of war tool (Shift+F): paint and erase the fog of one or more players.
  • Edit > Resize map (Ctrl+Shift+R): drag the map's edges on the map. The new ground is the terrain picked in the Terrain palette.
  • Map sizes of your own: type the width and the height.
  • Pathing overlay: each region has an outline, and lines show where ground units can go between regions.
  • Palettes: Ctrl+wheel makes the items bigger or smaller.
  • View > Overlays > Psi power: which Protoss buildings have power from a Pylon.
  • Stars in space: the game's moving stars over Space Platform maps.
  • Protected maps open as view only. StarDraft 2 does not save, export or copy from them.

Map

  • The arrow keys move the selected sprites and doodads.
  • Town areas show the total minerals and gas of each town.
  • Terrain select: Isometric shows the diamonds that each shape copies.

Triggers

  • New blocks from EUD Editor 3's TETools: build, morph and train units, control groups, and more.
  • Easier to read helper code: unit fields have names, not memory offsets.

CMBW mod

  • Recolor preview: see the mod's recolors on the map.
  • Recolor action: paste the line that Recolor preview copies.

Fixes

  • SC:R's newer doodads (Space Platform, Desert, Twilight) show and can be placed.
  • The end piece of a ramp is no longer marked invalid.
  • Submenus stay on the screen.
  • Briefing: Space in the text box no longer plays or pauses the preview.
  • Map data > Technologies: the Changed filter shows techs that are set for all players.
  • Unit properties: a click in the list keeps the search.
  • Korean: locations are 로케이션.

Changes in StarDraft 2 0.9.1.1:

Fixes

  • Cosmonarchy BW: maps save in the format the mod opens. Maps made with File > New could not be played in the mod.
  • Downloads for macOS and Linux are back (0.9.1 had only Windows).
  • Town areas: an area's town hall place can be over the mod's markers and over the map's own town halls.

Changes in StarDraft 2 0.9.1:

Video: the new features of 0.9.1

New

  • New language support: Portuguese (Brazil) and German.
  • Copy and paste units between maps. Doodads paste only in a map of the same tileset.
  • Tile variations: select up to 2 x 3 tiles, and the side bar shows their variations. Point to one to see it on the map, click to use it. Alt + wheel steps a tile through its variations.
  • Pie palette for Units, Doodads and Sprites: hold Space and pick from rings at the mouse. Custom terrain has rings too.
  • Edit > Arrange: align, spread, row, column, grid or circle for the selected units.
  • View > In-game view (experimental): the map at the game's screen size (Ctrl+Shift+G).
  • Plugins: Hyperion (experimental), with up to 64 players. Program options > Plugins is a choice of No plugin, Cosmonarchy BW or Hyperion.
  • Mod terrain mapper (experimental): make a mod's isometric terrain tile by tile, with match suggestions.

Map

  • Terrain: Copy as text, and Ctrl+V of custom terrain text makes it the Brush.
  • Symmetry: one button for all mirrors; up to 32 anchors and 64 brushes.
  • Units: drag while pasting to paste copies along the way.
  • Locations: right-click lists the locations under the pointer, to select one under others.
  • Town areas use the game's resource area rule, each area in its own color.
  • Zoom in to 1600%.
  • Map title colors, an owner for many units at once, and a better Custom terrain list order.

Triggers

  • New action: Shift a location in a direction.
  • A player from a variable or a value in more places. New values: Game time in seconds, The number of players, and more.
  • For each unit accepts Men, Buildings and Factories.
  • Sound files in epScript: a list of the files as you type a sound name.

CMBW mod

  • ISOM terrains is one choice of three: game terrains only, built-in mod terrains (deprecated), or a terrain rules file.
  • The Units palette shows a mod's own unit icons.

The program

  • Open the last session's tabs on start (Program options).
  • Faster start: 257 ms (was 475 ms).
  • 50 recent maps and projects.
  • Report feedback sends in the background.

Fixes

  • Installation doors and traps show and place correctly.
  • The SD selection circle is as bright as HD's.
  • Map layers stay after a save, a tab switch or a CLI save.
  • Mining Lab: maps with no start location mine again.

Download:

Find version 0.9.2 of StarDraft 2 here.


Chkdraft

Version 2.20 of Chkdraft was released on 24 November 2026. Chkdraft is an open-source map editor for StarCraft by TheNitesWhoSay.

There have been four releases since the last time Chkdraft was in the news here: 2.17, 2.18, 2.19 and 2.20. The changes are listed below.

Changes in Chkdraft 2.20:

  • Fix various issues with location 255
  • Fix a rare crash that could occur with suggestions

Changes in Chkdraft 2.19:

  • Actor & image properties auto-refresh in actor properties (toggleable via auto refresh UI checkbox)
  • Auto-update actor list in actor properties (in response to unit/sprite changes)
  • Button in actor properties to reset an actor & its images back to original state
  • Center an actor on the map when selected in actor properties

Changes in Chkdraft 2.18:

  • Add recent maps menu
  • Add ability to scroll around the map by arrow keys (and WASD if WASD is toggled on)
  • Prevent beep when changing the placement player by hotkey
  • Add a border to the tileset indexed window
  • Render null/black tiles as black when pasting
  • Name map properties menu item to match the tab name
  • Fix a bug in text trig bug where the user inputting multiple strings before a separator/delimiter caused incorrect strings to be used rather than erroring out

Changes in Chkdraft 2.17:

  • Greatly improve trigger condition/action/briefing-action suggestion behavior
  • 65% faster updates to conditions/actions/briefing-actions
  • Significantly smoother submit/cancel change behavior when looking at suggestions/options for condition/action fields
  • Allow creating new strings as well as selecting existing from string suggestions
  • Allow numeric value entry in suggestions (showing the meaning and letting it be selected)
  • Add a toolbar to suggestion showing the relevant actions/teaching the relevant hotkeys
  • Fix cut/copy/paste/delete behavior in conditions/actions so it counts as one undoable action
  • Fixes for editor-only strings, triggers extensions and trigger comments/notes fields
  • Add selection counts on the status bar
  • Only run minimap tests if StarCraft assets are available

Download:

Find version 2.20 of Chkdraft here.


scmJS

Version 0.18.0 of scmJS was released on 20 November 2026. scmJS is a map editor for StarCraft, Brood War and StarCraft: Remastered by jeany55. It takes inspiration from StarEdit, SCMDraft 2 and StarForge, and runs either as a desktop app for Windows, macOS and Linux, or directly in the browser at scmjs.dev/editor.

There have been 31 releases since the last time scmJS was in the news here, all of which are found on the releases page. The changes in the two latest are listed below.

Changes in scmJS 0.18.0:

A protected map whose archive is full of files nothing names can be saved again. An AI can now play scenarios on a map to check its triggers, and give a map a TrigScript script. scmjs mcp now serves only the map tools unless you ask for more, so read AI apps if you use the mod, replay or account tools.

Saving

  • Some protected maps could not be saved at all: every Save failed with MpqError. Protectors fill the map's archive with files that nothing in the map names, so there was no room for the files the editor writes. The game never opens such a file, so when there is no room, Save now leaves them out and the map plays the same. The Save dialog says how many it leaves out.
  • Repair 1.7.0 finds those files as a map opens and leaves them out of the next save, like its other safe repairs. Undo in Repair's list puts them back.

Using the editor online

  • A tab left open while scmjs.dev is updated keeps working. If part of the editor still cannot be downloaded, a notice says so and offers Reload, which keeps your recovery copies.

AI apps

  • scmjs mcp serves the map tools and no others. The mod, replay and scmjs.dev account tools are now sets you turn on: scmjs mcp --tools all, or --tools mods,replays,account for some of them. In Claude Desktop, tick the set in the extension's settings. 0.17.0 served every tool, so add one of these if an AI used those tools for you. When a set is off, the AI is told how to turn it on.
  • map_test plays scenarios on a map in the game and says what happened: each expectation with what the game gave, how the game ended and for whom, minerals and gas, the text shown and the triggers that fired. A scenario can be given inline, and save keeps it in the map's tests file.
  • map_script_import gives a map a TrigScript script, or changes some of its files, and compiles it at once, with errors given as file, line and column. map_script_export gives the files back, and map_script_api looks up what a script can call.
  • The Claude Desktop extension now includes TypeScript, so map_build works with nothing else installed.

Command line

  • scmjs map test --show prints what each game did. --only <name> plays one scenario, - reads scenarios from standard input and --save keeps them. scmjs mod test takes the same flags.
  • scmjs map script import, export and api do what the AI tools of the same names do.
  • A script compiles with TypeScript 6. TypeScript 7 and 5 cannot compile one, and scmjs doctor now says "too new" or "too old" for them. Install typescript@6, since typescript alone installs 7.
  • For a Homebrew install, scmjs about and scmjs doctor give the update command as brew update && brew upgrade scmjs. brew upgrade alone may not see a new release for a day.

Privacy

  • When something goes wrong, the count the editor sends now also says which part of the editor it was in, such as which dialog, and for a map file's archive, which kind of problem it was. It still never sends the error's message, the map or a file name.

Plugins

  • Repair 1.7.0: files in a map's archive that nothing names, left out of the next save.

For plugin authors

  • api.document.archive.unreachable() counts the archive's files that nothing names, and dropUnreachable({ asOpened }) leaves them out of the next save. Its result has undo() to put them back. Use asOpened only for a repair made as the map opens.
  • The API version stays 1.

Changes in scmJS 0.17.0:

Preferences has a filter box, can draw the interface larger, and resets one page at a time. The View menu remembers what was ticked, and the Heal tab shows and counts the seams it mends. Claude Desktop can now work on your maps, installed from one file with no terminal.

Preferences

  • A filter box above the page list finds a setting on any page. Type a word and every section that has it is shown under its page's name, with its own controls. On Hotkeys the box narrows the list to a command by its name or its keys: Ctrl+S finds Save.
  • View ▸ Interface draws the menus, toolbar, palettes, panels and dialogs at 115% or 130%. The map is not enlarged, and a press still lands on the tile under the pointer.
  • View ▸ Notices has Keep notices until I close them. With two or more up, a Close all sits above them.
  • Reset this page puts back only the page in front, and Reset everything… asks first. Neither changes the Privacy tick.
  • New scenario, Saving and Recovery are on a new Files page. General keeps Language, Startup, Maps and Privacy.
  • The plugins' pages are listed by the plugin's name.

View menu

  • Grid, Location Names, Animate Water, Animate Units and Remastered Graphics come back as they were left. The three ticks that set what they started with are gone from Preferences ▸ View, and a choice made there is carried over.
  • Where the system asks for reduced motion, the two animations start off until you tick them.

Terrain

  • The Heal tab says what a seam is, draws the seams on the map while it is open, and counts them, for the whole map or the area marked.
  • Every Heal stroke says what it did: the tiles it changed and the seams left, or why it changed nothing.

Several maps

  • Switching to another open map ends a unit being placed and forgets where the Blend brush started.

AI apps

  • Claude Desktop installs scmJS from one file: scmjs-mcp-windows-x64.mcpb, or scmjs-mcp-macos-arm64.mcpb / scmjs-mcp-macos-x64.mcpb on a Mac, on this release's page. It asks for your maps folder and needs no terminal or Node.js.
  • Ask the AI to sign you in to scmjs.dev: it opens the sign-in page in your browser, with no terminal.
  • scmjs mcp --folder <folder> names the folder the tools work in, for an app that starts the server somewhere else.
  • The AI tools guide starts with setting up Claude Desktop, then example requests with what they give back, and what to do when something goes wrong.

Plugins

  • Aftermath 0.27.2: the replay timeline and its charts follow the pointer at a larger interface size.
  • scmjs.dev 1.41.1: its Preferences page is listed before the Account dialog has been opened.

For plugin authors

  • At 115% and 130% your dialogs and panels are drawn larger with the rest of the interface. A pointer's clientX / clientY and getBoundingClientRect() are in page pixels, while clientWidth and the lengths you set are in the element's own. Turn a pointer position into a place in your element with the rectangle alone, (e.clientX - rect.left) / rect.width * element.clientWidth, or divide by element.currentCSSZoom. A tooltip function's offsetX / offsetY are page pixels too.
  • Reset everything… calls a Preferences page's reset() when the page has been shown since the dialog opened, even with another page in front.
  • animateWater, animateUnits and hdGraphics are no longer fields of Preferences. Read them with api.view.flags(). The grid, location names, the two animations and Remastered graphics are now remembered between sessions, so a plugin that changes one for a moment should set it back.
  • A notice stays up, whatever time it was given, for someone who keeps notices until they close them.
  • The API version stays 1.

Download:

Find version 0.18.0 of scmJS here.

Down the rabbit holes
Posted by Ojan

I have spent some time now going down various rabbit holes. In order to further improve AxeGraft, I realized I wanted to modernize and update MPQDraft first. A new update of it is underway, but there's still more I want to do there.

However, when updating MPQDraft, I realized that Diablo does not even play on my system, and I knew since before that StarCraft and Warcraft II give a very poor experience as well. My system is an old Lenovo Thinkpad with a 4K screen, running the fantastic labwc, a Linux Wayland compositor.

Wayland the smith

To play these games, you need Wine, a compatibility layer for running Windows programs under Linux. It seems to have been lacking a little bit in three separate areas: DPI scaling for smaller screen resolutions, repainting of the screen under certain conditions, and how its wayland driver handles window popups. I have made fixes for all those areas, so if they get merged, the experience going forward should be smoother for everyone playing with similar systems.

Diablo I still has some minor issues after this: in the main menu there are artifacts from previous screens still visible when they should be repainted. It appears that Windows 8 and above handles these situations differently than the Windows versions Diablo I was developed for. While I haven't tried this, I thus belive Wine behaves correct in how it handles this area, and attempting to run Diablo I under a modern Windows version will likely result in the same visual issues. Fixing it in Wine will make Wine deviate from its goal of behaving like modern Windows. Anyway, it is a minor issue, not a showstopper like the other fixes.

So, hopefully this gets accepted in Wine, and regardless, I have unblocked what I need in order to continue with the next version of MPQDraft.

Updated UDTA specs, added UGRD specs
Posted by Ojan

The specs for the UDTA and UGRD files of Warcraft II are now available on the formats page.

The UDTA file controls the properties of units, such as hitpoints, graphics, cost, and various flags like whether they are spellcasters and can detect submarines and much more. The UGRD file is similar but for upgrades; it controls things like costs, time, groups and flags. These files exist in both the DOS versions of the game, the Battle.net Edition, as well as inside PUDs (maps).

The files have both been checked against decompiled versions of the games, and are thus — I believe — more thorough and correct than most other similar specs out there (if there are even any available online these days).

See the formats page for all specs currently available.

mpqcli 0.13.1 released
Posted by Ojan

Thomas Laurenson recently made a new release of mpqcli. The release is mainly fixing various smaller issues.

Changes in mpqcli 0.13.1:

Changed

  • Stop printing the m, n and f flags in the flags property, which carried no information
  • Show an error's number only when the text comes from the operating system

Fixed

  • Find files given with forward slashes in read, extract, remove and rename
  • Stop add from leaving files out when one run fills the archive's file table
  • Reject a create sector size below 1024 or not a power of two, which StormLib cannot read back
  • Accept locale names in any case, so dede is deDE rather than the locale ID 0xDEDE
  • Ignore an empty listfile with a warning instead of failing
  • list and extract an archive with no entries as empty instead of failing
  • Leave no empty output directory behind when extract writes nothing or is interrupted
  • Describe Windows system errors with the Windows message rather than an unrelated one
  • Describe verify --print as writing raw bytes, not hex, in the help, docs and completions

Download:

Find version 0.13.1 of mpqcli here.

AxeGraft revealed
Posted by Ojan

After working like a madman for more days than I can count, I am now ready to reveal what I mentioned in the previous post: AxeGraft.

While many things in StarCraft and Warcraft II are stored in files that are easily editable and modifiable, a fair chunk of things are built directly into the game executable themselves. Most notably, these include what buttons and abilities each unit has, what buildings can do, and what the tech-tree looks like.

AxeGraft

With AxeGraft, this is now modifiable! It consists of an Editor where you make your edits, and a Patcher where you load a set of edits. The Editor runs directly in your browser, while the Patcher is a plugin for MPQDraft. It has support for nearly all versions of StarCraft: Brood War <= version 1.17, and for Warcraft II: Battle.net Edition.

You can just download the code and open the AxeGraft Editor yourself in the browser, or you can find it hosted here. The Patcher is available here.


This is not the first such tool. For the DOS versions of Warcraft II, there was WarHack by Merlin (Cameron Burschardt). In 1999, King Arthur (Andy Bond) released StarGraft that became incredibly popular. Later came MemGraft by DarkWizzard, and FireGraft by DiscipleOfAdun. Especially this last tool has seen much popularity for many years. All of them have been closed-source though, and Windows only.

So what's with all the similar tools, and how is AxeGraft different? What all of these have in common is that they edit a specific place in memory of the game executable. By careful reverse engineering, the authors have figured out the exact memory address of for example where a button is, and can thus change it to something else. It has been very labourious and tedious work to figure these addresses out in the past. And every time Blizzard has released a new patch, all that work is reset; the memory locations are now in different places and tool authors are either forced to start over if they want to support a new patch, or people who want to play mods are forced to downgrade their versions of the game if they want to play mods made for an older version.

With AI advancements, the work of finding these offsets became pretty much automated. AxeGraft thus supports nearly all Brood War versions up until 1.17. I intend to write a converter tool that can take in old mods and turn them into something that AxeGraft can use. The format of AxeGraft itself is version-agnostic, so once fed a catalog file with the right offset mappings, any mod will work.


I will add more improvements when I have the time. It currently lacks support for GPTP and DatExtender, and I'm hoping to provide some way to edit the tech-tree in Warcraft II, the way you can in StarCraft. Let me know if you experience any issues!

Things are brewing
Posted by Ojan

I am hard at work these days with a little secret project. I'm not going to announce what it is quite yet, but it will modernize the set of modding tools available and is something we are in dire need of. I'm targeting both StarCraft and Warcraft II with it.

A little hint for those who are old-school enough to get the reference of a so-so drawn Hydralisk:

Rippin' Joeyray a third one...

Well, let's see what this tool turns into...

PyMS for Python 3
Posted by Ojan

For StarCraft modders, PyMS has been the go-to tool for a long time. It is a cross platform BroodWar modding suite written in Python, and contains 15 programs to edit most of the file types you will encounter while modding.

It was originally announced in 2008 and written for Python 1.5, and at some point updated for Python 2. It has not, however, been officially updated for Python 3. This has started to cause problems, since Python 2 has been unsupported for nearly seven years. It is no longer easily installable on many systems, and it might not always be trivial to run Python 2 and Python 3 on the same machine.

After a long and cumbersome effort to overhaul the code base, poiuy_qwert finally made the Python 3 version the official one!

In poiuy_qwert's own words:

The old code was kind of shit and unwieldy in a lot of core places, so fixing things was a nightmare, but it generally worked and was stable enough. I could have made it python3 compatible "easily", but I didn't see the point in that unless I actually fixed some of the core issues and got some of the benefits of moving to python3 (better type hinting for example). Because I decide to do a lot of large deep re-writes and large breadth changes, I was hesitant to put it in too many hands without better testing, and with my limited time I can only dedicate that time to development not actually testing/modding. I've been stuck at "should I replace the version that is working and battle tested to be generally stable with something that is in theory much better but has much less testing so may be less stable" for a bit

Anyone who ever looked at the old code will probably mostly not recognize the new code, in a good way 😅 I feel bad for the people that had to touch the old code (I know a few people threw some curses my way about it 😝 ), but I am very happy with where it is now and hope anyone touching it will be too

poiuy_qwert

Not only was it updated for Python 3, but it also contains a ton of other updates/fixes (see the Change Log for all the details!)

I am very grateful to poiuy_qwert for continuing to support PyMS for so long, and still making efforts to modernize it.

Find PyMS on GitHub.

Jorsys news