(fixed) window spell at doors, bug

This forum is for the Lua scriptable clone of DM/CSB called Dungeon Strikes Back by Sophia. Use DSB to build your own highly customised games.

Moderator: Sophia

Forum rules
Please read the Forum rules and policies before posting.
Post Reply
User avatar
Parallax
DMwiki contributor
Posts: 424
Joined: Mon Aug 28, 2006 7:56 pm
Location: Back in New Jersey

(fixed) window spell at doors, bug

Post by Parallax »

When viewing a door through a wall, with the window (OH EW RA) spell, the door appears to be facing the party even when it should be perpendicular to the party.

It's a minor point, and I don't know how hard it would be to fix, or even if it's worth the effort.
User avatar
Gambit37
Should eat more pies
Posts: 13720
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Post by Gambit37 »

That's one of the things that *is* worth the effort to fix as it's a flaw that breaks the cohesiveness of the game world.
User avatar
Sophia
Concise and Honest
Posts: 4240
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Post by Sophia »

I actually knew about this, but it's one of those little things that I wasn't going to bother to fix unless someone else noticed... oh well. :wink:

Unlike DM, DSB doesn't keep track of a "direction" for its doors, so the front of the door has to be inferred. I could always make this something that could be optionally specified, though:

Here's my idea:
- Make it optional to specify the "front" of a door.
- If one is specified, it's easy to know when to render it.
- If not, don't render a door if there's a wall in front.

If anyone has a better idea speak now or this'll be what you're stuck with. ;)
User avatar
beowuuf
Archmastiff
Posts: 20687
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Post by beowuuf »

Lol, sophia, didn't you yourself fall foul of this for SS? With that mine door that faced the wrong way because the engine made door assumptions?

Your solution sounds good
User avatar
Sophia
Concise and Honest
Posts: 4240
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Post by Sophia »

beowuuf wrote:Lol, sophia, didn't you yourself fall foul of this for SS? With that mine door that faced the wrong way because the engine made door assumptions?
Exactly! That's why DSB initially made no assumptions-- the door was always presumed to be "facing front."

That doesn't work in some cases, though. :)
User avatar
Toni Y
Adept
Posts: 221
Joined: Sat Feb 07, 2004 8:54 am
Location: Finland

Post by Toni Y »

Incidentally, how do your stairs look like when viewed from the side with the magic eye? In DM it looks the same as an empty square (a potential spot to improve on), from the "back" the stairs look the same as front.
Toni Ylisirniö
Author of Grave of King Millias, Return of Chaos, and DM2 dungeons.
User avatar
Sophia
Concise and Honest
Posts: 4240
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Post by Sophia »

I just tested it.
Currently, DSB stairs have the same behavior as doors did before I changed this: You see the "front" bitmap from all sides.
To copy a bit of the code from doors and give them the DM behavior wouldn't be too difficult.

To improve further would probably require new bitmaps... :wink:
Post Reply