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 > Getting rid of the health bar!
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   
Pages (2): [ 1   2   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
William Keenan is offline William Keenan
Prince
New Jersey, USA, Earth, Sol, Milky Way
Sep 1999
time: 00:28
  Old Post 16-09-2003 20:50 Visit William Keenan's homepage!
Edit/Delete Message Reply w/Quote
#31 Report this post to a moderator
Enter the AD-FREE zone

Acctually, I believe it is stored in a config file: Do not open me.sav

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:28
  Old Post 17-09-2003 17:47 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#32 Report this post to a moderator
Support Apolyton buy from Amazon

No it isn't.

My "Do Not Open Me.sav" has never been anything other than 0 bytes, so it seems to be entirely useless. Civ.ini and civ2.dat are the only Civ2 config files I know of.

And Boco's problem was solved. He had set the sprite override for all units in the @UNITS_ADVANCED section in the rules.txt. That obviously prevented the game from using the sprite file.

So, to recapitulate, getting to use the static sprite file requires the following:
- Turn OFF unit animation in Game > Graphic Options. To make this menu setting permanent, go to Cheat > Scenario Parameters > Edit Special Rules and set the Unit animation lockout to 1 (one).

- Make sure the .SPR file override is set to 0 (zero). This goes for both the Cheat menu and the Rules text file (the @UNITS_ADVANCED section).

William Keenan is offline William Keenan
Prince
New Jersey, USA, Earth, Sol, Milky Way
Sep 1999
time: 00:28
  Old Post 18-09-2003 23:53 Visit William Keenan's homepage!
Edit/Delete Message Reply w/Quote
#33 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

That will teach me to keep my uninformed opinion to myself!

Mercator, you are an irreplaceable asset to the civ2 community.

techumseh is offline techumseh
King
of the frozen North.
Apr 1999
time: 22:28
  Old Post 19-09-2003 04:46 Visit techumseh's homepage!
Edit/Delete Message Reply w/Quote
#34 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

Indeed. And you're not half bad yourself, WK.

William Keenan is offline William Keenan
Prince
New Jersey, USA, Earth, Sol, Milky Way
Sep 1999
time: 00:28
  Old Post 19-09-2003 09:24 Visit William Keenan's homepage!
Edit/Delete Message Reply w/Quote
#35 Report this post to a moderator
Get a bigger avatar today!

Your the other irreplaceable asset to the civ2 community, Techumseh.

I'm very impressed with what you guys have accomplished here in the past year.

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:28
  Old Post 19-09-2003 19:42 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#36 Report this post to a moderator
Enter the AD-FREE zone

Thank you! I mean... Thank you.

Let's just say we're all irreplaceable. I mean, seriously, we've all done some excellent things... And we've all received a Silver Fleece medal too.

I could have said we're all standing on each other's shoulders, but I think that would be very uncomfortable.

techumseh is offline techumseh
King
of the frozen North.
Apr 1999
time: 22:28
  Old Post 19-09-2003 22:54 Visit techumseh's homepage!
Edit/Delete Message Reply w/Quote
#37 Report this post to a moderator
Support Apolyton buy from Amazon

This meeting of the Test of Time Mutual Admiration Society is now officialy adjourned!

Catfish is offline Catfish
Warlord
Wollongong, Australia
Aug 2000
time: 14:28
  Old Post 20-09-2003 08:51 Visit Catfish's homepage!
Edit/Delete Message Reply w/Quote
#38 Report this post to a moderator
Support Apolyton buy from Amazon

Sorry to interrupt all the backslapping. I've tried out SpriteGen and it seems to work as intended. However, I've got three problems:

1. The purple background often found in unit files is visible in the ToT units menu, defence minister and city screens for created sprites. You can, however, change the background to all pink prior to running SpriteGen – this is more a nuisance, I guess. I don't want to accidentally wipe people's unit signatures in the original bmp, either. If you can’t change this, then at least give it a mention in the readme for tards like me.

2. I’ve got units from the units.bmp file in the build menu and units civilopedia. Therefore, if I delete the scenario units.bmp file, these are then replaced by the defaults from the Original directory.

3. The third point is not directly related to SpriteGen, but is a consequence of its use. I have some scenarios, converted from FW/MGE using Angelo Scotto's CivConverter utility, where the SPR file override parameter is set to 1. It's embedded at the end of the .scn file. Does anyone know precisely where, or do I have to search myself? Unfortunately I think I already know the answer to this one.

Catfish is offline Catfish
Warlord
Wollongong, Australia
Aug 2000
time: 14:28
  Old Post 20-09-2003 14:15 Visit Catfish's homepage!
Edit/Delete Message Reply w/Quote
#39 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations

Nearly forgot. Ignore question 3. I have my answer. Look for the scenario name in either the .scn or .sav file. The byte immediately preceding the name contains this flag. If the byte is set to 01, the SPR override is set to 0. If the byte value is 03, SPR override is 1.

Catfish is offline Catfish
Warlord
Wollongong, Australia
Aug 2000
time: 14:28
  Old Post 20-09-2003 18:04 Visit Catfish's homepage!
Edit/Delete Message Reply w/Quote
#40 Report this post to a moderator
Lose 30 kilos (of popups)

I just converted Favoured Flight's ROTK scenario to ToT - it uses units as mountains, which looks terrible with the health bar. Now it looks great.

During the conversion process I found that, on this occasion, the purple background was also visible on units on the game map. Looking at the units.bmp from which the static.spr was derived, I found 3 different variations of the purple background colour. There is obviously a narrow range of these colours which carries the invisible mask in the game, however, some of them show up when converted to sprites. Like I said, above, it might be easier to just make a note in the readme to switch to pink first rather than trying to figure this crap out.

Last edited by Catfish on 20-09-2003 at 18:30

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

quote:
Originally posted by Catfish
1. The purple background often found in unit files is visible in the ToT units menu, [...]


That's because ToT sprites only have two transparent colors. First of all, magenta is always transparent. Secondly, the color of the pixel in the top-left corner of the graphic is transparent.

This is exactly what my SpriteGen does. It makes those two colors transparent. So if there are regions that aren't transparent in your units, give the upper-left pixel of the unit that color. That's what the standard ToT unit bitmaps do anyway.

quote:
2. I’ve got units from the units.bmp file in the build menu and units civilopedia. Therefore, if I delete the scenario units.bmp file, these are then replaced by the defaults from the Original directory.


Yep, that's true. No way to solve that I'm afraid, except by including both the bitmap and the sprite file... The sprite file will work just fine even if there's also a units bitmap present. As long as you make sure you got the correct settings.

quote:
3. The third point is not directly related to SpriteGen, but is a consequence of its use. I have some scenarios, converted from FW/MGE using Angelo Scotto's CivConverter utility, where the SPR file override parameter is set to 1. It's embedded at the end of the .scn file. Does anyone know precisely where, or do I have to search myself? Unfortunately I think I already know the answer to this one.


There's no need to start hex-editing. Just repeat the steps in my second to last post before this. Open the cheat menu, adjust the sprite settings and resave the scenario.

Last edited by Mercator on 20-09-2003 at 20:49

Catfish is offline Catfish
Warlord
Wollongong, Australia
Aug 2000
time: 14:28
  Old Post 21-09-2003 02:37 Visit Catfish's homepage!
Edit/Delete Message Reply w/Quote
#42 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

quote:
Originally posted by Mercator
That's because ToT sprites only have two transparent colors. First of all, magenta is always transparent. Secondly, the color of the pixel in the top-left corner of the graphic is transparent.

Well that explains why. CivConverter replaces the top-left corner pixel in the units.bmp output file with magenta. This, however, still leaves the issue of variations of transparent purple in many units files.

Edit: I just read your post over here.

I should clarify what I mean. ToT reads 24-bit graphics and displays them as 15-bit. Because of this, colours which closely approximate transparent ones in 24-bit may also become transparent when reduced to 15-bit. Is it possible that ToT reads sprites differently to bmps? Is it also possible that different parts of the game engine, ie, menus, tiles, dialogue boxes, etc, read them differently? Hence the strange results I found with a number of files which had different shades of the transparent background.

quote:
Originally posted by Mercator
There's no need to start hex-editing. Just repeat the steps in my second to last post before this. Open the cheat menu, adjust the sprite settings and resave the scenario.

No. If you open an existing scenario and save it as a new scenario on the first turn, you advance shield production, taxes, et al, by one turn. This is why hex editing is necessary. It only took me a couple of minutes to find it, anyway

Last edited by Catfish on 21-09-2003 at 03:42

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:28
  Old Post 21-09-2003 03:58 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#43 Report this post to a moderator
Support Apolyton, buy Civilization 2

No it isn't necessary, instead of opening the scenario as a scenario, open it through the "Load a Saved game" option instead.

You'll have to enter "*.scn" in the filename box first, to show scenario files, but it will load just fine, without advancing anything.

I addressed the issue of the variations of transparent purple in the "camo thread". It's because images are 15-bit. A lot of colors that are very close to magenta will be reduced to magenta. The same goes for the units bitmap.

Catfish is offline Catfish
Warlord
Wollongong, Australia
Aug 2000
time: 14:28
  Old Post 21-09-2003 04:14 Visit Catfish's homepage!
Edit/Delete Message Reply w/Quote
#44 Report this post to a moderator
Support Apolyton or Terrorists Win

quote:
Originally posted by Mercator
No it isn't necessary, instead of opening the scenario as a scenario, open it through the "Load a Saved game" option instead.

Well, you learn something new every day.

quote:
Originally posted by Mercator
I addressed the issue of the variations of transparent purple in the "camo thread". It's because images are 15-bit. A lot of colors that are very close to magenta will be reduced to magenta. The same goes for the units bitmap.

You didn't read my Edit. I didn't take scientific approach to this, but from loading a couple of scenarios, it was obvious that there was background showing in some places and not others - using the same set of graphical resources.

Edit: Ignore this crap. I've just done some testing and come to the conclusion that I'm just frigging blind. When the top-left unit pixel has been blanked (magenta), the only places where background doesn't show are the build menu and civilopedia. Why? Because it's reading the bmps. Christ, I'm a retard.

Edit (again): Come to think of it, the top-left unit pixel is blanked in the bmp too, but it's working fine. Ah, bugger it - easiest to simply change the entire background to magenta before running SpriteGen. Over and out.

Last edited by Catfish on 21-09-2003 at 04:42

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

I can get distracted by other things while posting sometimes, so I guess I, um... "crossposted"

It is my program that does the reduction from 24-bit to 15-bit, so maybe my formula isn't quite the same one as the one ToT uses.
I wouldn't really have to thought so, until I saw my own screenshot there. In that white gradient, the 4 colours ToT has reduced it to (the two middle ones, in particular) are very strange indeed (rgb[240,240,240] and rgb[239,239,239] to be precise).

I'll have to look into it...
Right... I've looked enough. It IS quite different. I'll get to it ASAP. The attachment shows the difference between colours in 24-bit and ToT 15-bit.
I thought the 15-bit would grade the colors in equal steps of about 7 and 8, but they go in steps of 15 and 1. Very odd, because that pretty much means ToT only uses more like 173 (= 4913) distinguishable colors, not 323 (= 32768), not to mention the 24-bit 2563 (= 16777216)... Making it visually closer to 12-bit...

ToT graphics are getting worse by the minute ...

But maybe this also demonstrates that the color depth as an indicator for image quality is more in our heads than being actually visible. It's not like anyone really noticed ToT is pretty much half the color depth everyone thought it was.

Attachment: test of time - colours.png
This has been downloaded 37 time(s).

Last edited by Mercator on 21-09-2003 at 05:30

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:28
  Old Post 21-09-2003 05:14 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#46 Report this post to a moderator
Support Apolyton buy from Amazon

Ahem, in reply to your later edits...

I'm not really sure now anymore whether my sprite utilities actually reduce image to 15-bit correctly, so I'll check anyway.

... Oh, I think I've figured it out. My color depth reduction matches that of how PSP renders ToT's 16-bit bitmaps. But ToT does indeed use a different color depth reduction algorithm... I'll fix it.

quote:
Originally posted by Catfish
Edit (again): Come to think of it, the top-left unit pixel is blanked in the bmp too, but it's working fine. Ah, bugger it - easiest to simply change the entire background to magenta before running SpriteGen. Over and out.


I noticed that. The bitmaps are happy with the darker purple shade as well, it seems (the standard sprites are not). But I decided to blame you.

Well, should I add this shade as a standard transparency color as well? Or should I get Angelo Scotto to change his CivConverter bitmap conversion scheme?

Catfish is offline Catfish
Warlord
Wollongong, Australia
Aug 2000
time: 14:28
  Old Post 21-09-2003 12:09 Visit Catfish's homepage!
Edit/Delete Message Reply w/Quote
#47 Report this post to a moderator
Remove this text

quote:
Originally posted by Mercator
I noticed that. The bitmaps are happy with the darker purple shade as well, it seems (the standard sprites are not). But I decided to blame you.

Gee, that's very nice of you.

quote:
Originally posted by Mercator
Well, should I add this shade as a standard transparency color as well? Or should I get Angelo Scotto to change his CivConverter bitmap conversion scheme?

You can do both. It all reduces the probability of a stuff up. Many unit creators accidentally delete the transparent pixel, I probably have too, so these problems won't just be restricted to conversions.

If you have any influence over Angelo, then you can get him to lower the units by 6 pixels, too. It'd also be nice if the city objective multiplier byte was modified so that all values > 04 were changed to 04 - as you know, x3 or greater objectives are not used at all by ToT - even though it's in the Cheat menu.

While we're talking utilities, being the well of knowledge that you are, is there anything around that can easily add rivers to a .sav or .scn file?

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:28
  Old Post 21-09-2003 15:50 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#48 Report this post to a moderator
Support Apolyton

quote:
Originally posted by Catfish
Gee, that's very nice of you.




quote:
You can do both. It all reduces the probability of a stuff up. Many unit creators accidentally delete the transparent pixel, I probably have too, so these problems won't just be restricted to conversions.


On second thought... I don't think I will add the darker purple shade. I think it simply affects too many colors. Especially because people will be working with 24-bit bitmaps and won't pay attention to any colors being close to this rather more inconspicuous shade of purple.

I'll add a note on transparency in the readme though.

quote:
If you have any influence over Angelo, [...]


I'm afraid not, but you can PM him (his username's simply "Angelo Scotto" or e-mail him at his hotmail address: scotto_a (followed by the @ and all, but I don't want him to get spammed).

quote:
While we're talking utilities, being the well of knowledge that you are, is there anything around that can easily add rivers to a .sav or .scn file?


There are two ways. MapCopy, which can paste a new map (with the rivers added) back into your savegame, or a little engineering trick. These threads should fill you in:

http://apolyton.net/forums/showthre...&threadid=95486
http://apolyton.net/forums/showthre...&threadid=66105


And another thing I just realised, about the color reduction thing... This actually doesn't affect how I reduce color depth from 24-bit to 15-bit, so SpriteGen works as it should after all. It DOES affect color depth increase from 15-bit back to 24-bit though, so I'll have to update CivSprite.

Last edited by Mercator on 21-09-2003 at 15:58

Catfish is offline Catfish
Warlord
Wollongong, Australia
Aug 2000
time: 14:28
  Old Post 21-09-2003 18:03 Visit Catfish's homepage!
Edit/Delete Message Reply w/Quote
#49 Report this post to a moderator
Support Apolyton, buy Call to Power 2

quote:
Originally posted by Mercator
On second thought... I don't think I will add the darker purple shade. I think it simply affects too many colors. Especially because people will be working with 24-bit bitmaps and won't pay attention to any colors being close to this rather more inconspicuous shade of purple.
I'll add a note on transparency in the readme though.

True. I mean I found 3 shades of purple background in the one units file today.

quote:
Originally posted by Mercator
There are two ways. MapCopy, which can paste a new map (with the rivers added) back into your savegame, or a little engineering trick.

Thanks, unfortunately MapCopy doesn't work with ToT. The second method looks almost as labour intensive as another method I used once, where I flagged all the would-be river tiles with strange combos of units/improvements. These were then easy to find using a hex editor, and then I hex edited the rivers in.

 
Pages (2): [ 1   2   ]
< Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:28.
Apolyton Time is 00:28.
    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.0655 seconds (91.06% PHP - 8.94% 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