If you register for free, you will be able to post threads, vote on polls and lots more. If you have problems with the registration or logging in, please contact the administrator.
Guides: Customising Your Game (Player Pics/Badges/Kits)
Creating/Adding Player Pictures
One of the most popular things people like to add to the game are player pictures (commonly known as Face Packs). These are fairly simple to create, even with limited knowledge of graphics packages.
The following is a step-by-step guide to putting a player picture in the game from start to finish using Adobe Photoshop.
Once you have the source image of the player, load it into Photoshop and get ready to cut off his head!
<UL TYPE=SQUARE>
<LI>Select the Rectangular Marquee tool (M)
<LI>While holding the shift key, click and drag so that you get his head area in a perfect square. You can adjust the positioning of this area by using the arrow keys.
<LI>Once you have got the positioning correct, select Crop from the Image menu. This will cut the head area down to size.
<LI>Now you need to resize down to 95x95 pixels.
<LI>Choose Image Size from the Image menu and change both the width and height values to 95 pixels and click OK
<LI>Now we have to work some magic to workaround some transparency problems in the game.
<LI>Open the Layers palette (F7)
<LI>Right click on the active layer (should only be one) and choose Duplicate layer and click OK. Then you need to delete the layer you just copied from, most commonly known as Background.
<LI>Then select the layer you have left and change the opacity value in the layers palette to 99%
<LI> In order for the game to be able to pick these up, they need to be in the data/graphics folder. I recommend putting player pictures somewhere in data/graphics/pictures/players/myplayerpics so that they don’t get mixed up with any official player pictures.
<LI> Save your image as playername.png where playername is the name of the player. Eg (zinedine zidane.png)
<LI> It may also be a good idea to organise these in folders for each club. Eg (graphics/pictures/players/myplayerpics/real Madrid/)
</UL>
Note: There is a Photoshop Action available that will automate most of this process for you. You can find out more information about that by visiting this topic here: http://community.sigames.com/eve/for...06/m/217204038
Now you are ready to hook these up to the game.
To assign a picture to a player in the game, you need to find out a player’s unique ID. This can be found ‘in-game’ by setting the Show Unique IDs option in the Display section of the Preferences. The unique ID will now be displayed as a number underneath the player’s name when viewing his profile in Football Manager.
Once you have found out the unique ID we can then go about assigning a picture file to a unique ID so that the game knows which picture to show for which player. To do this, we have simple config.xml files where you can enter your picture information.
04-04-2005, 01:12 PM
Guides: Customising Your Game (Player Pics/Badges/Kits) Post #2
Config Files
Each folder which contains pictures has a config.xml file. That file is read by the game and assigns each picture in that folder with an item in the game.
A typical config.xml file looks like this…
<pre class="ip-ubbcode-code-pre"><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="roberto carlos" to="graphics/pictures/person/11944/portrait"/><record from="zinedine zidane" to="graphics/pictures/person/8076/portrait"/></list></record></pre>
The main part you have to think about is the maps section. This is where you can assign more picture files to players in the game.
If we take the above line as an example, what it does is look for a file named roberto carlos.png and assigns that to the unique id 11944 (which is Roberto Carlos’ ID). If you then wanted to add a picture for Raul and already had your raul.png file then you would find out his unique ID (which is 11952) and add the following line to the config.xml file.
Club Badges
In a similar way to player pictures, you can assign an image to display on the titlebar when viewing a team screen. These apply to both club and national teams and this section will take you through assigning an image to a team screen for both club and international teams.
Like player pictures, the club badges are assigned using a config.xml file which are the exact same as the ones for player pictures except for slight changes in the record lines.
To assign a picture to a club you would add the following line:
Kits
In Football Manager 2005 there is support for the display of club kits. There are currently 20 ‘generic’ kit styles that use the colours from the database to display kits in the team colours and similar styles. It is also possible to assign an image for home, away and third kits.
To do this, we need to again use our friend the config.xml file and change a few lines to get kits working.