Notice: This is the official website of the All Empires History Community (Reg. 10 Feb 2002)

  FAQ FAQ  Forum Search   Register Register  Login Login

Afghans in Rise of Nations

 Post Reply Post Reply
Gharanai View Drop Down
Arch Duke
Arch Duke
Afghan Empire

Joined: 26-Jan-2006
Location: Afghanistan
Online Status: Offline
Posts: 1515
  Quote Gharanai Quote  Post ReplyReply Direct Link To This Post Topic: Afghans in Rise of Nations
    Posted: 01-May-2006 at 18:14

Regards to all fellow forumers.
The subject certainly sounds interesting, and the answer to it is yes you can add your own nations name and ablities to both Rise of Nations and Rise of Nations: Thrones and Patriots.

Here is how you could do so, just follow carefully the steps and in case of any question I am always here.


Note: Youll need a word processor to open and edit the files. I used NotePad and at all time dont forget to create backups of the files being modified.


First, get an idea of what nation you want to make. You cannot create nation powers in the game, but you can make slight changes to existing ones, usually changes in numbers of things. Then, go back up these files:

  • Rise of Nations\data\rules.xml
  • Rise of Nations\data\help.xml
  • Rise of Nations\tribes\(nation you will replace).xml

The tribes folder contains xml files for each nation; youll need a copy of the nation you want to modify. Now, you can either modify the files that are in the Rise of Nations directory, or you can modify the files that you copied. I like to set up a folder on my desktop with the copied files and then modify them from there.

Now, our first step is the tribes file. Lets take the Afghan mod I made a while back as an example. The Afghan replaces the Maya, so I took the maya.xml out of the tribes folder.


Here it is:


<!-- LOCALIZATION: LEADER and CITY elements; also, name attribute -->

<TRIBE name="Maya">



    <LEADER>Chac Balam</LEADER>









    <CITY>Chichen Itza</CITY>





    <CITY>Altun Ha</CITY>





    <CITY>Tzimin Kax</CITY>
























************************************************************ *********

It is simple really. Change the name to what you want, change the leader names, and change the city names. You do not have to have as many leaders and cities as the original file does, or you can have less, just make sure to delete the extra <LEADERS></LEADERS> and <CITY></CITY> if you decide to have less. Important things here, are <UNIT_CONITNENT> and <BUILD_CONTINENT>.
These decide what the art set for the units and buildings of the nation will be. There are several categories:

0 European
1 Arab
2 American
3 Asian

0 Med
1 Neuro
2 Asian
3 Korean
4 American
5 Turk


Here is what the file looked like after I modified it:

<!-- LOCALIZATION: LEADER and CITY elements; also, name attribute -->
<TRIBE name="Afghan">
    <LEADER>Ahmad Shah Abdali</LEADER>
    <LEADER>Mirwais Khan Hotak</LEADER>
    <LEADER>Mahmood Ghaznavi</LEADER>
    <LEADER>Ghazi Amanullah Khan</LEADER>
    <LEADER>Nur Mohammad Taraki</LEADER>
    <LEADER>Mullah Mohammad Omer</LEADER>
    <CITY>Maidan Wardak</CITY>

************************************************************ ***********

Next, we will work with the rules.xml. This is the important part, because it is where you modify nation powers. Look for a part in the rules.xml that looks like this:

    <AZTEC_PLUNDER value="100%"/>
    <AZTEC_FREE_MILITARY value="1"/>
    <MAYA_GARRISON_ARROWS value="1"/>
    <MAYA_BUILDING_TIMBER value="20% reduction"/>
    <MAYA_BUILDING_HP value="20% bonus"/>
    <MAYA_BUILDING_SPEED value="20% bonus"/>
    <INCA_WEALTH_CAP value="33% bonus"/>
    <INCA_WEALTH_PER_MINER value="10"/>

This is what all the nation powers do. Any power that a nation has in-game can be changed. There are also some un-used powers. Putting values into them sometimes gets them to work, but not always and remember dont add any extra power or it will crush. Here is how I modified the powers to be:

    <AZTEC_PLUNDER value="100%"/>
    <AZTEC_FREE_MILITARY value="1"/>
    <MAYA_GARRISON_ARROWS value="1"/>
    <MAYA_BUILDING_TIMBER value="2000% reduction"/>
    <MAYA_BUILDING_HP value="2000% bonus"/>
    <MAYA_BUILDING_SPEED value="2000% bonus"/>
    <INCA_WEALTH_CAP value="33% bonus"/>
    <INCA_WEALTH_PER_MINER value="10"/>

Now on to the last step, editing the help.xml. While this will not change anything in the gameplay, it is necessary to do so that players know what you have changed. Open up the help.xml, and then find an entry that looks like this:

<ENTRY name="TRIBE1">

   <STRING>{The Maya have the Power of Architecture.}

     <BULLET/>Cities, Towers, Forts, etc. fire extra arrows/bullets--                           including Cities without garrisons.

     <BULLET/>Buildings $NUMBER2% tougher and all non-Wonders are $NUMBER3%                  faster to build.

      <BULLET/>Buildings cost $NUMBER0% less Timber (except Wonders and                       military buildings).



This is the help text that discribes the nation. places bullets that separate the different nation powers. Delete powers you are no longer using, and change the text for ones you have changed. Something like $NUMBER1% looks up the value in the rules.xml, so if you change a 10% discount to 30%, you dont have to change anything in the help text, it will change for you. Here is what mine looked like after I fixed it:

<ENTRY name="TRIBE1">

   <STRING>{ The Afghans have the Power of Patriotism and Fight.}

     <BULLET/>Cities, Towers, Forts, etc. fire extra arrows/bullets--                           including Cities without garrisons.

     <BULLET/>Buildings $NUMBER2% tougher and all non-Wonders are $NUMBER3%                  faster to build.

      <BULLET/>Buildings cost $NUMBER0% less Timber (except Wonders and                       military buildings).

      <BULLET/>Afghans could be invaded but never ruled.



So once youve done all that youre done! Replace the original files with the modified ones to use the mod, and replace those with backed-up files to go back to the regular game.


Back to Top
Ponce de Leon View Drop Down
Lonce De Peon

Joined: 11-Jan-2006
Location: United States
Online Status: Offline
Posts: 2967
  Quote Ponce de Leon Quote  Post ReplyReply Direct Link To This Post Posted: 01-May-2006 at 18:16
I used to play rise of nations..might start playing it again when i have more free time.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.56a [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.094 seconds.