BDCFF - RandSeed and RandomFill

Everything about the various Boulder Dash tools, and other stuff created by the fans.

Moderator: Admin

Post Reply
subotai
Member
Posts: 251
Joined: Sun Jan 25, 2009 4:19 pm

BDCFF - RandSeed and RandomFill

Post by subotai »

Hi,

I have got a question about the bdcff file format. I don't understand how to use RandSeed and RandomFill. It would be nice if anybody could give me an example. I use Delphi but an example in C would help me too.

Thanks
subotai
User avatar
LogicDeLuxe
Member
Posts: 638
Joined: Sun Jul 15, 2007 12:52 pm
Contact:

Post by LogicDeLuxe »

A C implementation (commented with the original assembler code) can be found in Peter Broadribb's document: http://www.elmerproductions.com/sp/pete ... %20numbers (It's only the number generator, though, not the actual placement)
I also put a link to this on my site: http://www.gratissaugen.de/erbsen/bdcff.html

A Pascal (which is the language Delphi uses) version can be found in my old text version of my Dash-FAQ: http://www.gratissaugen.de/erbsen/BDFAQ.ZIP

The algorithm predates BDCFF of course, and therefore those are simply reimplementation of the old Atari/C64 code. If you want code which actually reads a BDCFF file and places all the random objects in the cave, your best bet would be the GDash source code, I think.
subotai
Member
Posts: 251
Joined: Sun Jan 25, 2009 4:19 pm

Post by subotai »

Thanks for your reply LogicDeLuxe :D

I'm writing my own bd clone in delphi and maybe (if not too complicated and too much work) I'd like to support the bdcff. Finally I only have to read the bdcff files and convert them to my own levelmap format.
The algorithm predates BDCFF of course, and therefore those are simply reimplementation of the old Atari/C64 code. If you want code which actually reads a BDCFF file and places all the random objects in the cave, your best bet would be the GDash source code, I think.
I think this could help me.
subotai
Member
Posts: 251
Joined: Sun Jan 25, 2009 4:19 pm

Post by subotai »

I got it :D

Your pascal implementation works perfect. Finally I understood how to use it. I'm sure that I gave up without your help.

Thanks again!
Post Reply