We are an artistic collective specialising in game modding, graphics design and copy editing. This page on the Mod Database was created with the intent to showcase our video game-related work, which completed will comprise of mods for Minecraft, Rise of Nations, as well as self-designed, Spring-based games.

Image RSS Feed Latest Screens
For Crown and Country! Soldado de Cuero (rearing) Elephant, front
Blog RSS Feed Report abuse Latest Blog: How to mod a unit for Rise of Nations

0 comments by Beelim on Apr 6th, 2014

Are you itching to insert teddy bears and crazy death robots into your game? or are you just peeved that BHG left a whole load of inconsistencies and ahistorical bull in your game? well then, this guide is meant for you!

Modding a unit in Rise of Nations looks more difficult than it really seems. To be honest, the only issue involved may be in creating the renders and the tedium in the coding required, but overall it is actually a very fast process, and sometimes rewarding as well.

HOW DOES THIS GUIDE WORK?


This guide tries to go step by step in designing a model from scratch, from the creating of the graphics required for a new unit all the way to getting it to work in the game. We will first explain how graphics are created, and then go on to inserting the model into the game itself.

HOW DO GRAPHICS IN RISE OF NATIONS WORK?

In Rise of Nations, units consist of two elements - the graphic files which allow a unit to appear and be animated in the game world, as well as coding which allows the unit to perform its functions in the game.

WHAT FILES GOVERN A UNIT'S APPEARANCE?

This is determined by the following:
- a .bh3 model. This is the model for the sprite as it appears in your game, and will be stored in your /art folder;
- .bha files, which governs unit animation, ie how the unit moves and so forth, which goes into the /art folder too;
- a .tga file, which if not properly inserted causes the unit to appear white. This also goes into the same folder as above; and
- entries in the unit_graphics.xml file under your/data folder.

BUT HOW ON EARTH DO I GET IT TO WORK?

There are several files which govern how a unit functions:
- unitrules.xml, under your /data folder, will govern a unit's attributes, ie attack, movement speed, hitpoints, as well as graphics; and
- craftrules.xml will govern the abilities of your unit.

Of these, however, we must pay utmost attention when modifying any xml files in Rise of Nations - faulty coding at the least will leave units inoperable, and at worst crash your entire game. For this reason we strongly discourage overwriting any source files in /data or /art unless it is necessary.

HOW MANY CUSTOM UNITS CAN I INSERT INTO RISE OF NATIONS?

Sadly, the answer is none, because in reality the number of units is determined by the number of entries for each unit in Rise of Nations in the unitrules.xml file (for convenience, we will call each area where you can insert data for a new unit as a "slot"). Each slot is demarcated by the tagging ...., with the statistics of the unit (ie name, type, tactical parameters, etc) located within this tag. You can only create new units by "cannibalising" existing slots.

ENOUGH BABBLING! JUST SHOW ME HOW TO DO IT!

Let's use an example from Rise of Kings.

Suppose that I want to insert a new unit that I want to call "Bedouin Retinue", a cavalry unit which throws spears and is represented by two different sprites. How do I go about this? the answer is simple:

Graphics

The first thing I do is to get out the graphics for two different sprites. I procure two .bh3 files, as well as two .tga files. We shall call one (with a harness for our cavalry unit) "towelhead.bh3" and the other one as "sheikh-stripy.bh3"

The .bh3 and .bha files for Rise of Nations can only be created if you have 3ds Max 5.1 and the Big Huge Exporter plugin produced by BHG. We will not cover this, there are many tutorials elsewhere on how to create your own 3d models using this program.

Meanwhile, on to sprites. You must be asking, why do we need to create two sets of .tga files if we are just creating only one unit? this is because although I am only creating one unit, I want this unit to have a varied appearance, hence the need for two .bh3 files - one for each sprite. The bh3 files however are not enough on their own, so I must also have .tga files which form the "skin" of the unit.

http://media.moddb.com/images/articles/1/156/155705/auto/1959407_10153978741785237_8168622444749128730_n.jpg

In this screenshot, you can see what the .tga file for "sheikh-stripy.bh3" looks like when opened up in GIMP2.8. Remember that to create unit colour areas, you need to render parts of the model semi-transparent.

Rise of Nations when in operation "wraps" the texture of the tga around the model as determined by the bh3 file. If we opened up the unit model file in 3ds Max and then used the tga file as its skin, this is what it would look like:

With these files ready, I will now put the bh3 files into the /art folder of my Thrones and Patriots/mods/Rise of Kings 1.0/art folder. We will save one tga as "sheikh-stripy.tga" and the other as "super-sheikh" as shown below:

http://media.moddb.com/images/articles/1/156/155705/auto/10155001_10153978763465237_5561953569530070798_n.jpg

Coding the unit's appearance

Next comes the fun part - unit appearance. Unlike unit slots in the unitrules.xml folder, you can have as many entries as you want for your sprite graphics, so I will now create a new entry in my unit_graphics.xml file under mods/Rise of Kings 1.0/data folder.

At this stage, you need to be careful when inserting the new graphics. Always ensure that the coding here is inserted correctly.

The anim_graphics file (TBC)
The unit_graphics file (TBC)
The unitrules file (TBC)

Groups
Kings and Conquerors Mod Team

Kings and Conquerors Mod Team

Developer with 12 members, invitation only

This group is for the developers and testers of Kings and Conquerors: The Hellenistic Era, a mod for Rise of Nations: Thrones and Patriots.

Post comment Comments  (0 - 10 of 13)
EITY10
EITY10 May 24 2014, 11:20am says:

What about your ww1 mod?

+1 vote     reply to comment
Beelim
Beelim May 30 2014, 12:47pm replied:

That one isn't started up yet although we have started working on a couple of rigs intended to be used in it.

+1 vote     reply to comment
vschauhan4101997
vschauhan4101997 Feb 22 2014, 5:22am says:

i got a few doubts i have ww2 second great war mod installed
and want rise of kings mod too so can u guide me how to

+1 vote     reply to comment
Super7700
Super7700 Mar 2 2014, 1:32am replied:

Both mods are meant to go in the mods folder, so they should be mostly compatible with eachother. The icons and sounds however are not compatible so either you will have to make do with one mod having the wrong icons or sounds or you can switch certain files whenever you wish to switch mods, which can be relatively complex.

+1 vote     reply to comment
vschauhan4101997
vschauhan4101997 Feb 22 2014, 5:21am says:

hey u there

+1 vote     reply to comment
azangara
azangara Nov 7 2013, 10:36am says:

I made a skin you requested
as you throw it

+1 vote     reply to comment
azangara
azangara Oct 8 2013, 11:36pm says:

I will help than to a smog I agree, only I am not able to program and do 3ะด model

+1 vote     reply to comment
Beelim
Beelim Oct 15 2013, 9:37am replied:

Okay, it's not a big deal.
Look for the file "rifleman_asian.bh3" and the file "rifleman_arab_asian.tga" in RoN. Edit this tga and see if you can create a German infantryman for me.

+1 vote     reply to comment
Beelim
Beelim Oct 15 2013, 9:35am replied:

You will need 3ds Max 5.1. what I request is that you do not make new models; I can do that on my own - I need you to help reskin infantrymen, by editing the tga files in Rise of Nations itself. I will be getting down to compiling a list of units, and I will teach you when I am ready.

+1 vote     reply to comment
Beelim
Beelim Oct 7 2013, 4:02am replied:

If you have RoN, I need you to help create and test infantry models. While 3d rendering software is not necessary, a lot of in-game testing will be required. Also, if you can improve the quality of the textures for terrain for Rise of Kings, it'd be great. I've seen the work you're doing for Super7700 and it's very good stuff.

+1 vote     reply to comment
Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Level
Avatar
Avatar
Offline Since
Oct 31, 2014
Country
Malaysia Malaysia
Gender
Female
Member Watch
Track this member
Statistics
Activity Points
1,609
Rank
1,069 of 475,666
Watchers
2 members
Time Online
1 second
Comments
488
Site Visits
2,588
Profile Visitors
4,066 (3 today)
Contact
Homepage
Ipernity.com
Private Message
Send Now
Email
Members Only
Kriegtooth
Kriegtooth friends since Jun 28, 2014
WartotalXD
WartotalXD friends since Sep 6, 2014
Super7700
Super7700 friends since Nov 20, 2012
llhhll
llhhll friends since Aug 24, 2013
almos_22
almos_22 friends since Jan 30, 2013
Baxxter89700
Baxxter89700 friends since Dec 30, 2013
Wremwyn
Wremwyn friends since Apr 6, 2014
JeluArg
JeluArg friends since Mar 20, 2013
ziedt
ziedt friends since Apr 30, 2014
Uthum876
Uthum876 friends since Nov 21, 2012