Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Civilization II > Civ2-Test of Time > Fix Ugly Graying with SpritEd?
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
29.Jul: MOVING UP ON REVISED `TOP 100` INDEX
29.May: GAME MECHANICS REFERENCE BOOKLET
06.Mar: DROPPING FROM SECOND TO THIRD

bottom of page
  - CIVILIZATION 2 from $6.95 - CIVILIZATION 2 from $4.25 - CIV2: TEST OF TIME from $2.50 - CIV2: MULTIPLAYER GOLD EDITION from $4.99
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:24
Question  Old Post 31-12-2002 10:04 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Fix Ugly Graying with SpritEd? Support Apolyton or Terrorists Win

Mercator, it'd be nice to lighten up the civ color in the unit key. Did you confirm Draco's (ex-Draco, I forgot your current moniker) explanation in bold below, and can the darkening effect be changed with your editor? Even when all sprites have been removed from the Test of Time\Original directory, the effect remains, so in what sprite is the source of the darkening?

Thanks

From "Tribe Colours for Test of Time" by Cam Hills (SLeague)

quote:
Adjusting tribe colours is a task that is relatively straightforward to fix. For scenario authors the amendment of tribe colours can add a visual twist to your game — adding a point of difference from the default colours. Even for those people who simply want to change the tribe colours for the default game, the solution is fairly simple.

The relevant graphic that needs adjustment is the cities.bmp file — where in the bottom-left corner are the flag images.

A. The second pixel along the top band of colour will change;

  1. The colour of the font of the city names of a tribe.

B. The second pixel along the bottom band of colour will change;

  1. The colour of the box used to identify the city size (or city revolt),
  2. The colour of the tribe in the diplomacy screen for dealings with tribe emissaries, and
  3. In some cases, the colour used in the tribe's units' pictorials.

C. However, a darkened version of this colour* is used as;

  1. The colour of units' "shields" — being the octagonal marker left of a unit's health bar.
  2. In some cases, the colour used in the tribe's units' pictorials.

*At the time of writing this tip, there was no way known to overcome this darkening effect, however...

Draco Omega writes;

I know exactly what is causing the problem, the sprite file itself.

Every pixel in a sprite file has a flag that tells if it is a team color pixel. Normal pixels are drawn with the exact color values in the file but team color pixels are handled a little differently.

The set color values of the pixels are all shades of grey (the red, green and blue values are equal). To determine the color the pixel is drawn in, it first looks at the color ratio of the pixel on the bottom line in cities.bmp (as discussed in this article). For example, let us say the color in cities.bmp was Red 255 Blue 128 Green 0. This gives it a color ratio of 2:1:0. Now lets also say that the team color pixel was Red 64 Blue 64 Green 64. It converts this value to the same color ratio as the pixel in cities.bmp. In this case that would be Red 128 Blue 64 Green 0. Therefore the value of the pixel in the sprite file determines how bright the color is. This factor will be able to be customized as hoped when the Sprite Workshop is finished.

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:24
  Old Post 02-01-2003 01:18 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton

The civ color of units is part of their sprite files... That is, both their own UnitXX.spr (for the animated graphics) as well as their static images in Static.spr!

When exporting a sprite, you'll get two bitmaps for each image. The mask (.msk.bmp) determines which pixels get shaded into their civ colour. The color of the matching pixel in the other of the two (.img.bmp) determines the actual shade.

So yes, you can lighten the civ color. Use the mask to figure out which pixels are in civ color (you can use layers or masks in PSP for this). Then change the shade of those pixels in the .img.bmp image.

In fact, if you have PSP, you can lighten the colors very easily:
1. Open both the mask and the image.
2. Add the mask as a new top layer to the image.
3. Change the Layer Blend Mode of the mask to Lighten
4. Adjust the mask layer opacity to get the result you want.
5. Save the image (you'll probably get a warning message that bitmaps don't support layers or so, just click OK).

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:24
  Old Post 02-01-2003 02:52 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Put an end to popups!

Thanx! I'll give it a shot. Too poor at present, though, to buy PSP.

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:24
  Old Post 04-01-2003 20:41 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

I have a strong feeling everyone around here is, although everyone has it.
You can always try the shareware version, unless you've already exceded its 30 day limit, of course.

You could always try The GIMP (a free advanced graphics editor, like PSP or Photoshop, originally developed for UNIX, but also available for Windows), but they've tried their best at making it as incomprehensible as possible. I could barely find Windows downloads.

St Leo is offline St Leo
King of Scenario League
Member of the Apolyton Social Democratic Party
Jul 2005
time: 00:24
  Old Post 04-01-2003 22:36 Visit St Leo<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

You can always try the shareware version, unless you've already exceded its 30 day limit, of course.

At this point, you can remember that Windows allows you to travel in time by double-clicking on the system clock.

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:24
  Old Post 05-01-2003 01:16 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Tired of ads?

Of course, but then you'd be breaking the law, wouldn't you? So if you're breaking the law anyway, you can just as well download a crack or full unlimited version.

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:24
  Old Post 11-06-2003 08:41 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Remove this text

Umm...Okay, I can export images and masks from sprite files. I think I understand the masks.

BUT...
Where is the mask that lies over the unit key?

Last edited by Boco on 11-06-2003 at 09:13

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:24
  Old Post 11-06-2003 17:06 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Suffering from ads?

quote:
Use the mask to figure out which pixels are in civ color (you can use layers or masks in PSP for this). Then change the shade of those pixels in the .img.bmp image.


Does one of these pixels affect the shading in the unit key? Or is there another sprite lurking in Static.spr.

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:24
  Old Post 12-06-2003 00:00 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Got spare money?

You mean the health bar/shield unit key thing? That's not masked at all. The magenta in the unit-key graphic in the units.bmp is replaced by the civ colour.

The unit key is not present in any sprite file. It can only be changed in the units bitmap.

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:24
  Old Post 12-06-2003 07:12 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Support Apolyton

Rats! The 255,0,255 in the unit key is shown as a Team Color that Draco/Zarion describes above.

I'm getting a little redundant on this thread. If you want to continue just on the other one (Getting rid of the health bar!), that's fine with me.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:24.
Apolyton Time is 00:24.
    top of page
Rate This Thread:
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0380 seconds (89.34% PHP - 10.66% MySQL) with 30 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net