Go Back   BWHacks > Development > Reverse Engineering > Code Snippets and Tutorials

Code Snippets and Tutorials The place for open source releases, great information, and tutorials written by other members.

Reply
 
LinkBack Thread Tools

Old 07-21-2007, 03:04 PM   #1 (permalink)
SC_Modder
Loading javascript...
Senior Member
Moderator

Inquisitor
 
SC_Modder's Avatar
 
Join Date: Nov 2004
Posts: 4,523
SC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond repute
Send a message via AIM to SC_Modder
Default [Starcraft] New color codes

I haven't seen any documentation for the new colors Blizzard added, so I went ahead and did it myself.

Also, I don't remember the difference between 01h and 02h, so if anyone can specify that would be great.

Code:
0x01 - Boring grey
0x02 - Boring grey
0x03 - Yellow
0x04 - White
0x05 - Sticky dark grey (don't use)
0x06 - Red
0x07 - Green

-- Control
0x08 - Invisible
0x09 - Tabulation
0x0A - Newline
0x0B - ?
0x0C - Used to crash back in v1.12 and below, now is only newline
0x0D - Invisible
--/Control

0x0E - River blue
0x0F - Teal
0x10 - Purple
0x11 - Orange

-- Control
0x12 - Align text right
0x13 - Align text center
0x14 - Text is gone?
--/Control

0x15 - Brown
0x16 - White (not as bright as 0x04)
0x17 - Yellow
0x18 - Dark Green
0x19 - Yellow?
0x1A - Yellow?
0x1C - Navy blue
0x1D - Army green
0x1E - Grey
0x1F - Teal
Also, does anyone know how the function that prints into the chat handles the username color? I looked at it briefly and it seems to use a huge switch statement but I didn't bother doing much more.
__________________
AaronOpfer.com - My music
SC_Modder 15 0FF11|\|3   Reply With Quote
Advertisement
 
Advertisement
Advertisement Sponsored links


Old 07-21-2007, 04:15 PM   #2 (permalink)
Tensaei
Senior Member

Zealot
 
Tensaei's Avatar
 
Join Date: Jul 2005
Location: Pirate Cove
Posts: 950
Tensaei is a glorious beacon of lightTensaei is a glorious beacon of lightTensaei is a glorious beacon of light
Send a message via AIM to Tensaei
Default

0x01 -  - Mimic(Default: Cyan)
0x02 -  - Cyan

I wouldn't know what Mimic would be.
(This is from 1.14, maybe it's the same in 1.15)
__________________
(☞゚∀゚)☞☜(゚∀゚☜)
RUN AWAY RUN AWAY RUN AWAY RUN AWAY RUN AWAY RUN AWAY RUN AWAY
Tensaei 15 0FF11|\|3   Reply With Quote

Old 07-21-2007, 04:22 PM   #3 (permalink)
SC_Modder
Loading javascript...
Senior Member
Moderator

Inquisitor
 
SC_Modder's Avatar
 
Join Date: Nov 2004
Posts: 4,523
SC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond reputeSC_Modder has a reputation beyond repute
Send a message via AIM to SC_Modder
Default

Mimic means the text takes on whatever color is before it I do believe.
__________________
AaronOpfer.com - My music
SC_Modder 15 0FF11|\|3   Reply With Quote

Old 07-21-2007, 05:52 PM   #4 (permalink)
K? Pŕo?ćtiόnŹ
=)
Senior Member
Retired Staff Member

Messiah
 
K? Pŕo?ćtiόnŹ's Avatar
 
Join Date: Oct 2004
Location: Okinawa
Posts: 9,347
K? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond repute
Send a message via AIM to K? Pŕo?ćtiόnŹ
Default

I did...
__________________
K? Pŕo?ćtiόnŹ 15 0FF11|\|3   Reply With Quote

Old 08-11-2008, 08:25 AM   #5 (permalink)
Totte_ch

Deviant
 
Totte_ch's Avatar
 
Join Date: May 2007
Location: Sweden
Posts: 108
Totte_ch is on a distinguished road
Default P1 color

I know this is a quite old thread, but I didn't want to create a new one. I wonder if someone knows where the P1 color is.
Code:
0x0E - River blue (P2)
0x0F - Teal (P3)
0x10 - Purple (P4)
0x11 - Orange (P5)
0x15 - Brown (P6)
0x16 - White (P7)
0x17 - Yellow (P8)
All players are in the list, but P1. Does anyone know what hex number it has? Does it exists?
Totte_ch 15 0FF11|\|3   Reply With Quote

Old 08-11-2008, 08:30 AM   #6 (permalink)
K? Pŕo?ćtiόnŹ
=)
Senior Member
Retired Staff Member

Messiah
 
K? Pŕo?ćtiόnŹ's Avatar
 
Join Date: Oct 2004
Location: Okinawa
Posts: 9,347
K? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond reputeK? Pŕo?ćtiόnŹ has a reputation beyond repute
Send a message via AIM to K? Pŕo?ćtiόnŹ
Default

This is from a previous patch, it may need updating.

Code:
GetPlayerColor proc index:byte ;(starts at 0);Palo's nose?
    push ebx
	mov ebx,581DBEh
	add bl,index
	xor eax,eax
	mov al,[ebx]
	pop ebx
	.if al==6fh
		mov al,8
	.elseif al==0A5h
		mov al,0Eh
	.elseif al==9Fh
		mov al,0Fh
	.elseif al==0A4h
		mov al,10h
	.elseif al==9Ch
		mov al,11h
	.elseif al==13h
		mov al,15h
	.elseif al==54h
		mov al,16h
	.elseif al==87h
		mov al,17h
	.elseif al==0B9h
		mov al,18h
	.elseif al==88h
		mov al,19h
	.elseif al==86h
		mov al,1Bh
	.elseif al==33h
		mov al,1Ch
	.elseif al==4Dh
		mov al,1Dh
	.elseif al==9Ah
		mov al,1Eh
	.elseif al==80h
		mov al,1Fh
	.endif
	ret
GetPlayerColor endp
__________________
K? Pŕo?ćtiόnŹ 15 0FF11|\|3   Reply With Quote

Old 08-11-2008, 08:56 AM   #7 (permalink)
ghostboy78

Disciple
 
ghostboy78's Avatar
 
Join Date: Dec 2005
Location: Oak Harbor, Washington
Posts: 506
ghostboy78 is on a distinguished road
Send a message via MSN to ghostboy78
Default

Quote:
Originally Posted by Totte_ch View Post
All players are in the list, but P1. Does anyone know what hex number it has? Does it exists?
Ya it exists, for red in 0x581DBE it would be 0x6F, and for a color character the game uses 0x08.
ghostboy78 15 0FF11|\|3   Reply With Quote

Old 08-11-2008, 04:26 PM   #8 (permalink)
nano351
Banned

Evangelist
 
Join Date: Dec 2007
Location: Pennsylvania
Posts: 1,181
nano351 is a jewel in the rough
Send a message via ICQ to nano351 Send a message via AIM to nano351 Send a message via MSN to nano351 Send a message via Yahoo to nano351 Send a message via Skype™ to nano351
Default

Quote:
Originally Posted by K? Pŕo?ćtiόnŹ View Post
This is from a previous patch, it may need updating.

Code:
GetPlayerColor proc index:byte ;(starts at 0);Palo's nose?
    push ebx
    mov ebx,581DBEh
    add bl,index
    xor eax,eax
    mov al,[ebx]
    pop ebx
    .if al==6fh
        mov al,8
    .elseif al==0A5h
        mov al,0Eh
    .elseif al==9Fh
        mov al,0Fh
    .elseif al==0A4h
        mov al,10h
    .elseif al==9Ch
        mov al,11h
    .elseif al==13h
        mov al,15h
    .elseif al==54h
        mov al,16h
    .elseif al==87h
        mov al,17h
    .elseif al==0B9h
        mov al,18h
    .elseif al==88h
        mov al,19h
    .elseif al==86h
        mov al,1Bh
    .elseif al==33h
        mov al,1Ch
    .elseif al==4Dh
        mov al,1Dh
    .elseif al==9Ah
        mov al,1Eh
    .elseif al==80h
        mov al,1Fh
    .endif
    ret
GetPlayerColor endp
yeah that's up to date.
nano351 15 0FF11|\|3   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Advertisement

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[StarCraft] Public Warden Discussion AgentGOD Reverse Engineering 49 09-06-2007 07:50 AM
[StarCraft] StatsHack v1.3 K? Pŕo?ćtiόnŹ Old downloads 15 08-19-2007 11:40 PM
[StarCraft] Yet Another Multicommand Palomino Old downloads 155 08-18-2007 12:32 PM
[Starcraft] Real-time Ownage Hack v5.07 AgentGOD Old downloads 29 07-15-2007 10:48 PM
[StarCraft] CheckRevision Work Around Palomino Old downloads 15 06-21-2007 02:02 AM


All times are GMT. The time now is 02:30 AM.


vBulletin style developed by Transverse Styles

Powered by vBulletin Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
Copyright © 2004-2008 BWHacksAd Management by RedTyger