Announcement: Be excellent to each other.


Caravel Forum : DROD Boards : Bugs : Weird floor textures under crumby walls
New Topic New Poll Post Reply
Poster Message
Doom
Level: Smitemaster
Avatar
Rank Points: 3226
Registered: 07-05-2004
IP: Logged

File: Tworooms.JPG (27.6 KB)
Downloaded 172 times.
License: Public Domain
icon Weird floor textures under crumby walls (0)  
This seems a little weird.



If you clear both crumby walls in the picture, the SW one turns to mosaic floor. How exactly does the floors-under-breakable-walls thing work? Because you can create very unlogical effects with it.

I found this pretty difficult to replicate after discovering it in one room of mine. For example, the NE crumby wall in the pic must be there or the other one will turn to normal floor when broken.

[Last edited by Doom at 09-27-2005 07:30 AM]
09-27-2005 at 07:28 AM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
AlefBet
Level: Smitemaster
Rank Points: 979
Registered: 07-16-2003
IP: Logged
icon Re: Weird floor textures under crumby walls (+2)  
What's happening here is that when the room starts up, it must figure out what kind of floor to put under all the breakable walls. There's no floor information from the level editor because floor and breakable walls are on the same layer. So it has to guess.

It starts by finding all the "connected components" of breakable walls (meaning all the groups of breakable walls that are connected to each other), and looking at what kinds of floor squares border them. In this case, there are two such groups (they don't connect diagonally). The northeast square is obviously right next to normal floor, so the game puts normal floor under it. However, the other one is surrounded by walls, which provides no information about what floor is best. So it assigns it the type of floor that is most common in the room overall. In this case, there are twelve mosaic squares and eleven normal squares in the room. (It doesn't consider the floor under breakable walls, since it's only guessing at that anyway.) So it guesses the floor should be mosaic under the southwest breakable wall.

If you remove the northeast breakable wall, now there are twelve of each type of floor in the room, and the game tends to break ties in favor of normal floor over mosaic. So it assigns normal floor to the remaining breakable wall.

____________________________
I was charged with conspiracy to commit jay-walking, and accessory to changing lanes without signaling after the fact :blush.

++Adam H. Peterson
09-27-2005 at 08:10 AM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
Doom
Level: Smitemaster
Avatar
Rank Points: 3226
Registered: 07-05-2004
IP: Logged
icon Re: Weird floor textures under crumby walls (+1)  
Thanks, that was helpful.

However, it seems that one thing in your explanation isn't correct.

If you remove the northeast breakable wall, now there are twelve of each type of floor in the room, and the game tends to break ties in favor of normal floor over mosaic. So it assigns normal floor to the remaining breakable wall.
It's true that removing the other crumby wall affects the situation here, but it seems to be only because the remaining crumby wall is now next to regular floor. If I remove a wall from any other part of the room, I still get mosaic after clearing the SE crumby wall.

I experimented a little and got this kind of order in the case of a tie.

Sand > Dirt > Grass > Road > Mosaic > Normal floor
09-27-2005 at 02:44 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
AlefBet
Level: Smitemaster
Rank Points: 979
Registered: 07-16-2003
IP: Logged
icon Re: Weird floor textures under crumby walls (0)  
Hmm. It appears you're right. Well, I've been wrong before and I'm sure I'll be wrong again. That's why my sigline conveys some measure of ambivalence. Anyway, glad I could at least put you on the right track.

____________________________
I was charged with conspiracy to commit jay-walking, and accessory to changing lanes without signaling after the fact :blush.

++Adam H. Peterson
09-27-2005 at 06:08 PM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Bugs : Weird floor textures under crumby walls
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.