wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Resources > Code Resources > Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 09-08-2009, 04:58 PM   #46
Mr.Malte
User
 
Mr.Malte's Avatar
 
Join Date: Apr 2008
Posts: 286

Submissions (2)

Mr.Malte is on a distinguished road (11)

Default

But blizzard should know the colors, they gave to players.
These colors always work perfectly for me.
Mr.Malte is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 09-08-2009, 06:12 PM   #47
Earth-Fury
Two Blue
 
Earth-Fury's Avatar
 
Join Date: Mar 2003
Posts: 2,179

Submissions (7)

Earth-Fury is just really nice (343)Earth-Fury is just really nice (343)Earth-Fury is just really nice (343)Earth-Fury is just really nice (343)

Send a message via MSN to Earth-Fury
Default

http://www.hiveworkshop.com/forums/498945-post3.html

playercolours taken from the editor's Player Properties dialog.
__________________
Useful Links:
My Resources:
Good Resources:
Search
Tutorials
Ability Guide

UnitMaxState
BonusMod

AutoIndex
ARGB
TimerUtils

Earth-Fury is offline   Reply With Quote
Old 09-08-2009, 07:15 PM   #48
Skater
User
 
Skater's Avatar
 
Join Date: Jan 2007
Posts: 80

Skater is on a distinguished road (17)

Default

Cyan is actually #1ce6b9 xD
I got it from some file inside the mpq. I can't remember the exact file. Maybe something
with replaceabletextures\teamcolor.
But i still have the list of exact playercolors.
Code:
#  Player			RED	GREEN	BLUE	HEX-CODE


0  PLAYER_COLOR_RED =		255	3	3	ff0303
1  PLAYER_COLOR_BLUE =		0	66	255	0042ff
2  PLAYER_COLOR_CYAN =		28	230	185	1ce6b9
3  PLAYER_COLOR_PURPLE =	84	0	129	540081
4  PLAYER_COLOR_YELLOW =	255	252	1	fffc01
5  PLAYER_COLOR_ORANGE =	254	138	14	fe8a0e
6  PLAYER_COLOR_GREEN =		32	192	0	20c000
7  PLAYER_COLOR_PINK =		229	91	176	e55bb0
8  PLAYER_COLOR_LIGHT_GRAY =	149	150	151	959697
9  PLAYER_COLOR_LIGHT_BLUE =	126	191	241	7ebff1
10 PLAYER_COLOR_AQUA =		16	98	70	106246
11 PLAYER_COLOR_BROWN =		78	42	4	4e2a04
__________________
Skater is offline   Reply With Quote
Old 09-15-2009, 07:24 AM   #49
Av3n
Roar!
 
Av3n's Avatar


Project Leader: TBR
Project Member: PoC
 
Join Date: May 2006
Posts: 1,853

Submissions (7)

Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)Av3n is a jewel in the rough (240)

Hero #4 extra-official winner2008 Spell olympics - Fire - BronzeHero Contest #3 - 3rd Place

Default

Vex by any chance that you will implement a function to convert a |c00ffffff|r string to an ARGB struct? If not can you post a code that demonstrates it instead?

-Av3n
__________________

Thanks to FatherTime for the sig
.:
Current ProjectsSubmissions
Power of CorruptionMy Terrain
The Black RoadMy Resources
Strikeforce
Twitter
Av3n is offline   Reply With Quote
Old 09-16-2009, 02:27 AM   #50
Drain Pipe
User
 
Join Date: May 2006
Posts: 129

Drain Pipe has little to show at this moment (3)

Default

Alpha doesn't work :/
Drain Pipe is offline   Reply With Quote
Old 09-16-2009, 02:02 PM   #51
Anachron
User
 
Anachron's Avatar
 
Join Date: Mar 2009
Posts: 1,079

Anachron will become famous soon enough (51)Anachron will become famous soon enough (51)

Default

Quote:
Originally Posted by Drain Pipe
Alpha doesn't work :/
Tried 255? :P
__________________
CustomInventory [Discussion - Download] - Got Directors Cut!
CustomMissle [Discussion - [Download (not yet)] - In development!
Other systems [Spawn System] [Move System] [CustomBar] [SpellBar]
Anachron is offline   Reply With Quote
Old 09-16-2009, 04:56 PM   #52
Deaod
User
 
Join Date: Jan 2007
Posts: 541

Submissions (11)

Deaod is a jewel in the rough (192)Deaod is a jewel in the rough (192)Deaod is a jewel in the rough (192)

Send a message via ICQ to Deaod Send a message via MSN to Deaod
Default

Alpha doesnt work in what context? Where did you use it?
__________________
Deaod is offline   Reply With Quote
Old 10-27-2009, 02:43 PM   #53
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,905

Submissions (37)

Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)

Hero Contest #3 - 2nd Place

Default

1.2, fixed the player colors, and added fromPlayerColor.

If I remember correctly, I originally took the colors from the first place as Skater. if you had an older version of ARGB you may notice there are a lot of coincidences, apparently I just had a couple of typos when copying, sorry.
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 10-27-2009, 02:48 PM   #54
Vexorian
Free Software Terrorist
 
Vexorian's Avatar


Technical Director
 
Join Date: Apr 2003
Posts: 14,905

Submissions (37)

Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)Vexorian has a reputation beyond repute (1060)

Hero Contest #3 - 2nd Place

Default

Quote:
Originally Posted by Av3n
Vex by any chance that you will implement a function to convert a |c00ffffff|r string to an ARGB struct? If not can you post a code that demonstrates it instead?

-Av3n
I would first have some Table that converts things like "F" and "f" to 15, "A" and "a" to 10, etc.

Then I would use that table to be able to convert "FF" to 15*16+15, etc.

Then splity the string you provided to the function into four couples of hex values, each of these will generate a value from 0 to 255 then use ARGB.create with these values.
__________________
Zoom (requires log in)Wc3 map optimizer 5.0
Someone should fix .wav sound in this thing.
Zoom (requires log in)JassHelper 0.A.2.A
Turns your simple code into something that is complicated enough to work.
Faster != more useful
Vexorian is offline   Reply With Quote
Old 11-26-2009, 09:31 PM   #55
Anitarf
Procrastination Incarnate


Development Director
 
Join Date: Feb 2004
Posts: 8,080

Submissions (19)

Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)Anitarf has a brilliant future (888)

2008 Spell olympics - Fire - SilverApproved Map: Old School Alliance TacticsHero Contest #2 - 3rd PlaceSpell making session 2 winner

Default

Okay, I seem to have stumbled on some weird bug with the ARGBrecolor module used in xefx:

This works (the xefx are of the desired colour):
call charge.fx.recolor(FX_END_COLOUR.red,FX_END_COLOUR.green,FX_END_COLOUR.blue,FX_END_COLOUR.alpha)
And this doesn't (the xefx are invisible):
call charge.fx.ARGBrecolor(FX_END_COLOUR)
I tried making the xefx dummy unit public so I could also test this and it also worked:
call FX_END_COLOUR.recolorUnit(charge.fx.dummy)
I have the latest xefx and ARGB in my map. This line of code is the only one I changed between tests. I have no idea why ARGBrecolor doesn't work because it and recolorUnit seem to be using the exact same code.
__________________
Anitarf is offline   Reply With Quote
Old 12-12-2009, 04:16 PM   #56
Kueken
User
 
Join Date: Mar 2009
Posts: 149

Kueken will become famous soon enough (41)Kueken will become famous soon enough (41)

Default

So, I just tested this a bit, and should not this:
Collapse JASS:
module ARGBrecolor
    method ARGBrecolor takes ARGB color returns nothing
    ...
     local integer col=integer(this)
...

look more like this way?
Collapse JASS:
module ARGBrecolor
    method ARGBrecolor takes ARGB color returns nothing
    ...
     local integer col=integer(color)
...

Otherwise, it would convert the struct, in which the module is implemented to a color, or not?
At least, for me some messages showed, col was always the current instance of the struct and not any color, thus it was usually translated to (instance) blue rest 0.
Changing "this" to "color" made it work properly.

This should be exactly the same problem Anitarf mentioned, I tried xefx, and the same error happened, the dummys became invisible. However, changing this to color in ARGBrecolor method fixed this, too.

Or am I using ARGB wrong?

Last edited by Kueken : 12-12-2009 at 07:01 PM.
Kueken is offline   Reply With Quote
Old 07-15-2010, 06:38 PM   #57
SanKakU
User
 
Join Date: Jan 2009
Posts: 133

SanKakU has a little shameless behaviour in the past (-1)

Send a message via AIM to SanKakU Send a message via MSN to SanKakU Send a message via Yahoo to SanKakU
Default

can you change colors of players and their units with this system? this will include hero glow, right? sounds cool...

Last edited by SanKakU : 07-15-2010 at 06:39 PM.
SanKakU is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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


All times are GMT. The time now is 12:05 PM.


Donate

Affiliates
The Hubb http://bylur.com - Warcraft, StarCraft, Diablo and DotA Blog & Forums The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2014, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services