Skip to content
ChiefOfGxBxL edited this page Jun 2, 2018 · 9 revisions

Translator

Translator.Sounds

Usage

var result = new Translator.Sounds.jsonToWar(soundData);
// Now you can write result.buffer to a war3map.w3s file

Specification

soundData: [<Sound>]; // Array of sounds

Where <Sound> is a sound structure defined by:

{
    name: <String> // e.g. "gg_snd_HumanGlueScreenLoop1",
    path: <String> // e.g. "Sound\\Ambient\\HumanGlueScreenLoop1.wav",
    eax: <String = "DefaultEAXON">,
    flags: {
        looping: <Boolean = false>,
        3dSound: <Boolean = false>,
        stopOutOfRange: <Boolean = false>,
        music: <Boolean = false>
    },
    fadeRate: { <Object = {in:10, out:10}>
        in: <Integer = 10>,
        out: <Integer = 10>
    },
    volume: <Integer = -1>,
    pitch: <Float = 1.0>,
    channel: <Integer = 0>,
    distance: {
        min: <Float>,
        max: <Float>,
        cutoff: <Float>
    }
}

EAX Effects enum

default = DefaultEAXON
combat = CombatSoundsEAX
drums = KotoDrumsEAX
spells = SpellsEAX
missiles = MissilesEAX
hero speech = HeroAcksEAX
doodads = DoodadsEAX

Channel enum

0 = General
1 = Unit Selection
2 = Unit Acknowledgment
3 = Unit Movement
4 = Unit Ready
5 = Combat
6 = Error
7 = Music
8 = User Interface
9 = Looping Movement
10 = Looping Ambient
11 = Animations
12 = Constructions
13 = Birth
14 = Fire

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