Skip to content

W3 Mod Workbench 1.4.1

Choose a tag to compare

@Faen668 Faen668 released this 17 Oct 01:42
· 249 commits to main since this release

W3 Mod Workbench 1.4.1

The preview is now a script editor. Open a mod's scripts, change them, and compile them into a .rsblob with REDkit's own compiler, without leaving the workbench. Go to definition, the definition popup and everything else from 1.4.0 keep working while you type.

New: script projects

Open a folder of .ws files and it's listed as a script project: a REDkit project's workspace\scripts, a mod's content\scripts, or any folder of loose scripts. Opening or dropping a single .ws file opens its whole project.

  • Edit straight in the preview, with undo and redo. Highlighting, go to definition, the popup, the outline and parameter hints all follow your edits.
  • Save (Ctrl+S) writes the file back in the same encoding it came in, so nothing changes but what you typed. Ctrl+Shift+S saves every changed file.
  • Unsaved files get a dot on their tab and a ● in the title. Closing a tab, a window or the app asks first: Save, Don't save, or Cancel.
  • The same file open in both halves of a split shows the same text, so an edit in one is in the other too.
  • After a save, references, find in files and the other searches see the change right away.

New: edit a decompiled mod

Decompiled scripts are still read-only, but Edit as project saves a compiled mod's scripts to a folder you choose and opens them as an editable project in the blob's place. Your open tabs switch over to the new files at the same spot. It never writes over a folder that already has scripts in it.

New: compiling

Compile (Ctrl+Shift+B) builds a project into a .rsblob with REDkit's wcc_lite.exe, the same compiler REDkit publishes with.

  • Point Settings at wcc_lite.exe, or let Find automatically look for REDkit in your Steam and GOG libraries. Until it's set, Compile is greyed out and its tooltip says why. Editing and saving work without it.
  • Changed files are saved first, after asking. The first compile asks where the blob goes and remembers that for the project; right-click Compile to change it.
  • Warnings and errors are listed under the files, grouped by file. Click one to jump to its line, and F4 steps through them. Show log opens wcc_lite's full output.
  • wcc_lite often leaves the file name out of its messages when a project has several files. The workbench works out the file from the name in the message and the line it's on, and marks those as guessed.
  • When a compile fails, nothing is written, so a blob that already works is left alone.

REDkit is free on Steam and GOG for owners of the game. Nothing of REDkit's ships with the workbench: Compile uses your own install.

Help

A new guide page, Editing and compiling scripts (F1). The Settings, shortcuts and troubleshooting pages now cover the editor too.

Install

Download W3ModWorkbench-v1.4.1-win-x64.zip below, unzip it anywhere and run W3ModWorkbench.exe. Nothing to install. It never changes bundles or compiled blobs; the only files it writes are scripts you save and the blobs you compile, where you choose.

See the changelog for the full history.