Lokasoft - Home of ChessPartner

 
  • RSS
  • Add To My MSN
  • Add To Windows Live
  • Add To My Yahoo
  • Add To Google

Statistics

  • Entries (11)
  • Comments (0)

ChessPartner 4.1 - 5.3 piece set configuration file layout 

Monday, October 25, 2010 8:39:49 PM
A ChessPartner piece set consist of a '.sinf' file
and one or more bitmap  ( .bmp ) files.
The '.sinf' files is a simple textfile which descibes
the piece set.

The content of this file can be edited wiht notepad or
any other ascii editor.

The file must start with:

   [Pieceset Description]

followed by one or more lines in the form of
keyword=value pairs.

The following keywords can be used:

   PieceBmp=filename.bmp

The name of the bmp file containing the pieces.

   MaskBMP=filename.bmp

Optional name of a bmp file containing masks, if ommited
mask are either generated or taken from the main bmp
file.

   BoardBMP=filename.bmp

Optional name of a bmp file that can be used as a background
image.

   BoardRGN=filename.rgn

Optional name of a file that specifies a region for displaying
a non-rectangular window.



   Pieces=left,top,right,bottom,piecetype

There can be one or more lines with the Pieces keyword, each
line describes where the pieces or mask can be extracted from
one of the bmp files. The 'left,top,right,bottom' paramters
gives the rectangle in the bmp file where the piece(s) are
extracted. 'piecetype' defines which pieces are extracted.
First letter can be P for Piece or M for Mask ,followed by
the piece letters, uppercase for white, lowercase for black.
If more then on piece is given the rectangle is divided
horizontally in eaqal pieces.
e.g. Pieces=0,10,58,94,PP      ; defines a single white pawn
or
Pieces=0,110,72,194,MPBNRQK    ; defines all white pieces


   Mode=n

The display mode, n: 0=2D , 1=3D

   BestFit=widht,height

Size of the board to give an optimal display

   View=DV,DO,TVA,FWA

Only used for 3D board, controls the perspective.
DV=distance of view plane, default is 1000
DO=distance of object, default is -1000
TVA=Top view angle (radians), default is 1.0
FVA=Front view angle (radians), default is 1.570796327

   Origin=left,top

To shift the origin of the board, default is 0,0


Since version 4.3 the option to use font base piece sets was added.

	FontFace=Traveller Standard

Specify the font face. It must be a true-type font.

	FontWeight=0

The font weigth
0=default, 400=normal, 900=extra bold

	FontWhtColor=0
	FontWhtBkColor=0
	FontBlkColor=0
	FontBlkBkColor=0

Specify the font colors foreground and background for the black and
white pieces.
in hex rgb  0=black, ffffff=white

	FontFigurineMap=PNBRQKpnbrqk

Character mapping, ordered, white pawn,knight,bishop,rook,queen,king, black...

	FontFigurineMaskMap=PNBRQKpnbrqk

Character mapping used for mask.



New in ChessPartner 5.2.0.32

Optional name of a bmp file containing the white and blk fields.

   WhtFldBMP=filename.bmp
   BlkFldBMP=filename.bmp

   FldBmpScaleMode=0    - Scaling method, 0=stretch, 1=tile




               ------
DISCLAMER OF WARRANTY
THE INFORMATION IS PROVIDED "AS IS" AND NO WARRANTY
OF ITS ACCURACY IS GIVEN. THIS DOCUMENT DESCRIBES AN
INTERNAL FILE FORMAT WHICH CAN BE CHANGED ANY TIME
WHITOUT PRIOR NOTICES.

(C) Copyright 1999-2003, Lokasoft