SmickeyMcgee -> RE: How to make new units (10/12/2011 9:06:14 PM)
|
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.
|
|
|
|