Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Gamedev:Sidepics: Difference between revisions

From FIGHTORDER
imported>Abma
No edit summary
imported>Flozi
m Filename: update links
Line 11: Line 11:


===Filename===
===Filename===
The filename must be the same as the name field in [[Units:SideData_TDF|Sidedata.tdf]] file. For example, if our sidedata file contains the following:
The filename must be the same as the name field in [[Sidedata.lua]] file.
 
[SIDE0]
{
    name=Empire;
    commander=IMPCOM;
}
[SIDE1]
{
    name=Old Republic;
    commander=REPCOM;
}
 
We would need two sidepic bitmaps, named "empire.bmp" and "old republic.bmp" respectfully.


[[Category:Game development]]
[[Category:Game development]]

Revision as of 18:46, 17 July 2011

Sidepics are the faction icons which display in the Multiplayer Lobby. They follow simple rules:

  • Must be 16x16 pixels
  • Must be in Windows Bitmap (.bmp) format
  • White (RGB: 255,255,255) is transparent
  • Must be located in the "sidepics" directory (see below)
  • Must be named the same as the "name" field in sidedata.tdf (see below)

Directory

The "sidepics" directory goes in your mod's root. Plese see Mod_Development:Archives for more details on the directories Spring reads.

Filename

The filename must be the same as the name field in Sidedata.lua file.