Issue with wallsets that use transparent wall gfx

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
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Issue with wallsets that use transparent wall gfx

Post by Lord_BoNes »

While converting the DM2 thicket wallset, I noticed that DSB has some strange behavour with the wall graphics. There are many times that the default wallset's floor (grey bricks) shows through the transparent sections of the wall (it's not using the thicket floor underneath the thicket walls).
I suggest adding a new variable for wallsets, a flag that basically says "contains transparent walls, always draw floor underneath for any tiles that use these walls"... it could just be a boolean value that you slap onto the end of dsb_make_wallset.

EDIT: It only seem to show the default floor when you stand back a bit... it seems to work the way it should when you're right up against the wall... stepping to the side, or moving back a square reveals the evil grey bricks.
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
Gambit37
Should eat more pies
Posts: 13718
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Issue with wallsets that use transparent wall gfx

Post by Gambit37 »

There's an alternate ceiling/floor rendering mode that I use for mixing short and tall wallsets on the same level. Turning that on might solve the transparency issue?

It's in Edit > Level Info > "Iterated Alt Ceiling Draw" - toggle it to on.
User avatar
Gambit37
Should eat more pies
Posts: 13718
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Issue with wallsets that use transparent wall gfx

Post by Gambit37 »

Also, are you sure you're painting the floor/ceiling centre sub-tile as well as all the side sub-tiles? You are using the "paint wallset" mode, right?
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Re: Issue with wallsets that use transparent wall gfx

Post by Lord_BoNes »

I've only been painting the centre of the wall square. And I'll try the "Iterated Alt Ceiling Draw" mode...

Alt ceiling mode makes the problem stay on all the time (the default grey bricks always stay visible above and below the thicket walls)
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Re: Issue with wallsets that use transparent wall gfx

Post by Lord_BoNes »

And painting the other sides of the wall tile doesn't make any difference. The only thing that I've found that stops it is setting the whole level's wallset to the thicket one, but this just feels like a bandaid.
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
Gambit37
Should eat more pies
Posts: 13718
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Issue with wallsets that use transparent wall gfx

Post by Gambit37 »

Any chance of posting screenshots from different views, and the corresponding ESB map with wallpaint shown? I can't picture what you're describing.
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Re: Issue with wallsets that use transparent wall gfx

Post by Lord_BoNes »

In RTC, it would be setting the DM2 thicket wallset's floor and roof graphics to the default DM1 grey brick floor/roof...
But, every floor tile has the normal thicket grass, and the thicket sky... and every wall tile has the dodgy looking grey brick floor/roof.

When "Iterated Alt Ceiling Draw" is off, the grey bricks seem to appear and disappear, but the grey bricks hang around when it's turned on.
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
Gambit37
Should eat more pies
Posts: 13718
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Issue with wallsets that use transparent wall gfx

Post by Gambit37 »

I still need a screenshot, picture paints a 1000 words and all that... ;-)
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Re: Issue with wallsets that use transparent wall gfx

Post by Lord_BoNes »

Image
You see the grey brick floor/roof? The wall is using the same wallset as the floor around it.
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
Gambit37
Should eat more pies
Posts: 13718
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Issue with wallsets that use transparent wall gfx

Post by Gambit37 »

Cheers; ok, that's clearly not right. ;-)

You're sure you painted the necessary alt floor tiles too?

When you paint alt wallsets on a wall (rather than a floor), a small grey "hole" is shown in the middle of the tile. If you point to that hole in with your mouse while in wallpaint mode, the status bar should show it to be the name of your alt wallset. It may have got changed to "default" if you've been painting/re-painting areas. When this happens, I find it's quickest to switch back to default, drag-paint out all the errors (removing the pink), and then paint the alt wallsets again. Zooming in may help.
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Re: Issue with wallsets that use transparent wall gfx

Post by Lord_BoNes »

I always use double zoom, and yes, all the tiles are painted with centred wallset objects.
As I said before, the only way I've found to stop it is by setting the whole level's wallset to thicket... but then I'd run into the same problem if I wanted to use the misty thicket too, or even the standard DM2 walls... they have transparent sections, not big, but they're there. And I'd be able to see the thicket sky through those tiny transparent areas.
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
Sophia
Concise and Honest
Posts: 4240
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: Issue with wallsets that use transparent wall gfx

Post by Sophia »

I agree with Gambit. It seems like what is happening is that you've painted the walls, but you haven't actually painted the entire tile. That is, you have to paint the center, not just paint four walls.

I also think the interface for painting/re-painting walls like that is clumsy and things like this crop up because of it. I'm open to suggestions.
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Re: Issue with wallsets that use transparent wall gfx

Post by Lord_BoNes »

I'm not painting the outer walls of the tile, I am painting the center. It seems to be an issue with handling transparent wall graphics.
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Re: Issue with wallsets that use transparent wall gfx

Post by Lord_BoNes »

Image
This is the view from the editor. I could upload the dungeon, but it'd have to wait until I wake up (it's currently 5:15am here... yawn)

EDIT: If you think that it is clumsy, my only suggestion is to not allow wallset objects to be placed anywhere but the centre of the tile.
Last edited by Lord_BoNes on Tue Apr 09, 2013 9:14 pm, edited 1 time in total.
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
Sophia
Concise and Honest
Posts: 4240
Joined: Thu Sep 12, 2002 9:50 pm
Location: Nowhere in particular
Contact:

Re: Issue with wallsets that use transparent wall gfx

Post by Sophia »

That's very... purple. :mrgreen:

No, it's ok, I think I get it now. :)
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Re: Issue with wallsets that use transparent wall gfx

Post by Lord_BoNes »

I'm guessing that the cause is that you've written it not expecting transparent walls, so where they're transparent it doesn't actually bother drawing the floor/roof underneath the wall graphic (it just ends up using the level's default floor/roof image because nothing else gets drawn for the tile... I'm guessing that part of the initial dungeon rendering is drawing the floor/roof, then you slap the walls & objects over it)
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
User avatar
Gambit37
Should eat more pies
Posts: 13718
Joined: Wed May 31, 2000 1:57 pm
Location: Location, Location
Contact:

Re: Issue with wallsets that use transparent wall gfx

Post by Gambit37 »

^^ Makes sense. I guess DSB simply isn't drawing that alt floor.
If you think that it is clumsy, my only suggestion is to not allow wallset objects to be placed anywhere but the centre of the tile.
No! Sometimes you need to paint corners and intersections and not he whole tile...
User avatar
Lord_BoNes
Jack of all trades
Posts: 1064
Joined: Mon Dec 01, 2008 12:36 pm
Location: Ararat, Australia.

Re: Issue with wallsets that use transparent wall gfx

Post by Lord_BoNes »

Gambit37 wrote:No! Sometimes you need to paint corners and intersections and not he whole tile...
Makes sense. There would be situations that require "wall based" painting. But, then my suggestion to Sophia would be to make the "lock wallsets to centre" option part of the editor options like "Don't save instances in Limbo" and "Lock flooritems to the centre of a tile"... you could just add another entry to that list called "Lock wallsets to the centre of a tile".
 
Image

1 death is a tragedy,
10,000,000 deaths is a statistic.
- Joseph Stalin

Check out my Return to Chaos dungeon launcher
And my Dungeon Master Clone
Post Reply