Skip to content

1. Getting Started

trigger edited this page Apr 3, 2020 · 4 revisions

Requirements

  1. Node.js.
  2. Warcraft III 1.31.0 or greater.

Installation

  1. Clone the repository and cd to the project root.
git clone https://github.com/triggerhappy187/wc3-ts-template.git
cd wc3-ts-template
  1. Install the node dependencies.
npm install
  1. Configure your project by editing config.json and making sure gameExecutable properly points to your game executable.

Build and Test

We can build the map first to make sure there are no errors.

npm run build

When successful, the terminal output should be similar to the text below.

Transpiling TypeScript to Lua...
Building "map.w3x"...
Creating w3x archive...
info: Finished!

Now, we can test the map. Warcraft III should load up the map automatically after typing in the command.

npm run test