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.
What about CSB (DMBuild)
Forum rules
Please read the Forum rules and policies before posting.
Please read the Forum rules and policies before posting.
- Paul Stevens
- CSBwin Guru
- Posts: 4319
- Joined: Sun Apr 08, 2001 6:00 pm
- Location: Madison, Wisconsin, USA
Re: What about CSB
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.
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.
- ChristopheF
- Encyclopedist
- Posts: 1544
- Joined: Sun Oct 24, 1999 2:36 pm
- Location: France
- Contact:
Re: What about CSB
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...
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...
Christophe - Dungeon Master Encyclopaedia
- Paul Stevens
- CSBwin Guru
- Posts: 4319
- Joined: Sun Apr 08, 2001 6:00 pm
- Location: Madison, Wisconsin, USA
Re: What about CSB
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.
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.
Re: What about CSB
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.