Message Board


Message Board > Fenix / Bennu / Gemix / DIV > fpg (and map?) file format

November 25, 2006, 22:15
fenics
None
19 posts

I'm looking for info on the FPG file format(both 16 bit and 8 bit, compressions used, etc). there used to be some info on my div manual (lost it) and on the Flamingbird forum, but it's gone now. Any info on .map, .pal, .fnt, etc files is handy too... I appreciate any help, thanks in advance... :)

[Edited on November 25, 2006 by fenics]
____________
#
November 25, 2006, 23:24
t money
MRF
22 posts

what kind of info? do you have a specific question? heres what's in the appendix of the div manual:


Head(+0)
'f','p','g'- 3bytes (ascii).
1A0D0A00- 4bytes (hex).
Version- 1 bytes(0).
Subtotal: 8 bytes.
______________________________________________

Palette(+8)
(See PAL file)
Subtotal: 768 bytes.
______________________________________________

Ranges of colours (+776)
(See PAL file)
Subtotal: 576 bytes.
______________________________________________

Graphic Maps contained in the file (+1352)
To the end of file, description of a graphic map.

Code of the graphic- 1 double word.
Length of the record in bytes- 1 double word.
Description- 32 bytes (ascii).
Name of file- 12 bytes.
Width- 1 double word.
Height- 1 double word.
Points number- 1 double word.

Description of point x Points number.

Coordinate x- 1 word.
Coordinate y- 1 word.

Graphic Map

Points of the map- Width x Height bytes.

Subtotal (per each map): 64+(4x points number)+(width x Height)
______________________________________________

Total: 1352 + Records of the maps.
____________
surrogate: wink... did you say wink, or did you wink?

michael: he said that too dad.
#
November 26, 2006, 00:35
fenics
None
19 posts

Thanks a lot. Yeah, I meant info about the file format structure. That was what I needed. I still need info on .pal files and 16 bit fpg's and such though.
____________
#
November 26, 2006, 01:57
PEader
お前はもう死んでいる
1486 posts

If you are familiar with C then you could work out the format from the source code for the fpg tool that comes/came with fenix.
____________
I see 57,005 people.
#
November 26, 2006, 03:14
fenics
None
19 posts

I'm not VERY familiar with c, but even so that is very helpfull, thank you :)
____________
#
November 26, 2006, 15:41
PEader
お前はもう死んでいる
1486 posts

Well you can always ask here for help. ;=)
____________
I see 57,005 people.
#
November 26, 2006, 15:45
yonni
None
420 posts
The info on PAL files in the DIV manual:

--------------------------------------------------------
PAL Files

Head(+0):
'p','a','l' 3 bytes (ascii).
1A0D0A00 4 bytes (hex).
Version 1 byte (0).
subtotal: 8 bytes.

Palette(+8)
256 colour components:
Red 1 byte (0..63).
Green 1 byte (0..63).
Blue 1 byte (0..63).
Subtotal: 768 bytes.

Range of colours(+776)
16 definitions of range:
Number of colours 1 byte (8,16 o 32)
Type of range 1 byte (0:direct, 1-2-4-8 editable each "n" colours).
Fixed 1 byte (0:no, 1:yes).
Black colour 1 byte
Colours in the range 32 bytes (according to type).
Subtotal: 576 bytes.

TOTAL: 1352 bytes.

NOTE:
To export to other formats, which lack the information about the range of colours, to DIV Games Studio files, the 576 bytes of the ranges must be defined as shown:
16,0,0,16 dup (0),
16,0,0,16 dup (16),
16,0,0,16 dup (32),
...
16,0,0,16 dup (240)
These 576 bytes cannot be defined as zeros or they would make the file not valid.
--------------------------------------------------------



There you go, hope that helps.
____________
#
November 27, 2006, 14:27
Dennis
どこかにいる
2092 posts

That feels like reading a receipt :P
That was in the DIV2 manual?

[Edited on November 27, 2006 by Dennis]
____________
Kwakkel
#
November 27, 2006, 18:03
yonni
None
420 posts
That was the DIV original manual, its an exact transcription.
____________
#
November 29, 2006, 13:53
fenics
None
19 posts

yeah, very useful, thank you. though I don't really get the whole color ranges thing. if I read in the pixel data(basically just a list of palette indexes o.o), replacing it with rgb values using the 256 color components in the palette, I get a perfect looking picture. well, almost perfect but that has nothing to do with this... what are these color ranges in the palette for? and why are the rgb values of the colors in the palette numbers from 0-63, not 0-254 like I'd.. expect them to be?
____________
#
November 29, 2006, 21:43
PEader
お前はもう死んでいる
1486 posts

Quoting fenics:
yeah, very useful, thank you. though I don't really get the whole color ranges thing. if I read in the pixel data(basically just a list of palette indexes o.o), replacing it with rgb values using the 256 color components in the palette, I get a perfect looking picture. well, almost perfect but that has nothing to do with this... what are these color ranges in the palette for? and why are the rgb values of the colors in the palette numbers from 0-63, not 0-254 like I'd.. expect them to be?

The colour ranges where use inside the Div Games Studio map editor for gradients, maybe for other things also? I think the 0-63 is a throw back to the MS-DOS days. I asked a few times on the forums and nobody answered me. It was quite annoying not being able to use 256 shades. So if you find out why please tell me.
Also I think you mean 0-255 ;-)
____________
I see 57,005 people.
#
November 29, 2006, 23:10
fenics
None
19 posts

Ah okay, so I don't have anything to do with the color ranges then... Yeah, I meant 0-255 :B still... *waits for someone to explain the 0-63*
____________
#
November 29, 2006, 23:21
PEader
お前はもう死んでいる
1486 posts

Quoting fenics:
Ah okay, so I don't have anything to do with the color ranges then... Yeah, I meant 0-255 :B still... *waits for someone to explain the 0-63*

It is because of VGA. VGA was only able to display a total of 262,144 colours which is 64^3. I'm going to leave it at that. VGA could only display that amount of colours and Div Games Studio's palettes reflect the limitations of that.
____________
I see 57,005 people.
#
October 1, 2007, 22:29
fenics
None
19 posts

*snip*

problem solved due to reply in chat :D

[Edited on October 2, 2007 by fenics]
____________
#
October 2, 2007, 19:47
Fiona
games are terrible
-9616558 posts

Quoting Dennis:
That feels like reading a receipt :P
That was in the DIV2 manual?


Haha the div2 manual is perhaps the laziest pile of shit ever, especially in comparison to the div1 manual.

If I had bought div2 and hadn't previously used div, I'd have gone "what the fuck" and taken it back.

Infact it was just a defective product that should never have been allowed out of the door, we should have all taken it back.

[Edited on October 2, 2007 by Fiona]
____________
laffo
#
October 3, 2007, 09:15
fenics
None
19 posts

I bought div2 as imported version; it was in english and I had the div1 manual in dutch. They were the same, but the english version was a lot more useful, since it wasn't full of stupid translations of terms that shouldn't even be translated >.>
____________
#
October 9, 2007, 00:23
Dennis
どこかにいる
2092 posts

Quoting Fiona:
Quoting Dennis:
That feels like reading a receipt :P
That was in the DIV2 manual?

Haha the div2 manual is perhaps the laziest pile of shit ever, especially in comparison to the div1 manual.

If I had bought div2 and hadn't previously used div, I'd have gone "what the fuck" and taken it back.

Infact it was just a defective product that should never have been allowed out of the door, we should have all taken it back.
it should have been a download patch, since it was DIV1 with upgraded features, and also receive money when you download it for being so brave to patch a perfectly working program to a bugged version.

[Edited on October 9, 2007 by Dennis]
____________
Kwakkel
#

Message Board > Fenix / Bennu / Gemix / DIV > fpg (and map?) file format

Quick reply


You must log in or register to post.
Copyright © 2005 Booleansoup.com
Questions? Comments? Bug reports? Contact us!