diff --git a/_doc/start.md b/_doc/start.md index 1626b7f..57effe6 100644 --- a/_doc/start.md +++ b/_doc/start.md @@ -9,7 +9,7 @@ color: green --- WurstScript is a patch-aware programming language and modding toolkit for Warcraft 3 maps. -This guide covers the current streamlined setup with VS Code. +This guide covers setup with VS Code and the Grill command-line tool. ## Prerequisites @@ -45,13 +45,15 @@ grill install 1. In VS Code, press `F1`. 2. Run `Wurst: New Wurst Project`. -3. Follow the prompts. +3. Follow the prompts to choose the project name, target Warcraft III patch, and Jass or Lua output. + +This command opens a terminal and runs `grill generate`, the same project wizard you can use directly from the command line. For this flow, you usually do not need to run `grill install` manually right away. ## Target a Warcraft III Patch -Wurst supports multiple Warcraft III generations from one toolchain. Grill can select the patch your project targets and downloads the matching core Jass definitions and standard library version, keeping the compiler and dependencies aligned with the client you actually run. +Wurst supports multiple Warcraft III generations from one toolchain. The project wizard asks which patch to target and downloads the matching core Jass definitions and standard library branch. When installing dependencies in an existing project with `grill install`, Grill also asks for a patch if none is recorded in `wurst.build` yet. This is useful for both ends of Warcraft III’s history: @@ -59,7 +61,25 @@ This is useful for both ends of Warcraft III’s history: - **Classic CASC-era patches such as 1.30/1.31** use Jass output and CASC game data. - **Reforged** projects can use Lua or Jass output and modern CASC game data. -The VS Code extension detects the installed client when it can, and the asset and map tooling follows the same game-data selection. You can therefore work against an older MPQ installation without losing the modern Reforged workflow. +The VS Code extension detects the installed client when it can, and the asset and map tooling follows the same game-data selection. You can use the current editor tools with an older MPQ installation too. + +### Change an Existing Project's Patch + +After updating Warcraft III, compare the installed client with your project's target. Run these commands from the project folder: + +```bash +grill patch +``` + +If you want to move the project to the detected client's patch, run: + +```bash +grill patch align +``` + +This updates `wc3Patch` in `wurst.build`, the official standard library branch, and managed core Jass definitions. Grill backs up changed configuration to `wurst.build.bak` and preserves the project's Jass or Lua output choice. If you use a custom standard library fork, update that dependency yourself. + +To select another Warcraft III installation, pass `--wc3-path "/path/to/Warcraft III"` to either command. Running `grill install` on its own keeps an existing patch target. ## Running Your Map @@ -68,6 +88,14 @@ Use the play button in VS Code to run your project quickly. - Open any `.wurst` file and click the play button. - You can also open a `.w3x` or `.w3m` map and use the same run action. +From a terminal in the project folder, `grill run` builds the map and launches it in Warcraft III. It detects the map automatically when the project root contains exactly one `.w3x` or `.w3m` map archive or folder. Otherwise, specify the map: + +```bash +grill run MyMap.w3x +``` + +Grill uses the Warcraft III path selected during project setup, or detects an installation. You can override it with `--wc3-path "/path/to/Warcraft III"`. + ## Useful Commands - `>wurst: Install` @@ -75,16 +103,27 @@ Use the play button in VS Code to run your project quickly. Open the command palette with `F1` and search for `wurst`. -## Optional: CLI-Only Usage +## Using Grill from the Command Line -If you are not using VS Code, you can still use `grill` directly. +Once the toolchain is installed and `grill` is on PATH, you can create, build, and run projects from a terminal. -Create a new project: +Create a new project and enter its folder: ```bash grill generate my-wurst-project +cd my-wurst-project ``` +The wizard is the same one launched by **Wurst: New Wurst Project** in VS Code. It configures the patch target and output mode, installs the matching standard library, and sets up the starter map. + +Build and launch the starter map: + +```bash +grill run +``` + +Use `grill build` to build without launching Warcraft III, `grill typecheck` to check your code, or `grill test` to run unit tests. + Add a dependency: ```bash diff --git a/_layouts/home.html b/_layouts/home.html index a948b89..75ec5c2 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -38,7 +38,7 @@

Latest Updates

{% assign posts = site.news | where_exp: "post", "post.date <= site.time" | sort: 'date' | reverse %} {% for post in posts limit:3 %} -
+

{{ post.date | date: '%B %d, %Y' }}

{{ post.title }}

@@ -52,7 +52,7 @@

{{ post.title }}

Why choose WurstScript?

-

WurstScript is a WC3-first workflow built around maps, object data, assets, builds, and Jass or Lua output.

+

WurstScript is a programming language and toolkit for Warcraft III map development, with tools for object data, assets, builds, and tests.

diff --git a/_layouts/news.html b/_layouts/news.html index 0f7281f..2f3f60d 100644 --- a/_layouts/news.html +++ b/_layouts/news.html @@ -32,7 +32,7 @@

Posts

{% assign posts = site.news | where_exp: "post", "post.date <= site.time" | sort: 'date' | reverse %} {% for post in posts %} -
+

{{ post.date | date: '%B %d, %Y' }}

{{ post.title }}

diff --git a/_news/compiler-update-v2.md b/_news/compiler-update-v2.md index ff1e4e0..10b88d4 100644 --- a/_news/compiler-update-v2.md +++ b/_news/compiler-update-v2.md @@ -2,7 +2,8 @@ title: WurstScript Compiler Update v2.0 excerpt: Versioned compiler releases replace nightlies, with compiler version pinning in VS Code, faster builds and tests, and more Lua improvements. date: 2026-10-15 00:00:00 +0200 -image: /assets/images/news/performance.png +image: /assets/images/news/compiler-update-v2.webp +image_fit: contain layout: newsarticle author: Frotty --- diff --git a/assets/images/news/compiler-update-v2.webp b/assets/images/news/compiler-update-v2.webp new file mode 100644 index 0000000..d687cc5 Binary files /dev/null and b/assets/images/news/compiler-update-v2.webp differ diff --git a/assets/images/news/wurst-ai-thumb.webp b/assets/images/news/wurst-ai-thumb.webp new file mode 100644 index 0000000..33c5d3a Binary files /dev/null and b/assets/images/news/wurst-ai-thumb.webp differ