Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.

TrollandToad.com
Reply
 
Thread Tools
  #1    
Old July 4th, 2011 (3:54 AM).
kram65536 kram65536 is offline
     
    Join Date: Jan 2008
    Gender:
    Posts: 17
    Time that everyone sees how worthless I really am. I try to help others only to hurt them, btw, I have begun on adding color support to ClassicMap, but knowing that everything I do is pointless, I will just simply leave behind my c# SGBPal class for all to work with themselves, request permaban and leave (and then I shall be hated as things should be due to my autism)

    Code:
        public class SGBPal
        {
            private byte[] buffer;
            private ushort[] colors;
            private Color[] wincolors;
            private ushort temp1;
            private ushort temp2;
            protected int red;
            protected int green;
            protected int blue;
            protected int alpha;
            public Color TransColor
            {
                get
                {
                    temp1 = buffer[1];
                    temp2 = buffer[0];
                    temp2 = (ushort)(temp2 * 256);
                    temp1 = (ushort)(temp1 + temp2);
                    red = temp1 & 0x1F;
                    green = (temp1 & 0x3E0) / 32;
                    blue = (temp1 & 0x7C00) / 1024;
                    alpha = 31;
                    red = red * 8;
                    green = green * 8;
                    blue = blue * 8;
                    alpha = alpha * 8;
                    wincolors[0] = Color.FromArgb(alpha, red, green, blue);
                    return wincolors[0];
                }
                set
                {
                    wincolors[0] = value;
                    red = wincolors[0].R / 8;
                    green = wincolors[0].G / 8;
                    blue = wincolors[0].B / 8;
                    temp1 = (ushort)blue;
                    temp1 = (ushort)((temp1 * 32) + green);
                    temp1 = (ushort)((temp1 * 32) + red);
                    temp2 = (ushort)(temp1 & 0xFF);
                    temp1 = (ushort)((temp1 & 0xFF00) / 256);
                    buffer[0] = (byte)temp1;
                    buffer[1] = (byte)temp2;
                }
            }
            public Color Color1
            {
                get
                {
                    temp1 = buffer[3];
                    temp2 = buffer[2];
                    temp2 = (ushort)(temp2 * 256);
                    temp1 = (ushort)(temp1 + temp2);
                    red = temp1 & 0x1F;
                    green = (temp1 & 0x3E0) / 32;
                    blue = (temp1 & 0x7C00) / 1024;
                    alpha = 31;
                    red = red * 8;
                    green = green * 8;
                    blue = blue * 8;
                    alpha = alpha * 8;
                    wincolors[1] = Color.FromArgb(alpha, red, green, blue);
                    return wincolors[1];
                }
                set
                {
                    wincolors[1] = value;
                    red = wincolors[1].R / 8;
                    green = wincolors[1].G / 8;
                    blue = wincolors[1].B / 8;
                    temp1 = (ushort)blue;
                    temp1 = (ushort)((temp1 * 32) + green);
                    temp1 = (ushort)((temp1 * 32) + red);
                    temp2 = (ushort)(temp1 & 0xFF);
                    temp1 = (ushort)((temp1 & 0xFF00) / 256);
                    buffer[2] = (byte)temp1;
                    buffer[3] = (byte)temp2;
                }
            }
            public Color Color2
            {
                get
                {
                    temp1 = buffer[5];
                    temp2 = buffer[4];
                    temp2 = (ushort)(temp2 * 256);
                    temp1 = (ushort)(temp1 + temp2);
                    red = temp1 & 0x1F;
                    green = (temp1 & 0x3E0) / 32;
                    blue = (temp1 & 0x7C00) / 1024;
                    alpha = 31;
                    red = red * 8;
                    green = green * 8;
                    blue = blue * 8;
                    alpha = alpha * 8;
                    wincolors[2] = Color.FromArgb(alpha, red, green, blue);
                    return wincolors[2];
                }
                set
                {
                    wincolors[2] = value;
                    red = wincolors[2].R / 8;
                    green = wincolors[2].G / 8;
                    blue = wincolors[2].B / 8;
                    temp1 = (ushort)blue;
                    temp1 = (ushort)((temp1 * 32) + green);
                    temp1 = (ushort)((temp1 * 32) + red);
                    temp2 = (ushort)(temp1 & 0xFF);
                    temp1 = (ushort)((temp1 & 0xFF00) / 256);
                    buffer[4] = (byte)temp1;
                    buffer[5] = (byte)temp2;
                }
            }
            public Color Color3
            {
                get
                {
                    temp1 = buffer[7];
                    temp2 = buffer[6];
                    temp2 = (ushort)(temp2 * 256);
                    temp1 = (ushort)(temp1 + temp2);
                    red = temp1 & 0x1F;
                    green = (temp1 & 0x3E0) / 32;
                    blue = (temp1 & 0x7C00) / 1024;
                    alpha = 31;
                    red = red * 8;
                    green = green * 8;
                    blue = blue * 8;
                    alpha = alpha * 8;
                    wincolors[3] = Color.FromArgb(alpha, red, green, blue);
                    return wincolors[3];
                }
                set
                {
                    wincolors[3] = value;
                    red = wincolors[3].R / 8;
                    green = wincolors[3].G / 8;
                    blue = wincolors[3].B / 8;
                    temp1 = (ushort)blue;
                    temp1 = (ushort)((temp1 * 32) + green);
                    temp1 = (ushort)((temp1 * 32) + red);
                    temp2 = (ushort)(temp1 & 0xFF);
                    temp1 = (ushort)((temp1 & 0xFF00) / 256);
                    buffer[6] = (byte)temp1;
                    buffer[7] = (byte)temp2;
                }
            }
            public void FillBuffer(byte[] bufferdata)
            {
                buffer = bufferdata;
            }
    
            public byte[] GetBuffer()
            {
                return buffer;
            }
    
            public void SGBPal(byte[] bufferdata)
            {
                buffer = bufferdata;
            }
    
            public void SGBPal()
            {
                buffer[0] = 0;
                buffer[1] = 0;
                buffer[2] = 0;
                buffer[3] = 0;
                buffer[4] = 0;
                buffer[5] = 0;
                buffer[6] = 0;
                buffer[7] = 0;
            }
    
            public void SGBPal(Color Trans, Color c1, Color c2, Color c3)
            {
                wincolors[0] = Trans;
                wincolors[1] = c1;
                wincolors[2] = c2;
                wincolors[3] = c3;
                red = wincolors[0].R / 8;
                green = wincolors[0].G / 8;
                blue = wincolors[0].B / 8;
                temp1 = (ushort)blue;
                temp1 = (ushort)((temp1 * 32) + green);
                temp1 = (ushort)((temp1 * 32) + red);
                temp2 = (ushort)(temp1 & 0xFF);
                temp1 = (ushort)((temp1 & 0xFF00) / 256);
                buffer[0] = (byte)temp1;
                buffer[1] = (byte)temp2;
                red = wincolors[1].R / 8;
                green = wincolors[1].G / 8;
                blue = wincolors[1].B / 8;
                temp1 = (ushort)blue;
                temp1 = (ushort)((temp1 * 32) + green);
                temp1 = (ushort)((temp1 * 32) + red);
                temp2 = (ushort)(temp1 & 0xFF);
                temp1 = (ushort)((temp1 & 0xFF00) / 256);
                buffer[2] = (byte)temp1;
                buffer[3] = (byte)temp2;
                red = wincolors[2].R / 8;
                green = wincolors[2].G / 8;
                blue = wincolors[2].B / 8;
                temp1 = (ushort)blue;
                temp1 = (ushort)((temp1 * 32) + green);
                temp1 = (ushort)((temp1 * 32) + red);
                temp2 = (ushort)(temp1 & 0xFF);
                temp1 = (ushort)((temp1 & 0xFF00) / 256);
                buffer[4] = (byte)temp1;
                buffer[5] = (byte)temp2;
                red = wincolors[3].R / 8;
                green = wincolors[3].G / 8;
                blue = wincolors[3].B / 8;
                temp1 = (ushort)blue;
                temp1 = (ushort)((temp1 * 32) + green);
                temp1 = (ushort)((temp1 * 32) + red);
                temp2 = (ushort)(temp1 & 0xFF);
                temp1 = (ushort)((temp1 & 0xFF00) / 256);
                buffer[6] = (byte)temp1;
                buffer[7] = (byte)temp2;
            }
    
            public void SGBPal(byte byte1, byte byte2, byte byte3, byte byte4, byte byte5, byte byte6, byte byte7, byte byte8)
            {
                buffer[0] = byte1;
                buffer[1] = byte2;
                buffer[2] = byte3;
                buffer[3] = byte4;
                buffer[4] = byte5;
                buffer[5] = byte6;
                buffer[6] = byte7;
                buffer[7] = byte8;
            }
    
        };
    Reply With Quote

    Relevant Advertising!

      #2    
    Old July 4th, 2011 (9:54 AM).
    Incineroar's Avatar
    Incineroar Incineroar is online now
    the spirit of the fighter
    • Moderator
    • Platinum Tier
    • Developer
     
    Join Date: May 2009
    Location: Iki Town
    Age: 22
    Gender: Male
    Nature: Brave
    Posts: 13,555
    Quote:
    Originally Posted by kram65536 View Post
    Time that everyone sees how worthless I really am. I try to help others only to hurt them, btw, I have begun on adding color support to ClassicMap, but knowing that everything I do is pointless, I will just simply leave behind my c# SGBPal class for all to work with themselves, request permaban and leave (and then I shall be hated as things should be due to my autism)

    Code:
        public class SGBPal
        {
            private byte[] buffer;
            private ushort[] colors;
            private Color[] wincolors;
            private ushort temp1;
            private ushort temp2;
            protected int red;
            protected int green;
            protected int blue;
            protected int alpha;
            public Color TransColor
            {
                get
                {
                    temp1 = buffer[1];
                    temp2 = buffer[0];
                    temp2 = (ushort)(temp2 * 256);
                    temp1 = (ushort)(temp1 + temp2);
                    red = temp1 & 0x1F;
                    green = (temp1 & 0x3E0) / 32;
                    blue = (temp1 & 0x7C00) / 1024;
                    alpha = 31;
                    red = red * 8;
                    green = green * 8;
                    blue = blue * 8;
                    alpha = alpha * 8;
                    wincolors[0] = Color.FromArgb(alpha, red, green, blue);
                    return wincolors[0];
                }
                set
                {
                    wincolors[0] = value;
                    red = wincolors[0].R / 8;
                    green = wincolors[0].G / 8;
                    blue = wincolors[0].B / 8;
                    temp1 = (ushort)blue;
                    temp1 = (ushort)((temp1 * 32) + green);
                    temp1 = (ushort)((temp1 * 32) + red);
                    temp2 = (ushort)(temp1 & 0xFF);
                    temp1 = (ushort)((temp1 & 0xFF00) / 256);
                    buffer[0] = (byte)temp1;
                    buffer[1] = (byte)temp2;
                }
            }
            public Color Color1
            {
                get
                {
                    temp1 = buffer[3];
                    temp2 = buffer[2];
                    temp2 = (ushort)(temp2 * 256);
                    temp1 = (ushort)(temp1 + temp2);
                    red = temp1 & 0x1F;
                    green = (temp1 & 0x3E0) / 32;
                    blue = (temp1 & 0x7C00) / 1024;
                    alpha = 31;
                    red = red * 8;
                    green = green * 8;
                    blue = blue * 8;
                    alpha = alpha * 8;
                    wincolors[1] = Color.FromArgb(alpha, red, green, blue);
                    return wincolors[1];
                }
                set
                {
                    wincolors[1] = value;
                    red = wincolors[1].R / 8;
                    green = wincolors[1].G / 8;
                    blue = wincolors[1].B / 8;
                    temp1 = (ushort)blue;
                    temp1 = (ushort)((temp1 * 32) + green);
                    temp1 = (ushort)((temp1 * 32) + red);
                    temp2 = (ushort)(temp1 & 0xFF);
                    temp1 = (ushort)((temp1 & 0xFF00) / 256);
                    buffer[2] = (byte)temp1;
                    buffer[3] = (byte)temp2;
                }
            }
            public Color Color2
            {
                get
                {
                    temp1 = buffer[5];
                    temp2 = buffer[4];
                    temp2 = (ushort)(temp2 * 256);
                    temp1 = (ushort)(temp1 + temp2);
                    red = temp1 & 0x1F;
                    green = (temp1 & 0x3E0) / 32;
                    blue = (temp1 & 0x7C00) / 1024;
                    alpha = 31;
                    red = red * 8;
                    green = green * 8;
                    blue = blue * 8;
                    alpha = alpha * 8;
                    wincolors[2] = Color.FromArgb(alpha, red, green, blue);
                    return wincolors[2];
                }
                set
                {
                    wincolors[2] = value;
                    red = wincolors[2].R / 8;
                    green = wincolors[2].G / 8;
                    blue = wincolors[2].B / 8;
                    temp1 = (ushort)blue;
                    temp1 = (ushort)((temp1 * 32) + green);
                    temp1 = (ushort)((temp1 * 32) + red);
                    temp2 = (ushort)(temp1 & 0xFF);
                    temp1 = (ushort)((temp1 & 0xFF00) / 256);
                    buffer[4] = (byte)temp1;
                    buffer[5] = (byte)temp2;
                }
            }
            public Color Color3
            {
                get
                {
                    temp1 = buffer[7];
                    temp2 = buffer[6];
                    temp2 = (ushort)(temp2 * 256);
                    temp1 = (ushort)(temp1 + temp2);
                    red = temp1 & 0x1F;
                    green = (temp1 & 0x3E0) / 32;
                    blue = (temp1 & 0x7C00) / 1024;
                    alpha = 31;
                    red = red * 8;
                    green = green * 8;
                    blue = blue * 8;
                    alpha = alpha * 8;
                    wincolors[3] = Color.FromArgb(alpha, red, green, blue);
                    return wincolors[3];
                }
                set
                {
                    wincolors[3] = value;
                    red = wincolors[3].R / 8;
                    green = wincolors[3].G / 8;
                    blue = wincolors[3].B / 8;
                    temp1 = (ushort)blue;
                    temp1 = (ushort)((temp1 * 32) + green);
                    temp1 = (ushort)((temp1 * 32) + red);
                    temp2 = (ushort)(temp1 & 0xFF);
                    temp1 = (ushort)((temp1 & 0xFF00) / 256);
                    buffer[6] = (byte)temp1;
                    buffer[7] = (byte)temp2;
                }
            }
            public void FillBuffer(byte[] bufferdata)
            {
                buffer = bufferdata;
            }
    
            public byte[] GetBuffer()
            {
                return buffer;
            }
    
            public void SGBPal(byte[] bufferdata)
            {
                buffer = bufferdata;
            }
    
            public void SGBPal()
            {
                buffer[0] = 0;
                buffer[1] = 0;
                buffer[2] = 0;
                buffer[3] = 0;
                buffer[4] = 0;
                buffer[5] = 0;
                buffer[6] = 0;
                buffer[7] = 0;
            }
    
            public void SGBPal(Color Trans, Color c1, Color c2, Color c3)
            {
                wincolors[0] = Trans;
                wincolors[1] = c1;
                wincolors[2] = c2;
                wincolors[3] = c3;
                red = wincolors[0].R / 8;
                green = wincolors[0].G / 8;
                blue = wincolors[0].B / 8;
                temp1 = (ushort)blue;
                temp1 = (ushort)((temp1 * 32) + green);
                temp1 = (ushort)((temp1 * 32) + red);
                temp2 = (ushort)(temp1 & 0xFF);
                temp1 = (ushort)((temp1 & 0xFF00) / 256);
                buffer[0] = (byte)temp1;
                buffer[1] = (byte)temp2;
                red = wincolors[1].R / 8;
                green = wincolors[1].G / 8;
                blue = wincolors[1].B / 8;
                temp1 = (ushort)blue;
                temp1 = (ushort)((temp1 * 32) + green);
                temp1 = (ushort)((temp1 * 32) + red);
                temp2 = (ushort)(temp1 & 0xFF);
                temp1 = (ushort)((temp1 & 0xFF00) / 256);
                buffer[2] = (byte)temp1;
                buffer[3] = (byte)temp2;
                red = wincolors[2].R / 8;
                green = wincolors[2].G / 8;
                blue = wincolors[2].B / 8;
                temp1 = (ushort)blue;
                temp1 = (ushort)((temp1 * 32) + green);
                temp1 = (ushort)((temp1 * 32) + red);
                temp2 = (ushort)(temp1 & 0xFF);
                temp1 = (ushort)((temp1 & 0xFF00) / 256);
                buffer[4] = (byte)temp1;
                buffer[5] = (byte)temp2;
                red = wincolors[3].R / 8;
                green = wincolors[3].G / 8;
                blue = wincolors[3].B / 8;
                temp1 = (ushort)blue;
                temp1 = (ushort)((temp1 * 32) + green);
                temp1 = (ushort)((temp1 * 32) + red);
                temp2 = (ushort)(temp1 & 0xFF);
                temp1 = (ushort)((temp1 & 0xFF00) / 256);
                buffer[6] = (byte)temp1;
                buffer[7] = (byte)temp2;
            }
    
            public void SGBPal(byte byte1, byte byte2, byte byte3, byte byte4, byte byte5, byte byte6, byte byte7, byte byte8)
            {
                buffer[0] = byte1;
                buffer[1] = byte2;
                buffer[2] = byte3;
                buffer[3] = byte4;
                buffer[4] = byte5;
                buffer[5] = byte6;
                buffer[6] = byte7;
                buffer[7] = byte8;
            }
    
        };
    I don't see this that worthless. I assume this is for a Super Gameboy border for use on the Super Gameboy? I found this one time.

    Quote:
    1.4 System Program
    The system program can provide the following features.
    · On the T.V. screen, the system program displays the space outside the game screen (picture frame).
    The picture frame has the following features.
    · The frame can be selected from among 9 pre-loaded frames.
    · A mode in which an image created by the game producer is transferred and displayed as the frame.
    · A drawing mode that allows the user to create the frame.
    Features of the color palette selection screen are as follows.
    · Palettes can be selected from among 32 pre-loaded palettes.
    · A mode that allows colors to be set from DMG in DMG games.
    A mode is available that allows the user to arrange the colors on a palette.
    A screen is provided for changing the key configuration of the controller.
    And
    Quote:
    5.1 ROM Registration Data
    To use SGB functions (system commands), the following values must be stored at the ROM addresses indicated.
    x146 <---0x03 and 0x14B<---0x33
    Source: Gameboy Programmer's manual

    You can Google that term for more info on Super Gameboy data.
    __________________
    Reply With Quote
      #3    
    Old July 4th, 2011 (4:45 PM).
    Diegoisawesome's Avatar
    Diegoisawesome Diegoisawesome is offline
    Oh god the bees
    • Silver Tier
     
    Join Date: Dec 2007
    Location: :noitacoL
    Age: 20
    Gender: Male
    Nature: Naive
    Posts: 1,039
    Quote:
    Originally Posted by Team Fail View Post
    I assume this is for a Super Gameboy border for use on the Super Gameboy?
    Actually, no, what he was doing was adding color support from the SGB to ClassicMap.

    To kram: You are not worthless. Look what you're doing for the community by writing color support for ClassicMap, and everything else you've been doing for hacking! And with autism, too! For that, I applaud you.

    Please don't leave the community. We need people like you that actually want to go and try doing things, no matter the obstacles.
    __________________


    My other resources:
    My Website
    diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
    diegoisawesome's Miscellaneous Finds
    The Ruins of Alph Puzzles
    Diego's Miscellaneous Patches
    GBA Intro Manager
    The Secret Sauce: Triple-Layer Tiles
    Reply With Quote
      #4    
    Old July 5th, 2011 (6:21 AM).
    Platinum Lucario's Avatar
    Platinum Lucario Platinum Lucario is offline
    The Legendary Master of Light!
    • Crystal Tier
     
    Join Date: Jan 2008
    Location: Warrnambool, Victoria, Australia.
    Gender: Male
    Nature: Calm
    Posts: 1,563
    Quote:
    Originally Posted by kram65536 View Post
    Time that everyone sees how worthless I really am. I try to help others only to hurt them, btw, I have begun on adding color support to ClassicMap, but knowing that everything I do is pointless, I will just simply leave behind my c# SGBPal class for all to work with themselves, request permaban and leave (and then I shall be hated as things should be due to my autism)

    Code:
        public class SGBPal
        {
            private byte[] buffer;
            private ushort[] colors;
            private Color[] wincolors;
            private ushort temp1;
            private ushort temp2;
            protected int red;
            protected int green;
            protected int blue;
            protected int alpha;
            public Color TransColor
            {
                get
                {
                    temp1 = buffer[1];
                    temp2 = buffer[0];
                    temp2 = (ushort)(temp2 * 256);
                    temp1 = (ushort)(temp1 + temp2);
                    red = temp1 & 0x1F;
                    green = (temp1 & 0x3E0) / 32;
                    blue = (temp1 & 0x7C00) / 1024;
                    alpha = 31;
                    red = red * 8;
                    green = green * 8;
                    blue = blue * 8;
                    alpha = alpha * 8;
                    wincolors[0] = Color.FromArgb(alpha, red, green, blue);
                    return wincolors[0];
                }
                set
                {
                    wincolors[0] = value;
                    red = wincolors[0].R / 8;
                    green = wincolors[0].G / 8;
                    blue = wincolors[0].B / 8;
                    temp1 = (ushort)blue;
                    temp1 = (ushort)((temp1 * 32) + green);
                    temp1 = (ushort)((temp1 * 32) + red);
                    temp2 = (ushort)(temp1 & 0xFF);
                    temp1 = (ushort)((temp1 & 0xFF00) / 256);
                    buffer[0] = (byte)temp1;
                    buffer[1] = (byte)temp2;
                }
            }
            public Color Color1
            {
                get
                {
                    temp1 = buffer[3];
                    temp2 = buffer[2];
                    temp2 = (ushort)(temp2 * 256);
                    temp1 = (ushort)(temp1 + temp2);
                    red = temp1 & 0x1F;
                    green = (temp1 & 0x3E0) / 32;
                    blue = (temp1 & 0x7C00) / 1024;
                    alpha = 31;
                    red = red * 8;
                    green = green * 8;
                    blue = blue * 8;
                    alpha = alpha * 8;
                    wincolors[1] = Color.FromArgb(alpha, red, green, blue);
                    return wincolors[1];
                }
                set
                {
                    wincolors[1] = value;
                    red = wincolors[1].R / 8;
                    green = wincolors[1].G / 8;
                    blue = wincolors[1].B / 8;
                    temp1 = (ushort)blue;
                    temp1 = (ushort)((temp1 * 32) + green);
                    temp1 = (ushort)((temp1 * 32) + red);
                    temp2 = (ushort)(temp1 & 0xFF);
                    temp1 = (ushort)((temp1 & 0xFF00) / 256);
                    buffer[2] = (byte)temp1;
                    buffer[3] = (byte)temp2;
                }
            }
            public Color Color2
            {
                get
                {
                    temp1 = buffer[5];
                    temp2 = buffer[4];
                    temp2 = (ushort)(temp2 * 256);
                    temp1 = (ushort)(temp1 + temp2);
                    red = temp1 & 0x1F;
                    green = (temp1 & 0x3E0) / 32;
                    blue = (temp1 & 0x7C00) / 1024;
                    alpha = 31;
                    red = red * 8;
                    green = green * 8;
                    blue = blue * 8;
                    alpha = alpha * 8;
                    wincolors[2] = Color.FromArgb(alpha, red, green, blue);
                    return wincolors[2];
                }
                set
                {
                    wincolors[2] = value;
                    red = wincolors[2].R / 8;
                    green = wincolors[2].G / 8;
                    blue = wincolors[2].B / 8;
                    temp1 = (ushort)blue;
                    temp1 = (ushort)((temp1 * 32) + green);
                    temp1 = (ushort)((temp1 * 32) + red);
                    temp2 = (ushort)(temp1 & 0xFF);
                    temp1 = (ushort)((temp1 & 0xFF00) / 256);
                    buffer[4] = (byte)temp1;
                    buffer[5] = (byte)temp2;
                }
            }
            public Color Color3
            {
                get
                {
                    temp1 = buffer[7];
                    temp2 = buffer[6];
                    temp2 = (ushort)(temp2 * 256);
                    temp1 = (ushort)(temp1 + temp2);
                    red = temp1 & 0x1F;
                    green = (temp1 & 0x3E0) / 32;
                    blue = (temp1 & 0x7C00) / 1024;
                    alpha = 31;
                    red = red * 8;
                    green = green * 8;
                    blue = blue * 8;
                    alpha = alpha * 8;
                    wincolors[3] = Color.FromArgb(alpha, red, green, blue);
                    return wincolors[3];
                }
                set
                {
                    wincolors[3] = value;
                    red = wincolors[3].R / 8;
                    green = wincolors[3].G / 8;
                    blue = wincolors[3].B / 8;
                    temp1 = (ushort)blue;
                    temp1 = (ushort)((temp1 * 32) + green);
                    temp1 = (ushort)((temp1 * 32) + red);
                    temp2 = (ushort)(temp1 & 0xFF);
                    temp1 = (ushort)((temp1 & 0xFF00) / 256);
                    buffer[6] = (byte)temp1;
                    buffer[7] = (byte)temp2;
                }
            }
            public void FillBuffer(byte[] bufferdata)
            {
                buffer = bufferdata;
            }
    
            public byte[] GetBuffer()
            {
                return buffer;
            }
    
            public void SGBPal(byte[] bufferdata)
            {
                buffer = bufferdata;
            }
    
            public void SGBPal()
            {
                buffer[0] = 0;
                buffer[1] = 0;
                buffer[2] = 0;
                buffer[3] = 0;
                buffer[4] = 0;
                buffer[5] = 0;
                buffer[6] = 0;
                buffer[7] = 0;
            }
    
            public void SGBPal(Color Trans, Color c1, Color c2, Color c3)
            {
                wincolors[0] = Trans;
                wincolors[1] = c1;
                wincolors[2] = c2;
                wincolors[3] = c3;
                red = wincolors[0].R / 8;
                green = wincolors[0].G / 8;
                blue = wincolors[0].B / 8;
                temp1 = (ushort)blue;
                temp1 = (ushort)((temp1 * 32) + green);
                temp1 = (ushort)((temp1 * 32) + red);
                temp2 = (ushort)(temp1 & 0xFF);
                temp1 = (ushort)((temp1 & 0xFF00) / 256);
                buffer[0] = (byte)temp1;
                buffer[1] = (byte)temp2;
                red = wincolors[1].R / 8;
                green = wincolors[1].G / 8;
                blue = wincolors[1].B / 8;
                temp1 = (ushort)blue;
                temp1 = (ushort)((temp1 * 32) + green);
                temp1 = (ushort)((temp1 * 32) + red);
                temp2 = (ushort)(temp1 & 0xFF);
                temp1 = (ushort)((temp1 & 0xFF00) / 256);
                buffer[2] = (byte)temp1;
                buffer[3] = (byte)temp2;
                red = wincolors[2].R / 8;
                green = wincolors[2].G / 8;
                blue = wincolors[2].B / 8;
                temp1 = (ushort)blue;
                temp1 = (ushort)((temp1 * 32) + green);
                temp1 = (ushort)((temp1 * 32) + red);
                temp2 = (ushort)(temp1 & 0xFF);
                temp1 = (ushort)((temp1 & 0xFF00) / 256);
                buffer[4] = (byte)temp1;
                buffer[5] = (byte)temp2;
                red = wincolors[3].R / 8;
                green = wincolors[3].G / 8;
                blue = wincolors[3].B / 8;
                temp1 = (ushort)blue;
                temp1 = (ushort)((temp1 * 32) + green);
                temp1 = (ushort)((temp1 * 32) + red);
                temp2 = (ushort)(temp1 & 0xFF);
                temp1 = (ushort)((temp1 & 0xFF00) / 256);
                buffer[6] = (byte)temp1;
                buffer[7] = (byte)temp2;
            }
    
            public void SGBPal(byte byte1, byte byte2, byte byte3, byte byte4, byte byte5, byte byte6, byte byte7, byte byte8)
            {
                buffer[0] = byte1;
                buffer[1] = byte2;
                buffer[2] = byte3;
                buffer[3] = byte4;
                buffer[4] = byte5;
                buffer[5] = byte6;
                buffer[6] = byte7;
                buffer[7] = byte8;
            }
    
        };
    You're a very intelligent person and you know alot about programming, more than me to be honest. To be honest, I only know little about Visual Studio and I intend to learn more about it.

    You are not worthless, I see no point in leaving. If you stayed, then I'm sure many other people could at least help you, even I can help you. ^^ I can see how some people put others down and all that, I wish they could be more informative about it. D:

    You're not the only person with autism, I have autism as well. It went really badly from when I first started and I gradually became more social and open towards others over the years, so I learned how to control it. There is only one thing that prevents an autistic person from learning... and that is none other than stress (including from reality as well).

    And about the program... I guess we can continue were you left off at with the wonderful program you created, which is ClassicMap. If you never return to PC, then I'm sure one of us will add in the SGB colour palette into ClassicMap.

    Oh and please come back... we all really do miss you keeping the project alive.
    __________________
    [Platinum Lucario's Signature]
    If you need to disable my signature, please give me some advice on how to improve the CSS-DIV code. Thanks!
    Signature Status: Strikes: 1/3 | Infractions: 0/3
    It's time to change the future...
    to a positive direction!

    Let's prevent things from getting bad!

    I'm a ROM and ISO Researcher
    Current Project: Researching Pokémon Mystery Dungeon Adventure Squad games (WiiWare)
    Reply With Quote
      #5    
    Old July 5th, 2011 (9:38 AM).
    RHIOneAlbum RHIOneAlbum is offline
    Banned
       
      Join Date: Jun 2011
      Location: Dark Maroon City
      Nature: Serious
      Posts: 214
      Quote:
      Originally Posted by kram65536 View Post
      Time that everyone sees how worthless I really am. I try to help others only to hurt them, btw, I have begun on adding color support to ClassicMap, but knowing that everything I do is pointless, I will just simply leave behind my c# SGBPal class for all to work with themselves, request permaban and leave (and then I shall be hated as things should be due to my autism)

      Code:
          public class SGBPal
          {
              private byte[] buffer;
              private ushort[] colors;
              private Color[] wincolors;
              private ushort temp1;
              private ushort temp2;
              protected int red;
              protected int green;
              protected int blue;
              protected int alpha;
              public Color TransColor
              {
                  get
                  {
                      temp1 = buffer[1];
                      temp2 = buffer[0];
                      temp2 = (ushort)(temp2 * 256);
                      temp1 = (ushort)(temp1 + temp2);
                      red = temp1 & 0x1F;
                      green = (temp1 & 0x3E0) / 32;
                      blue = (temp1 & 0x7C00) / 1024;
                      alpha = 31;
                      red = red * 8;
                      green = green * 8;
                      blue = blue * 8;
                      alpha = alpha * 8;
                      wincolors[0] = Color.FromArgb(alpha, red, green, blue);
                      return wincolors[0];
                  }
                  set
                  {
                      wincolors[0] = value;
                      red = wincolors[0].R / 8;
                      green = wincolors[0].G / 8;
                      blue = wincolors[0].B / 8;
                      temp1 = (ushort)blue;
                      temp1 = (ushort)((temp1 * 32) + green);
                      temp1 = (ushort)((temp1 * 32) + red);
                      temp2 = (ushort)(temp1 & 0xFF);
                      temp1 = (ushort)((temp1 & 0xFF00) / 256);
                      buffer[0] = (byte)temp1;
                      buffer[1] = (byte)temp2;
                  }
              }
              public Color Color1
              {
                  get
                  {
                      temp1 = buffer[3];
                      temp2 = buffer[2];
                      temp2 = (ushort)(temp2 * 256);
                      temp1 = (ushort)(temp1 + temp2);
                      red = temp1 & 0x1F;
                      green = (temp1 & 0x3E0) / 32;
                      blue = (temp1 & 0x7C00) / 1024;
                      alpha = 31;
                      red = red * 8;
                      green = green * 8;
                      blue = blue * 8;
                      alpha = alpha * 8;
                      wincolors[1] = Color.FromArgb(alpha, red, green, blue);
                      return wincolors[1];
                  }
                  set
                  {
                      wincolors[1] = value;
                      red = wincolors[1].R / 8;
                      green = wincolors[1].G / 8;
                      blue = wincolors[1].B / 8;
                      temp1 = (ushort)blue;
                      temp1 = (ushort)((temp1 * 32) + green);
                      temp1 = (ushort)((temp1 * 32) + red);
                      temp2 = (ushort)(temp1 & 0xFF);
                      temp1 = (ushort)((temp1 & 0xFF00) / 256);
                      buffer[2] = (byte)temp1;
                      buffer[3] = (byte)temp2;
                  }
              }
              public Color Color2
              {
                  get
                  {
                      temp1 = buffer[5];
                      temp2 = buffer[4];
                      temp2 = (ushort)(temp2 * 256);
                      temp1 = (ushort)(temp1 + temp2);
                      red = temp1 & 0x1F;
                      green = (temp1 & 0x3E0) / 32;
                      blue = (temp1 & 0x7C00) / 1024;
                      alpha = 31;
                      red = red * 8;
                      green = green * 8;
                      blue = blue * 8;
                      alpha = alpha * 8;
                      wincolors[2] = Color.FromArgb(alpha, red, green, blue);
                      return wincolors[2];
                  }
                  set
                  {
                      wincolors[2] = value;
                      red = wincolors[2].R / 8;
                      green = wincolors[2].G / 8;
                      blue = wincolors[2].B / 8;
                      temp1 = (ushort)blue;
                      temp1 = (ushort)((temp1 * 32) + green);
                      temp1 = (ushort)((temp1 * 32) + red);
                      temp2 = (ushort)(temp1 & 0xFF);
                      temp1 = (ushort)((temp1 & 0xFF00) / 256);
                      buffer[4] = (byte)temp1;
                      buffer[5] = (byte)temp2;
                  }
              }
              public Color Color3
              {
                  get
                  {
                      temp1 = buffer[7];
                      temp2 = buffer[6];
                      temp2 = (ushort)(temp2 * 256);
                      temp1 = (ushort)(temp1 + temp2);
                      red = temp1 & 0x1F;
                      green = (temp1 & 0x3E0) / 32;
                      blue = (temp1 & 0x7C00) / 1024;
                      alpha = 31;
                      red = red * 8;
                      green = green * 8;
                      blue = blue * 8;
                      alpha = alpha * 8;
                      wincolors[3] = Color.FromArgb(alpha, red, green, blue);
                      return wincolors[3];
                  }
                  set
                  {
                      wincolors[3] = value;
                      red = wincolors[3].R / 8;
                      green = wincolors[3].G / 8;
                      blue = wincolors[3].B / 8;
                      temp1 = (ushort)blue;
                      temp1 = (ushort)((temp1 * 32) + green);
                      temp1 = (ushort)((temp1 * 32) + red);
                      temp2 = (ushort)(temp1 & 0xFF);
                      temp1 = (ushort)((temp1 & 0xFF00) / 256);
                      buffer[6] = (byte)temp1;
                      buffer[7] = (byte)temp2;
                  }
              }
              public void FillBuffer(byte[] bufferdata)
              {
                  buffer = bufferdata;
              }
      
              public byte[] GetBuffer()
              {
                  return buffer;
              }
      
              public void SGBPal(byte[] bufferdata)
              {
                  buffer = bufferdata;
              }
      
              public void SGBPal()
              {
                  buffer[0] = 0;
                  buffer[1] = 0;
                  buffer[2] = 0;
                  buffer[3] = 0;
                  buffer[4] = 0;
                  buffer[5] = 0;
                  buffer[6] = 0;
                  buffer[7] = 0;
              }
      
              public void SGBPal(Color Trans, Color c1, Color c2, Color c3)
              {
                  wincolors[0] = Trans;
                  wincolors[1] = c1;
                  wincolors[2] = c2;
                  wincolors[3] = c3;
                  red = wincolors[0].R / 8;
                  green = wincolors[0].G / 8;
                  blue = wincolors[0].B / 8;
                  temp1 = (ushort)blue;
                  temp1 = (ushort)((temp1 * 32) + green);
                  temp1 = (ushort)((temp1 * 32) + red);
                  temp2 = (ushort)(temp1 & 0xFF);
                  temp1 = (ushort)((temp1 & 0xFF00) / 256);
                  buffer[0] = (byte)temp1;
                  buffer[1] = (byte)temp2;
                  red = wincolors[1].R / 8;
                  green = wincolors[1].G / 8;
                  blue = wincolors[1].B / 8;
                  temp1 = (ushort)blue;
                  temp1 = (ushort)((temp1 * 32) + green);
                  temp1 = (ushort)((temp1 * 32) + red);
                  temp2 = (ushort)(temp1 & 0xFF);
                  temp1 = (ushort)((temp1 & 0xFF00) / 256);
                  buffer[2] = (byte)temp1;
                  buffer[3] = (byte)temp2;
                  red = wincolors[2].R / 8;
                  green = wincolors[2].G / 8;
                  blue = wincolors[2].B / 8;
                  temp1 = (ushort)blue;
                  temp1 = (ushort)((temp1 * 32) + green);
                  temp1 = (ushort)((temp1 * 32) + red);
                  temp2 = (ushort)(temp1 & 0xFF);
                  temp1 = (ushort)((temp1 & 0xFF00) / 256);
                  buffer[4] = (byte)temp1;
                  buffer[5] = (byte)temp2;
                  red = wincolors[3].R / 8;
                  green = wincolors[3].G / 8;
                  blue = wincolors[3].B / 8;
                  temp1 = (ushort)blue;
                  temp1 = (ushort)((temp1 * 32) + green);
                  temp1 = (ushort)((temp1 * 32) + red);
                  temp2 = (ushort)(temp1 & 0xFF);
                  temp1 = (ushort)((temp1 & 0xFF00) / 256);
                  buffer[6] = (byte)temp1;
                  buffer[7] = (byte)temp2;
              }
      
              public void SGBPal(byte byte1, byte byte2, byte byte3, byte byte4, byte byte5, byte byte6, byte byte7, byte byte8)
              {
                  buffer[0] = byte1;
                  buffer[1] = byte2;
                  buffer[2] = byte3;
                  buffer[3] = byte4;
                  buffer[4] = byte5;
                  buffer[5] = byte6;
                  buffer[6] = byte7;
                  buffer[7] = byte8;
              }
      
          };
      You want to leave? I've never talked to you, but you're a genius. And your autism makes it seem even more amazing! You should stay, and if not, switch over to at least PHO or TPW. (not trying to advertise) but in all serious, PC can use your talent :D
      Reply With Quote
        #6    
      Old July 5th, 2011 (11:08 AM).
      Sawakita's Avatar
      Sawakita Sawakita is offline
      Not Invented Here
         
        Join Date: May 2010
        Gender: Male
        Posts: 180
        Quote:
        Originally Posted by PokémonShinySilver View Post
        And about the program... I guess we can continue were you left off at with the wonderful program you created, which is ClassicMap. If you never return to PC, then I'm sure one of us will add in the SGB colour palette into ClassicMap.

        Oh and please come back... we all really do miss you keeping the project alive.
        Actually you should notice that ClassicMap was originally made by Lin.
        __________________



        | 1st Gen Hacking: Useful Links | A good example of REAL ROM Hacking |
        Reply With Quote
          #7    
        Old July 20th, 2011 (5:53 AM).
        Skara's Avatar
        Skara Skara is offline
        THIS. IS. SEMPITERNAL.
           
          Join Date: Dec 2008
          Location: Manchester, England
          Age: 22
          Gender: Male
          Nature: Timid
          Posts: 350
          Nice bit of coding there mate. I have Autism too, so I can relate to you big time.
          This is far from worthless, good job mate.
          __________________
          I'VE LEFT THIS ACCOUNT. Here is my new profile
          Reply With Quote
            #8    
          Old November 28th, 2011 (9:52 AM).
          Nick Nick is offline
          Banned
             
            Join Date: Nov 2009
            Age: 19
            Posts: 5,220
            ClassicMap is a true work of art, and your contributions make it that much better. I have Asperger's Syndrome, which is at the top of the Autism Spectrum, so you're not alone there, mate! Stress can let you down sometimes, but it's nothing to quit over. ;) Keep working at it, and please stay at PC and design add-ons like color support for ClassicMap—we would love to have you here :D
            Reply With Quote
              #9    
            Old November 28th, 2011 (10:31 AM).
            espa_roba11's Avatar
            espa_roba11 espa_roba11 is offline
            I'm gay, yay!
               
              Join Date: Jan 2004
              Location: Rainbow City
              Age: 29
              Gender: Male
              Nature: Naughty
              Posts: 162
              Dude, don't call yourself worthless...
              __________________
              I'm a furry.

              I love my mate Ryuu. ^.^


              Reply With Quote
                #10    
              Old November 28th, 2011 (11:34 AM).
              MrElephant's Avatar
              MrElephant MrElephant is offline
              Pokemon Researcher
                 
                Join Date: Oct 2011
                Location: United States
                Gender: Male
                Nature: Serious
                Posts: 77
                Do you have to know scripting code languages for this?
                Reply With Quote
                  #11    
                Old November 19th, 2013 (9:39 AM).
                kram65536 kram65536 is offline
                   
                  Join Date: Jan 2008
                  Gender:
                  Posts: 17
                  I have returned, the problem, lets just say that made me leave in the past was someone being a jerk and trying to discourage me from doing any programming because he did not like an idea I had to contribute to an unrelated project and I am sorry for what it may have caused. as for the sgb border, a ways back I indeed made a program for working with that, but forgot where I put it. If you will allow, I will resume the work where it is left off. true color support would make classic map that much more compact. Since I lost that pokemon blue hack that was to become a US green version, I might remake it to test the color version of classicmap as well and eventually merge in sgb border support as well. all the border data is in the same place, lol. and it is even mapped (yes it can be hacked, I know the format)
                  oh, and yes the code above was intended to be used to add support for color to the map and tile editors, not the sgb border.
                  Reply With Quote
                    #12    
                  Old November 27th, 2013 (7:24 PM).
                  Whitney's Shaymin's Avatar
                  Whitney's Shaymin Whitney's Shaymin is offline
                  Creator Of Pokemon Grace
                  • Silver Tier
                   
                  Join Date: Apr 2012
                  Location: Goldenrod, Johto
                  Gender: Male
                  Nature: Timid
                  Posts: 600
                  Nice to welcome you back, no offense because i don't know you, but welcome back
                  __________________


                  "The Incredibly Pretty Girl"

                  Gym Leader Whitney
                  link | link | link

                  FC: 4699-7156-4669 IGN: Gavin
                  Reply With Quote
                    #13    
                  Old December 7th, 2013 (9:10 AM).
                  Kakarot1212's Avatar
                  Kakarot1212 Kakarot1212 is offline
                  Resident Programmer
                     
                    Join Date: Oct 2013
                    Location: Phillipines
                    Gender: Male
                    Nature: Adamant
                    Posts: 552
                    Quote:
                    Originally Posted by kram65536 View Post
                    Time that everyone sees how worthless I really am. I try to help others only to hurt them, btw, I have begun on adding color support to ClassicMap, but knowing that everything I do is pointless, I will just simply leave behind my c# SGBPal class for all to work with themselves, request permaban and leave (and then I shall be hated as things should be due to my autism)

                    Code:
                        public class SGBPal
                        {
                            private byte[] buffer;
                            private ushort[] colors;
                            private Color[] wincolors;
                            private ushort temp1;
                            private ushort temp2;
                            protected int red;
                            protected int green;
                            protected int blue;
                            protected int alpha;
                            public Color TransColor
                            {
                                get
                                {
                                    temp1 = buffer[1];
                                    temp2 = buffer[0];
                                    temp2 = (ushort)(temp2 * 256);
                                    temp1 = (ushort)(temp1 + temp2);
                                    red = temp1 & 0x1F;
                                    green = (temp1 & 0x3E0) / 32;
                                    blue = (temp1 & 0x7C00) / 1024;
                                    alpha = 31;
                                    red = red * 8;
                                    green = green * 8;
                                    blue = blue * 8;
                                    alpha = alpha * 8;
                                    wincolors[0] = Color.FromArgb(alpha, red, green, blue);
                                    return wincolors[0];
                                }
                                set
                                {
                                    wincolors[0] = value;
                                    red = wincolors[0].R / 8;
                                    green = wincolors[0].G / 8;
                                    blue = wincolors[0].B / 8;
                                    temp1 = (ushort)blue;
                                    temp1 = (ushort)((temp1 * 32) + green);
                                    temp1 = (ushort)((temp1 * 32) + red);
                                    temp2 = (ushort)(temp1 & 0xFF);
                                    temp1 = (ushort)((temp1 & 0xFF00) / 256);
                                    buffer[0] = (byte)temp1;
                                    buffer[1] = (byte)temp2;
                                }
                            }
                            public Color Color1
                            {
                                get
                                {
                                    temp1 = buffer[3];
                                    temp2 = buffer[2];
                                    temp2 = (ushort)(temp2 * 256);
                                    temp1 = (ushort)(temp1 + temp2);
                                    red = temp1 & 0x1F;
                                    green = (temp1 & 0x3E0) / 32;
                                    blue = (temp1 & 0x7C00) / 1024;
                                    alpha = 31;
                                    red = red * 8;
                                    green = green * 8;
                                    blue = blue * 8;
                                    alpha = alpha * 8;
                                    wincolors[1] = Color.FromArgb(alpha, red, green, blue);
                                    return wincolors[1];
                                }
                                set
                                {
                                    wincolors[1] = value;
                                    red = wincolors[1].R / 8;
                                    green = wincolors[1].G / 8;
                                    blue = wincolors[1].B / 8;
                                    temp1 = (ushort)blue;
                                    temp1 = (ushort)((temp1 * 32) + green);
                                    temp1 = (ushort)((temp1 * 32) + red);
                                    temp2 = (ushort)(temp1 & 0xFF);
                                    temp1 = (ushort)((temp1 & 0xFF00) / 256);
                                    buffer[2] = (byte)temp1;
                                    buffer[3] = (byte)temp2;
                                }
                            }
                            public Color Color2
                            {
                                get
                                {
                                    temp1 = buffer[5];
                                    temp2 = buffer[4];
                                    temp2 = (ushort)(temp2 * 256);
                                    temp1 = (ushort)(temp1 + temp2);
                                    red = temp1 & 0x1F;
                                    green = (temp1 & 0x3E0) / 32;
                                    blue = (temp1 & 0x7C00) / 1024;
                                    alpha = 31;
                                    red = red * 8;
                                    green = green * 8;
                                    blue = blue * 8;
                                    alpha = alpha * 8;
                                    wincolors[2] = Color.FromArgb(alpha, red, green, blue);
                                    return wincolors[2];
                                }
                                set
                                {
                                    wincolors[2] = value;
                                    red = wincolors[2].R / 8;
                                    green = wincolors[2].G / 8;
                                    blue = wincolors[2].B / 8;
                                    temp1 = (ushort)blue;
                                    temp1 = (ushort)((temp1 * 32) + green);
                                    temp1 = (ushort)((temp1 * 32) + red);
                                    temp2 = (ushort)(temp1 & 0xFF);
                                    temp1 = (ushort)((temp1 & 0xFF00) / 256);
                                    buffer[4] = (byte)temp1;
                                    buffer[5] = (byte)temp2;
                                }
                            }
                            public Color Color3
                            {
                                get
                                {
                                    temp1 = buffer[7];
                                    temp2 = buffer[6];
                                    temp2 = (ushort)(temp2 * 256);
                                    temp1 = (ushort)(temp1 + temp2);
                                    red = temp1 & 0x1F;
                                    green = (temp1 & 0x3E0) / 32;
                                    blue = (temp1 & 0x7C00) / 1024;
                                    alpha = 31;
                                    red = red * 8;
                                    green = green * 8;
                                    blue = blue * 8;
                                    alpha = alpha * 8;
                                    wincolors[3] = Color.FromArgb(alpha, red, green, blue);
                                    return wincolors[3];
                                }
                                set
                                {
                                    wincolors[3] = value;
                                    red = wincolors[3].R / 8;
                                    green = wincolors[3].G / 8;
                                    blue = wincolors[3].B / 8;
                                    temp1 = (ushort)blue;
                                    temp1 = (ushort)((temp1 * 32) + green);
                                    temp1 = (ushort)((temp1 * 32) + red);
                                    temp2 = (ushort)(temp1 & 0xFF);
                                    temp1 = (ushort)((temp1 & 0xFF00) / 256);
                                    buffer[6] = (byte)temp1;
                                    buffer[7] = (byte)temp2;
                                }
                            }
                            public void FillBuffer(byte[] bufferdata)
                            {
                                buffer = bufferdata;
                            }
                    
                            public byte[] GetBuffer()
                            {
                                return buffer;
                            }
                    
                            public void SGBPal(byte[] bufferdata)
                            {
                                buffer = bufferdata;
                            }
                    
                            public void SGBPal()
                            {
                                buffer[0] = 0;
                                buffer[1] = 0;
                                buffer[2] = 0;
                                buffer[3] = 0;
                                buffer[4] = 0;
                                buffer[5] = 0;
                                buffer[6] = 0;
                                buffer[7] = 0;
                            }
                    
                            public void SGBPal(Color Trans, Color c1, Color c2, Color c3)
                            {
                                wincolors[0] = Trans;
                                wincolors[1] = c1;
                                wincolors[2] = c2;
                                wincolors[3] = c3;
                                red = wincolors[0].R / 8;
                                green = wincolors[0].G / 8;
                                blue = wincolors[0].B / 8;
                                temp1 = (ushort)blue;
                                temp1 = (ushort)((temp1 * 32) + green);
                                temp1 = (ushort)((temp1 * 32) + red);
                                temp2 = (ushort)(temp1 & 0xFF);
                                temp1 = (ushort)((temp1 & 0xFF00) / 256);
                                buffer[0] = (byte)temp1;
                                buffer[1] = (byte)temp2;
                                red = wincolors[1].R / 8;
                                green = wincolors[1].G / 8;
                                blue = wincolors[1].B / 8;
                                temp1 = (ushort)blue;
                                temp1 = (ushort)((temp1 * 32) + green);
                                temp1 = (ushort)((temp1 * 32) + red);
                                temp2 = (ushort)(temp1 & 0xFF);
                                temp1 = (ushort)((temp1 & 0xFF00) / 256);
                                buffer[2] = (byte)temp1;
                                buffer[3] = (byte)temp2;
                                red = wincolors[2].R / 8;
                                green = wincolors[2].G / 8;
                                blue = wincolors[2].B / 8;
                                temp1 = (ushort)blue;
                                temp1 = (ushort)((temp1 * 32) + green);
                                temp1 = (ushort)((temp1 * 32) + red);
                                temp2 = (ushort)(temp1 & 0xFF);
                                temp1 = (ushort)((temp1 & 0xFF00) / 256);
                                buffer[4] = (byte)temp1;
                                buffer[5] = (byte)temp2;
                                red = wincolors[3].R / 8;
                                green = wincolors[3].G / 8;
                                blue = wincolors[3].B / 8;
                                temp1 = (ushort)blue;
                                temp1 = (ushort)((temp1 * 32) + green);
                                temp1 = (ushort)((temp1 * 32) + red);
                                temp2 = (ushort)(temp1 & 0xFF);
                                temp1 = (ushort)((temp1 & 0xFF00) / 256);
                                buffer[6] = (byte)temp1;
                                buffer[7] = (byte)temp2;
                            }
                    
                            public void SGBPal(byte byte1, byte byte2, byte byte3, byte byte4, byte byte5, byte byte6, byte byte7, byte byte8)
                            {
                                buffer[0] = byte1;
                                buffer[1] = byte2;
                                buffer[2] = byte3;
                                buffer[3] = byte4;
                                buffer[4] = byte5;
                                buffer[5] = byte6;
                                buffer[6] = byte7;
                                buffer[7] = byte8;
                            }
                    
                        };
                    I think this best suits in Research and Development, not here, lol
                    __________________
                    Reply With Quote
                      #14    
                    Old December 8th, 2013 (2:32 PM).
                    Talon's Avatar
                    Talon Talon is offline
                    Hidden From Mind
                    • Crystal Tier
                     
                    Join Date: Nov 2013
                    Location: Somewhere that is nowhere
                    Age: 18
                    Gender: Male
                    Nature: Rash
                    Posts: 1,081
                    I don't know you, Kram, but even though I haven't been here long, I never want to see someone leave, and I'm glad to see you didn't. I don't have autism, but I do have social anxiety. I understand what stress can do you, and how bad it feels when people put you down. At school, I get bullied everyday, for being short, skinny, and emo. If anyone ever annoys you like that, or bullies, torments, or harasses you, just forget about them. Don't think about them. If you ignore them, they will stop. They only do that to you because THEY have low self-esteem. Lower than yours. When they pick on you, it makes them feel better. Clearly, you are a very intelligent person. Allow that idea to flourish! Keep working towards everything you want to achieve. If you put your mind to it, you can do it. I know social anxiety isn't like autism, and sorry I can't really relate to you in a very straight way, but I understand what it feels like to be put down. I would like to see you improve ClassicMap even more.
                    __________________
                    "Life is so wonderful, Life is so beautiful, just smile, no one gets out alive."
                    "To the world you may be one person, but to one person you may be the world."
                    "Everybody wants to go to Heaven, but nobody wants to die."

                    "A man said to the universe,
                    'Sir! I exist!'
                    'However,' replied the universe,
                    'the fact has not created in me a sense of obligation.'
                    ~ Stephen Crane
                    Reply With Quote
                    Reply

                    Quick Reply

                    Join the conversation!

                    Create an account to post a reply in this thread, participate in other discussions, and more!

                    Create a PokéCommunity Account

                    Sponsored Links
                    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

                    Forum Jump


                    All times are GMT -8. The time now is 8:31 AM.