KitServer 5 for PES5 PC / PES5 PC DEMO 2
=====================================================================
Version 5.0.5 from 11/2005


1. Installation
---------------
As usual: copy the entire kitserver folder into your game folder, so
that the directory structure looks like this:

dat/
kitserver/
PES5.exe
readme.htm
settings.exe

Go to kitserver folder and run setup.exe. The "PES5.exe" in the
drop-down list should be pre-selected, so just press "Install" button.
The kitserver should show a message box saying that the installation
was successful. (If you get an error message, make sure that you
not currently running the game, and that the PES5.exe file is not 
marked as read-only)


2. Uninstallation
-----------------
Go to kitserver folder and run setup.exe. The "PES5.exe" in the
drop-down list should be pre-selected. Press "Remove" button.
The kitserver should show a message box saying that the uninstallation
was successful. (You can now delete the whole kitserver folder, if you
want.)


3. Kit file names in KDB 
------------------------
Each team has a set of 20 unique ids that correspond to its textures
For example, in full PES5 PC, Real Madrid has the range 7976 - 7995. 
See TEAMNUM.txt for id information about every team in the full game. 

(Keep in mind that in the demo, the ids are slightly different: 
Arsenal 5810-5829, Chelsea 5930-5949, Real 7930-7949, Valencia 8090-8109)

Within those 20 files, each plays a certain role:

REAL MADRID (full game)
~~~~~~~~~~~~~~~~~~~~~~~
07976.png - GK home kit (all-in-one)
07976-gloves.png - goalkeeper gloves for GK home kit
07979.png - GK home numbers
07979-palA.png - dummy image with palette numbers on home shorts
07979-palB.png - dummy image with palette numbers on away shorts
07980.png - GK home font
07981.png - GK away kit (all-in-one)
07981-gloves.png - goalkeeper gloves for GK away kit
07984.png - GK away numbers
07984-palA.png - dummy image with palette numbers on home shorts
07984-palB.png - dummy image with palette numbers on away shorts
07985.png - GK away font
07986.png - PL home shirt
07987.png - PL home shorts
07988.png - PL home socks
07989.png - PL home numbers
07989-palA.png - dummy image with palette numbers on home shorts
07989-palB.png - dummy image with palette numbers on away shorts
07990.png - PL home font
07991.png - PL away shirt
07992.png - PL away shorts
07993.png - PL away socks
07994.png - PL away numbers
07994-palA.png - dummy image with palette numbers on home shorts
07994-palB.png - dummy image with palette numbers on away shorts
07995.png - PL away font

NOTE: Just like for goalkeepers, for player kits you can also use the
so-called "all-in-one" kits: where shirt, shorts, socks are all in one image.
Kitserver will automatically split the all-in-one kit into individual parts
at run-time. If using all-in-one kit, just name it as PL home(away) shirt, 
and don't include anything for shorts and socks. I'm using Real Madrid
away (blue) kit as an example of this in sample KDB:

Sliced-up kit:        |   All-in-one kit:
----------------------+------------------
07991.png  - shirt    |   07991.png
07992.png  - shorts   |
07993.png  - socks    |


To make KDB less flat and confusing, each team has a separate folder,
named after its first ID. For Real Madrid it is "07976" (for the full game,
and "07930" for the demo). 
IMPORTANT: Don't forget the leading "0" - it is
required in folder name (although optional in image file names)


4. Image specification:
-----------------------

1. Kit image formats:
    a) 512x256 Indexed PNG (8-bit or 4-bit) with RGBA palette
    b) 512x256 Indexed BMP (8-bit or 4-bit) with RGBA palette (non-standard BMP)

2. Gloves image formats:
    a) 64x128 Indexed PNG (8-bit) with RGB or RGBA palette
    b) 64x128 Indexed BMP (8-bit) with RGB or RGBA palette
    (alpha bytes in palette are ignored for gloves)

When replacing game textures, kitserver first looks for a PNG file,
and if that doesn't exist, then tries to load a BMP file. Keep that in
mind if you experiment with images. For example, if you put both
07986.png and 07986.bmp into KDB folder, the PNG will be used.

2. For each team, all player PNG/BMP files must use the same palette.
3. Player kits can be one of two kinds
    a) "all-in-one" (example: Real Madrid away kit - 07991.png)
    b) or split into separate files - shirt, shorts, socks. 
        (example: Read Madrid home kit - 07986.png, 07987.png, 07988.png)

4. GK kits are "old-style" kits (everything - shirt, shorts, socks -
is in the same PNG/BMP.), they can have their own palettes.
5. Transparency: first color of the shared player palette must be 100% transparent.


5. Sample KDB:
--------------

The KDB folder contains an example of image configuration for Real Madrid,
Newcastle United, and France. For Real, there are two folders: 07930 and 07976.
The "07930" folder is used with the demo, and the "07976" - with full game. They
don't interfere with each other, so you don't need to delete the one that's for
the demo, if you're playing the full game, and vice versa. Newcastle and France
examples are for full game. There are also 2 examples of kit attribute files 
(attrib.cfg)

DEFINING KIT ATTRIBUTES
~~~~~~~~~~~~~~~~~~~~~~~

This release of the kitserver only supports 2 most important ones: 
3D-model id and collar type. There are more attributes that a kit has, and they
will be implemented in future releases. (NOTE: attrib.cfg files and collar/model
runtime adjustment is only implemented for full version of the game. When used 
with demo, kitserver simply ignores attrib.cfg files.)

These attributes can be set in "attrib.cfg" file, which should be placed into 
corresponding team's folder. For instance, for Newcastle, the attrib.cfg will 
go into KDB/06116 folder.  The format of attrib.cfg file is simple. First come
global attributes, which apply to the whole team - regardless of kit. Right now
only one attribute is supported:

editable = yes/no

This allows to make licensed kits editable. 
Default value is "no", meaning that strip editing for licensed kits is disabled.
This attribute is irrelevant for non-licensed kits, as they are always editable.

After global attributes, kit sections begin. Each section describes one kit. 
A section has a header, which identifies which kit the attributes are 
defined for. Like this:

[pa]

The header is followed by kit attribute definitions.
Attribute definition has the following format:

attribute = value

IMPORTANT: Spaces on both sides of the "=" are necessary.
The attrib.cfg file may also contain comments, which are solely for
user's convenience, and are ignored by KitServer. Comment starts with
a "#" character and continues until the end of line.

(For those who had used previous versions of Kitserver - for PES4/WE8I,
you'll notice that the prefedined section names changed. They are now
"ga", "gb", "pa", "pb" - for home goalkeeper, away goalkeeper, home player, 
and away player respectively.)

SUPPORTED ATTRIBUTES:

"collar"
Two possible values: yes or no. 
Defines whether the shirt has a collar or not. Note that not all 
shirt models support collars, so even if you specify this attribute
as "yes", it's not guaranteed that the shirt will appear with collar,
unless you also specify a 3D-model that supports collars.

"model"
Specifies which 3D-model should be used with this kit. While this
attribute can be specified separately for player and goalkeeper kits,
it looks that the game ignores the GK setting, and uses player model
for both the player kit and the goalkeeper kit. (It was the same way
in PES4/WE8I) The value is a decimal integer number, specifying the 
3D-model id. You'd have to experiment with different values yourself,
or find a good site with a list of them :) Here's a couple of examples that
i tried: 0 - default model, 78 - narrow back model, 31 - wide back.


6. Credits:
-----------
Programming: Juce
Testing: biker_jim_uk, ntalex
Sample kits: Spark, kel
Sample gloves: biker_jim_uk
Real Madrid numbers/fonts: provided by foxtrot (author unknown)
Newcastle number/fonts: taken from the game (Arsenal), palette mods by Juce.

Kitserver uses the following open source libraries:
- pngdib by Jason Summers 
http://entropymine.com/jason/pngdib/
- libpng by Guy Eric Schalnat, Andreas Dilger, Glenn Randers-Pehrson, and others 
http://libpng.org/pub/png/libpng.html
- zlib by Jean-loup Gailly and Mark Adler, and others
http://www.zlib.net/

