How to make new units

Post your customer scenarios here and ask questions about scenario design and modding.
Post Reply
SmickeyMcgee
Posts: 6
Joined: Thu Dec 16, 2010 12:14 am

How to make new units

Post by SmickeyMcgee »

I'm surprised no one has made any new unit images. It's not that hard at all, only files you need to edit are the images themselves, the cropinfo file, and whatever formation you want to edit. Ive provided some examples of units i've made by just copy pasting bits of armour from one unit onto another to make a new one. Its also possible to take pictures of your own painted miniatures with a digital camera and add those ingame. Although that process is much more difficult and time consuming it can be done.
If anyone is interested please just reply and i'll put together a detailed tutorial on what you need and how you edit the in game unit images.

Image
Attachments
FieldOfGlo..091911.jpg
FieldOfGlo..091911.jpg (391.82 KiB) Viewed 597 times
SmickeyMcgee
Posts: 6
Joined: Thu Dec 16, 2010 12:14 am

RE: How to make new units

Post by SmickeyMcgee »

another picture of changes ives made

Image
Attachments
FieldOfGlo..092480.jpg
FieldOfGlo..092480.jpg (406.66 KiB) Viewed 601 times
User avatar
IainMcNeil
Posts: 2784
Joined: Tue Oct 26, 2004 10:01 am
Location: London
Contact:

RE: How to make new units

Post by IainMcNeil »

Cool stuff :)
Iain McNeil
Director
Matrix Games
Anonymous

[Deleted]

Post by Anonymous »

[Deleted by Admins]
Anonymous

[Deleted]

Post by Anonymous »

[Deleted by Admins]
User avatar
Ironwulf
Posts: 23
Joined: Wed Jan 12, 2011 8:56 pm
Contact:

RE: How to make new units

Post by Ironwulf »

That's pretty cool - be interesting to hear more details in a how-to. I've developed 3D miniatures before along these lines using hi-res models (which I then reduced in resolution for game mods). They turned out pretty sharp lookin.
SmickeyMcgee
Posts: 6
Joined: Thu Dec 16, 2010 12:14 am

RE: How to make new units

Post by SmickeyMcgee »

TUTORIAL
Needed programs Gimp 2.0 to edit unit images and XML Notepad 2007 to edit the xml files and thats it.
What i'm gonna do is replace the unit indian-EL-Elephant-b-general with a new european pikemen. First i'll copy the burgundian low countries pikemen image unit-wm13-low-country-pikeman.png (located in C:\Matrix Games\Field of Glory\armies\unit-images\medieval-burgundian-foot) then paste it in the same folder and rename the pasted version to unit_europikemen.png. Then i will open the europike image using Gimp 2.0 and edit it using the various tools in gimp.
I might do a seperate guide on how to use gimp to edit the units. This Tutorial is just gonna deal with the overall process and steps involved with adding stuff.
Now after i've edited the image in gimp to what i want the next step is adding it to cropinfo.xml located in the same folder as the unit_europikemen.png Open cropinfo.xml with XML Notepad 2007 then find wm13-low-country-pikemen (press ctrl and f to bring up search) select the folder its in called offsets. then right click and copy it then right click on the folder called cropinfo in XML and hit paste. go down to the last offsets folder in the list and open it up. you should have an exact copy of the low country pike offsets folder. rename the wm13-low-country-pikemen red letters to europikemen. Leave out the unit_ and .png just write europikemen. Then save the cropinfo.
Next goto C:\Matrix Games\Field of Glory\armies\formations then find whichever unit your going to replace with the new europikemen. I like to use indian-classical because i never use the indian army. So open up indian-classical.xml. You should see a list of folders called formation, setup in a similar way to the cropinfo.xml from the previous step. What your going to do is pick whichever unit you want to replace, in this case indian-Cav-cavalry-undrilled-a, with the image you just made of europikemen. So open up the formation folder that has indian-Cav-cavalry-undrilled-a in it and what you should see is 2 red lines that say layout and name above 3 folders called figure. Now delete all but 1 figure folder. Then open up the remaining figure folder and you should see a red line setup like this indian-classical/ind08a-indian-cavalry-command-spear. indian-classical/ is the folder the image is located in and /ind08a-indian-cavalry-command-spear is the image. So wat your gonna do is replace indian-classical with the folder that has your modified image in it, in this case medieval-burgundian-foot. Then replace the image name with the name of your modified image europikemen. Remember to only write europikmen and not unit_europikemen.png.

Now we get to the formations in game. Layout is what tells the game what the in game formation is. For example 3 men drilled or 6 men drilled or 5 men undrilled or even a 1 unit elephant. the layout will say udrMtd and that is the 3 undrilled formation. We want the 6 men drilled formation since its a pikemen unit not a cavalry or medium infantry unit. So replace the udrMtd with drHF then select your single figure folder with the right mouse button and hit copy. Then right click on the formation folder and hit paste. Do this till you have 6 folders called figure in the formation folder. The number of units in a formation is the same as the number of figures. So udrMtd has 3 figures and drHF has 6.

Your now done. Go into the scenario editor find indian-Cav-cavalry-undrilled-a and you should see your new pike unit instead of the indian cav unit. REMEMBER the stats are still that of a indian cav unit so you have to edit the unit to that of a pikemen before playing a scenario you edited using your new units.

Anyone who runs into any problems just PM me or post a reply detailing your difficulties, in this thread.
Halsey
Posts: 4688
Joined: Fri Feb 06, 2004 10:44 pm

RE: How to make new units

Post by Halsey »

These are very nice.
How about sharing your great work?

Though I would prefer graphic replacements without the units units changing into a different type of unit.[;)]

Some terrain graphic modules would be a nice improvement too.
Are there any out there?

I'm surprised no one has consolidated the scenario mods at a permanent location.
Google also offers free web hosting with a very large file holding ability.

Post Reply

Return to “Scenario Design and Modding”