BaronyGame Wiki

Game Arguments[]

Before you start Barony, game arguments can be written in to force the game to directly load into a specific state. These commands can be everything from changing the resolution to force a specific map to load.

To change the game's arguments:

  •      Find Barony in your game library
  •      Right click and press on Properties and then Set launch options...
  •      Write in the command you want from the list bellow

For more information, Read Steam's guide

These commands are available for the game, extracted from the Readme.txt in the game files;

-windowed       - Forces the game to start in a window.
-size=???x???   - Sets the display resolution.
-map=???        - Choose a map at startup instead of reading the first line from levels.txt. Filetype can be included/excluded at will.
-gen=???        - Generates a dungeon to run on startup as opposed to reading the first line from levels.txt.
-config=???     - Chooses a config file to execute on startup as opposed to simply running 'default.cfg'.
-quickstart=??? - Bypasses the menu/character creation process and simply starts the game with the player as the specified class.
-datadir=???    - The directory that game is located in

game -windowed -size=960x600 -map=test -quickstart=barbarian

The command above starts the game in a window at 960x600 and quickstarts the map "test.lmp" as a barbarian.

Console Commands[]

Some of the console commands, including the descriptions, can be found in a file called Readme.txt at the game's directory.
The file itself is out of date because a lot of console commands change every time the game gets a new update.

To find all console commands up-to-date, you can have a look at the source code.


The console is accessed by pressing the key it's bound to. This can be found in the options under Bindings with the name Console Commands.

Some console commands requires Cheats to be enabled.

This will disable Steam achievements for that save-file.

Player/Cheat commands[]

These console commands change the players attributes and some are considered cheats. 

Command Description
/startfloor ? Changes the floor the player starts at when creating a new game (Question mark is replaced with level)
/savemap ???

Saves the current map as a file (Question mark is replaced with savefile's name)

/lastname Uses your previous-character's name
/pos Specifies the current camera position and orientation
/exit Quits the whole game without confirmation
/dowse Specifies the locations of all exit ladders on the level
/thirdperson Toggles thirdperson mode (detaches camera from player)
/friendly Makes the enemies less likely to attack you
/poison Poisons the player, making him lose HP
/nummonsters Counts the number of monsters still left on that map
/die Kills the player
/flames Lights the player on fire
/cure Cures a poisoned player
/drunky Makes the player drunk
/brawlermode Only punches and throwing potions allowed
/spawnitem ??? Spawns an item with the name given in '???' at the player's feet. If the full name is not entered, the first closest match will be spawned
/spawnbook ??? Spawns a readable book with the title given in '???'
/nextlevel Moves all players to the next level
/noclip Toggles flight
/mana Fills magic to the maximum
/heal Fills health to the maximum
/god Makes the player invincible
/buddha Leaves the player at 1 HP
/damage ? Damages the player a specific amount (Question mark is replaced with amount of damage)
/maxout2 Gives player fullset of steel gear, gives level 35 - does not increase stats
/jumplevel ? Skips levels, letting you teleport between them (Question mark is replaced with level 1-30)
/maxout3  Same as Maxout2 but sends you to Mystic Citadel
/levelskill ? Levels a specific skill 10 times (Question mark is replaced with skills 1-13)
/maxout4  Gives you everything + fullset steel gear, does not level stealth
/gold ?? Gives the player a specific amount of gold (Question mark is replaced with amount)
/dropgold ?? Drops gold from players pocket (Question mark is replaced with amount)
/maxskill ?

Maxskill have values 0 - 15, 0 being "locks" and 13 being "shield" with 2 reserved slots - Negative values work, though not all have an effect (Warning: -147 causes game to lock up and use a ton of CPU. Beyond -233 crashes the game. There may be other dangerous values.)

/maplevel Reviels the whole map for the player
/spawncursed ??? Spawns a cursed item in front of the player
/spawnblessed ??? Spawns a blessed item in front of the player
/levelup Levels up the player immediately
/hunger ??? Sets the player's hunger level to the number given in
/levelmagic Increases the player's magic skills
/killmonsters Kills all monsters on the level
/togglesecretlevel Command to force toggle the level/secretlevel.txt lists on next map change
/lastcharacter Loads the last created class/sex/appearance

Enemy & summoning commands[]

These console commands are to spawn items/characters/enemies

Command Description
/atkspeed ? Changes the speed of attack enemies can deal (Replace question mark with speed in positive/negative numbers, e.g. 0.5)
/minotaurlevel  Will make the current level a Minotaur level, making it spawn after a while
/minotaurnow  Spawn the Minotaur
/summonall  Will spawn all human AI's
/summonchest  Spawns a random chest in front of the player
/summon ? Spawns any character

(human, shopkeeper, rat, skeleton, ghoul, spider, scorpion, scarab, minotaur, slime, troll, crystal golem, cockatrice, gnome, goblin, kobold, insectoid, goatmen, demom, imp, succubus, incubus, vampire, shadow)

/spawnitem ??? Spawns an item with the name given in '???' at the player's feet
If the full name is not entered, the first closest match will be spawned
/spawnbook ??? Spawns a readable book with the title given in '???'
/gold ?? Gives the player a specific amount of gold
/spawncursed ??? Spawns a cursed item in front of the player (Replace question mark with item name)
/spawnblessed ??? Spawns a blessed item in front of the player (Replace question mark with item name)

Setting/Option commands[]

These console commands changes the settings in-game

Command Description
/res ???x??? Sets the screen resolution to the given number (eg 1280x720)
/rscale ??? Sets the rscale variable to the number given in '???' (unused)
/smoothlighting  Toggles smooth lighting
/fullscreen  Toggles fullscreen (not applied immediately)
/shaking  Toggles camera shaking
/bobbing  Toggles camera bobbing
/sfxvolume ??? Sets the sound effects volume to the number given in '???'
/musvolume ??? Sets the music volume to the number given in '???'
/bind X Y  Binds a key given in X to an action given in Y For examples, see the included default.cfg file
You can refer to this list for SDL's decimal value for a given key:
/mousespeed ??? Sets the mouse speed to the number given in '???'
/reversemouse  Toggles the inversion of all vertical mouse movement
/smoothmouse  Toggles the mouse smoothing feature
/noblood  Toggles the blood option
/gamma ???  Sets the gamma to the number given in '???'
/capturemouse  Toggles the capture of mouse input
/nolightflicker  Toggles light flickering
/colorblind  Toggles colorblind mode
/showgametimer  Shows a timer in the upper right corner
/lang  Lets you change into a different language file
/nohud  Toggles the HUD's visability
/disablemessages  Toggles the visibility of all in-game messages
/disablehotbarnewitems Toggles if new items automatically should be added to the hotbar
/autosortcategory Toggles to auto sort items depending on category
/quickaddtohotbar Toggles the option to automatically add items to the hotbar or not
/locksidebar Locks the player proeffecienies/paty stats
/autoappraisenewitems Toggles the game to automatically appraise new items
/right_click_protect Makes right clicking items not automaticlly weild them
/svflags  Toggles all server flags
/disableMultithreadedSteamNetworking Option to disable steam multithreaded networking
/hideplayertags Hides the playertags over players
/uiscale_hotbar ? To scale the hotbar (variables numbers)
/uiscale_chatbox ? To scale the chatbox (variables numbers)
/uiscale_playerbars ? To scale the playerbars (variables numbers)
/uiscale_charsheet ? To scale the character sheet (variables numbers)
/uiscale_skillsheet ? To scale the skill sheet (variables numbers)
/hidestatusbar Hides the log in the bottom
/iscale ? To scale the interface (variables numbers)
/muteping Mutes the map pings
/vsync Toggles the vsync option
/broadcast Toggles to show the IP-adress or not in the serverlist
/muteaudiofocuslost Toggle audio setting to mute sounds/music if window focus is lost
/showskillvalues Toggle menu option to show skill values rather than descriptions


Console commands to bind the controller, this can also be changed in the options menu.


Developer commands[]

These console commands are for developers and testing purposes

Command Description
/showfps Toggles a frames-per-second (fps) counter at the top left corner
/testsound ??? Plays the sound stored at index '???' (variables numbers)
/numentities Reports the number of entities in the level
/usemodelcache Use the stored models in the file models.cache to load the models faster to avoid waiting for models 0-680 to load
/disablemodelcache Reverts to reloading models each launch
/fov ??? Changes the field-of-view in-game (variables numbers)
/fps ??? Changes the frames-per-second the game should produce (variable 60-144)
/pathmap Show the accessibility of the player's current tile by enemies
/spam  Spams the message box until /spam is written again
/logobstacle  Count enemies checking for collisions per second
/showfirst Shows the first message in the log in the bottom
/loadmodels  Will reload all models (useful if some are changed mid-game)
/loadmodels ? ?  Reload models into the cache with the ? being start and end index to reload specific models
/segfault Crashes the game
/mapseed Tells the current map seed you're playing
/reloadlang Reloads the current language file
/reloadlimbs Reloads all limbs.txt files (effects when map is reloaded)
/animspeed Changes the speed of animation for enemies (Variables negativ & posetive numbers, e.g. 0.5)
/nummonsters2 Shows the monster count on the map
/nummonsters Counts monsters on map
/verifycreaturelist "Checks" the creaturelist for valid enemies and creatures to generate
/numgold Counts and display current gold player has
/splitscreen Unimplemented feature (MIGHT MESS UP THE RESOLUTION)
/seteffect x Command to inflict a status effect on the player for debugging, x is the numerical index of the status effect (Variables 0 - 24)
/loadmod ? To load mods in Workshop/in the mods folder (Replace question mark with mod name)