UjAPI Help

Command Line Interface

Command

Arguments

Description

-justdoupdate ㅤ

Simply forces update check and auto-update, this will force ignore any other command

-ujapi

dev, noload, minimised, tray

Allows redifinition of base settings of UjAPI, example: -ujapi "dev tray minimised"

-window

Forces Warcraft III to be launched in windowed mode.

-launch

Warcraft, Editor

Allows redifinition of launchable application, which by default is Warcraft 3. exaple: -launch "Editor" will force launch World Editor instead of Warcraft III

-gamepath

Path to Game

Allows redifinition of game path, which by default is the one set in UjAPI settings. exaple: -gamepath "D:\Games\Warcraft III TFT\war3.exe"

-editorpath

Path to Editor

Allows redifinition of editor path, which by default is the one set in UjAPI settings. exaple: -editorpath "D:\Programs\WC3 Tools\JNPG-R1.4-Prometheus-Edition\NewGen WE.exe"

-loadfile

Path to File

Forces Game/Editor to load provided file by path. exaple: -loadfile "D:\Warcraft III\Maps\SomeMap.w3x"

-fastmenu

Force loads FastMenu.dll library which enables fast menu, which drastically speeds up menu animations, which makes navigation faster

-multiwindow

Force loads MultiWindow.dll library which enables multi-instance of Warcraft, which allows launching multiple windows of Warcraft

-nomapsizelimit ㅤ

Force loads UnlockMapSize.dll library which removes 1/4/8/128MB map size limit for Warcraft

-jass

dev, console

Allows redifinition of base settings of Jass Virtual Machine settings, example: -jass "dev console"

-as

dev, console, nowarnings

Allows redifinition of base settings of Angel Script settings, example: -as "dev console nowarnings"

-lua

dev, console, nowarnings

Allows redifinition of base settings of lua engine settings, example: -lua "dev console nowarnings"

Quotes are mandatory for commands that have multi-selection of arguments.

Arguments Dscriptions

UjAPI Arguments

Argument

Description

dev

Enables developer/debug mode, which enables console and error logging of files/Jass/Frames/etc

noload

Disables loading of new natives and UjAPI.mpq

minimised

Application will be launched in minimised mode

tray

Application will be launched in tray

    Jass Arguments

    Argument

    Description

    dev

    Enables developer/debug mode, which enables console and logs current running Jass function

    logactions

    Enables developer/debug mode and logs everything processed by Jass Virtual Machine

      AngelScript Arguments

      Argument

      Description

      dev

      Enables developer/debug mode, which enables console, error logging and access to Debug API of AngelScript

      console

      Enables console to which AngelScript will print errors/warnings. This will override default "dev" mode

      nowarnings

      Suppresses logging of warnings/non-important errors, typisation error, etc. which do not affect code

        lua Arguments

        Argument

        Description

        dev

        Enables developer/debug mode, which enables console, error logging and access to Debug API of AngelScript

        console

        Enables console to which AngelScript will print errors/warnings. This will override default "dev" mode

        nowarnings

        Suppresses logging of warnings/non-important errors, etc. which do not affect code

          Examples

          CLI Command

          Description

          "D:\Files\Work Files\Programming\uJAPI\Release\UjAPILauncher.exe" -ujapi "dev" -lua "dev console nowarnings" -multiwindow -window -launch "Warcraft" -gamepath "D:\Games\Warcraft III TFT Clear\war3.exe" -loadfile "Maps\Test\WorldEditTestMap.w3x"

          First argument is the path to the application itself, which is automatically created, when a shortcut is created from application in Windows. The rest of the command resolves to: UjAPI being launched in Dev mode, lua in dev mode with console with suppressed warnings. Game is launched with multi-window enabled in windowed mode with a forced redifined game path, which launches provided map in the -loadfile

          "D:\Files\Work Files\Programming\uJAPI\Release\UjAPILauncher.exe" -ujapi "dev" -launch "Editor" -editorpath "D:\Programs\WC3 Tools\JNPG-R1.4-Prometheus-Edition\NewGen WE.exe" -loadfile "D:\Files\Work Files\Programming\uJAPI\Release\UjAPIFiles\TestNatives.w3x"

          Nearly identical to previous one, but we do not send lua settings, since Editor doesn't support them and instead of the Warcraft we send Editor.

          Last modified: 24 September 2024