Extended wall decorations

Discuss Chaos Strikes Back for Windows and Linux, an unofficial port of Chaos Strikes Back to PC by Paul Stevens, as well as CSBuild, an associated dungeon editor.

Moderator: Zyx

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
Adamo
Italodance spammer
Posts: 1534
Joined: Fri Apr 22, 2005 11:59 am
Location: Poland
Contact:

Extended wall decorations

Post by Adamo »

Paul Stevens wrote:
http://www.dianneandpaul.net/CSBwin/doc ... tions.html

Code: Select all

Extended Wall Decorations

The author of ConfluxIII demanded that we make it possible to define additional wall decorations. In order to provide the necessary variety in his dungeon, he had been forced to produce additional wallsets for his skins; an extremely tedious and wasteful process. Here is the result: the ability to display up to 262,000 different wall decorations arbitrarily on any level of the dungeon.

Specifying wall decoration locations -

Ah! The DSA becomes valuable again! Actuators commonly specify a wall decoration. For example, a pushbutton might specify that a 'Blue Button' be displayed on the wall. Normally, a DSA has no decoration. But! If the DSA is number 255, then its parameter A is used to specify a wall decoration from the CSBgraphics.dat file.
Format of Wall Decorations -

A Wall Decoration consists of three parts:

   1. An array of descriptors showing where the decoration should be displayed on each of 13 walls that the player can see while touring the dungeon.
   2. A bitmap of the side view of the decoration
   3. A bitmap of the front view of the decoration.

A 'Wall Decoration' segment of CSBgraphic.dat consists of those three parts, one after the other, with any padding necessary to make each part start on a four-byte boundary. (2 bytes of zero are needed between parts one and two. Parts two and three are, by definition, a multiple of four bytes in length and so no padding is necessary between them.) The two bytes of zero should be set to ZERO because we may find some use for them someday.
Wow, that seems cool!
so, ext wall decs are written in CSBgraphics.dat. Does Zyx made eight groups of rectangles for 13 decoration types? Or is there one rectangle group for the mostr common type?
What is the file type of ewd in CSBgraphics.dat? I assume it`s not the "portrait" type? Could you provide a demo showing them "real"?
Spoiler
(\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/)
Spoiler
(@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@)
Spoiler
(>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<)
User avatar
Paul Stevens
CSBwin Guru
Posts: 4319
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Post by Paul Stevens »

Adamo wrote:Does Zyx made eight groups of rectangles for 13 decoration types?
No. Each of Zyx's decorations has its own,
private set of 13 descriptors. If he has
1047 decorations then he has 13,611
descriptors.

Dungeon master cheated. Instead of having
13 descriptors for EACH decoration, it has
only 8 sets of 13 descriptors. Then, each
decoration in the dungeon must be drawn
to fit one of those 8 possibilities. This
was done to save space - each decoration
needed only 3 bits to describe its 13
rectangles.

I will make a better example if Zyx will
agree to let me use one of his decorations
from Conflux. I have no tools to generate
these graphics. I don't know how Zyx
does it.
What is the file type of ewd in CSBgraphics.dat
When using CSBgraphics.exe, the type is
"Wall Decoration".
User avatar
Adamo
Italodance spammer
Posts: 1534
Joined: Fri Apr 22, 2005 11:59 am
Location: Poland
Contact:

Post by Adamo »

Paul Stevens wrote:
No. Each of Zyx's decorations has its own,
private set of 13 descriptors. If he has
1047 decorations then he has 13,611
descriptors.
I don`t understand that. If I was him, I would use only original Dungeon Master rectangles for a decorations, which are similar (or almost similar) of these original ones.
So it is possible to use original rectangles sets for some ("obvious") decorations and special sets for "special" purposes?

I think it can be anything, any bitmap can be checked by ADGE. Just swap some original wall decoration with a custom one, turn on the "Graphics Info/Wall Decoration Editor" in ADGE program, and check the coordinates.
Spoiler
(\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/) (\__/)
Spoiler
(@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@) (@.@)
Spoiler
(>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<) (>s<)
User avatar
Zyx
DSA Master
Posts: 2592
Joined: Mon Jun 05, 2000 1:53 pm
Location: in the mind
Contact:

Post by Zyx »

you have to include with each DSA decoration, the 13 descriptors.
If you want to use one of the predefined sets in DM, you'll have to "copy & paste" it.
Please Paul, go ahead with one of my decorations. I don't have access to my files for the next weeks.
User avatar
Paul Stevens
CSBwin Guru
Posts: 4319
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Post by Paul Stevens »

If I was him, I would use only original Dungeon Master rectangles for a decorations
You are welcome to use whatever rectangles
you please. But you still must copy them
into the CSBgraphics.dat file because that
is the way CSBwin works. There is no way
for the alternate wall decorations to use the
DM rectangles from 'graphics.dat'. It uses
the ones stored with the bitmaps.
Post Reply

Return to “Chaos Strikes Back for Windows & Linux (CSBWin) / CSBuild”