Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 46 additions & 7 deletions _doc/start.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -45,21 +45,41 @@ 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:

- **Older MPQ-era classic patches** use Jass output and layered MPQ game data.
- **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

Expand All @@ -68,23 +88,42 @@ 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`
- `>wurst: New Wurst Project`

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
Expand Down
5 changes: 3 additions & 2 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h2 class="title">Latest Updates</h2>
{% assign posts = site.news | where_exp: "post", "post.date <= site.time" | sort: 'date' | reverse %}
{% for post in posts limit:3 %}
<a class="btn card" href="{{ post.url }}">
<div class="card-image"><img src="{{ post.image }}" alt=""></div>
<div class="card-image"><img src="{{ post.image }}" alt=""{% if post.image_fit == 'contain' %} style="object-fit: contain; background: #171717;"{% endif %}></div>
<div class="card-content date">
<p class="date">{{ post.date | date: '%B %d, %Y' }}</p>
<h3>{{ post.title }}</h3>
Expand All @@ -52,7 +52,7 @@ <h3>{{ post.title }}</h3>
<div class="why-wurst">
<h2 class="title">Why choose WurstScript?</h2>

<p class="why-intro">WurstScript is a WC3-first workflow built around maps, object data, assets, builds, and Jass or Lua output.</p>
<p class="why-intro">WurstScript is a programming language and toolkit for Warcraft III map development, with tools for object data, assets, builds, and tests.</p>

<div class="why-feature-stack">
<article class="why-feature">
Expand Down Expand Up @@ -87,6 +87,7 @@ <h3>Generate editor work</h3>
<p class="why-feature-key">AI support</p>
<h3>Let agents build map objects</h3>
<p>Because object data is generated from Wurst code, AI coding agents can easily create and update Warcraft III abilities, units, items, and upgrades in your project. <a href="/features/agents.html">Learn about AI agent support.</a></p>
<img class="why-feature-shot" src="/assets/images/news/wurst-ai-thumb.webp" alt="WurstScript AI agent support" width="768" height="370" loading="lazy" decoding="async">
</div>
</article>

Expand Down
2 changes: 1 addition & 1 deletion _layouts/news.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h2 class="title">Posts</h2>
{% assign posts = site.news | where_exp: "post", "post.date <= site.time" | sort: 'date' | reverse %}
{% for post in posts %}
<a class="btn card" href="{{ post.url }}">
<div class="card-image"><img src="{{ post.image }}"></div>
<div class="card-image"><img src="{{ post.image }}"{% if post.image_fit == 'contain' %} style="object-fit: contain; background: #171717;"{% endif %}></div>
<div class="card-content date">
<p class="date">{{ post.date | date: '%B %d, %Y' }}</p>
<h3>{{ post.title }}</h3>
Expand Down
3 changes: 2 additions & 1 deletion _news/compiler-update-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---
Expand Down
Binary file added assets/images/news/compiler-update-v2.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/news/wurst-ai-thumb.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading