&THISCELL problems

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
Toni Y
Adept
Posts: 221
Joined: Sat Feb 07, 2004 8:54 am
Location: Finland

&THISCELL problems

Post by Toni Y »

I tried to use &THISCELL, but no matter what combination of bits I set, I can't seem to get it to work as intended.

Expected was that setting bits 19 and 31 (2148007936) according to docs, would return TRUE for empty cell with nothing on it, but it always returned FALSE.

Likewise, I set all bits (4294967295), and then tried that minus all 2^n for n=0 to 31 individually, and none of those returned FALSE for an empty square. So, I'm rather baffled at what bit would mean "empty cell" since none seem to work to return TRUE or FALSE for it when it is set or unset.

So, long post short, what do I need to feed it to get it to work?
Toni Ylisirniö
Author of Grave of King Millias, Return of Chaos, and DM2 dungeons.
User avatar
Paul Stevens
CSBwin Guru
Posts: 4318
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Post by Paul Stevens »

I cannot make it work. See you
in a few hours, at most.
User avatar
Paul Stevens
CSBwin Guru
Posts: 4318
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Post by Paul Stevens »

Get CSBwin10_068.zip. That was quick!

The error was that an open room was
encoded as bit 18 rather than bit 19.

Zyx will have to decide if this might have
any effect on Conflux. (or use the new
version just to be safe)
User avatar
Toni Y
Adept
Posts: 221
Joined: Sat Feb 07, 2004 8:54 am
Location: Finland

Post by Toni Y »

Empty cells seem to work as expected now with bits 2^19 an 2^31 set. Thank you very much. :)
Toni Ylisirniö
Author of Grave of King Millias, Return of Chaos, and DM2 dungeons.
User avatar
Paul Stevens
CSBwin Guru
Posts: 4318
Joined: Sun Apr 08, 2001 6:00 pm
Location: Madison, Wisconsin, USA

Post by Paul Stevens »

Thanks for the report.

This is no way to introduce an Old
School designer to the DSA. :wink:
Post Reply

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