| ||For a full list of all commands, see Gamebryo console commands (all).|
In Fallout 3 and Fallout: New Vegas, both based on the Gamebryo engine, the console is a debugging tool left by the developers in the PC version of the game. It is useful for developing and quality assurance, but can also be used to access cheats.
To access the console, use the grave accent key (`) while in-game (Unpaused). The grave accent key shifts to tilde (~) on US keyboards, and the not symbol (¬) on UK keyboards. Other keyboard layouts will differ, but the key is usually to the left of 1, and just under the Escape key (Esc). The key is the top left key under escape, on non-US keyboards. (Example: §, ½ or | on Scandinavian (Swedish, Danish, Norwegian etc), caret (^) on German keyboards, ² on French ones, \ or | on Italian Keyboards, ' on Brazilian Keyboards, " on Turkish keyboards). The HUD will disappear and you will get a prompt (|) in the lower left corner of the screen where you can type-in code(s).
- The game will pause, making you unable to look around while using it -be sure to be looking at what you want to change, unlock, etc.
- The mouse will control a cursor, rather than move the camera; and left-clicking will select visible objects, rather than shoot them.
- The left side of the console might not be visible if you're not using a widescreen display. In this case, type several tabs to move the cursor in before entering your commands. They will still work.
- Some Vista and Windows 7 users must disable/uninstall the "Infrared" device (varies from machine to machine, but has that same line in the name) to access the tilde key. See the Troubleshooting section on the Discussion page for further advice.
- Using the console on the Steam version of the game will disable all Steam Achievements until the game is restarted, even if no commands are entered.
Those of you who cannot seem to get the console to appear, pay attention: You should always double-check all your .ini files when modifying your game, especially doing so significantly. On Windows Vista and Windows 7, these should be located in the following locations, assuming C: as your install drive:
C:\Users\<your username here>\Documents\My Games\FalloutNV
On older OSs, look in ...\My Documents\My Games\FalloutNV. This folder will contain two .INIs:
- FalloutPrefs.ini, which contains whatever changes you made in the Options Menu of the Launcher, plus whatever has been carried over from in-game saved preferences and edits to the other .INIs. This is the best .INI to start with, as far as changing things is concerned.
- Fallout.ini, which is read-only by default, and yes, there is a good reason for that. Windows may require administrative privileges to make it writable.
The final .INI can be found in:
C:\Program Files\steam\steamapps\fallout 3\
If you're not using Steam (a.k.a D2D, etc.), consult the documentation that came with your version. This folder's contents are non-modifiable by default if you have UAC turned on. Either disable it (not recommended), or edit the Security tab in the folder's properties panel to allow you access. This folder will contain one .INI:
- Fallout_default.ini, which should not be messed around with because it sets the default values for all game settings and the other .INIs. So only change the values inside it if you really aren't seeing the changes you've made to Fallout_Prefs.ini, but ideally there should be very few reasons to change this file.
Make a backup of all .INIs before changing them. This is just a general good-practice rule for all data file editing, and it simply involves either making a copy of the file and placing it wherever you like, or making a copy and then changing the original file's extension to something like Fallout_Prefs.ini.bak. The idea here is that these .INI files can often be the solution to simple problems like not being able to access the console. Fallout: New Vegas ships in most cases with the console enabled for PC. This can be verified by looking for the
string value under the [Interface] section. Furthermore, the console can (and if you're planning on using it a lot, should) be altered via these .INI files to allow more console text to be shown on-screen. Assuming a minimum of 768 pixels of vertical display resolution (720p monitor), you can change the following values under the [Menu] heading:
Replace XX with a number 25 or greater, depending on your resolution.
Replace XXX with a number 2x-20x the original value. This is important, as it will enable you to scroll through the console's history. It is doubtful that mere text will add any taxing to your RAM, CPU, or GPU, so go nuts with this value if you like, tested up to 9001.
You can scroll through the console's history with your keyboard's Page Up key, and scroll back down with the Page Down key, assuming you are using a standard QWERTY keyboard.
This is an extremely helpful function if you've extended the console's history in the .INI files, and especially useful with the console command help, which will display a list of all possible console commands (requires a good deal of reading). You can only see the entire list if you've increased the iConsoleHistory value to higher than the factory settings.
- tfc - toggle free camera; lets you move around the camera at will. To take pictures of your character, make sure you go into third-person mode first. Typing tfc 1 will pause the game, while still allowing you to move the camera around in the game.
- tm - toggle menus; removes the HUD for even nicer pictures. It will also hide the notification you normally get when the screenshot has been successfully captured, but it will take the shot. If you use tm soon enough after taking the screenshot, you can see the notification.
- sucsm 10, fast, sucsm 1, slow moving camera in tfc.
- fov 40, narrow, fov 90, wide angle lens. fov 75, default lens.
- tlb - toggle lightbrite mode makes everything well lit, great for dark spots.
- Note! The command will hide your weapons while in first-person mode unless you are under a stealth field, although you will still be able to use it.
- player.additem <base_id> <amount> - add item to your inventory, at full health.
- player.additemhealthpercent <base_id> <amount> <quality> - add item to your inventory, with a specified condition. Quality should be given in decimal form.
- Example: player.additemhealthpercent 432E 1 .50 will add 1 Gatling Laser at 50% to the player's inventory.
- player.removeitem <base_id> <amount> - remove item from your inventory; useful to get rid of useless quest items.
- player.srm - Show Repair Menu for the player. This allows items to be repaired using the player's Repair skill as though the player character were a merchant. Caps are required to repair items as for merchant repair, but they are paid to the player, resulting in no net transfer of caps. Using srm on NPCs that don't normally repair goods will typically cause the game to crash.
- player.showinventory or player.inv - Lists Inventory with object IDs. Suitable for use with player.removeitem
- player.equipitem <object_id> equip item from your inventory; useful for equipping items that don't appear in pip-boy inventory.
- player.setweaponhealthperc - Changes the currently held weapon's health.
- Example: player.setweaponhealthperc 80 Will change the current weapon's health to 80%.
- prid <ref_id> - set an id target. Same as left-clicking, but will work even if the target isn't visible. Required with most of the following commands. In order for the commands to work you must simply type out the ref_id without the <>.
- player.moveto <ref_id>, moveto player - move player to NPC / move NPC to player.
- additem <base_id>, removeitem <base_id> - add /remove item in NPCs inventory.
- equipitem <base_id>, unequipitem <base_id> - equip/unequip item in NPCs inventory.
- ShowInventory - display items in NPCs inventory (including those you cannot see in the trading window).
- sbm - show barter menu with the NPC (useful for inaccessible traders, but could lead to crash if used with non-traders).
- OpenTeammateContainer 1 - opens the selected NPC's inventory (as if they were a companion, or knocked down) and allows you to transfer items to or from your own.
- gbo - FOSE required - gives the base object id of the NPC, useful for setessential 1 command
- resethealth - restore NPC's health.
- kill - make NPC die.
- resurrect - resurrect NPC (will also "reroll" the inventory, meaning you could get different items).
- resurrect 1 - resurrect NPC as if he/she was unconscious (this can give you some silly animation).
- tcai - toggles all combat AI.
- tai - toggles all AI.
|Brotherhood Of Steel||0001d3fe|
|Republic of Dave||0002b895|
- setally <factionID1> <factionID2> (0/1 optional) (0/1 optional) - sets a faction as an ally with another specified faction. 0=Ally 1=Friend.
- setenemy <factionID1> <factionID2> (0/1 optional) (0/1 optional) - sets a faction as an enemy with another specified faction. 0=Enemy 1=Neutral.
- setessential <base_id> 0, setessential <base_id> 1 - make NPC mortal / immortal.
- disable, enable - delete NPC from the game / make NPC reappear.
- startcombat, stopcombat - start / stop combat with selected NPC ("stopcombat" will not make an NPC unhostile).
- setav aggression 0 - will make an NPC unhostile.
- addscriptpackage <base_id> - Add/remove an AI package to the selected NPC eg. "addscriptpackage 4083b" will make the NPC follow you.
- player.placeleveledactoratme <base_id> - create/clone an NPC and place it at the player.
- resetquest <quest_id> - reset a companions hire quest (if resetting your companion results in him or her giving generic responses to dialogue prompts). List of quest_ids.
- Multiple followers: By resurrecting and killing Dogmeat (prid 6a775) you will free a companion slot. Repeat process after hiring someone.
- Cloning a friend: You may clone companions, but they will lack the ability to trade with you. The base_id "7" will clone yourself.
- Note the difference: <base_id> marks the "character sheet" and <ref_id> marks an instance of the character with location.
Example (commands in order)Edit
- prid 3a77 - target Sydney
- moveto player - move Sydney to the player
- additem cb547 1 - add Vengeance
- additem 6b53e 1000 - add ammunition to Sydney
- equipitem cb547 - equip Vengeance
- unequipitem 20420 - unequip combat armor
- setessential 3a22 1 - make Sydney unkillable
- placeleveledactoratme 94ecc - place a new super mutant master at Sydney. Can be repeated for more.
NPC reset example (in order)Edit
- prid 3a77 - target Sydney
- disable followed by enable - disable and enable, make sure the NPC is active
- kill followed by resurrect - kill and resurrect, reset the NPC
- moveto player - move NPC to player (or player.moveto 3a77 to move the player to Sydney.)
Stats and character manipulationEdit
any skill (without space!)
- player.damageactorvalue <variable> <amount> - Damages the value specified. For example, "player.damageactorvalue health 20" will remove 20 hitpoints. Note that negative values will not heal you.
- player.setscale <scale> - set player scale; 1.0 is default; 0.95 is small, 1.1 is big, 10.0 is huge (not recommended to use indoors). The higher your scale is, the faster you run and the stronger you hit. Smaller scales do the opposite.
- player.getav <variable> - read out an actor value, for instance karma, intelligence or smallguns.
- player.setav <variable> <amount> - set an actor value to a specific amount, for instance health, intelligence or smallguns.
- player.modav <variable> <amount> - modify an actor value; the value will max out at its normal maximum value (100 for skills, 85 for resistances, 10 for S.P.E.C.I.A.L., etc.). A negative number lowers the variable.
- Note: modav adjusts the value up or down by the specified amount, and changes are relative to the current value. For example, if your carryweight is 500, player.modav carryweight 150 will result in a carryweight of 650 (500+150), while player.modav carryweight -150 will set your carryweight to 350 (500-150).
- player.forceav <variable> <amount> - set a value
- player.addperk <variable> - add a perk or trait
- player.removeperk <variable> - remove a perk/trait
- player.sexchange - changes the sex of the player
- shownamemenu - open a menu to change the name of the player
- showracemenu - open a menu to change the race and face of the player
- Changing race will cause the perks to be disabled, requiring you to remove and add them again.
- showtraitmenu - Open a menu to change traits
- showbarbermenu - open a menu to change the player's hairstyle
- showplasticsurgeonmenu - open a menu to change the appearance of the player's face
- player.advlevel - advance one level
- player.setlevel <level> - set level
- player.agerace <increment> - A total agerace of -1 results in being a child, 1 an adult, and 2 an elderly person. (ex: player.agerace -3 makes you a child no matter what agerace you currently are)
- player.rewardKarma <amount>, player.rewardxp <amount> - give player Karma or xp
- settagskills 3 - reselect "tag" skills.
- setgs <string> - Set specified game setting, such as maximum level or damage resistance. Be aware that game settings reset every time the game is restarted.
- iMaxCharacterLevel <#> Sets level cap to #
- fMaxArmorRating <#> Sets maximum armor rating to #
- fPlayerMaxResistance <#> Sets maximum damage, radiation, fire and poison resistance to #.
- getgs <string> - Show game settings value.
- player.addperk 00058fdf - add Power Armor Training
- player.forceav guns 100 - set Guns, energy weapons, melee weapons, (etc.) to 100, the maximum
- player.modav intelligence -5 - lower Intelligence by 5 (minimum 1)
- player.rewardKarma -1000 - Loses 1,000 Karma
- player.setav carryweight 5000 Sets player's max carry weight to 5000
- Be careful when using setscale to large numbers like 10. You may seem big and powerful, but a very small drop-off (in comparison to your size) will be fatal. Cliffs look very tiny from 50 feet up, but still kill you as if you were normal size. Additionally cells will still only load as if you were normal size, and moving through un-spawned cells can cause the game to crash. It is suggested to use the no-clip command 'tcl' so that the player won't fall.
- Refrain from using ForceAV instead of ModAV, especially if you want to revert the change later. ForceAV overrides the automatic calculation of actor values, and nothing will affect that actor value again aside from another ForceAV or a ModAV. For example, with a carryweight of 200, a ForceAV carryweight 5000 will cause the player to have a carrying capacity of 5000. Getting an extra point of strength will not change that capacity, even if you ForceAV the carryweight back to 200 before getting the additional point of strength. On the other hand, a ModAV carryweight 5000 will result in a carrying capacity of 5200, getting an additional point of strength will cause that to increase appropriately, and a subsequent ModAV carryweight -5000 will place the value back where it should be based on Strength.
- Changes to your stats in the beginning of the game can not be corrected when leaving, as any changes before leaving Vault 101 (Fallout 3) or Goodsprings (Fallout: New Vegas) will only allow you to leave with a set amount of SPECIAL points and tagskills chosen.
- Make sure that you leave a Casino the normal way, if you enter it the normal way. Using coc (CenterOnCell) while inside a Casino, after entering it normally, may cause you to get stuck at the entrance when re-entering the casino. To fix this, you'll need to find the "Door Greeter" AI script package, and give it to the NPC. For example, the Gomorrah greeter (Omerta Thug) will need to be selected in console, and the following command will need to be entered addscriptpackage 001287ff After exiting the console, the NPC should go through his standard greeting, and let you move again.
Items & world manipulationEdit
This is easiest if you first click on something in the world with the console open, to target it.
zap- Deletes the specified object ref. Useful for getting rid of objects that can't be added to your inventory.
setScale- Set the scale of an item in game. Usually requires a save/reload for the new scaling to take place.
getScale- Prints out the scale of the item in the console.
unlock- unlock doors, safes, terminals or any other locked container; you can of course also lock. Adding a number after lock sets the difficulty to that of the lockpick skill. For example lock 50 would create an Average lock, lock 0 a very easy, and lock 255 would create a lock that requires a key and so on. Unlock will not work on doors that have a "locked from the other side" notification.
activate - activate an item, say a door, that is normally operated by a switch
markfordelete - similar to disable, will delete any item from the game, removing it permanently. It may disappear immediately, or it may require you to exit and re-enter the area.
setopenstate - similar to activate, but will open and close it without the player having to use it 0 = close 2 = open.
setownership - make the item yours. (for instance a cabinet or a bed, but if you try to make a safe or cash register and things like that yours, you will still lose Karma and there's almost no point.)
player.placeatme <base_id> <stack amount> <quality> - place an item next to the player; for many items only a stack amount of 1 is valid
showrecipemenu <category> (Fallout: New Vegas) - Shows the shared crafting menu used for the workbench, reloading bench, campfire, and Sierra Madre vending machine. The category variable determines which set of crafting recipes are shown, and must be entered as a form ID. The valid IDs are 0013b2c1 (workbench), 0013e11a (reloading bench), 0013b2c0 (campfire), and 0103a0 (vending machine).
set timescale to <scale> - sets the timescale, the ratio determining how fast game time moves relative to real time; the default setting is 30. For example, setting the timescale to 1 would cause one second to pass in game time for every second in real time.
- Warning: Altering the timescale will cause the game to crash if NPCs spawned using placeleveledactoratme or movetoplayer enter into combat.
set gamehour to <time> - sets the gamehour to the entered value. Change applies only when player unpauses the game. Before making any changes to the gamehour using GetCurrentTime might be useful.
It is also possible to change the current weather.
- fw <ID> - forces weather. Replace <ID> with a Form ID from one of these:
|Editor ID||Form ID|
- movetoqt - move player to current quest target
- showquestlog - show the quest log, everything the player has encountered and done
- getqc <base id> - checks if the current quest is complete. if true = 1 false = 0
- resetquest <base id> - reset quest
- sqs <base id> - list all quest objective levels (stages). Use with setstage.
- getstage <base id> - gets the objective level of a quest.
- setstage <base id> <Quest Objective> - sets a quest to an objective level. Useful for resetting bugged scripts
- CompleteAllObjectives <base id> - sets all currently obtained objectives for the quest to a completed status. Useful for bypassing a bugged or broken objective
- sqt - list current quest targets
- sqv <base id> - list quest variables
- set <"base id".variable> to <value> - change quest variable to value NOTE: Requires quotes around the base id of the quest
- Example: In New Vegas, set "000E61A5".MetRangerAndy to 1 will fix Raul's quest if you've already spoken to Ranger Andy before you recruit him.
- saq - start all quests
- SetQuestObject - setquestobject <baseid> <1> will set the NPC or item to quest object or not (1 is, 0 not)
- save <save name> - save current game with description
- save <save name> 1 - save current game with description and output a .txt file with game information.
- load <save name> - load a game from a previous named save
- savegame <"new save name"> - name your save whatever you like. For example, "Primm Sheriff"
- exit - exits the current game, displays some credits, then goes to the starting menu.
- quitgame or qqq - exits Fallout 3 without going through any menus.
Reputations (Fallout: New Vegas Only)Edit
Player Faction and ReputationEdit
|Brotherhood of Steel||0011e662|
|Followers (of the Apocalypse)||00124ad1|
|White Glove Society||00116f16|
- addreputation <base_id> <variable> <amount> - adds player reputation with a faction, the value will max out at its normal maximum value of 100. The variable will determine if the amount is added to the faction's fame or infamy, 0=infamy, 1=fame.
- removereputation <base_id> <variable> <amount> - removes player reputation with a faction, the value will max out at its normal minimum value of 0. The variable will determine if the amount is added to the faction's fame or infamy, 0=infamy, 1=fame.
- setreputation <base_id> <variable> <amount> - sets player reputation with a faction, the value will max out at its normal minimum and maximum values of 0 and 100. The variable will determine if the amount is added to the faction's fame or infamy, 0=infamy, 1=fame.
- addreputation 000ffae8 1 50 - adds 50 fame to the Boomers faction.
- removereputation 000ffae8 1 50 - removes 50 fame from the Boomers faction.
- setreputation 000ffae8 1 50 - sets fame for the Boomers faction to 50.
- Note: If a player wishes to obtain a idolized reputation with any faction, they must both increase fame value to above 80 and reduce infamy value to below 13.
|Black Mountain (Mutant)||000e9480|
|Black Mountain (Nightkin)||000e9481|
|Brotherhood of Steel||00154307|
|Followers (of the Apocalypse)||00117e12|
|NCR CF Powder Gangers (e.g. Eddie, Scrambler)||0008d395|
|Tops Casino (Chairmen)||00117508|
|White Glove Society||00116f10|
|Feral Ghoul Faction||0001c6d3|
|Fire Gecko Faction||0014f3f5|
- removefromallfactions - removes player from all factions, including the "Player" faction. (This may be problematic; if so, entering
player.AddToFaction 0001b2a4 1will fix the problem.)
- setally <base_id_1> <base_id_2> <variable_1> <variable_2> - sets factions' allied status with each other. The variable will determine the status of each faction to the other, 0=friend, 1=ally.
- setenemy <base_id_1> <base_id_2> <variable_1> <variable_2> - sets factions' enemy status with each other. The variable will determine the status of each faction to the other, 0=enemy, 1=neutral.
- setally 000fed3f 00154307 1 0 - will set Boomers' allied status for BoS to allies, and BoS allied status for Boomers to friends.
Debugging and mappingEdit
- tmm 1 - Fully activates all Pip-Boy map markers, making them both visible on the map and available as fast travel destinations. Note, however, that it does not update the "locations discovered" statistic in the Pip-Boy 3000.
- tfow - Toggles fog-of-war in the Pip-Boy local map.
- tgm - Toggles "god mode" which gives the player invincibility to damage, radiation and oxygen underwater. It also gives unlimited ammo, carrying capacity and AP (reloading does use AP with some weapons) and stops item degradation.
- tdm -Fallout New Vegas Only- Toggles "demi-god" mode which gives invincibility to damage but not unlimited ammo, almost like god mode
- tcl - Toggles clipping, which enables the player to move in any direction, including through solid objects and/or empty space. (A.K.A. "noclip"). It allows you to "fly" over an area and view it or get unstuck from a location.
- killall - Kills all NPCs and creatures in the area.
- coc <cell edid> - Teleports the player to the specified cell.
- scof <filename> - Writes console output to the specified file.
- bat <filename> - Executes specified list of commands as defined by a text file (.txt)
- cls - Clear console texts. Similar to Command Prompt's command.
To create a batch file all you need to do is place a plain text file with the commands you wish to execute in the root directory of the game - the same folder that contains falloutlauncher.exe.
- This example file allows you to experience the game as if you were a very powerful superhero (or supervillain). By executing this list you will (in this order) Save the game, Toggle God Mode, Toggle Clipping Mode, Increase Running Speed (though not to an insane amount), Increase Speech skill to max, Show all map markers, Toggle fog-of-war, Add fun weapons and ammo (Alien Blaster, Fat Man, Experimental MIRV, Lincoln's Repeater and Frag Grenades). To execute these commands, you would type bat futureplayer
savegame pre_futureplayer tgm tcl setgs fmoverunmult 10 player.setav speech 100 tmm 1 tfow player.additem 00004322 5 player.additem 0000432c 5 player.additem 0003422B 5 player.additem 0003C07A 5 player.additem 00029364 100 player.additem 00004330 100 player.additem 00020799 100 player.additem 0002937E 100
- This prevents traders Doc Hoff, Crow, Lucky Harith and Crazy Wolfgang from dying, and if they are already dead, this will resurrect them - the caravan guards and Brahmin will still be vulnerable. Using forceav repair 100 allows the traders to fully repair armor and weapons. To execute the command, you would type Bat Traders
PRID 63C05 Resurrect forceav repair 100 PRID 63C06 Resurrect forceav repair 100 PRID 63C07 Resurrect forceav repair 100 PRID 63C08 Resurrect forceav repair 100 setessential 63BF7 1 setessential 63BF8 1 setessential 63BF9 1 setessential 63BFA 1
Some users can't see the left-most columns of text in the console; they can only see the end of statements, and can't see what they're typing, unless it's very long. This is known to impact some users without widescreens. Fortunately, this can be easily fixed by increasing the iConsoleTextXPos figure in the Fallout.ini file to about 200, using a text editor like Notepad. More details can be found on the Discussion page.
- You can use a command like help to see if the console works. Even though you can't see the editing line or the cursor, it will flood the console with text.
- Alternatively you can repeatedly press TAB before entering a command, this way the text gets pushed to the right and will be readable without affecting the entered text.
- If you press the caps lock key while in console, it could leave you only able to type in caps lock even after turning caps lock off. (Confirmed in Windows 7 and various older models of Windows Vista)
This can be fixed by turning off caps lock and then tapping the shift key.
It's common for Vista users and some XP users to be unable to access the Console. A Common reason on Windows 7 & Vista is to disable any infared devices in the "human interface device" portion of the device manager. Please see the Troubleshooting section of the Discussion Page for additional advice.
You will also have trouble accessing the console via keyboard if using a XBOX 360 controller with your PC version. You will have to turn off the controller to activate the tilde (~) key.
On a Bristish keyboard, the console is activated using the (¬) key (beneath Esc).
- The unabridged list of all commands, courtesy of the help command
- The commands to use with SetGS