• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

PDXKatten

Community Programs Specialist
Administrator
Paradox Staff
Moderator
QA
Oct 14, 2022
452
3.983
With Mod Support going in, we have enabled the game console and a number of console commands that will be useful to anyone working on a mod.

You must create a devconfig.txt file in your Millennia directory, located here:

%APPDATA%\..\LocalLow\CPromptGames\Millennia

Include this in your devconfig.txt to enable the console:

EnableConsole=true

Information on the available console commands is at the end of this.

Millennia Console Commands

Code:
AddPop <value>
- select a city tile before using command
- adjusts the population by specified value
- integer only
- positive & negative values are acceptable, or no value returns +1
- making the city's pop less than 1 reduces the city to 1 and applies a malus to the region
- ex. "addpop 10" "addpop -10"

AgeUp <value> and AgeUpAll <value>
- unlocks all techs and age advance to reach specified mainline age
- AgeUpAll does this for all players
- integers only
- choosing an integer greater than 10 functionally works, but returns an error for being unable to find valid ages
- choosing an integer less than the current age returns a warning
- ex. "ageup 5" "ageupall 5"

CombatXP <value>
- select units before using command
- adds combat XP to targeted unit[s]
- integers only
- choosing a negative value doesn't reduce XP below 0
- going above the maximum XP value instead stops at the max (40)
- ex. "combatxp 40"

CreateCity
- choose a location before using command
- creates a new region at specified location for player

Culture
- Fills the Culture Meter.

Diplomacy <parameter>
- sets diplomatic state with all other nations
- from list: {meet, war, peace, open, alliance, hostile, love, hate, envoy}
- can also call "dip" command for the same results
- ex. "dip meet" "diplomacy war"

DiplomacyOther
- DiplomacyOther lets you set the diplomacy state between two other Nations.   Normal Diplomacy command either sets all states, or just your state with another Nation, but "DiplomacyOther 2,war,3" can force player 2 to declare war on player 3 for example

GameData <Key,Modifier,Value,Target>
- modifies game data
- not case sensitive (unless forcing new GameData)
- target is optional, generally blank unless target is "player" & can specify player number "player,2"
- uses explicit text
- ex. "gamedata ResKnowledge,add,999,player"
Domain prefix goes in front of each domain resource, so:
- ResDomainGovernment
- ResDomainExploration
- ResDomainEngineering
- ResDomainWarfare
- ResDomainDiplomacy
- ResDomainArts (with an S)
Non-Domain, National Resources:
- ResCoin
- ResKnowledge
- ResCulture
- ResImprovementPoints (with an S)
- ResSpecialists (with an S)
Chaos/Innovation each have 2 pieces of data, the per-turn income and the current level
- ResInnovation
- ResInnovationPerTurn
- ResChaos
- ResChaosPerTurn
Special resources
- ResArcana
- ResMonumentProgress
Region values
- ResCityFood
- ResCityHousing
- ResCitySanitation
- ResCityLuxury
- ResCityFaith (gets conflated with Religion Points for the religion system)
- ResCityEducation
- ResCityPower (produces power for the city)
- ResCityPowerRequired (increases the city’s power need)
- ResCityIdeology
- ResCityInformation
production & expansion/influence for cities:
- ResCityProduction
- ResCityExpansionPoints
Faction Points
- gamedata FactionPoints-DEMOCRATIC,add,10000,player
   - Need to build faction hq and pass turn first

Landmark <value>
- select a location before using command
- spawns a landmark at specified location
- uses explicit text
- ex. "landmark lm_mountain_repeat"

MoMoney
- grants a boatload of cash and unlocks resource caps
- No longer gives social fabric (since you were forced to spend these, and it was getting annoying)

NoMoney
- Removes currencies

Spawn <entitiy,playernum> & SpawnArmy <entitiy,playernum>
- spawns a specified entity, or full stack of a single unit type
- can specify player owner, or omit to spawn for you by default
- uses adaptive text
- ex. "spawn warb" is the same as "spawn unit_warband"
- ex. "spawnarmy warb" spawns whatever your max army size is, of warbands

Tech <value,playernum> & TechAll
- unlocks specified tech for specified player
- not case sensitive
- uses adaptive text
- ex. "tech techage1-defense" is the same as "tech 1-def"
- TechAll can be used to grant the Tech to all players.

VassalFillMeter
- select a vassal before using command
- fills the vassal's integration meter to max
- you still have to pay the conversion cost if you want to convert to a region
 
  • 4
  • 3Like
Reactions:
Hello

„You must create a devconfig.txt file in your Millennia directory, located here:

%APPDATA%\..\LocalLow\CPromptGames\Millennia

Include this in your devconfig.txt to enable the console:

EnableConsole=true“

I did it. It doesnt work
 
Hello

„You must create a devconfig.txt file in your Millennia directory, located here:

%APPDATA%\..\LocalLow\CPromptGames\Millennia

Include this in your devconfig.txt to enable the console:

EnableConsole=true“

I did it. It doesnt work
How did you try the console? If you don't use an US keyboard layout, you need a different key to activate it(e.g. on a german keyboard it is the ö key)