(fixed) Bug: Rendering of items on a table

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
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

(fixed) Bug: Rendering of items on a table

Post by Gambit37 »

Playing the test_dungeon, I noticed that items on the table downstairs will appear/disappear randomly as you move around. They are still pick-up-able, but sometimes invisible. Needs fixing ;-)
User avatar
Joramun
Mon Master
Posts: 927
Joined: Thu May 25, 2006 7:05 pm
Location: The Universe

Re: Bug: Rendering of items on a table

Post by Joramun »

Ha ! Finally someone else notices this !
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: Bug: Rendering of items on a table

Post by Sophia »

The problem is, *I* still can't get this to happen.
So it's hard for me to fix! :(
User avatar
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Bug: Rendering of items on a table

Post by Gambit37 »

Oh, really, that's weird. Perhaps your version has dev differences to the release package?

I also noticed the stat bars from the champion top bar randomly vanishing too....
User avatar
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: Bug: Rendering of items on a table

Post by Sophia »

Gambit37 wrote:Oh, really, that's weird. Perhaps your version has dev differences to the release package?
Not really. I don't use debug versions, really. Because of the amount of debugging information built into the release version, I mostly don't need to, and it (supposedly!) keeps things more consistent. What I compile is what you get!
Gambit37 wrote:I also noticed the stat bars from the champion top bar randomly vanishing too....
:shock:
User avatar
beowuuf
Archmastiff
Posts: 20686
Joined: Sat Sep 16, 2000 2:00 pm
Location: Basingstoke, UK

Re: Bug: Rendering of items on a table

Post by beowuuf »

Video card/operating system imparing a drawing routine somehow?
User avatar
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: Bug: Rendering of items on a table

Post by Sophia »

One of the small advantages of DSB being software rendered is that shouldn't happen!
I wonder, though. Are you guys running windowed or fullsceen? Can I see the first few lines of log.txt (like before it starts parsing all the Lua)?
User avatar
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Bug: Rendering of items on a table

Post by Gambit37 »

Sure, here's mine (windowed mode):

Code: Select all

INIT: Parsing configuration file
INIT: Using gamedir E:\Dungeon Master\Custom Games (Me)\Gamebooks\Maze of Zagor\_dsb47\test_dungeon (base:0)
INIT: Starting windowed mode
INIT: Using color depth of 32
INIT: Starting FMOD
INIT: Triple buffering unavailable or disabled.
LUA: Lua initialized
User avatar
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Bug: Rendering of items on a table

Post by Gambit37 »

Just looked at this again. This is what happens in WINDOWED mode:

I go down the stairs to the second level of the test_dungeon. If I stay standing on the stairs the first two items on the table are invisible, but I can see the further quiver and arrows. If I move forward so I'm right next to the table, they are still invisible (but pick-upable). I then sidestep right, forward one and turn to the table. Now the bow and quiver have vinished (first two items) and the axe and arrows are visible.

As I was writing the above paragraph, my mouse was over my browser window. Returning the mouse to the DSB window to move around the table, the bow and quiver appeared -- simply by moving the mouse over the window!

If I then move around the table and face it from different directions, all the items stay visible.

However, if I step 2 tiles away and face it (either from the stairs or opposite corridor), then the two front items disappear again. Moving back and forth one tile, the items appear and disappear.

If I move three tiles away, then I can see the quiver and arrows, but not the back row with the axe and bow. (though if the shading was dark enough, you probably wouldn't see these realistically anyway)

Dunno if this helps you at all...?
User avatar
Joramun
Mon Master
Posts: 927
Joined: Thu May 25, 2006 7:05 pm
Location: The Universe

Re: Bug: Rendering of items on a table

Post by Joramun »

I run it windowed, too! (same effects).
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: (unable to reproduce) Bug: Rendering of items on a table

Post by Sophia »

I may have fixed this. No promises. :)
User avatar
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: (unable to reproduce) Bug: Rendering of items on a table

Post by Gambit37 »

Oh, so you were able to reproduce it in the end?
User avatar
Sophia
Concise and Honest
Posts: 4307
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: (unable to reproduce) Bug: Rendering of items on a table

Post by Sophia »

No, I wasn't. That's why I don't know if I fixed it.
I just found some code in the function that draws the items on tables that, upon re-reading it, I realized that it shouldn't ever have worked. :D So I fixed that.
User avatar
Joramun
Mon Master
Posts: 927
Joined: Thu May 25, 2006 7:05 pm
Location: The Universe

Re: (unable to reproduce) Bug: Rendering of items on a table

Post by Joramun »

The bug seems indeed fixed !
What Is Your Quest ?
User avatar
Gambit37
Should eat more pies
Posts: 13773
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: (unable to reproduce) Bug: Rendering of items on a table

Post by Gambit37 »

Yep, I concur, this seems to be fixed now. Nice one :-)
Post Reply