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 > SpriteGen 2 teaser/release thread
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
Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:33
  Old Post 03-02-2004 02:07 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
SpriteGen 2 teaser/release thread Got spare money?

I started working on the second version of SpriteGen, a utility that can generate a static sprite file from a units bitmap.

It's main use so far was hiding unit's health bars. This next version will have two new features:
- You can set different unit heights for each unit individually.
- You can let it use a mask image, so parts of each unit can be painted in the tribe colour.

I've only done interface so far, so it can't actually do anything yet. I should be able to re-use a lot of my earlier code, though.

Here's a screenie...

You see the unit on the left (you can browse through them with the scrollbar), the properties on the right can be set for each unit individually.

Any comments so far?

Attachment: spritegen.png
This has been downloaded 102 time(s).

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:33
  Old Post 04-02-2004 17:28 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
You had to ask! ;) Remove this text

Just a few opinionated suggestions.

  • Scrolling through the list might become tedious. I'd be more than willing to do it to get the sprites, but why not use your very intuitive SpriteGen 1 interface? The option button determines the icon. If you eager to use the scroll bar, perhaps make it bigger and set LargeChange to 9.

  • The mask checkbox toggles the enabled or visible state of the dropdown. The initial value for the dropdown is the ToT default.

  • Use your icons not these buttons (this mockup was made in Excel).

  • Is the magnifying glass to find a file or an icon from the @Units listing? The latter is nice, but unless you already have the code, its IMHO not worth the effort.

Hope this doesn't stir it up too much.

[Oops! First post was too blunt and stated opinion as fact: would be -> might become.]

Attachment: spritegen kibbutz.bmp
This has been downloaded 14 time(s).

Last edited by Boco on 04-02-2004 at 17:50

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:33
  Old Post 04-02-2004 18:15 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Re: You had to ask! ;) Support Apolyton, buy GURPS/ Alpha Centauri

quote:
Originally posted by Boco
Scrolling through the list might become tedious.


That's what I feared...

quote:
I'd be more than willing to do it to get the sprites, but why not use your very intuitive SpriteGen 1 interface?


Being able to set height and use mask for each unit individually makes it rather difficult to maintain that interface. Unless you don't mind 81 checkboxes and drop-down lists. But that wouldn't look very appealing, and I want my utilities to look good too!

Oh wait... you're using radio buttons in your mockup...

quote:
The option button determines the icon.


If I maintain the original interface, the icon woldn't really be necessary. I'm only using the icon here, because that's the easiest way to identify the units with the interface I'm now using.

quote:
If you eager to use the scroll bar, perhaps make it bigger and set LargeChange to 9.


That's already the case, the LargeChange, that is.

quote:
The mask checkbox toggles the enabled or visible state of the dropdown. The initial value for the dropdown is the ToT default.


Judging from your mockup, you misunderstand what the mask is. The mask is what can let you add civilization colours to a unit, using a separate mask unit bitmap like what CivSprite does... What Catfish did here: http://users.tpg.com.au/jpwbeest/ (second image)

The height checkbox toggles the enabled state of the dropdown.

quote:
Is the magnifying glass to find a file or an icon from the @Units listing? The latter is nice, but unless you already have the code, its IMHO not worth the effort.


No, it's the standard "Preview" icon... You can preview the mask with it. Not quite like what you would see in ToT, but it'll overlay the civ colour mask over the unit image... In case you want to make sure the mask matches the unit.

About the mask, what I'm thinking of now is that you have to create a separate mask bitmap. That one should look just like the ToT units bitmap, except the spaces for the unit icons would be black and white masks, like what you get with CivSprite.

I think it's easiest if the mask is simply a variation on the units bitmap filename (e.g. Units.bmp vs. Units-mask.bmp), so SpriteGen can automatically locate the separate mask bitmap.

quote:
Hope this doesn't stir it up too much.


That depends, are my arguments convincing enough?

Sava is offline Sava
King
GO GO GO!
Mar 2001
time: 23:33
  Old Post 04-02-2004 21:27
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton buy from Amazon

looks good Mercator

I'll be looking forward to the finished product. Keep up the good work.

TOT 4EVA!

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:33
  Old Post 05-02-2004 05:16 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
The village idiot speaks again. Inflate your Upload Space

quote:
Judging from your mockup, you misunderstand what the mask is.
Must never post before morning coffee again! Yes, I was reading mask but thinking sprite. That's also why I didn't catch on to the preview icon.

quote:
Oh wait... you're using radio buttons in your mockup...
Yeah I was thinking, select the icon with the radio buttons, then update the single dropdown with the appropriate selected value. One dropdown, one icon (not really necessary, as you point out), but many radio buttons. Although it reduces the icon selection process to a single click as opposed to many scrollings, it still doesn't provide an instant icon height summary for all units. Maybe, on the option buttons' captions.... Nope, that doesn't help to summarize the mask settings.

Time to shut up. Truth is, I'd be very grateful to use just about any interface to manufacture sprites.

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:33
  Old Post 05-02-2004 05:26 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton, buy Civilization 2

I guess I better get started then... I haven't done anything today (designing the interface is the most fun part).

curtsibling is offline curtsibling
King
of the Kill!
May 2002
time: 05:33
  Old Post 08-02-2004 05:25 Visit curtsibling's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Enter the AD-FREE zone

Good luck!

This facility may revamp ToT completely!

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:33
  Old Post 08-02-2004 12:50 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Increase the size of your Attachments

After finalizing my units (ha! ), I decided to give CivSprite a run. It's working very well , but it's slow going. My Static-nnn-img.bmp files have ranged in height from 48-64, then 640. About a third use masks. Many thanks, Merc.

Yeah, I think we may start seeing AFV's from all angles soon.

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:33
  Old Post 08-02-2004 18:51 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton, buy Call to Power 2

quote:
Originally posted by curtsibling
Good luck!

This facility may revamp ToT completely!


Thanks... (I haven't done anything more yet)

I don't know about revamping. I already heard that with CivSprite and the first SpriteGen, and it's only starting to take off now.

quote:
Originally posted by Boco
After finalizing my units (ha! ), I decided to give CivSprite a run. It's working very well , but it's slow going. My Static-nnn-img.bmp files have ranged in height from 48-64, then 640. About a third use masks. Many thanks, Merc.


Great... CivSprite is far from perfect either, but updating that would take a hell of a lot longer than SpriteGen...
SpriteGen creates far more compact sprite files too (because it only uses one angle). So when its new version sees the light, you might want to recreate the sprite file.

quote:
Yeah, I think we may start seeing AFV's from all angles soon.


Catfish is offline Catfish
Warlord
Wollongong, Australia
Aug 2000
time: 14:33
  Old Post 09-02-2004 05:32 Visit Catfish's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Support Apolyton buy from Amazon

Mercator, one thing I noticed about sprites generated using the current version of SpriteGen, is that they appear superimposed on fortresses.

The screenshot on the left shows four sprites generated using SpriteGen for Curt's Bitterfrost scenario. The one on the right (and you might want to fetch yourself a bucket before viewing this) shows sprites from the Sci-Fi (I think - I've got 'em all jumbled up) game.

quote:
Originally posted by Boco
Yeah, I think we may start seeing AFV's from all angles soon.

Five orientations. *cough* 3-D models. *choke*

Attachment: bitter_sprites.png
This has been downloaded 66 time(s).

Last edited by Catfish on 09-02-2004 at 05:53

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:33
  Old Post 09-02-2004 18:55 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Support Apolyton buy from Amazon

Yikes! That won't do (not unless I can turn that into an option anyway).

How does that work with the sprites you created with CivSprite, Catfish/Boco? Is there any difference between "normal" units, and those with their shield hidden?

Catfish is offline Catfish
Warlord
Wollongong, Australia
Aug 2000
time: 14:33
  Old Post 10-02-2004 02:01 Visit Catfish's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

Sorry, I should've looked into it further. No, it appears to be just the ones with the hidden health bars. The others (for both SpriteGen and CivSprite) appear fine.

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:33
  Old Post 10-02-2004 05:16 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Put an end to popups!

My CivSprite-derived sprites had the same problem with both Fortified status and Fortress. Virtually all of my sprites have altered heights, and the Fortified overlaying bug seems related to the difference between the icon height and 64. Placing the Fortress icon higher in its square within City.bmp can optimize the icon for sprites of a particular height. That helps a little, but its no panacea. Only way to really fix it is to have all sprites of uniform height, and then adjust the Fortress/Fortified icons accordingly.

In this shot, the cavalry sprite is 55 pixels high, the camelry is 61, and the Ford weighs in at 45. None of my 640 pixel sprites show anything when fortified. The Fortified icon (barbed wire) has been raised 3-4 pixels in city.bmp.

Since most of my sprites are around 50-55 pixels tall, the benefits outweigh this bug. It helps that I'm using stackable terrain in which the Fortress icon doesn't play an important role. I really like the masking feature your sprite editors give.

Attachment: sprite fortress bug.png
This has been downloaded 59 time(s).

Catfish is offline Catfish
Warlord
Wollongong, Australia
Aug 2000
time: 14:33
  Old Post 10-02-2004 11:18 Visit Catfish's homepage!
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Inflate your Upload Space

quote:
Originally posted by Boco
Placing the Fortress icon higher in its square within City.bmp can optimize the icon for sprites of a particular height. That helps a little, but its no panacea. Only way to really fix it is to have all sprites of uniform height, and then adjust the Fortress/Fortified icons accordingly.

Are we talking about the same thing? I don't believe so. I'm talking about the sprite "layer" being superimposed on the fortress "layer" - a z-axis issue, is the best way I can put it. You are describing a y-axis issue.

I believe that the fortress and fortify issues are separate. The disappearing fortify icon is a new one to me – the only units for which I've ever altered the heights have been immobile terrain/item types which don't fortify. Investigating it briefly myself: the fortify icon is actually dragged around with the unit key. Fortunately it's not a big deal for me because of the category of units I generally use with SpriteGen. It will be a tad unsightly for units with slightly varying heights (as in El Aurens). I'm sure Mercator will have a crack at figuring something out.

The fortress issue (from my end, anyway) appears to affect only those with the health bar raised using SpriteGen (yes, they do have non-standard heights). That's the only conclusion I can draw at the moment. You'd have to investigate differences between the two formats - in addition to height.

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:33
  Old Post 10-02-2004 16:38 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Support Apolyton buy from Amazon

You're both definitely talking about the same thing, though different aspects of it. I'm afraid I can't fix it.

The screenshot below should say a lot. I adjusted the unit height to 128. I, ahem, improvised the fortress graphic a bit so I could see whether it overlapped the unit or not.

It seems the fortress is drawn twice. Once when the terrain is painted (the one that is actually on the right square), then a second time along with the unit (64 down from the top of the shield). That second one overlaps the unit, and that's also how it shows up on the status window.

The difference with the fortify graphic, is that fortifying is only a unit property, while the fortress is really a terrain property. That means the fortify graphic is only painted once, along with the unit, as per the second time for the fortress.

So it isn't really that the sprite is suddenly on top of the fortress, but rather that the top fortress has disappeared, revealing the bottom fortress which you normally wouldn't see (except on squares with no units on it, but in that case you won't know it's actually a different one).

I tried to see if I could use a different approach for hiding the shields by increasing the unit width rather than height. If the shield were centered at the top that should also make it disappear. But unfortunately the shield doesn't move.

So, bad luck! Unless one day someone hacks the executable and changes the fixed fortress/shield dependence to a variable one, based on the unit height. I guess they weren't expecting anyone would crack the sprite format.

Bad Microprose, Bad!

*smacks Mick Uhl and John Possidente on the head repeatedly with a sprite*

Attachment: image2.jpg
This has been downloaded 53 time(s).

Catfish is offline Catfish
Warlord
Wollongong, Australia
Aug 2000
time: 14:33
  Old Post 10-02-2004 17:32 Visit Catfish's homepage!
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Get a bigger avatar today!

Two! fortress graphics. Well, I'll be buggered. Apologies to Boco.

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:33
  Old Post 10-02-2004 17:50 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
Increase the size of your Attachments

quote:
None of my 640 pixel sprites show anything when fortified.
I didn't look 64 pixels below the unit key in the shift-x view.

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:33
  Old Post 10-02-2004 20:45 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#18 Report this post to a moderator
Avatar Enlargement: We've got the solution

I tested a little more to see if perhaps there was a convenient "bug" that would make the fortress appear in the right place, but alas! I do know now that a unit height of -2147483584 works the same as 64 though... Not that that makes any difference, but I thought I'd throw a few numbers around.

So... Should I still keep the possibility of lowering the shield? I guess I should, although adding a note about the graphical consequences would be helpful (whenever I ever actually continue working on SpriteGen ).

By the way, if the fortify graphic forms a problem, it might be an idea to turn it into some sort of marker (like the shield or flags in El Aurens) rather than something that should actually resemble a fortress.

I'm not sure how that would be possible with the fortress graphic though.

Boco is offline Boco
Prince
who was once King for a week.
Jan 2001
time: 00:33
  Old Post 11-02-2004 06:07 Visit Boco's homepage!
Edit/Delete Message Reply w/Quote
#19 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

quote:
So... Should I still keep the possibility of lowering the shield?
Yes, keep it in! Seriously, it's not a major problem in my book. I really like how the shorter units reduce unit clutter in areas crawling with units.

Currently, I'm adjusting the y setting for Fortified to fit a 55 pixel high unit. The shorter ones, I'll increase to 55. The taller ones...well they'll dig in a little deeper. Need to think a little on making an icon that can handle different heights. The marker is a good idea. EA's fortress is already a small symbol.

Does ToT have a shade in city.bmp that converts to the owning civ's color? IIRC, red (rgb=FF0000) did it for MGE, and I miss it. Case once made me a few slick airbase icons whose tents ToT displayed in garish red. Uh-oh, I just realized I need to check how my units look on airbases, too.

Mercator is offline Mercator
King
Sorekara no Nanimo
Jan 1970
time: 06:33
  Old Post 11-02-2004 15:52 Visit Mercator's homepage!
Edit/Delete Message Reply w/Quote
#20 Report this post to a moderator
Inflate your Upload Space

I'm pretty sure there's no mask color in the cities.bmp.

Oh, and airbases (or any of the other tile improvements) aren't affected by the above, because units always appear on top of them, not under them.

Catfish is offline Catfish
Warlord
Wollongong, Australia
Aug 2000
time: 14:33
  Old Post 11-02-2004 17:08 Visit Catfish's homepage!
Edit/Delete Message Reply w/Quote
#21 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

quote:
Originally posted by Boco
I didn't look 64 pixels below the unit key in the shift-x view.

Hey, I didn't look 768 pixels above my fortress graphic. Who's the goose?

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:33.
Apolyton Time is 00:33.
    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.0590 seconds (92.36% PHP - 7.64% 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