Skip to content

Imports

ChiefOfGxBxL edited this page Jun 2, 2018 · 5 revisions

Translator

Translator.Imports

Usage

var result = new Translator.Imports.jsonToWar(importData);
// Now you can write result.buffer to a war3map.imp file

Specification

importData: [<Import>]; // Array of imports

Where <Import> is an import structure defined by:

{
  path: <String>,
  type: <String = 'standard'> // valid values: "standard" or "custom" (custom will add on war3mapImported\ to the path)
}

Example

[
    { path: "file1.mdx", type: 'standard' },
    { path: "file2.blp", type: 'custom' },
]

As seen, the file is quite minimal to create the war3map.imp file. All that is needed is an array of structures, each containing a path to the file, and a type. These are at the root level for now.

Translators

World entities

Place entities like units, doodads, etc. on the map

Units (unit or item)
Doodads
Terrain
Regions
Cameras
Sounds

Object definitions

Edit objects in the object editor

Units
Items
Destructables
Doodads
Abilities
Buffs
Upgrades

Other

Miscellaneous files like imports and strings

Imports
Strings
Info

Clone this wiki locally