一键导入
wurst-setup
WurstScript installation, project setup, build configuration, dependency management, and VSCode extension usage for Warcraft 3 modding
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
WurstScript installation, project setup, build configuration, dependency management, and VSCode extension usage for Warcraft 3 modding
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | wurst-setup |
| description | WurstScript installation, project setup, build configuration, dependency management, and VSCode extension usage for Warcraft 3 modding |
Complete guide for installing WurstScript and setting up projects.
WurstScript requires:
Download from: https://code.visualstudio.com/
The extension automatically:
grill CLI toolOpen any .wurst file or run:
F1 -> >wurst: InstallF1 -> >wurst: New Wurst Projectgrill generate my-project
my-project/
├── _build/ # Compiled output (generated)
├── .vscode/
│ └── settings.json # VSCode workspace settings
├── imports/ # Files to import into map
├── wurst/ # Wurst source files
│ └── Hello.wurst # Example package
├── ExampleMap.w3x # Base map file
├── wurst.build # Project configuration
├── wurst.dependencies # Generated dependency list
├── wurst_run.args # Run configuration
└── .gitignore
projectName: MyProject
dependencies:
- https://github.com/wurstscript/WurstStdlib2
buildMapData:
name: My Map
author: Your Name
fileName: MyMap
scenarioData:
description: Map description
suggestedPlayers: 1-8
loadingScreen:
model: ""
title: My Map
subtitle: ""
text: Loading...
projectName: string # Project name
dependencies: [] # Git URLs of dependencies
buildMapData:
name: string # Map name shown in-game
author: string # Author name
fileName: string # Output file name (no extension)
scenarioData:
description: string
suggestedPlayers: string
loadingScreen:
model: string # Loading screen model path
title: string
subtitle: string
text: string
grill install https://github.com/some/library
This updates wurst.build and downloads the library.
grill install
dependencies:
# Standard Library (required)
- https://github.com/wurstscript/WurstStdlib2
# Popular Community Libraries
- https://github.com/Frotty/Frentity
- https://github.com/theQuazz/wurst-lodash
- https://github.com/Frotty/wurst-item-shop
F1 -> >wurst: Run mapThis:
WurstRunMap.w3x in WC3 maps folderF1 -> >wurst: Build mapCreates compiled map in _build/ folder for distribution.
Configure run behavior:
-runmapaliases ["wc3path:C:\Games\Warcraft III\_retail_\x86_64\Warcraft III.exe"]
-preloadFiles []
# Create new project
grill generate <project-name>
# Install/update dependencies
grill install
# Add specific dependency
grill install <git-url>
# Update compiler
grill install wurstscript
# Build map
grill build <mapfile.w3x>
# Run map
grill run <mapfile.w3x>
Add ~/.wurst to your PATH for global grill access:
%USERPROFILE%\.wurstAdd to ~/.bashrc or ~/.zshrc:
export PATH="$PATH:$HOME/.wurst"
ExampleMap.w3x (or your map) is the "terrain" map:
Files in imports/ are automatically imported:
imports/
├── Models/
│ └── MyModel.mdx
├── Icons/
│ └── MyIcon.blp
└── war3map.j # Not recommended
Folder structure is preserved in the map.
After adding imports via wurst:
_build/ to project root.wurst fileF1 -> >wurst: Installwurst_run.args# Clean and reinstall
rm -rf _build/dependencies
grill install
The extension manages Java automatically. If issues occur:
F1 - Command paletteCtrl+. - Quick actionsCtrl+Space - AutocompleteCtrl+Click - Go to definitionShift+F12 - Find references.vscode/settings.json:
{
"editor.formatOnSave": true,
"wurst.wc3InstallationPath": "C:\\Games\\Warcraft III"
}
Getting started with WurstScript for Warcraft 3 map development including project structure, first map, and basic spell creation
WurstScript community resources including example maps, libraries, frameworks, and project showcases for Warcraft 3 modding
WurstScript language reference covering syntax, types, classes, modules, generics, lambdas, and all language features for Warcraft 3 modding
WurstScript standard library reference including closures, data structures, vectors, object editing, dummy units, and utility packages
WurstScript tutorials covering spell creation, legacy map migration, save/load systems, hot code reload, and advanced techniques