| 1 | # Ad Banners |
| 2 | --- |
| 3 | |
| 4 | ### Configuration File |
| 5 | The configuration file consists of a single array named ````ads```` which can contain an unlimited number of elements. Each element contains 4 pairs in the following order: ````filename````, ````url````, ````client````, and ````lang````. |
| 6 | - ````filename````: A string containing the filename of the ad banner, should not include a path. |
| 7 | - ````url````: A string containing the URL that users should be directed to when clicking on the ad banner. |
| 8 | - ````client````: A string containing the 4 character client tag that the ad banner should be shown to, a string of "NULL" will cause the ad banner to be shown to any client. |
| 9 | - ````lang````: A string containing a 4 character language code that will be displayed to users who have enabled that particular language, a string of "NULL" will cause the ad banner to be shown to any user. |
| 10 | - Valid ````lang```` tags: ````enUS````, ````deDE````, ````csCZ````, ````esES````, ````frFR````, ````itIT````, ````jaJA````, ````koKR````, ````plPL````, ````ruRU````, ````zhCN````, ````zhTW````, ````NULL````. |
| 11 | |
| 12 | ### File Formats |
| 13 | | Client | Banner Format | |
| 14 | |------------|---------------| |
| 15 | | StarCraft, Warcraft 2, Diablo | PCX, SMK | |
| 16 | | Diablo 2 | SMK | |
| 17 | | WarCraft 3 | MNG, PNG | |
| 18 | |
| 19 | ### Banner Dimensions |
| 20 | - The dimensions for ad banners are **468 x 60** pixels |
| 21 | |
| 22 | ### How To Create SMK Files |
| 23 | 1. Download the [Old Smacker Tools](http://files.campaigncreations.org/resources/sc/programs/RADTools.zip) |
| 24 | 2. Run *smackerw.exe* and then click on the *Smack (compress) a graphics file.* |
| 25 | 3. On the left side, navigate to the folder where your ad banner is stored and select it. |
| 26 | 4. Under *Options*, click on the *Palette* tab. Check *Total palette colors to use:*, set it to *64* and check *Starting palette index to use:*, set it to *32*. |
| 27 | 5. Set *8-bit input palettes* to *Create new.* |
| 28 | 5. Click on the *Frame* tab and check *Create ring?* |
| 29 | 6. *Smack!* |
| 30 | |
| 31 | ### Notes |
| 32 | - It is not known how to create PCX files that will display properly in PvPGN |