(not a bug) Display 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. You may Image to help finance the hosting costs of this forum.
Post Reply
User avatar
Joramun
Mon Master
Posts: 927
Joined: Thu May 25, 2006 7:05 pm
Location: The Universe

(not a bug) Display bug

Post by Joramun »

Here is the situation:
A - amalgam_empty on south wall (which also contains two other deactivated objects, all south)
W - a plain wall
D - a door
P - party facing west (left here)
_ open tile

The amalgam appears "east-oriented" in place of the wall corner.
The south wall doesn't appear at all.
Same goes in the mirrored situation (and in any direction).
I didn't verify all possible positions though.

A D W
_ P _

or

ADW
_ _ P

OR

ADWW
_ _ _ P
What Is Your Quest ?
User avatar
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: (not a bug) Display bug

Post by Sophia »

If there is no sideview defined, DSB will use the front view as the side view. This is desirable in a lot of cases. Perhaps not this one, but I wouldn't call it a bug. :)
User avatar
Joramun
Mon Master
Posts: 927
Joined: Thu May 25, 2006 7:05 pm
Location: The Universe

Re: (not a bug) Display bug

Post by Joramun »

Ok, but the walls are not properly displayed behind the object. this might be because of the bitmap size.
Using another item's side graphics also didn't solve the thing.
What Is Your Quest ?
User avatar
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: (not a bug) Display bug

Post by Sophia »

Joramun wrote:Ok, but the walls are not properly displayed behind the object. this might be because of the bitmap size.
Yes, I think it is.
Joramun wrote:Using another item's side graphics also didn't solve the thing.
What did you do? It worked fine for me.

I created the situation you described in the test_dungeon, and then added this line to the test_dungeon's objects.lua:

Code: Select all

obj.amalgam.side=gfx.hook_side
That code caused the amalgam's side view to be defined as a hook, and everything worked as expected, with the amalgam showing up as a hook from the side view, and properly from the front.
User avatar
Joramun
Mon Master
Posts: 927
Joined: Thu May 25, 2006 7:05 pm
Location: The Universe

Re: (not a bug) Display bug

Post by Joramun »

Sorry, my bad, I mixed amalgam and amalgam_empty in my objects.lua.
What Is Your Quest ?
Post Reply