Skip to content

Creating a project

Initialization

$ kw init           # Creates an empty project in the current folder
$ kw init test      # Creates a project in the test folder (if the folder doesn't exist, it creates it)
$ kw init name.w3x  # Unpacks the map and creates a project based on it

During initialization, kuniwar creates all the project folders and then downloads the necessary binaries to the .w3pm folder. This folder will store jasshelper, w3x2lni, map backups, and modules. The utility also downloads a blank map template and then unpacks it as a project.

Unpacking follows the same process, except that instead of the downloaded map template, the map you specified is used, after which the code, global variables, and GUI triggers are parsed from it.

Everything is moved to the scripts folder, so you can work with the code there from now on. The triggers you created will remain in the map, but they won't be used during compilation and won't be updated.

To achieve the opposite effect (convert the scripts folder to triggers), you can use the command:

$ kw pack