Age of History II

Age of History II

320 ratings
[Cheats] All Console Commands
By Kawazaki
In this guide I have what I believe to be all Console Commands in the game taken straight from the code using a Java Decompiler.
For all the dummies saying I stole from other guides : check when this guide was posted and when the other one was posted you big brain individual.
3
14
2
2
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Don't forget to Rate and Favorite the guide :)
The Commands
DISCLAIMER : I have not tested all of them.
If some of them don't work try adding a value after them. Also, please don't just go in a game you've been at for a long time and use a command for the first time. Try it out in a separate one.

To enter the console press F1, then in the box above where you can write, type hi or hello.
"/" means OR, it doesn't mean the command contains a "/"

  • info - returns information about the game (fps, your graphics settings, etc.)
  • debug - starts debug mode
  • center - centers the camera in the middle of the map
  • centerciv + ID - centers the camera on the civ with the corresponding ID (I haven't tested it.)
  • scale + value - changes the scale of the map (values from 1-5)
  • close/ bye - closes console
  • fps - displays an FPS counter
  • hi/ hello - returns Hello!
  • spin - spins the camera around for a bit
  • help - show a couple of commands
  • party/ ♥♥♥♥/ ♥♥♥/ flags - shows every flag on screen; can be stacked, stops if you close the console or execute close or bye the hearts are : f.u-c.k and f.u.k
  • clear - clears console
  • Drew Durnil/drew durnil/ drewdurnil/ drew/ (any variation of Drew Durnil's name)/ noob/ observe/ spectator/ Spectator - Returns : "Games -> New Game -> Options -> Spectator Mode"
  • civs - shows ID's for every civilization (and TAGS)
  • civ - shows the ID and TAG of the selected civilization (selected province which is part of a civilization)
  • province - returns information about the selected province
  • showids - shows the province ID's on them provinces (Kind of like showing an army but instead of the army it's the province ID)
  • showarmy - I don't know, even after testing I can't tell what it does.
  • addplayer - add another player on the selected province (I haven't tested it)
  • addciv + name + ideology - "Type addciv then put the country tag you want to add, then put the ideology (like m for monarchy)" - Thanks lappletonjam :)
  • technology + value - add technology to the selected civilization; 1000 means give them 1.0;
  • population - gives 750 population
  • armyset/ setarmy + value - in the selected province changes the army to a selected amount; mind you, it CHANGES it, it doesn't ADD it;
  • noliberty - I haven't tested it, I would bet it makes a vassal not want liberty.
  • id - gives ID of civilization and selected province
  • war ID1 ID2 - start a war between 2 civilizations - "For war, get the countriy code by typing ID. So, in my game, the US is 20 and Spain is 220. TO get them to war, type: war 20 220" - thank you Llama
  • peace ID1 ID2 - sign a peace between 2 civilizations at war
  • buildport - build a port in a selected province
  • buildfort - build a fort in a selected province
  • buildtower - build a tower in a selected province
  • economy - adds 600 to the selected province's economy
  • army - add 300 army to the selected province
  • money - adds 450 money
  • movement - gives you movement points
  • diplomacy - gives diplomacy points
  • reloadprovince + ID - reloads a province (more for debugging I guess)
How I found them
You unfortunately can't do this anymore!
In the main folder of the game, next to the .exe, there's the .jar file. I used a decompiler and looked at it a bit. In the section name after the game and the dev there's pretty much everything including AI and Buttons so I snooped and found Commands.

Also, for anyone wanting to figure out addciv :
if (tempCommand[0].equals("addciv")) { if (tempCommand.length > 1) { if ((CFG.game.getActiveProvinceID() >= 0) && (!CFG.game.getProvince(CFG.game.getActiveProvinceID()).getSeaProvince()) && (CFG.game.getProvince(CFG.game.getActiveProvinceID()).getWasteland() < 0) && (!CFG.game.getProvince(CFG.game.getActiveProvinceID()).getIsCapital())) { for (int i = 1; i < CFG.game.getCivsSize(); i++) { if (CFG.game.getCiv(i).getCivTag().equals(tempCommand[1])) { IllegalCommand(); addMessage(CFG.game.getCiv(i).getCivName() + ": IS IN THE GAME"); addMessage(""); return; } } CFG.game.getProvince(CFG.game.getActiveProvinceID()).updateArmy(CFG.game.getProvince(CFG.game.getActiveProvinceID()).getCivID(0), 0); CFG.game.createScenarioAddCivilization(tempCommand[1], CFG.game.getActiveProvinceID(), false, true, true); if (CFG.FOG_OF_WAR == 2) { for (int i = 0; i < CFG.game.getPlayersSize(); i++) { CFG.game.getPlayer(i).addMetCivilization(true); } } int tempPop = CFG.game.getProvince(CFG.game.getActiveProvinceID()).getPopulationData().getPopulation(); CFG.game.getProvince(CFG.game.getActiveProvinceID()).getPopulationData().clearData(); CFG.game.getProvince(CFG.game.getActiveProvinceID()).getPopulationData().setPopulationOfCivID(CFG.game.getProvince(CFG.game.getActiveProvinceID()).getCivID(), tempPop); CFG.game.getCiv(CFG.game.getProvince(CFG.game.getActiveProvinceID()).getCivID()).setMoney(100L); CFG.gameAction.updateCivsMovementPoints(CFG.game.getProvince(CFG.game.getActiveProvinceID()).getCivID()); CFG.gameAction.updateCivsDiplomacyPoints(CFG.game.getProvince(CFG.game.getActiveProvinceID()).getCivID()); CFG.gameAction.buildRank_Score(CFG.game.getProvince(CFG.game.getActiveProvinceID()).getCivID()); int tActiveProvince = CFG.game.getActiveProvinceID(); CFG.game.setActiveProvinceID(-1); CFG.game.setActiveProvinceID(tActiveProvince); addMessage(CFG.langManager.get("Added") + ": " + CFG.game.getCiv(CFG.game.getProvince(CFG.game.getActiveProvinceID()).getCivID()).getCivName()); } else { IllegalCommand(); CFG.toast.setInView(CFG.langManager.get("ChooseAProvince"), CFG.COLOR_TEXT_MODIFIER_NEGATIVE2); addMessage(CFG.langManager.get(CFG.langManager.get("ChooseAProvince"))); addMessage(""); } } else { IllegalCommand(); } return; }
74 Comments
cosiepatszysz Apr 3 @ 9:52am 
could you do that there come more diplomaci points
Xx-I-love-my-mom-xX3266 Oct 1, 2023 @ 3:08am 
@Sinxtin Form Italy as Naples or one of countries in italy before it united
catanddodted Sep 3, 2023 @ 11:00am 
for those who try the setarmy command but get an error, it only goes up to 999,999,999 (ingame you'd type 999999999). and so far i've found no way to copy and paste, but honestly i've gotten used to typing "setarmy 999999999"
josanty Aug 25, 2023 @ 7:24pm 
If you use the console but WITHOUT sandbox mode, ez acheivements.
Krux Jul 1, 2023 @ 1:01pm 
Is there a way to spam the money command or give more?
Szymon KURZACZ.pl May 27, 2023 @ 11:45pm 
Using the console blocks achievements.
Sinxtin Mar 30, 2023 @ 9:19am 
ik this comment has nothing to do with this but does anyone know how to help me? I do the thing it tells me to do like form italy but it doesn't give me the achievment.:csgox:
Lite3000 Mar 16, 2023 @ 10:48pm 
@TravisChessie1989 But how do I recompile?
TravisChessie1989 Oct 25, 2022 @ 5:56pm 
HELLO!

I have found a way to access this information again. By renaming the "AoC2.exe" file to "AoC2.jar" I was able to access the code with a JAR decompiler. I thought it was fishy when I tried it, but surprisingly, it does work.

Once decompilation was finished I was able to find this in the "Commands.java" file.

On another note, I did this because I wish to convert the population numbers to "long" instead of "int" so as to allow the population to go to more realistic modern standards. It is very unsatisfying when suddenly the national population is -2B because the integer rolled over. If you have tips on where I can find those to update the references, that would be greatly appreciated.
Lolz_Lolz222 Sep 29, 2022 @ 8:54am 
IN THIS WORLD THIS WORLD THIS WORLD