From kde-games-devel Fri Jun 13 07:03:12 2003 From: blachner () gmx ! de Date: Fri, 13 Jun 2003 07:03:12 +0000 To: kde-games-devel Subject: [Kde-games-devel] Re: REKO cardsets for KDE cardgames? X-MARC-Message: https://marc.info/?l=kde-games-devel&m=105548792026813 A I promised yesterday, below is a description of the REKO format. It is taken from ftp://de.aminet.net/pub/aminet/util/dtype/sdiREKO-DT.lha and written by DirkStöcker. ================================================ Here the REKO data format for all which want to know it. It should be helpful if you want to support REKO cardsets in your own card games, which is always a good idea I think. A short note: ULONG is unsigned 32 bit, UWORD is unsigned 16 bit and UBYTE is unsigned 8 bit data. Amiga cardset structure: ************************ The file consists of one information structure and the data for every card. struct RekoHeader /* REKO file header */ { UBYTE rh_ID[4]; ULONG rh_BodySize; /* Motorola big endian format */ ULONG rh_CardSize; /* Motorola big endian format */ UWORD rh_Height; /* Motorola big endian format */ UWORD rh_Width; /* Motorola big endian format */ ULONG rh_ModeID; /* Motorola big endian format */ UBYTE rh_Depth; UBYTE rh_CardsCnt; }; There exists two big different card formats which are normal and HAM cards. 1) Normal card files: rh_ID always "REKO" rh_BodySize rh_CardSize*rh_CardsCnt+(1<