Rules of Feudalism HOWTOS
How to make pictures
This document explains how to deliver own pictures. Please read this before delivering anything.
Pictures structure
To keep same pallete of all pictures (by now there is only 256 colors because of problems with higher resolutions in Allegro) all pictures are stored in one big picture called [data/datgr.dat] (From now on all paths are relative to main RoF directory). This picture is in GIF format (we'll use PNG in future). All informations how main picture contains all used graphic data are stored in many files, each with this structure (no whitespaces are allowed):
<x_position>,<y_position>
<x_size>,<y_size>
<x_offset>,<y_offset>
where:
- position fields are coordinates of first picture
- size fields are size of each picture
- offset is to next picture in x and y
Offset is used only (and read) only when using more than one picture (backgrounds, units).
Directory structure
Files about positions in main picture (called picture coordinates) are stored as follows:
- data/objs - contains:
- panel - info box picture
- minimap - minimap picture
- me_wsk - simple shape for mapeditor
- pics_a - units
- ~m - move pictures for unit ~
- ~f - fight pictures
- ~g - unit's face
- pics_b - background pictures (read Background howto for details). In this file are stored informations about position of first, size (rectangular. by now 32x32) and same offset.
- pics_bd - buildings pictures
- pics_d - doodad_pictures
Delivering pictures
When delivering pictures directly to Project coordinator <fijaljr@linuxfreemail.com> You must send package which contains:
- src/headers/colors.h - some colors informations.
- main picture [data/datgr.dat]
- ALL pictures coordinates stored properly in directory structure
But much better way to contact us is to deliver pictures to our Art director (sorry Philip, but i can't remember your mail adress - it's too complicated).
Philip - write ideas how to deliver pictures to you. If you think it's useless to inform people how send pictures directly to me, kick out above instruction.
Upgrade this document to your use and send it to me as fast as possible.