Announcement: Be excellent to each other.


Caravel Forum : Caravel Boards : Development : Looking for a way to disable custom images
New Topic New Poll Post Reply
Poster Message
Alneyan
Level: Smitemaster
Rank Points: 622
Registered: 07-06-2004
IP: Logged
icon Looking for a way to disable custom images (0)  
I've decided to have a go at Fun Park again. Alas, there remains one obstacle in my way: the hold makes heavy use of custom images, instead of proper floors like they used to make them, back in those days where the world was such a better place to live in and...

So. Those particular images make my eyes go watery faster than you can say "Taal be cursed for those wicked Architects' shenanigans", and it's kind of hard playing DROD blindfolded. Hence my request: is there a nice and easy way to get rid of custom images, regardless of the wishes, whims and demands of the architect?

(I'm not exactly familiar with the way DROD handles graphics, so that question might be very naïve. If so, feel free to laught me out of existence... or write a ncurses-based DROD backend for me. Whichever you choose.)
02-20-2007 at 05:33 PM
View Profile Send Private Message to User Show all user's posts Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5145
Registered: 02-04-2003
IP: Logged
icon Re: Looking for a way to disable custom images (+1)  
Alneyan wrote:
is there a nice and easy way to get rid of custom images, regardless of the wishes, whims and demands of the architect?
Mmm...no, sorry.

____________________________
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.
02-20-2007 at 06:34 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
Alneyan
Level: Smitemaster
Rank Points: 622
Registered: 07-06-2004
IP: Logged
icon Re: Looking for a way to disable custom images (0)  
I suppose that leaves the not-nice and not-easy way. Do you think a quick-and-dirty hack could be made to the DROD engine to bypass custom images? (Something like a lone specialised function called to handle custom images, perhaps, but I doubt it's the case.)

Of course, I have little knowledge of the mass of Cee-Plus-Plus that lies behind DROD. Still, if there is *some* possibility of achieving that without having to refactor the whole project, I'll probably give it a try and toy with other kludges... erh, features at the same time.
02-20-2007 at 06:56 PM
View Profile Send Private Message to User Show all user's posts Quote Reply
eytanz
Level: Smitemaster
Avatar
Rank Points: 2708
Registered: 02-05-2003
IP: Logged
icon Re: Looking for a way to disable custom images (0)  
I would think it would be easier to hack into the hold file and remove the images.

____________________________
I got my avatar back! Yay!
02-20-2007 at 07:02 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
larrymurk
Level: Smitemaster
Avatar
Rank Points: 1917
Registered: 12-09-2004
IP: Logged
icon Re: Looking for a way to disable custom images (+1)  
Or if you want an edit by anyone copy just ask and I can make a copy. Not sure what you'd do for high scores though..
02-20-2007 at 07:26 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
Alneyan
Level: Smitemaster
Rank Points: 622
Registered: 07-06-2004
IP: Logged
icon Re: Looking for a way to disable custom images (0)  
Having a "clean" Fun Park could be useful indeed. As for the highscores, I think I can work out something about the demos on my end... X macros and all that.

I'm lax to do some hexa-editing on a .hold file, partly because it might confuse and anger the architect, partly because I'm no hexa guru, and partly because it's not a general solution.

I wonder if I should shudder in fear when I think about those DROD 3.0 features involving CaravelNet and graphics, though. Perhaps I'm fighting a rear-guard action that'll be dashed as soon as TCB is out.
02-20-2007 at 07:57 PM
View Profile Send Private Message to User Show all user's posts Quote Reply
larrymurk
Level: Smitemaster
Avatar
Rank Points: 1917
Registered: 12-09-2004
IP: Logged

File: Fun Park alneyan.hold (541 KB)
Downloaded 72 times.
License: Public Domain
icon Re: Looking for a way to disable custom images (+1)  
Hope this helps..
02-20-2007 at 08:04 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: 5145
Registered: 02-04-2003
IP: Logged
icon Re: Looking for a way to disable custom images (0)  
Alneyan wrote:
I suppose that leaves the not-nice and not-easy way. Do you think a quick-and-dirty hack could be made to the DROD engine to bypass custom images? (Something like a lone specialised function called to handle custom images, perhaps, but I doubt it's the case.)
That's right. If you can compile your own version of DROD, then it's pretty trivial to tweak the room rendering so that custom floor images don't show up.

____________________________
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.
02-20-2007 at 10:18 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
coppro
Level: Smitemaster
Rank Points: 1309
Registered: 11-24-2005
IP: Logged
icon Re: Looking for a way to disable custom images (0)  
Here's what diff had to say (applied to RoomWidget.cpp):
1097,1098c1097,1098
<                                               case T_FLOOR_IMAGE: wTextureIndex =
<                                                               g_pTheDBM->pTextures[FLOOR_IMAGE] ? FLOOR_IMAGE : FLOOR_MOSAIC;
---
>                                               case T_FLOOR_IMAGE: wTextureIndex = FLOOR_MOSAIC;
>                                                               // g_pTheDBM->pTextures[FLOOR_IMAGE] ? FLOOR_IMAGE : FLOOR_MOSAIC;


02-20-2007 at 11:31 PM
View Profile Show all user's posts Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5145
Registered: 02-04-2003
IP: Logged
icon Re: Looking for a way to disable custom images (0)  
coppro wrote:
Here's what diff had to say (applied to RoomWidget.cpp):
Yep, that's exactly right! In fact, I was working on this bit of code just yesterday. Custom floor images in 3.0 will now support transparency. :)

____________________________
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.
02-20-2007 at 11:37 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
NiroZ
Level: Smitemaster
Rank Points: 1302
Registered: 02-12-2006
IP: Logged
icon Re: Looking for a way to disable custom images (0)  
mrimer wrote:Yep, that's exactly right! In fact, I was working on this bit of code just yesterday. Custom floor images in 3.0 will now support transparency. :)
Good Grief! You really have taken the cork out of the feature tap.
02-21-2007 at 12:05 AM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
coppro
Level: Smitemaster
Rank Points: 1309
Registered: 11-24-2005
IP: Logged
icon Re: Looking for a way to disable custom images (0)  
So then what goes beneath it? Regular floor?
02-21-2007 at 02:04 AM
View Profile Show all user's posts Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5145
Registered: 02-04-2003
IP: Logged
icon Re: Looking for a way to disable custom images (+2)  
coppro wrote:
So then what goes beneath it? Regular floor?
It's elephants and turtles all the way down.

____________________________
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.
02-21-2007 at 02:55 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
coppro
Level: Smitemaster
Rank Points: 1309
Registered: 11-24-2005
IP: Logged
icon Re: Looking for a way to disable custom images (0)  
Oh, I was expecting it to at least be ketchup and puppies. But I supposed a new in-joke would be good.
02-21-2007 at 03:56 AM
View Profile Show all user's posts Quote Reply
NiroZ
Level: Smitemaster
Rank Points: 1302
Registered: 02-12-2006
IP: Logged
icon Re: Looking for a way to disable custom images (0)  
coppro wrote:
Oh, I was expecting it to at least be ketchup and puppies. But I supposed a new in-joke would be good.

What about mustard and kittens!!! Please, think of the Kittens!
02-21-2007 at 03:58 AM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
Briareos
Level: Smitemaster
Avatar
Rank Points: 3516
Registered: 08-07-2005
IP: Logged
icon Re: Looking for a way to disable custom images (0)  
mrimer wrote:
coppro wrote:
So then what goes beneath it? Regular floor?
It's elephants and turtles all the way down.
Wait... since when is the Eighth located on Discworld? :huh

____________________________
"I'm not anti-anything, I'm anti-everything, it fits better." - Sole
R.I.P. Robert Feldhoff (1962-2009) :(
02-21-2007 at 08:18 AM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
AlefBet
Level: Smitemaster
Rank Points: 979
Registered: 07-16-2003
IP: Logged
icon Re: Looking for a way to disable custom images (+1)  
Briareos wrote:
mrimer wrote:
coppro wrote:
So then what goes beneath it? Regular floor?
It's elephants and turtles all the way down.
Wait... since when is the Eighth located on Discworld? :huh
Good eye. I believe the Eighth is actually supported by a one-armed octopus.

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

++Adam H. Peterson
02-21-2007 at 08:56 AM
View Profile Send Private Message to User Send Email to User Visit Homepage Show all user's posts Quote Reply
trick
Level: Legendary Smitemaster
Rank Points: 2580
Registered: 04-12-2003
IP: Logged
icon Re: Looking for a way to disable custom images (+1)  
AlefBet wrote:
Good eye. I believe the Eighth is actually supported by a one-armed octopus.
An unipus ? Or maybe just pus .. puss .. Kitten!

~ Gerry

02-21-2007 at 05:07 PM
View Profile Send Private Message to User Send Email to User Show all user's posts Quote Reply
Alneyan
Level: Smitemaster
Rank Points: 622
Registered: 07-06-2004
IP: Logged
icon Re: Looking for a way to disable custom images (0)  
Okay, thanks for the answers everyone. Given how boring a "hey, I wanna do X" thread is, I choose to consider your interest as a sign that I'm popular *and* a great chap. That should go without saying, but you can never be too careful.

I'll fudge with the DROD source when I feel like banging my head against a wall. At present, I've had this masochistic urge filled with xterm+screen+emacs running in utf-8 with 256 colours, so I guess it'll have to wait. Until then... it's not as if I didn't have a hundred holds on my plate.
02-21-2007 at 07:39 PM
View Profile Send Private Message to User Show all user's posts Quote Reply
New Topic New Poll Post Reply
Caravel Forum : Caravel Boards : Development : Looking for a way to disable custom images
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.