Announcement: Why not try our official idea generator for inspiration when making puzzles?


Caravel Forum : DROD Boards : Architecture : Question about Breakable Walls
New Topic New Poll Post Reply
Poster Message
Casebier
Level: Master Delver
Avatar
Rank Points: 284
Registered: 08-03-2005
IP: Logged
icon Question about Breakable Walls (0)  
How does the JtRH engine determine what floor tile will show up when you break a breakable wall? After lots of testing, I've come to no definitive conclusion.

____________________________
Casebier
--------------------------------
Revisiting old Project: ZelDROD 1 / ZelDROD RPG (If I can ever find the custom graphic files that I made for it.)
01-26-2007 at 07:59 PM
View Profile Send Private Message to User Show all user's posts Quote Reply
Doom
Level: Smitemaster
Avatar
Rank Points: 3335
Registered: 07-05-2004
IP: Logged
icon Re: Question about Breakable Walls (+1)  
If I recall correctly, the game checks first the free tiles surrounding the crumby wall(s), and uses the most common floor type.

In the case of a draw, there's a certain order in which some floor types rank higher than others (regular floor loses to everything).
01-26-2007 at 08:07 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
zex20913
Level: Smitemaster
Avatar
Rank Points: 1723
Registered: 02-04-2003
IP: Logged
icon Re: Question about Breakable Walls (0)  
Does that mean that we can create a quantum floor? I've tried a bit, but it seems that the floor is fixed for any starting orientation.

____________________________
Click here to view the secret text

01-27-2007 at 12:31 AM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
Casebier
Level: Master Delver
Avatar
Rank Points: 284
Registered: 08-03-2005
IP: Logged
icon Re: Question about Breakable Walls (0)  
Aye, when I was testing things, the radius of the second floor texture under the breakable walls kept changing with each different test. Maybe this will be fixed in TCB.

____________________________
Casebier
--------------------------------
Revisiting old Project: ZelDROD 1 / ZelDROD RPG (If I can ever find the custom graphic files that I made for it.)
01-27-2007 at 05:20 AM
View Profile Send Private Message to User Show all user's posts Quote Reply
coppro
Level: Smitemaster
Rank Points: 1309
Registered: 11-24-2005
IP: Logged
icon Re: Question about Breakable Walls (0)  
You could just look at the source code...

There's a precalculated heuristic that's used to determine what appears under colored doors and breakable walls. I think it is based on the heuristic determined from nearby areas, and also the distance from a user-defined area.
01-27-2007 at 05:33 AM
View Profile Show all user's posts Quote Reply
Jeff_Ray...
Level: Smitemaster
Avatar
Rank Points: 962
Registered: 05-16-2005
IP: Logged
icon Re: Question about Breakable Walls (0)  
You can lay floor tiles under doors and breakable walls. It's why it occurs. So put the wanted floor under walls&doors and job's done! ;)

____________________________
I make Let's Plays too!
Click here to find out my LPs' progress, and find out what I plan to tackle next!

Currently playing:
Click here to view the secret text


My Holds:
-Completed:
Click here to view the secret text

-Work in Progress:
Click here to view the secret text

01-27-2007 at 02:50 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
Jason
Level: Smitemaster
Rank Points: 1076
Registered: 05-05-2006
IP: Logged
icon Re: Question about Breakable Walls (+1)  
Jeff_Ray... wrote:
You can lay floor tiles under doors and breakable walls. It's why it occurs. So put the wanted floor under walls&doors and job's done! ;)

That doesn't work, BTW.

____________________________
Play my holds?
01-27-2007 at 02:54 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
Timo006
Level: Smitemaster
Avatar
Rank Points: 527
Registered: 07-19-2006
IP: Logged
icon Re: Question about Breakable Walls (0)  
Jason wrote:
Jeff_Ray... wrote:
You can lay floor tiles under doors and breakable walls. It's why it occurs. So put the wanted floor under walls&doors and job's done! ;)

That doesn't work, BTW.

However, this method works for me.

____________________________
Drod Number: 3034; 8th person to see the Second Sky
01-27-2007 at 07:38 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
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5199
Registered: 02-04-2003
IP: Logged
icon Re: Question about Breakable Walls (0)  
Timo006 wrote:
Jason wrote:
Jeff_Ray... wrote:
You can lay floor tiles under doors and breakable walls. It's why it occurs. So put the wanted floor under walls&doors and job's done! ;)

That doesn't work, BTW.

However, this method works for me.
Well...if I understand my own code correctly :P, doing this in the room editor will make it look as if this works, but this information doesn't actually get saved. When you play the room later, it will calculate what's under the walls and doors afresh using the heuristic mentioned above. This could be changed, but I'm not planning to add it because it would either slow down room editing operations or bloat the size of .dat and .hold files.

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.

[Last edited by mrimer at 01-27-2007 07:52 PM]
01-27-2007 at 07:51 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
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Architecture : Question about Breakable 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.9
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.