Official Doc: Console Commands | 官方文档:控制台指令
Console commands are split into two categories: actual commands and tweakable variables.
Tweakable variables differ from console command in that they are more specialized and usualy modify a single variable in the game. They are often used to toggle on or off some behavior.
Console command are more general purpose and can affect a wider variety of stuff, such as reloading some file, toggling off some gfx effects, starting a civil war, ...
Table of Content
All Console Commands
3dstats
Toggles 3D Stats
Agency.Instant
Activates Operation.Instant, IntelNetwork.Instant, Agency.InstantSlotUnlock and Agency.Autocomplete
Audio.PlayEffect
- Arguments: effect_name
Play the specified sound effect
IP
Shows your IP
PostEffectVolumes.Default
- Arguments: posteffect_values name
- Not available in release build
Toggles default posteffect values
PrintSynchStuff
Prints random count and seed
SetRandomCount
Sets the randomcount to 0 or arg
acclimatization
- Aliases: acc
- Arguments: <climate_name>, <value 0-100>
Sets the acclimatization on a division(s).
add_autonomy
add_core
- Arguments: <Province ID>
Add core
add_critical_hit
- Arguments: <critical_hit_name>
add critical hit to selected ships
add_diplo
Adds diplomatic entroute
add_equipment
- Aliases: ae
- Arguments: equipment amount, equipment name
Gives player amount of equipment that has the specified name
add_exile_manpower
- Arguments: <TAG>, <value>
Adds legitimacy to specified tag. add_legitimacy TAG amount
add_fleet_arrow
- Arguments: color
- Not available in release build
Add an arrow around a strategic region
add_ideas
- Arguments: all|<idea1> <idea2> ...>
Adds ideas (ministers or national spirits) with <ID> to the country. Use 'all' to add them all
add_intel
Set the values of a static intel pool against a specific country. E.g. add_intel GER POL army=10
add_interest
- Arguments: <Country tag>
Add specified country tag to your interest
add_latest_equipment
- Aliases: ale
- Arguments: equipment amount
Gives player amount of latest equipment variants
add_legitimacy
- Arguments: <TAG>, <value>
Adds legitimacy to specified tag. add_legitimacy TAG amount
add_mines
- Aliases: mines
- Arguments: <Amount of naval mines>
Add naval mines to selected region(s)
add_opinion
- Arguments: <Country tag>
Add opinion to/from tag
add_party_popularity
- Arguments: <party>, <amount>
Adds party popularity for specified party to the current country
add_rain
- Arguments: <rain_amount>
Adds rain to the selected province
add_snow
- Arguments: <snow_amount>
Adds snow to the selected province
add_stability
- Aliases: st
- Arguments: unity amount
Gives/removes stability from player
add_temp_supply_node
- Not available in release build
Add temp supply node
add_temporary_buff
- Arguments: <buff_index>
adds temporary buff to selected units
add_war_support
- Aliases: ws
- Arguments: unity amount
Gives/removes war support from player
ai
Toggles the AI on or off
ai_accept
- Aliases: yesman
Toggles AI always accept diplomacy
ai_dump
- Aliases: aidump
- Not available in release build
Dump AI data to log file
ai_force_equipment
Force the AI to only spend army XP on equipment design
ai_force_template
Force the AI to only spend army XP on template design
ai_front_dump
- Aliases: aifrontdump
- Not available in release build
Dump AI front data to log file, needs to have a unit selected
ai_front_id
Get the address of selected group's front debug id
ai_idea_desire_log
Prints AI desire for ideas to log. For Current country only.
ai_invasion
Toggles AI AI naval invasions
ai_pp_log
Prints AI use of PP to log
ai_research_log
- Not available in release build
Toggles ai research logging
ai_trace
- Not available in release build
Toggles the AI Trace window
aircombat
- Aliases: airc
- Arguments: <scenario name>, <result name>, <province id>, <state id with airbase>, <state id with airbase>, <equipment type>, <equipment type>, [equipment creator country], [equipment creator country]
- Not available in release build
Spawns an air combat in desired location.
airealism
Enable realistic AI
aiview
Enable AI debug info
allowdiplo
- Aliases: adiplo, nocb
Allows to use all diplomatic actions for no matter the rules.
allowideas
Allows to learn all ideas.
allowoperations
Allows to execute all operations.
allowtraits
Allows to learn all traits.
analyzetheatres
- Aliases: anth
Analyze theatres for errors.
annex
- Arguments: <Target Country Tag>
Begin annex/annexes the specified tag
bloom
- Not available in release build
Toggles bloom
browser
- Arguments: url
- Not available in release build
Show browser window
build_war_blobs
Prints a list of all your wars
building_health
- Aliases: bhealth
- Arguments: <building type>, <state or prov id>, <building level>, <health to add>
Changes specified building health
bypass_invasion_superiority_check
- Aliases: bisc
Ignore superiority in the strategic areas crossed by a naval invasion order
cameraclamp
Toggles the camera clamping
cityreload
Reloads the cities
civilwar
- Arguments: <ideology>, [target country tag]
Spawns a civil war
clear_critical_hits
clear all critical hits
clear_intel_pools
Reset the specified intel pool
collision
- Aliases: debug_collision
Toggles debug display of normals/bounding boxes/collision
combat_analyzer
- Arguments: <TAG1>, <TAG2>, <OOB1>, <OOB2>, <num runs> OPTIONAL, <num days> OPTIONAL
Runs a combat between the 2 OOBs owned by the two TAGs either until done or for the specified number of days. Using <num runs> the combat will be run multiple times and the averages are printed
combatsound
How often does the combat view give a random sound? 0-50
combattest
- Not available in release build
combat simulation process
compare_to_last_checksum
Compare current checksum with the most recent dump
compliance
- Arguments: amount
increases decreases compliance in a state
cp
- Arguments: CP amount
Gives command power to player
createarmygroup
Create field marshal group from selected groups
createlean
- Not available in release build
Create LEAN textures
ct
Puts timer info in clipboard
damage_units
- Arguments: <org>, <str>, <num>
Damage or heal selected units or units under pointer if there is none selected. Enter 1 argument to apply damage for both types, two for individual both types
dbg_enable_scripted_gui
- Arguments: <scope>
- Not available in release build
Enables scripted GUIs
dbg_prov
- Arguments: <int>
- Not available in release build
Sets type of debugging information on provinces.
dbg_task_force_role_insignia_assignment
- Aliases: tfria
print the role that would be deduced for the selected task force
dbg_tf_fulfillment
Show the managed fulfillment of a taskforce (exepected number of ships after all ships have been merged in)
debug
Toggle debug mode on/off.
debug_achievements
- Not available in release build
Enables popups for achievements to debug them
debug_achievements_clear
- Not available in release build
Clear all achievements and user stats
debug_air_vs_land
- Aliases: dbg_cas
- Not available in release build
Toggle debug mode for air vs land combat.
debug_army_entity
- Aliases: dae
Shows debug entity for all armies
debug_assert
- Not available in release build
Toggles asserts on/off
debug_bloom
Toggles Bloom on/off
debug_borders
Toggles Borders on/off
debug_cities
Toggles Cities painting mode on/off
debug_commands
- Not available in release build
Printing commandcount to message.log
debug_crash
- Aliases: crash
- Not available in release build
Crash!
debug_diploactions
- Not available in release build
Start Counting diplomatic actions
debug_dumpdiploactions
- Not available in release build
Dump diplomatic action data to game log
debug_dumpevents
Dump Event data to game log
debug_entities
- Not available in release build
Toggles Debug entities
debug_events
Start Counting events
debug_force_capitulate
- Aliases: dfc
- Arguments: <tag>
forces capitulation of a country on next daily tick
debug_front_sections
- Aliases: dbg_fs
- Arguments: <Theatre index>, <Front index>, <Section index>
Visual debug of theatres, fronts and sections.
debug_fronts
- Not available in release build
Toggles interpolated fronts debug
debug_info
- Not available in release build
Toggles Debug info
debug_lines
- Not available in release build
Toggles Debuglines
debug_lockcamera
Toggles Camera locked on/off
debug_nogui
Toggles GUI on/off
debug_nomouse
Toggles mouse scrollwheel on/off
debug_norender
Toggle rendering of map
debug_nuking
Allows to nuke every province without checking any conditions.
debug_off_front_snap
- Aliases: dbg_fsnap
- Not available in release build
Toggles offensive fronts snapping debug
debug_orders_tree
- Aliases: dot
- Not available in release build
Print out debug about orders chain.
debug_particle
- Not available in release build
Toggles Particles Debug info
debug_postfx
Toggles PostFX on/off
debug_rivers
Toggles Rivers on/off
debug_show_event_ID
Shows event ID
debug_sky
Toggles Sky on/off
debug_smooth
Toggle framesmoothing
debug_tactics
Toggle visibility of debug tooltip for tactics
debug_terrain
Toggles Terrain on/off
debug_texture
- Not available in release build
draws textures like bloom
debug_textures
- Not available in release build
Writes Texture info to application debug log
debug_tooltip
Toggles Tooltips on/off
debug_trees
Toggles Trees on/off
debug_types
- Not available in release build
Will print the data type for all dynamic reference objects. Can only be used if using RTTI.
debug_unit_controller_weights
- Aliases: dbg_ucw
- Arguments: <weight token>
Visual debug of unit controller weights. Enable track_unit_controller_weights first!
debug_unit_entity
- Aliases: dbg_ue
Print out the entity hierarchy.
debug_validate_supply
- Aliases: dbg_sply
- Not available in release build
Toggle debug validate supply cache.
debug_water
Toggles Water on/off
debug_wireframe
- Not available in release build
Toggles forced wireframe on/off
debug_zoom
Zooms in the game
deironman
- Not available in release build
Removes Ironman status from current game.
deleteallunits
- Aliases: delall
Delete all armies and fleets of the specified countries.
deleteallunitsbut
- Aliases: delallbut
Delete all armies and fleets of ALL countries, except specified one.
deltat
- Arguments: <speed factor>
control animation speeds
drop_cosmetic_tag
- Arguments: <country tag>
Drops 'cosmetic tag' for a specified country
dump_cached_random_logs
dumps cached random logs
dump_checksum
Compute and store the checksum in a file
dump_equipment_loc
- Arguments: desc: Dump equipment descriptions instead of the names, <country_tag>: Multiple allowed. Only include loc strings for the given countries. Generic loc strings are included if no tags are given, or with argument 'generic'., <type>: Multiple allowed. Only include equipment that are all of the given types, e.g. 'armor anti_tank' will only include tank destroyers., path=<filepath>: File path to write the dump to. Default is 'logs/equipment_loc.csv'.
Dumps equipment loc strings to file. All arguments are optional.
dump_garrison_templates
Dump garrison templates to game log
dump_synchronized_members
Dump the synchronized game state (the one that has checksum ID 2)
effect
- Aliases: e
- Arguments: <tag> scripted_effect_name
Runs a scripted effect on selected scope
empty_fuel_tanks
- Arguments: Fuel amount
Clear fuel tanks of all armies
emulate_ai_operative_assignment
Log ai operative assignment if it were to run this tick. Takes as first argument the tag of the country to test, default to the player's.
error
Show errors in log
eval_effect
Runs the inlined effect on a selected scope
eval_trigger
Runs the inlined trigger on a selected scope
event
- Arguments: event id, <Target Country Tag>
Executes an event
flagsoutput
- Arguments: <path>
Creates texture atlas files from memory.
focus_count
- Arguments: <Target Country Tag>
Counts how many focuses a tag has. For science
force_operative_detection
- Aliases: snitch
Print intel network related information
fow
- Aliases: debug_fow
- Arguments: <Province ID> OPTIONAL
Turns off fog of war in a province or in general
fronts
Toggle visibility of the foreign fronts
fuel
- Aliases: army_juice
- Arguments: Fuel amount
Adds/removes fuel to the player
fuel_gain
- Arguments: Daily Fuel amount
Adds/removes daily fuel gain for player
fullscreen
Toggles fullscreen
gain_xp
- Arguments: <trait>
Gain xp for selected leader or for a leader trait
gamespeed
- Arguments: speed <0-5>
Set the current game speed, pausing the game at speed 0.
gamestate_timer
- Aliases: gstimer
- Arguments: on / off
Enable / Disable recording of how long an hour / day / week etc takes to process.
gbpaint
- Arguments: layer, channel
- Not available in release build
Toggles gradient border painting
gbreload
- Not available in release build
Reloads gradient borders
get_capital
- Arguments: <Country tag>
Get the capital of a country
get_country_flag
- Arguments: <flag name>
Gets country flag on specified TAG. Defaults to current country
get_flag
- Arguments: <flag name>
Get a flag
get_var
- Arguments: <var name>
Gets a variable
goto_province
- Arguments: province id
Centers to province
goto_region
- Arguments: region id
Centers to region
goto_state
- Arguments: state id
Centers to state
grow_intel_network
Grow the intel network in the specified tag
guibounds
- Aliases: gui
Toggles GUI bounds debug
hdr
- Not available in release build
Toggles hdr
hdr_debug
- Not available in release build
Toggles hdr debugging
help
- Arguments: command name
Print out all console commands or a specific command description.
helphelp
Double Rainbow help.
helplog
Print out all console commands to game.log file.
highlight_encirclements
Toggle highlighting of detected encirclements
history_logger
Toggle history logger
hsv
- Not available in release build
Converts RGB to HSV
human_ai
Toggles AI for Human countries
imgui
Controls ImGui UIs. See the sub commands.
instant_prepare
Instantly prepares naval invasions
instant_wargoal
Generation of wargoals are instant
instantconstruction
- Aliases: ic
Toggles instant construction cheat.
instantevents
Ignores event mth s
instantshiprefit
- Aliases: isr
Toggles instant ship refitting cheat.
instanttraining
- Aliases: it
Toggles instant army training cheat.
ironman
- Not available in release build
Applies Ironman status to current game.
list_flags
- Arguments: <scope>
Lists all flags in a scope or for the selected country/state/unitleader
list_ideas
Dump all ideas to console (ministers or national spirits)
list_modifiers
- Arguments: <scope>
Lists all modifiers in a scope or for the selected country/state/unitleader
list_temporary_buffs
lists all temporary buffs on selected units
list_vars
- Arguments: <scope>
Lists all variables in a scope or for the selected country/state/unitleader
loc_check
Check for missing localization
loc_check_characters
Check characters for missing localization
loc_check_decisions
Check decisions for missing localization
loc_check_events
Check events for missing localization
loc_check_focuses
Check national focuses for missing localization
loc_check_modifiers
Check modifiers for missing localization
loc_check_national_spirits
Check national spirits for missing localization
lock_air_det
- Arguments: <CountryTag>, <Detection> (0.0-1.0) OPTIONAL
Locks Air Detection for a country, omit detection value to reset
lock_air_eff
- Arguments: <CountryTag>, <Efficiency> (0.0-1.0) OPTIONAL
Locks Air Efficiency for a country, omit efficiency value to reset
manpower
- Arguments: <Amount>
Adds manpower to player