Commandes - admin

MEC core version: 2.3

  • -coopModeChoice () on | off
    Whether the first player chooses coop or solo at the start of the game (on by default); off: no choice, solo. Saved by -smic
  • -autoSpawnHeroes () [<boolean>]
    Whether the heroes appear by themselves at level 0's start when the game starts, after the start sound (on by default: the sound at 2 s, the heroes at 3 s). Off, both wait for MEC_core.spawnHeroes(), which a map's own intro calls when it ends: the sound, then the heroes 1 s later. Without a param, tells the current setting. Saved by -smic, and taken into account from the next game
  • -enableCoop () <boolean>
    Coop mode (true) or solo mode (false) from now on, for this game only: not saved by -smic
  • -reinitTerrains (rit)
    ReinitTerrains(<nb>): reinitializes terrains type with <nb> terrains
  • -reinitTerrainsPosition (ritp)
    Reinitializes the terrain on the map as it was at start of the game
  • -control (cl) <Pcolor1>|all(a) [<Pcolor2>]
    Gives the control of a hero to player <Pcolor2>
  • -resetOwners (ro)
    Gives back the control of heroes to their owner
  • -setlives (setl) <nbLives>
    Sets the number of lives
  • -teleport (t) <boolean status>
    Enables or disables teleport trigger
  • -redRights (redr) <boolean status>
    Enables or disables red rights
  • -autorevive (ar) <boolean status> [<Pcolor>|all(a)]
    Enables or disables autorevive
  • -createHero (crh) <Pcolor>|all(a)
    Creates a hero for the player
  • -deleteHero (delh) <Pcolor>|all(a)
    Deletes a hero for the player
  • -canCheat (cc) <Pcolor>|all(a) [<boolean status>]
    Sets the canCheat status for the player
  • -setAfkTime (setafkt) <time>
    Sets the afk time
  • -setAutoreviveDelay (setard) <time>
    Sets the autorevive delay, maximum 15 seconds
  • -saveMapInCache (smic) [<outputFilename> [withoutTerrain|wt]]
    Saves the map in cache for usage with mec-smic-loader. If you specify "withoutTerrain" as second parameter, the data will be lighter but not usable with smic-loader, only with -lmfc command.
  • -loadMapFromCache (lmfc) [<smicName>]
    Loads the specified map from cache created with -smic. If no parameter, loads the last cache saved during this game.
  • -removeTerrain (remt) <terrainLabel>
    Removes a terrain from the map
  • -removeMonster (remm) <monsterLabel> [--force]
    Removes a monster type from the map. --force also removes every monster and monster spawn of that type, in every level
  • -removeLastLevel (remll)
    Removes the last level from the map
  • -removeCaster (remc) <casterLabel> [--force]
    Removes a caster type from the map. --force also removes every caster of that type, in every level
  • -setTerrainsOrder (setto) <terrainLabels>
    Sets the order of the terrains
  • -setTerrainCliffClass (settcc) <terrainLabel> <cliffClass>
    Sets the cliff class of a terrain
  • -setMainTileset () <tileset>
    Sets the main tileset
  • -logs ()
  • -clickWhereYouAre (cwya) [<boolean status> [<Pcolor>|all(a)]]
    Toggles or sets click where you are feature
  • -reinitProgressionMap () ['level' | 'distance' | 'bfs' | 'segment']
  • -createDebugMecRegion (crdebmr) [<mode> [<directionForHorizontal>]]
    Mode can be "horizRect", "rect", "parallelogram", "trapeze", "circle" or "line" (defaults to "horizRect"). Direction for horizRect can be "up", "down", "left" or "right" (defaults to "up")
  • -setHeroModelPath () [<modelPath>]
    Sets the model the hero is drawn with while an effect stands in for its unit, during an async slide. Persistent between "smiced" games. Without an argument, tells the one in use.
  • -desyncProbe () <boolean>
    Writes, five times a second and on every machine, values that must be the same on all of them, to CustomMapData/MEC/desync_probe_p<player number>.txt (the last minute, written once a second) and desync_probe_p<player number>_last.txt (the last 5 seconds, written at every probe, which the machine a desync drops still has). After a desync, every player sends both files: the first value that differs at the same probe tick shows what diverged.
  • -measureTurn ()
    Measures how the native SetUnitFacing turns your hero, for about 40 seconds, into CustomMapData/MEC/turn_measure.txt. Stand on walkable ground and give your hero no order until it is done.
  • -contactChunks () [stats | audit | auditWatch | auditUnwatch | rebuild | tiers <chunkSize> [<chunkSize> ...]]
    Reads or retunes the contact chunks, the index MEC's own contact check finds the monsters of a hero with. Chunk sizes are given in units, from the finest up; a tier holding the whole map is always added on top of them.
  • -e2e () [run] <testName> | ls | speed <percentage> | stop | pause | resume
    Handles the e2e tests.
  • -debugLongDistanceMoves () <boolean>
    Disables all effects