Advertisement
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization

Notices

Reply
 
Thread Tools
Old Aug 01, 2011, 09:49 AM   #1
Nitram15
Pro Libertate!
 
Nitram15's Avatar
 
Join Date: Sep 2009
Location: Hungary
Posts: 1,799
Images: 4
Unhappy Color editing

I've been creating mods for a while, and always stuck at the color editing.
I know how to create colors, add them to the game etc. but can't get the EXACT color I want.

Probably you don't understand me yet. I mean the colors in civ 4 are not the same RGB values than (ex.) Gimp RGB, the Civ 4 ones are Float values.

Now I have tons of values I want to implant, but all of them are in 0-255 format (tipycal RGB format).
For example I have:
R 9
G 79
B 150
then how can I calculate it to Civ 4 float format?
__________________
HUNGARY TO CIVILIZATION! ONLINE PETITION HERE:
http://www.change.org/petitions/fira...o-civilization
PUT THIS MESSAGE TO YOUR SIGNATURE TOO!
Nitram15 is offline   Reply With Quote
Old Aug 01, 2011, 11:21 AM   #2
Tholal
Emperor
 
Join Date: May 2009
Posts: 1,260
I believe the float values are percentages of the standard RGB values. So, for example, a value of 256 would convert to 1.0, while a value of 9 would convert to 0.03 (9 divided by 256).

And then of course, the fAlpha value is for transparency.
__________________

More Naval AI (an AI mod for FFH2) - focusing on bugfixes, stability and AI improvement
Tholal is offline   Reply With Quote
Old Aug 01, 2011, 11:30 AM   #3
Nitram15
Pro Libertate!
 
Nitram15's Avatar
 
Join Date: Sep 2009
Location: Hungary
Posts: 1,799
Images: 4
Huh, you seem to be right. Well, I shall try that.
__________________
HUNGARY TO CIVILIZATION! ONLINE PETITION HERE:
http://www.change.org/petitions/fira...o-civilization
PUT THIS MESSAGE TO YOUR SIGNATURE TOO!
Nitram15 is offline   Reply With Quote
Old Aug 01, 2011, 02:15 PM   #4
Farsight
Magical Unicorn Historian
 
Farsight's Avatar
 
Join Date: Sep 2007
Location: Equestria
Posts: 2,130
Images: 8
Simply divide the RGB value by 255, then input the first two digits of the decimal number you get.
__________________
"Learn to shorten your reach! If your foe can come close enough to negate your striking power, all stratagem is lost and when all stratagem is lost, the battle is lost."-Commander Farsight

South of OT, there is no law. South of the Chamber, there is no God.
Farsight is offline   Reply With Quote
Old Aug 01, 2011, 02:40 PM   #5
Nitram15
Pro Libertate!
 
Nitram15's Avatar
 
Join Date: Sep 2009
Location: Hungary
Posts: 1,799
Images: 4
Yup, I figured out now. And it seems to be working.
__________________
HUNGARY TO CIVILIZATION! ONLINE PETITION HERE:
http://www.change.org/petitions/fira...o-civilization
PUT THIS MESSAGE TO YOUR SIGNATURE TOO!
Nitram15 is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Color editing

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Advertisement

All times are GMT -6. The time now is 11:51 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This site is copyright © Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR