What about CSB (DMBuild)

Use this forum to discuss dungeon editors and other tools, like DMute (by George Gilbert, also working for RTC dungeons), DM Builder (by Sphenx), and ADGE by `rain. Includes DM editing tips and tricks.
Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
Paul Stevens
CSBwin Guru
Posts: 4318
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

What about CSB (DMBuild)

Post by Paul Stevens »

Will I someday be able to edit my CSB dungeons? If I try to
load the dungeon.dat that CSBwin uses, I get illegal operation.
User avatar
Sphenx
On Master
Posts: 566
Joined: Sun Sep 09, 2001 11:23 am
Contact:

Re: What about CSB

Post by Sphenx »

That it because the files for CSB4Win are in big endian order while those for DM PC are in little endian order.
DMBuild reads only the little endian order (since it is first designed to read DM PC dungeon.dat), and never checks.

I can do the conversion between these two orders (that's how I provided you the DM dungeon for CSB4Win)
I suppose the prefered solution is to have the editor checking which order it reads.

And you know that the dungeon.dat for CSB4Win is in a compressed form.

What I could do is:
1) provide the CSB map in little endian order (then usable for DM PC and the editor)
2) provide a util that convert and compress a dungeon.dat so that it can be used for CSB4Win.
User avatar
ChristopheF
Encyclopedist
Posts: 1538
Joined: Sun Oct 24, 1999 2:36 pm
Location: France
Contact:

Re: What about CSB

Post by ChristopheF »

The dungeon.dat files of DM for Amiga and Apple II GS are also compressed.
Do you know the compression algorithm used? Is this LZW? (I haven't checked yet).


I can also work on a dungeon converter (little endian/big endian) if you don't have enough time for this. Tell me, as we should not both work on the same tool...
User avatar
Paul Stevens
CSBwin Guru
Posts: 4318
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Re: What about CSB

Post by Paul Stevens »

I don't think I can say exactly why.....but I prefer an 'external'
utility to do the conversion. I suppose that one reason is that
I can control it and see what it has done to me. I have never been
a Unix user but their model of providing many simple tools to be
used in series rather than one complicated tool has been quite
successful.

I wrote the compression part of the existing utility and could
probably handle the decompression as well if someone is afraid
of looking at the code in CSBwin. It is huffman-like encoding as
I recall.
User avatar
Sphenx
On Master
Posts: 566
Joined: Sun Sep 09, 2001 11:23 am
Contact:

Re: What about CSB

Post by Sphenx »

Well, then I will keep little end reading (DM PC) in the editor and we'll use utilities to do conversion and compression for having a CSB4Win valid dungeon.
Post Reply

Return to “Editors and Tools (DMute, DM Builder, ADGE, etc.)”