Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → GetSectorTint() = completely useless?
GetSectorTint() = completely useless?
2004-04-26, 7:11 AM #1
I spent about an hour and half trying to pull out the red, green, and blue values of a given sector's tint and could NOT get it to work for me. [http://forums.massassi.net/html/frown.gif]

Here's what I learned:
The sector tint value from GetSectorTint() is a vector with three values, so I figured I should try to pull the red value out with GetVectorX(), but this always returns zero. So I cant get the color valuse with that, and there is no GetVectorR().

So after spending hours trying to get this to work, i came to this conclusion: wtf did they put this verb in for? Only use I can think for it is to compate a sector's current tint to another tint. But for what i'm trying to do, I need to get the actual RGB values (in some form) so i can add to them to get the fading effect i'm going for. [http://forums.massassi.net/html/frown.gif] Anybody know anything that could help me?

------------------
One day, after everybody else quits, I'll be the best.
Sith Mercenaries
^My site.
One day, after everybody else quits, I'll be the best.
Sith Mercenaries
^My site.
2004-04-26, 8:47 AM #2
You are using VectorX(), right?

If so, try PrintVector(GetSectorTint(sec)). If all axes show up as zeroes, make sure you've got the right sector, and that the tint has indeed been changed.

------------------
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
Author of the JK DataMaster, Parsec, Scribe, and the EditPlus Cog Files.
2004-04-26, 2:30 PM #3
I am using VectorX(), correct, and when I print the color tint vector, they are not all zeros.

------------------
One day, after everybody else quits, I'll be the best.
Sith Mercenaries
^My site.
One day, after everybody else quits, I'll be the best.
Sith Mercenaries
^My site.
2004-04-26, 8:40 PM #4
This should work:
Code:
flexy = VectorX(GetSectorTint(sector));
PrintFlex(flexy);

Flexy is a flex variable, of course.

------------------
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)

↑ Up to the top!