To get most graphics you have created to display in game you need to also create a config file for them.
A config file basically tells the game what the graphic is and where to display it.
There are a couple of ways to create a config file:
1.Use a program that will create the file for you such as FM Graphics Configurator or fmxml.
2.Edit an existing config.xml file.
3.Create the file from scratch.
How to create a config file from scratch.
First thing you need to do is to create a blank file, the easiest way to do this is to open a new file with notepad, (or any other text or webpage editor) when you have opened a new file with notepad paste in the following code:
<record>
<!-- resource manager options -->
<!-- dont preload anything in this folder -->
<boolean id="preload" value="false"/>
<!-- turn off auto mapping -->
<boolean id="amap" value="false"/>
<!-- logo mappings -->
<!-- the following XML maps pictures inside this folder into other positions
in the resource system, which allows this folder to be dropped into any
place in the graphics folder and still have the game pick up the graphics
files from the correct places
-->
<list id="maps">
</list>
</record>
This is the basic code that needs to be in every config file and you shouldn’t ever change any of the above code (well you can remove the commented lines if you want).
The bit that you change depending on what you are creating is located between <list id="maps"> and </list> that is currently blank.
Now what we are going to do is create a config file to display the normal logo for Manchester United, the code for this is:
<record from="680" to="graphics/pictures/club/680/logo"/>
So a config file just displaying this logo would look like this:
<record>
<!-- resource manager options -->
<!-- dont preload anything in this folder -->
<boolean id="preload" value="false"/>
<!-- turn off auto mapping -->
<boolean id="amap" value="false"/>
<!-- logo mappings -->
<!-- the following XML maps pictures inside this folder into other positions
in the resource system, which allows this folder to be dropped into any
place in the graphics folder and still have the game pick up the graphics
files from the correct places
-->
<list id="maps">
<record from="680" to="graphics/pictures/club/680/logo"/>
</list>
</record>
Now when you have pasted this code into notepad, you can save the file, goto File -> Save As and name the file config.xml – you need to ensure notepad saves the file as config.xml and not config.xml.txt.
You have now created a config file, you now need to place this config file in the same folder as your Man Utd logo (in the above example the logo graphic would be called 680).
Coding Examples
The below codes show what you need to put into the config file to display certain graphics.
In the below code:
FILE_NAME – is the name of your graphic, in my example above it was 680 (note the lack of a file extension in the name).
UNIQUE_ID – is the unique ID of the object, obtainable from the editor or in game.
Club Logos:
Normal Logo
<record from="FILE_NAME" to="graphics/pictures/club/UNIQUE_ID/logo"/>
Huge Logo
<record from="FILE_NAME" to="graphics/pictures/club/UNIQUE_ID/logo/huge"/>
Small Logo (or Small Flag for the case of countries)
<record from="FILE_NAME" to="graphics/pictures/club/UNIQUE_ID/icon"/>
Background Right Logo
<record from="FILE_NAME" to="graphics/pictures/club/UNIQUE_ID/logo/background/right"/>
Background Left Logo
<record from="FILE_NAME" to="graphics/pictures/club/UNIQUE_ID/logo/background/left"/>
For Nations replace club with nation
For Competitions replace club with comp
For Continents replace club with continent
Also for Nations to replace the large flag (wizard and match screen) you need this code:
<record from="FILE_NAME" to="graphics/pictures/nation/UNIQUE_ID/flag"/>
3D Kits
To change the kits on the 3D match screen you need to add the following to the config file
Home Kit
<record from="FILE_NAME" to="graphics/pictures/team/UNIQUE_ID/kit_textures/home"/>
Away Kit
<record from="FILE_NAME" to="graphics/pictures/team/UNIQUE_ID/kit_textures/away"/>
Third Kt
<record from="FILE_NAME" to="graphics/pictures/team/UNIQUE_ID/kit_textures/third"/>
Note in FM2010 the 3D kits will only display on the 3D pitch in games and not anywhere else.
2D Kits
To display the 2D kits in the club information screen you need the following code:
Home Kit
<record from="FILE_NAME" to="graphics/pictures/team/UNIQUE_ID/kits/home"/>
Away Kit
<record from="FILE_NAME" to="graphics/pictures/team/UNIQUE_ID/kits/away"/>
Third Kit
<record from="FILE_NAME" to="graphics/pictures/team/UNIQUE_ID/kits/third"/>
Now if after using the above codes for the kits one still doesn’t show you may need to edit the code, as the team may have a special kit they are using for a season, so to enable the kit to show for future seasons you need to add an extra line to the config file, you basically add the year to the end of the line:
<record from="FILE_NAME" to="graphics/pictures/team/UNIQUE_ID/kit_textures/third/2010"/>
If 2010 doesn’t work try 2008 or 2009 etc...
Player Faces
Normal Face
<record from="FILE_NAME" to="graphics/pictures/person/UNIQUE_ID/portrait"/>
Small Face
<record from="FILE_NAME" to="graphics/pictures/person/UNIQUE_ID /icon"/>
UPDATE FOR FM2010:
*****
In FM2010 the way the editor creates players has changed and in some cases the unique id may change from game to game (especially if you add more than one editor file to your game) fortantley there is an alternative method to get player faces into the game without needing to know their unique id:
Normal Face
<record from="FILE_NAME" to="graphics/pictures/person/{FIRSTNAME} {SURNAME} {BIRTHDAY_DD}-{BIRTH_MONTH_MM}/portrait"/>
Small Face
<record from="FILE_NAME" to="graphics/pictures/person/{FIRSTNAME} {SURNAME} {BIRTHDAY_DD}-{BIRTH_MONTH_MM}/icon"/>
So for example if your players name was John Smith and he was born 30th March (year doesn't matter) and the filename of your graphic was johnsmith the line for the normal face would look like:
<record from="johnsmith" to="graphics/pictures/person/john smith 30-03/portrait"/>
*****
The above examples all depend on the config.xml file being put into the same folder as the graphic file, now you can have the config file in the parent folder to the graphic(s) (This is how SI do it, but I don’t really like it) and if you are doing that you need to adjust the code to look like this:
<record from="folder/FILE_NAME" to="graphics/pictures/person/UNIQUE_ID/portrait"/>
In the above example you have the config file and a folder called folder in the same folder, but with the graphic in the folder called FOLDER.
Editing an Existing Config File
This is just a case of copying the file you want to edit to the location you want, then opening the file in notepad and changing either the filename or Unique ID to match your graphic/team.
Using FMxml or FMGraphics Configurator
With programs like these, the best option is to name your graphics by unique ID, put all the graphics of the same type in one folder, load the program select the correct options and then drag the folder of graphics you want a config creating for into the program, and it will create the config file for you.
Finally when you are done, load the game to check that the graphics actually show and no error messages occur.
If you like my work then feel free to send me a donation through paypal. Note this is completely optional all of my content will always be free.
Redistribution Terms
1. They are not sold or behind a paywall.
2. You don't advertise them as being exclusive to your website.
3. My username and blog address are included: http://michaeltmurrayuk.blogspot.co.uk/
4. If linking to my work then please provide a link to the download page rather than the download link as the download link may change.
If you have any questions then the best place to ask them is in the Skinning Hideout at the Official SIGames Forums where I can be found most days.