Dangerous Dave modding

Tools, assembly, and file formats.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

Actually, are there any unobtrusive apps to convert between BMPs and PNGs? It'd be nice to use PNGS (Or GIFs) instead of bitmaps for KeenGraph.
User avatar
Napalm
Posts: 19
Joined: Sat Oct 27, 2007 6:49 am
Location: UK

Post by Napalm »

I can write you a small function that you can use, to output PNG files.

Napalm
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

And reconvert them to BMP?
User avatar
Napalm
Posts: 19
Joined: Sat Oct 27, 2007 6:49 am
Location: UK

Post by Napalm »

If you like. What language are you coding KeenGraph in? So I know what level of compatibility it should have.

Napalm
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

It's in Quick Basic compiled with FBC into a 32-bit windows executable. KG works with 16 and 256 (Using only 32 of those colors) color bitmaps, and occasionally with monochrome. (For rare graphics like the Keen galaxy terminator text.)
User avatar
Napalm
Posts: 19
Joined: Sat Oct 27, 2007 6:49 am
Location: UK

Post by Napalm »

OK, So I just checked out FBC (Free Basic Compiler) and it supports external C libraries. So we can use that method for you to add this functionality to your application. And even better your compiling as 32bit so I have no worries with fiddling with CRC32 code and the like to get it to work with 16bit.

I'll get back to you soon with some code to try.


Napalm
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

it supports external C libraries.
*Checks*


WHAAAAAT?!
User avatar
Crazy Daver
Posts: 8
Joined: Mon Mar 07, 2011 12:21 am
Location: Russia
Contact:

Post by Crazy Daver »

After decompression of the files (first three) of EGAGRAPH.DAV get this:

1) http://www.docme.ru/doc/50346/1
2) http://www.docme.ru/doc/50348/2
3) http://www.docme.ru/doc/50349/3

They do not like the masked picture table and sprite table.
Where am I now made a mistake?
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

What are you doing this for? There is a way to edit Dave 3 already...

1 looks like a good bitmap table, 2 looks like a good sprite table.


Remember that the bitmap table is a collection of heights and widths for the bitmap images, and the sprite table is a collection of similar variables for the sprites. Nothing at all is wrong with those two files.

The first bitmap is 320x200, as is the second, the third is 48x48. Likewise the first sprite is 24x16.


I can link you to some extracted graphics if you'd like.
User avatar
Napalm
Posts: 19
Joined: Sat Oct 27, 2007 6:49 am
Location: UK

Post by Napalm »

levellass wrote:
it supports external C libraries.
*Checks*


WHAAAAAT?!
Yep.. see here: http://www.freebasic.net/wiki/wikka.php ... acingWithC


Napalm
Post Reply