Jump to content
Sign in to follow this  
CamdenT

Background color in Tile World?

Recommended Posts

Is there a way to change the background color in Tile World? The black is really boring. I much prefer the whole MSCC look. I know the background in TW2 is blue (a step in the right direction) but it would still be cool if i could change it.

Share this post


Link to post
Share on other sites

Yes, according to the documentation on the author's site, you can change some variables in the resource file to do it. The file is called "rc", in the "res" directory, and the variables are BackgroundColor, TextColor, BoldTextColor and DimTextColor, which control the background color (the black background), the text (by default it's light grey), the bold text (white) and the dim text (darker grey). The colors themselves are in the form of triples of hexadecimal numbers, see http://en.wikipedia.org/wiki/Hex_color for a description of how it works. If you're used MS Paint before, this should not be unfamiliar. The color "numbers" go from 0 to 255, where 0 is none of a color, and 255 is 100% of that color. These numbers correspond to the range from hex 00 to FF.

 

There's no way to set background images or anything like you would need to better emulate MSCC though.

  • Upvote 1

Share this post


Link to post
Share on other sites

Thanks, I've always wanted to do this! (Hacking Tile World FTW)

 

EDIT: Never mind, it doesn't work on Tile World 2. Is it supposed to be not hackable because of copyright and piracy and stuff?????

Share this post


Link to post
Share on other sites

That's because Tile World 2 boxes and pictures for everything. If you look closely, you'll see that the top left of the background is lighter than the bottom right.

 

EDIT: I'm guessing scratchthumbs.db is used for the background. The file isn't in TW 1 and has a bunch of picture file names in it.

Edited by Markus

Share this post


Link to post
Share on other sites

Thanks, I've always wanted to do this! (Hacking Tile World FTW)

EDIT: Never mind, it doesn't work on Tile World 2. Is it supposed to be not hackable because of copyright and piracy and stuff?????

Uh... It's a feature, not a hack. :P

TW2 just doesn't implement that option yet (because it needs to specify several shades of the same hue, not just one color).

 

That's because Tile World 2 boxes and pictures for everything. If you look closely, you'll see that the top left of the background is lighter than the bottom right.

 

EDIT: I'm guessing scratchthumbs.db is used for the background. The file isn't in TW 1 and has a bunch of picture file names in it.

It's a gradient fill, not a picture. The file you're talking about certainly isn't a part of TW2.

 

 

- Madhav.

Share this post


Link to post
Share on other sites

The file you're talking about certainly isn't a part of TW2.

 

 

- Madhav.

 

What is it and why is it in my res file? *Deletes*

Share this post


Link to post
Share on other sites

Uh... It's a feature, not a hack. :P

TW2 just doesn't implement that option yet (because it needs to specify several shades of the same hue, not just one color).

 

 

It's a gradient fill, not a picture. The file you're talking about certainly isn't a part of TW2.

 

 

- Madhav.

 

Okay, so another item for the TW3 list....

Share this post


Link to post
Share on other sites

.rc files ( compiled to .res files) are used by the ("C") compiler and making changes in them won't do anything unless the source is recompiled. (I apolgize in advance if you already understand this.)

Ian

Share this post


Link to post
Share on other sites

.rc files ( compiled to .res files) are used by the ("C") compiler and making changes in them won't do anything unless the source is recompiled. (I apolgize in advance if you already understand this.)

 

True, but this is an rc file without a '.' :P

Basically, "rc" is the current name of the TW .ini file, which is read at run-time.

 

And actually, even the TW source code doesn't use any .rc files.

The only resource is a .ico which is directly compiled using:-

echo SDL_app ICON tworld.ico | windres -o tworldres.o

 

 

- Madhav.

Share this post


Link to post
Share on other sites

If the background is a gradient fill, and you know the blue numbers, the red, green and grey ones should be self-explanatory. However,. secondary and tertiery colors (like pink, purple and gold) could be more complex.

 

If you have the blue numbers I can work out a bunch of other numbers for you.

Share this post


Link to post
Share on other sites

Is it supposed to be not hackable because of copyright and piracy and stuff?????

 

Not everything has a copyright on it. :P

Share this post


Link to post
Share on other sites

Not everything has a copyright on it. :P

 

Actually, TW1 is copyrighted by Brian Raiter, and TW2 is copyrighted by me and him.

 

I didn't care to add my name to the copyright for TW2, but Brian told me that I needed to copyright it in order that I have the right to release it under the GPL (or at least that's how I interpreted what he wrote to me). In other words, one needs to first stake ownership on one's creation to ensure that it can remain free for the rest of the world - is how I understood it. Some day I may try to learn more.

 

- Madhav.

Share this post


Link to post
Share on other sites

Yeah, that makes sense; it ensures that someone else (with less altruistic motives) can't copyright it (you could fight such a claim, of course, but who would want to do that?).

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...