• Welcome to Smashboards, the world's largest Super Smash Brothers community! Over 250,000 Smash Bros. fans from around the world have come to discuss these great games in over 19 million posts!

    You are currently viewing our boards as a visitor. Click here to sign up right now and start on your path in the Smash community!

button activator gc values in hex help

codfish92

Smash Ace
Joined
Apr 17, 2009
Messages
954
Location
Denver Colorado: wishing it was never summer.
This is for wired GC button values ONLY! the math i am about to explain applies to wired GC controllers only(no wiimote(and chuck) or wavebird)

i recently posted a code in meleemasters nstc code thread. the code was a button activator code. in the post i have this note for how to add GC hex values and have a multiple button code activator.
(Addition is byte by byte(column by column))
Example 1: A+B Activator | 0180 + 0280 = 0380
Example 2: X+Y Activator | 0480 + 0880 = 0C80
Example 3: L+R Activator | 00A0 + 00C0 = 00E0
Example 4: L+A Activator | 00C0 + 0180 = 01C0
Example 5: R+B Activator | 00A0 + 0280 = 02A0
Final Ex.: L+R+A+B Activator | 00A0 + 00C0 + 0180 + 0280 = 03E0
values used in post
0080 - No Button
0081 - D-Pad Left
0082 - D-Pad Right
0084 - D-Pad Down
0088 - D-Pad Up
0090 - Z
00A0 - R
00C0 - L
0180 - A
0280 - B
0480 - X
0880 - Y
1080 - Start/Pause


in about 6 hours after posting the code, i received about 10 pm's asking me how the creator of the code got these numbers and if they are right or wrong. The number are right, the creator just forgot to mention one important thing. wired GC controllers have a button id to show if the d-pad is being pressed this is represented by 008?(? is replaced either by 0 for no d-pad direction pressed, 1 for left, 2 for right, 4 for down, 8 for up)
Every button value will have this D-pad button id in it's code. However, the value only needs to be applied once when adding the button values.

THIS MEANS YOU MUST SUBTRACT 0080 FROM EVERY BUTTON VALUE BEFORE ADDING THEM BYTE BY BYTE!

here are the button values WITHOUT the d-pad values
USE THESE VALUES WHEN TRYING TO ADD A MULTIPLE BUTTON CODE ACTIVATOR
0000 - No Button
0001 - D-Pad Left
0002 - D-Pad Right
0004 - D-Pad Down
0008 - D-Pad Up
0010 - Z
0020 - R
0040 - L
0100 - A
0200 - B
0400 - X
0800 - Y
1000 - Start/Pause

after added those values byte by byte, you will get a number. example lets say i want R+L+X button activator. first i would add byte by byte the values i just posted
0 0 2 0 = R
0 0 4 0 = L
0 4 0 0 = X
+ + + +
0 4 6 0 = the button code without the d-pad value.
THIS IS NOT THE FINAL NUMBER. Although we added the values without the d-pad value, we now have to put the d-pad value back in. This is relatively simple. just add 0080 once
0 4 6 0 = the button code without the d-pad value
0 0 8 0 = d-pad value (ONLY APPLY ONCE)
+ + + +
0 4 E 0 = the final button Value

Now you have the final button value. you would use that number in the code.
If you want the code look here http://www.smashboards.com/showthread.php?t=209575&page=15 it should be on page 15 if the link doesn't take you there already

if you still don't understand how the math is done, just post what buttons you want added and i will tell you the final number.



code by full metal kirby, NOT ME.
 
Top Bottom