Imperator: Rome

Imperator: Rome

31 ratings
IR1.5版控制台命令:从入门到精通
By Chaobs
英白拉多:罗马最新版控制台指令。包括一个玩家常用的命令表和开发者调试用的表。罗马公民幸福度+20%。
   
Award
Favorite
Favorited
Unfavorite
参考来源
本指南主要翻译自 https://commands.gg/imperator与https://imperator.paradoxwikis.com/Console_commands。并参考了部分https://ir.parawikis.com/wiki/控制台命令 页面
整理到Steam指南上,方便各位Imperator在游戏中参考(推荐收藏本指南,游戏时按Shift+Tab弹出)
怎么开启控制台
此指南适用于Steam最新1.5版本(PC/Mac)。
1.1版本后,控制台默认关闭,需要用以下方法开启:

1)按下 Crtl+Shift+P 并且输入:“debug_mode”

2)把"-debug_mode"加入启动选项中:
  • 对于steam:右键游戏,选择“属性”,设置启动选项,加入“-debug_mode”参数。
  • 对于Windows系统:创建一个游戏的快捷方式,右键之并选择“属性”,在“目标”一栏中的最后面加入“debug_mode”

Debug模式会禁用成就,控制台指令在铁人模式或多人模式下无法使用。
按下`(数字键1左边)以打开控制台。
也可以使用以下方式打开控制台:Shift+2, ALT+2+1, Shift+3, §, ~, ^, °, 2
输入一条指令后按回车确认。
通过 在使用过的指令中快速浏览。
按下Tab键可以快速补全指令。

以下列表包含了常用指令,即和游戏性息息相关的指令。若想要获得全部指令,在游戏控制台中输入"help"
常用指令
ae [<数额>]
修改你的侵略性扩张。ae 10 会降低10 点ae。
annex [<国家tag>]
吞并指定国家,使它归于你。
army[<大队数>][<省份>]
在选择的省份添加指定数量的单位。
army_loyalty [<prov> <数额>]
设置军队忠诚度到指定的数额。
cash [<数额>]
添加指定数量的黄金。默认为5000。
centralization [<数额>]
设置集权度到指定的数额。(40的意思是40%)
character.age [<id>] [<age>]
设定指定人物的年龄,可以用同样的类似的指令设定忠诚(loyalty)、名望(prominence)、人气(popularity)和腐败(corruption)
character.martial [<id>] [<value change>]
设定指定人物的军略,可以用同样的类似的指令设定热诚(zeal)、魅力(charisma)和智略(finesse),亦可被设定为负数,如10,4,9等等
civil_war [<国家tag>]
在指定的国家开始一场内战。
coat_of_arms [<countrytag>]
输出指定国家盾徽的脚本到logs\games.log,这是看到游戏所生成旗帜的脚步的唯一方法。不指定国家Tag则默认输出你的国家。
conquer [<省份id>]
征服指定的省份。
control [<省份id> [<国家tag>]
由指定的国家控制指定的省份。如没有国家Tag则默认由你的国家控制。
debug_mode
显示tag和ID,等同于CK2中的charinfo
debug.achievements.resetall
重置所有成就(开发者指令)。
declare_war [<国家tag>] [<国家tag>]
在两个国家之间开始战争。
destroy_mercenaries
捣毁全地图的雇佣兵,但是他们仍会重生。
eagerness [<国家tag>]
检查指定国家的AI战争渴望度。
event [事件id][目标]
指定的人物/省份/国家 触发指定事件。
exile
放逐选定的单位。
explorer
打开 object explorer 除错工具。
forcepeace [<国家tag>]
强迫AI对指定的国家提出和平提议。
fow
开启/关闭战争迷雾
gui_editor
打开 GUI 编辑器。
horde [<省份>]
在指定的省份产生一个100k单位的野蛮人部落。
instantbuild
瞬间完成建造
instantmove
瞬间移动
instantpopassimilation
瞬间完成文化同化
instantpopclass
瞬间完成人口阶级转换
instantpopreligiousconversion
瞬间完成宗教皈依[/th]
instantsiege
瞬间围城
instantwar
开启/关闭瞬间宣战。
kill [<id>]
杀死目标。
legitimacy [<数额>]
修改当前统治者正统性。
corrupt [<amount>]
修改当前的腐败度。默认100腐败
make_child [母亲] [父亲]
为指定的双亲造出孩子。
manpower [<数额>]
添加指定数量的人力。注意,此数值会被X1000,例如20代表20000人力。
marry [人物][人物]
在两个人物之间安排婚礼。
military_experience [<amount>]
修改军事经验
music.next
改变当前音乐。
navy[<船数>][<省份>]
在省份产生指定数量的船只。
observe(ob)
切换到观察模式。
portrait_editor
打开/关闭肖像编辑器。
political_influence [<amount>]
修改政治影响力
prestige [<数额>]
修改你的威望。
revolt [<国家tag>]
在指定的国家开始一场叛乱。
settings
打开Debug设定
setup_editor
打开省份设置编辑器,你能在其中编辑文化、宗教等等。此指令将在文档中创建新的setup文件,覆盖原有的设定。
stab [<数额>]
修改你的稳定度。默认为100
tag [<国家tag>]
切换 tag 到另一个国家。所有国家都有一个数字Tag和一个字母数字Tag。不一定有用。
tech [<数额>]
给予科技等级。数额是可选的,不指定数额就给予 1 科技等级。不会解锁发明,且可能使它不无法被使用。不建议使用此指令。负面的价值反而会降低科技。
ti
未发现领域开启/关闭。
tyranny [<数额>]
修改你的暴政度。Tyranny 10 会降低10点暴政。
tick_day [number of days]
调前指定的天数。
tweak fow
打开 tweaker GUI 以启用或停用战争迷雾。
warexhaustion [<数额>]
修改你的厌战度。warexhaustion 10 会降低 10 点厌战。
yesmen
AI 接受全部外交提议。
完整命令列表1(未翻译)
此列表涉及到过多调试、图像画面的内容对玩家帮助不大,Mod制作者应该都看得懂,偷个懒不翻译了
命令
语法
说明
3dstats
3dstats
This console command toggles (enables and disables) the 3D Stats GUI. The 3D Stats GUI displays information such as your FPS, render time, buffer data, and other render-related stats. This can be useful to fix lag and graphics issues with your game.
ae
ae [amount]
This cheat will increase your nation's Aggressive Expansion by the specified amount. Specify a negative number to reduce AE.
ai
ai [country tag]
This command toggles (enables and disables) AI for the country with the specified country tag.
aistats
aistats
This command logs AI statistics to the ai.log file (useful for debugging).
aiview
aiview
This command enables and disables (toggles) AI view.
amnesia
amnesia [country tag]
This command clears the action plan for the AI of the country with the specified country tag.
annex
annex [country tag]
This command will annex the country with the specified country tag for your nation. Find country tags with the debug_mode command.
army
army [amount] [province id]
This cheat spawns the specified amount of army cohorts in the province with the specified province ID.
army_loyalty
army_loyalty [province id] [loyalty amount]
This cheat sets the loyalty of the troops in the specified province to the specified amount. Note that this command doesn't add the specified amount of loyalty to the troops in the province - it sets their loyalty to this value.
cash
cash [amount]
This console command adds the specified amount of cash to your nation. Specifying a negative amount removes cash.
centralization
centralization [percentage]
This command sets your nation's centralization to the specified percentage (40 = 40%).
civil_war
civil_war [country tag]
This command starts a civil war in the country with the specified country tag.
clear
clear
This command clears all of the messages from the console (making it clear, as if you hadn't used it).
clear_aistats
clear_aistats
This console command clears all of the AI statistics.
coat_of_arms
coat_of_arms [country tag]
This command prints the coat of arms definition of the country with the specified country tag to the game.log file. If you do not specify a country tag, your own country's coat of arms will be printed.
compoundnodeeditor
compoundnodeeditor
This console command opens up the Compound Node Editor/Node Graph tool. Use the X button at the top right of the window to close (typing this command again just opens up another window under it).
conquer
conquer [province id]
This command will make your nation instantly conquer the province with the specified province ID.
control
control [province id / country tag]
This command will make your nation occupy the province with the specified province ID, or if you specify a country tag, the country with that country tag.
crash
crash
This console command, as you might've guessed, makes your client crash.
debug_mode
debug_mode
This command enables and disables (toggles) debug mode. In debug mode, when you hover over nations, provinces, characters, etc useful information such as province IDs, country tags, and more will be shown in the tooltip. This is useful for finding country tags and province IDs for use in commands - it is similar to the charinfo command from other Paradox games.
declare_war
declare_war [country tag] [country tag]
This cheat may crash your game - save before using. This cheat makes the two specified countries declare war upon eachother.
delay_diplo
delay_diplo
This cheat enables and disables (toggles) the delay that AI takes to respond to diplomatic requests/diplomacy.
destroy_mercenaries
destroy_mercenaries
This command destroys all mercenaries.
dumpdatatypes
dumpdatatypes
This command dumps all data types to the data_types.log file which can be found in your Documents/Paradox Interactive/logs folder.
eagerness
eagerness [country tag]
This command calculates, and prints to the console, a score between 0-1 which represents how eager a nation is to declare war, 1 being very eager and 0 not being eager.
enable_dev_cheats
enable_dev_cheats
This command (untested) should enable 'dev cheats'.
error
error
This console command prints to the console any errors that are in the error log (if you haven't encountered any errors it will be empty).
event
event [event id] [country tag / province id / character id]
This command will start the event with the specified ID in the specified province, country, or with the specified character as the subject.
event_queue
event_queue
This console command will print to the game.log file data regarding the game's event queue.
execute
execute [country tag]
This cheat executes (kills) all units belonging to the country with the specified country tag.
exile
exile
This cheat will make any unit(s) that you currently have selected start to exile. To select a unit, click on it so that its information box pops up. When a unit exiles, it will head to safer land, not engage in any combat, and not siege any territory. If the unit you have selected is already exiling, this will toggle off the exile state and make it stop exiling (i.e. this command acts as a toggle command).
explorer
explorer
This console command opens up the object explorer window. Use the x button at the top of the window to close it.
forcepeace
forcepeace [country tag]
This cheat will make the country with the specified country tag make AI peace offers to all countries that they are currently at war with.
tweak fow
tweak fow
This command has been reported as non-functional, so it may not work. It should toggle (enable and disable) Fog of War.
gamelog
gamelog
This command prints to the console the game's log (if it isn't empty).
halt
halt
This command will halt the unit(s) that you currently have selected. Halting units makes them enter exile mode and return to safer land. Note that this isn't a toggle command, when a unit is halting, typing this command again won't cancel the halt. To select a unit, click on it (so that its information box pops up).
healthy_economy
healthy_economy
This command prints to the console the percentage of countries that have healthy economies (e.g. if 1 out of 100 countries had an unhealthy economy, this command would print 99%).
完整命令列表2
help
help [command]
This console command has two main functions. If typed without any arguments (i.e. just 'help'), it will print to the console a list of all commands in the game. If you add a command name (e.g. 'help cash'), detailed help information for that command will be printed to the console.
helphelp
helphelp
A simple command - this command will return the message 'No help for you!'
helplog
helplog
This command has been reported as non-functional, so it may not work. It should print to the game.log file a list of all commands in the game, with their descriptions.
horde
horde [province id]
This cheat spawns a horde of 100,000 barbarians in the province with the specified province ID.
instant_war
instant_war
This command toggles (enables and disables) the delay that usually is present between declarations of war - i.e. after using this command, wars will start instantly after declaration (typing it again returns behaviour to usual).
kick
kick [player name]
This command kicks the player with the specified name from the server.
kill
kill [character id]
This cheat kills the character with the specified character ID.
legitimacy
legitimacy [amount]
This command increases the legitimacy of your nation's current ruler by the amount specified. Specify a negative number to decrease legitimacy. If you don't specify an amount, 10 legitimacy will be added (i.e. using the command 'legitimacy' on its own).
load
load [file name]
This console command will load the save with the specified file name. Make sure you save your current game before using this command.
loading_screen
loading_screen
This command, if enabled, will make it so that loading screens are indefinite (until you turn this command off). This command won't make a loading screen appear, but when one does, it won't end until you disable it (by typing this command again).
make_child
make_child [character id] [character id]
Note that this command has been reported as buggy and may make your game crash (save before using). This command will make the two specified characters have a child. The first character ID is the mother's character ID, the second character ID is the father's character ID.
manpower
manpower [amount]
This cheat adds the specified amount of manpower to your nation. Specifying a negative number will remove manpower.
map_editor
map_editor
Note that this command may crash your game - it should open the Map Editor tool.
mapmode
mapmode [map mode id]
This command will switch your game's map mode (how the map is displayed) to the specified map mode.
marry
marry [character id] [character id]
Note that this command has been reported as buggy and may make your game crash (save your game before using it). This command will make the characters with the specified character IDs marry eachother.
minidump
minidump [file name]
This command saves a minidump to the specified file.
months
months [country tag] [country tag]
This command will calculate how long (in months) it will take for the AI of the specified country to have enough resources to declare war on the second specified country. For example 'months MRN DUR' would tell you how long the AI thinks it will take for Morinia to get enough resources to declare war on Durotriga.
mpstats
mpstats
This command will save multiplayer stats to the game.log file.
music.next
music.next
This console command switches to the next track in the music playlist.
music.togglepause
music.togglepause
This command pauses and unpauses (toggles pause) for the game's music.
navy
navy [amount] [province id]
This command spawns the specified amount of ships within the province with the specified ID. The province should be a sea province, or a province with a port (not landlocked).
nomen
nomen
This command is the opposite of the yesmen command - the AI will automatically (and almost instantly) decline any diplomatic offers, etc regardless of circumstances. Note that it affects AI response to AI offers as well (i.e. the AIs will decline all offers from other AI nations).
observe
observe
This command will put you in observer mode, i.e. you become a spectator. The nation you were playing as becomes controlled by AI. Toggle observer mode off by running the command again, then use the tag command to start playing again.
oos_dump
oos_dump
This command will create an OOS dump.
output_terrain
output_terrain
This command will save a province terrain data file to Documents\Paradox Interactive\Imperator named xx_province_terrain.txt.
particleeditor
particleeditor
This console command will open the Particle Editor tool - press the button in the top right of the newly opened window to close it.
pirates
pirates [province id]
This cheat code spawns a pirates fleet in the province with the specified province ID.
planaction
planaction [index]
This command will look up the planned action at the specified index semantic.
players
players
This console command will print a list of the names of all players connected to your server (not very useful in single player).
portrait_editor
portrait_editor
This is a toggle command - it will open and close the portrait editor tool.
power
power [amount]
This cheat code will give your nation the specified amount of power (adds to your current power). Specify a negative number to remove power from your nation.
ppa
ppa [country tag]
This command forces the AI of the specified country tag to update its parallel plan actions.
prefer
prefer [country tag]
This command forces the AI of the specified country tag to update its preferred units.
print_randomlog
print_randomlog
This console command prints the current 'random log'.
printmap
printmap [map mode] [file name]
This command saves an image of the specified map type (e.g. religion) to the specified file - a good way to get a full high-definition image of your save's map.
refresh_mercenaries
refresh_mercenaries
This command will destroy and rebuild all mercenaries (effectively refreshing them).
release_mode
release_mode
This command enables and disables (toggles) release mode.
reload
reload [file name]
This console command will reload the specified file.
rendertype
rendertype
This command will print to the console the name of your render backend - e.g. DirectX 11.
replan
replan [country tag]
This command forces a replan for the AI-controlled nation with the specified country tag.
replay
replay
This console command enables and disables (toggles) the game's replay view. It's currently still in development so may be buggy (save your game before using).
完整命令列表3
revolt
revolt [country tag]
This cheat code starts a revolt in the nation with the specified country tag.
save
save [file name]
This command saves your game to a save file with the specified name. Save file will be located in \Documents\Paradox Interactive\Imperator\save games.
screenshot
screenshot
This command will take a screenshot of your game and save it to Documents\Paradox Interactive\Imperator\screenshots.
script_docs
script_docs
This command will print script documentation to the console.
select_province
select_province [province id]
This console command will make you select the province with the specified province ID.
set_age
set_age [character] [age]
This command will set the age of a specified character. Note that it will be set to this number: using 20 in the age parameter would make your character 20, not add 20 years to their current age.
settings
settings
This command will open a settings window/GUI. Use the button in the top right of the window to close it - typing this command again will just open another one.
setup_editor
setup_editor
This console command will enable and disable (toggle) the 'Editor' - which is titled 'Province data setup'.
shader_debug
shader_debug
This command will remove all shader debugging.
spawnentity
spawnentity [entity id] [state id]
This command spawns a specified entity, in an optional state (state as in the physical state of the entity, not province). The entity will be spawned at your cursor's position.
stab
stab [amount]
This cheat adds the specified amount of stability to your nation. Specify a negative amount to remove stability.
state_loyalty
state_loyalty [province id] [amount]
This command adds the specified amount of state loyalty to the specified province. If you specify a negative amount, the province's loyalty to the state will be reduced by that amount.
statistics
statistics
This command will output statistics to the game's game.log file.
switchlanguage
switchlanguage [language name]
This command will switch your game's language to the specified language.
t
t [country name]
This command will make you control/play as the country with the specified name (specify the name of the country, not the country tag).
tag
tag [country tag]
This command will switch the country you are playing as to the country with the specified country tag.
tech
tech [amount]
This cheat will give your nation the specified amount of technology. Negative numbers reduce tech.
test_save
test_save
This console command will start a save test.
testchar
testchar
This command will 'give a character all data' - we're not too sure what it does.
teststatus
teststatus
This console command will print the status of concluded tests.
textureviewer
textureviewer
This command will open a Texture Viewer GUI - clicking the X in the top right of the window will close it.
tick
tick
This console command will tick all units that you currently have selected.
tick_day
tick_day [amount]
This command will make the game tick forward the specified amount of days.
time
time
This command will print to the console the current time in the game.
timing
timing [off / show / log / all]
This command sets the timing mode to the specified timing mode.
tweak
tweak [tweaker gui name]
This command will open the specified tweaker GUI (e.g. 'tweak fow' to open the Fog of War tweaker GUI).
tyranny
tyranny [amount]
This command will give your nation the specified amount of tyranny. Specify a negative number to reduce tyranny.
unrest
unrest [province id] [amount]
This cheat code will add the specified amount of unrest to the province with the specified province ID. You can reduce unrest by specifying a negative amount.
update
update
We're not too sure what this command does - the description is 'Daily updates all selected units', when used (with a unit selected), it will print to console 'One tick for 1 unit'.
version
version
This command will print to the console information about the current version of the game you are currently - including the name of the version, version number, and the time it was released.
vsync
vsync
This console command enables and disables (toggles) the vsync graphics setting.
warexhaustion
warexhaustion [amount]
This command adds the specified amount of war exhaustion to your nation. Negative numbers reduce your war exhaustion.
watch
watch
This command enables and disables (toggles) watch windows.
winter
winter
This command calls the 'update winter' for all provinces in the game (i.e. checks if they should be in winter mode).
yesmen
yesmen
This cheat will make AI countries say yes/respond favourably to every offer that is made. It is a toggle command - typing it again will turn it off. Note that this will make the AI say yes to offers from other AI countries as well (not just your own).
3 Comments
星尘荧荧StGl Mar 11 @ 12:17pm 
大佬,这些指令对2.0版本还适用吗
Chaobs  [author] Sep 4, 2023 @ 12:41am 
@SaLam 已经很久没玩这个游戏了,不知道现在的情况了,不过那之后游戏也没什么更新,估计还是这些吧。:lunar2019crylaughingpig:
Aeschylus Sep 3, 2023 @ 1:27pm 
大佬,还有没有其他的作弊码:mugman: