Home Gallery Resources The Team Rules chat Login Register
Pages:  1 ... 4 5 6 [7] 8 9 10 ... 16
Author Topic: TheShyGuy's EXE stuff - NEW -> Bone Tree Editor V1.1 Released  (Read 78243 times)
0 Members and 1 Guest are viewing this topic.
DarkPikachu
Angel Kitten
***
Offline Offline

Posts: 3069


complexity == fun

  • Awards Super Saiyan Topic Heart Container KCMM Veteran Tutorial Writer

  • View Profile Awards
    « Reply #90 on: January 07, 2011, 05:18:55 PM »


    Question... With this new viewer your making, is it possible to see everything as a whole? (every single graphic together)...

    umm...
    atm no, but you've given me a new idea for using icons inside of folders
    (similar to windows explorer's thumnail view in image mode)
    ^you get the thumbnails, with a large image

    right now it'll just be like brawlbox... (when I UD it)
    « Last Edit: January 07, 2011, 08:49:47 PM by Tcll » Logged


    Quote: Friedslick6
    you have been through a lot of hassle. I've watched every topic you posted on this, and most of them seemed to disintegrate gradually.
    But the coolest part was that you didn't stop working on it despite that.

    Quote: Internet Explorer
    you're doing more with your life right now than probably most other people around you. You're a valuable asset to the Smash community. So yeah, you should be proud.

    quote: Greg
    You do have a gift which I've seen many developers use to their advantage. You can become a great coder, and with all of those ideas I think you can really build something great.

    TheShyGuy
    Holy Kitten
    *
    Offline Offline

    Posts: 1003


  • Awards Super Saiyan Topic KCMM Veteran Heart Container Dedicated Hacker

  • View Profile Awards
    « Reply #91 on: January 07, 2011, 06:47:25 PM »


    Code:
    X,Y,TX,TY = 2,2,0,0; fr.seek(offset,0)
      
        while length > 0:
            pixel = fr.read(1).encode('hex')
            R=G=B=pixel; color,x,y = '#'+R+G+B,TX+X,Y+Y
            C.create_rectangle ( x, y, (x+1), (y+1), fill=color, width=0)
          
            TX+=1
            if TX == 8:
                TY += 1
                if TY == 4 and TX == 8:
                    X += 8; TX,TY = 0,0
                    if X == width+2: Y += 4; X = 2
                if TY == 4: TY = 0
                TX = 0

            length -= 1

    erm, i dun understand Tk lol( or python?).  There are some things that im having trouble with. This is what i tried to do in c#

    Code:

                int X, Y, TX, TY;
                X = Y = 2;
                TX = TY = 0;

                byte pixel;
                byte R, G,B;

                Graphics g = pictureBox1.CreateGraphics();
                int x = 0, y = 0;
                bw.Seek(0, SeekOrigin.Begin);
                while (size > 0)
                {
                    pixel = br.ReadByte();
                  
                    R = G = B = pixel;
                    color = new SolidBrush(Color.FromArgb(pixel,R,G,B));
                    x = TX + x;
                    y = TY + y;
                    g.FillRectangle(color, x, y, x + 1, y + 1);

                    TX += 1;
                    if (TX == 8)
                    {
                        TY += 1;
                        if (TY == 4 && TX == 8)
                        {
                            X += 8; TX = TY = 0;
                            if (X == width + 2)
                            {
                                Y += 4;
                                X = 2;
                            }
                        }
                        if (TY == 4)
                        {
                            TY = 0;
                            TX = 0;
                        }
                    }
                    size -= 1;
                }
                g.Dispose();

            }

    if you understand what i did(fialed to do) wrong, then uh could you explain lol

    EDIT: btw i got lazy so i used a fixed size and used a fixed gfx.  I just made a new file with the gfx data
    « Last Edit: January 07, 2011, 07:06:21 PM by theshyguy » Logged

    DarkPikachu
    Angel Kitten
    ***
    Offline Offline

    Posts: 3069


    complexity == fun

  • Awards Super Saiyan Topic Heart Container KCMM Veteran Tutorial Writer

  • View Profile Awards
    « Reply #92 on: January 07, 2011, 07:17:25 PM »


    here's the code broken down:

    def I8(offset,width,height,length):
    offset = image data offset
    width,heigth = obviousness
    length = data length


        X,Y,TX,TY = 2,2,0,0; fr.seek(offset,0)
    X,Y = global XY positioning in the canvas
    TX,TY = tile XY positioning


        while length > 0:

            pixel = fr.read(1).encode('hex')
    read a single byte and return the hex value... (F0)

            R=G=B=pixel; color,x,y = '#'+R+G+B,TX+X,TY+Y
    R,G,B is obvious
    pixel is the hex
    color = '#'+R+G+B ('#F0F0F0')
    x,y = TX+X,TY+Y


            C.create_rectangle ( x, y, (x+1), (y+1), fill=color, width=0)

    below is the math used for positioning the 1x1 rectangles
            TX+=1
            if TX == 8:
                TY += 1
                if TY == 4 and TX == 8:
                    X += 8; TX,TY = 0,0
                    if X == width+2: Y += 4; X = 2
                if TY == 4: TY = 0
                TX = 0

    ad finally, subtract from the length (once you're done with the pixel)
            length -= 1

    I8 format's pixels are only 1 byte in length...
    « Last Edit: January 07, 2011, 08:49:36 PM by Tcll » Logged


    Quote: Friedslick6
    you have been through a lot of hassle. I've watched every topic you posted on this, and most of them seemed to disintegrate gradually.
    But the coolest part was that you didn't stop working on it despite that.

    Quote: Internet Explorer
    you're doing more with your life right now than probably most other people around you. You're a valuable asset to the Smash community. So yeah, you should be proud.

    quote: Greg
    You do have a gift which I've seen many developers use to their advantage. You can become a great coder, and with all of those ideas I think you can really build something great.

    TheShyGuy
    Holy Kitten
    *
    Offline Offline

    Posts: 1003


  • Awards Super Saiyan Topic KCMM Veteran Heart Container Dedicated Hacker

  • View Profile Awards
    « Reply #93 on: January 07, 2011, 07:33:11 PM »


    thanks gonna retry right now
    Logged

    DarkPikachu
    Angel Kitten
    ***
    Offline Offline

    Posts: 3069


    complexity == fun

  • Awards Super Saiyan Topic Heart Container KCMM Veteran Tutorial Writer

  • View Profile Awards
    « Reply #94 on: January 07, 2011, 07:40:29 PM »


    O.o forgot something

    fr.seek(offset,0)
    finds the offset from the start of the file...
    (absolute position)
    « Last Edit: January 07, 2011, 08:48:54 PM by Tcll » Logged


    Quote: Friedslick6
    you have been through a lot of hassle. I've watched every topic you posted on this, and most of them seemed to disintegrate gradually.
    But the coolest part was that you didn't stop working on it despite that.

    Quote: Internet Explorer
    you're doing more with your life right now than probably most other people around you. You're a valuable asset to the Smash community. So yeah, you should be proud.

    quote: Greg
    You do have a gift which I've seen many developers use to their advantage. You can become a great coder, and with all of those ideas I think you can really build something great.

    ShadowSnake
    Venomous Hacker
    Heroic Kitten
    **
    Offline Offline

    Posts: 2786


    Back from the dead to mod Smash-U

  • Awards Infinite Smash Team Star Hacker Starstormer KCMM Veteran

  • View Profile WWW Awards
    « Reply #95 on: January 07, 2011, 08:19:51 PM »


    interesting programs theshyguy, id like to see some video demos of them though.
    Logged

    I DONT TAKE REQUESTS.


    TheShyGuy
    Holy Kitten
    *
    Offline Offline

    Posts: 1003


  • Awards Super Saiyan Topic KCMM Veteran Heart Container Dedicated Hacker

  • View Profile Awards
    « Reply #96 on: January 07, 2011, 08:49:45 PM »


    ^ sorry got nothing to record it with + too lazy to use(or figure out how to use) a hyper cam...

    actually yeh ill prob figure out how and try n upload a vid
    Logged

    ShadowSnake
    Venomous Hacker
    Heroic Kitten
    **
    Offline Offline

    Posts: 2786


    Back from the dead to mod Smash-U

  • Awards Infinite Smash Team Star Hacker Starstormer KCMM Veteran

  • View Profile WWW Awards
    « Reply #97 on: January 07, 2011, 08:53:17 PM »


    ^ sorry got nothing to record it with + too lazy to use(or figure out how to use) a hyper cam...

    actually yeh ill prob figure out how and try n upload a vid

    camstudio is free, if you want to make a demo. sound is optional and you dont need a webcam from what i understand.
    Logged

    I DONT TAKE REQUESTS.


    DarkPikachu
    Angel Kitten
    ***
    Offline Offline

    Posts: 3069


    complexity == fun

  • Awards Super Saiyan Topic Heart Container KCMM Veteran Tutorial Writer

  • View Profile Awards
    « Reply #98 on: January 07, 2011, 08:56:29 PM »



    I use FreeZ screen capture...

    you can select a portion of the screen you wish to record in...
    and it saves to avi video format Cheesy
    Logged


    Quote: Friedslick6
    you have been through a lot of hassle. I've watched every topic you posted on this, and most of them seemed to disintegrate gradually.
    But the coolest part was that you didn't stop working on it despite that.

    Quote: Internet Explorer
    you're doing more with your life right now than probably most other people around you. You're a valuable asset to the Smash community. So yeah, you should be proud.

    quote: Greg
    You do have a gift which I've seen many developers use to their advantage. You can become a great coder, and with all of those ideas I think you can really build something great.

    ShadowSnake
    Venomous Hacker
    Heroic Kitten
    **
    Offline Offline

    Posts: 2786


    Back from the dead to mod Smash-U

  • Awards Infinite Smash Team Star Hacker Starstormer KCMM Veteran

  • View Profile WWW Awards
    « Reply #99 on: January 07, 2011, 08:59:20 PM »



    I use FreeZ screen capture...

    you can select a portion of the screen you wish to record in...
    and it saves to avi video format Cheesy

    is it free? or are you a pirate... Tongue

    like the majority of us here.
    Logged

    I DONT TAKE REQUESTS.


    DarkPikachu
    Angel Kitten
    ***
    Offline Offline

    Posts: 3069


    complexity == fun

  • Awards Super Saiyan Topic Heart Container KCMM Veteran Tutorial Writer

  • View Profile Awards
    « Reply #100 on: January 07, 2011, 09:03:08 PM »



    I use FreeZ screen capture...

    you can select a portion of the screen you wish to record in...
    and it saves to avi video format Cheesy

    is it free? or are you a pirate... Tongue

    like the majority of us here.

    lol it's free XD

    even though I do admit I'm a pirate in most cases Tongue
    Logged


    Quote: Friedslick6
    you have been through a lot of hassle. I've watched every topic you posted on this, and most of them seemed to disintegrate gradually.
    But the coolest part was that you didn't stop working on it despite that.

    Quote: Internet Explorer
    you're doing more with your life right now than probably most other people around you. You're a valuable asset to the Smash community. So yeah, you should be proud.

    quote: Greg
    You do have a gift which I've seen many developers use to their advantage. You can become a great coder, and with all of those ideas I think you can really build something great.

    DarkPikachu
    Angel Kitten
    ***
    Offline Offline

    Posts: 3069


    complexity == fun

  • Awards Super Saiyan Topic Heart Container KCMM Veteran Tutorial Writer

  • View Profile Awards
    « Reply #101 on: January 08, 2011, 11:26:30 AM »


    I found out why it's called RGB565

    iit's for the 16 bits of the hex
    R5 G6 B5

    anyways...
    so here's progress so far:

    it's almost done... the brightest parts mess up...

    note: this is one of the textures I replaced in my FS recolers :3

    EDIT:
    « Last Edit: October 06, 2022, 04:38:48 PM by DarkPikachu » Logged


    Quote: Friedslick6
    you have been through a lot of hassle. I've watched every topic you posted on this, and most of them seemed to disintegrate gradually.
    But the coolest part was that you didn't stop working on it despite that.

    Quote: Internet Explorer
    you're doing more with your life right now than probably most other people around you. You're a valuable asset to the Smash community. So yeah, you should be proud.

    quote: Greg
    You do have a gift which I've seen many developers use to their advantage. You can become a great coder, and with all of those ideas I think you can really build something great.

    SSJCerious
    Holy Kitten
    *
    Offline Offline

    Posts: 1390

  • Awards Super Saiyan Topic >9000 Famous Hacker KCMM Veteran

  • View Profile Awards
    « Reply #102 on: January 08, 2011, 06:17:41 PM »


    damn! so with this, we'll be able to edit the colors of ext gfx? or just see what they are?
    Logged


    Thanks to soul for this sexy siggy!
    Central Thread:
    http://forums.kc-mm.com/index.php?topic=21501.msg402601#msg402601

    DarkPikachu
    Angel Kitten
    ***
    Offline Offline

    Posts: 3069


    complexity == fun

  • Awards Super Saiyan Topic Heart Container KCMM Veteran Tutorial Writer

  • View Profile Awards
    « Reply #103 on: January 08, 2011, 06:30:10 PM »


    damn! so with this, we'll be able to edit the colors of ext gfx? or just see what they are?

    umm... it's only a viewer right now...
    I'll UD to a file replacer like brbx later...
    gonna finish all the formats with the viewer first...
    « Last Edit: January 09, 2011, 10:24:01 AM by Tcll » Logged


    Quote: Friedslick6
    you have been through a lot of hassle. I've watched every topic you posted on this, and most of them seemed to disintegrate gradually.
    But the coolest part was that you didn't stop working on it despite that.

    Quote: Internet Explorer
    you're doing more with your life right now than probably most other people around you. You're a valuable asset to the Smash community. So yeah, you should be proud.

    quote: Greg
    You do have a gift which I've seen many developers use to their advantage. You can become a great coder, and with all of those ideas I think you can really build something great.

    SSJCerious
    Holy Kitten
    *
    Offline Offline

    Posts: 1390

  • Awards Super Saiyan Topic >9000 Famous Hacker KCMM Veteran

  • View Profile Awards
    « Reply #104 on: January 08, 2011, 06:36:47 PM »


    thats still good....this viewer is the building block for something epic to come in the future Smiley

    Wait...arent you workin on a mdl0 converter? Hows that going?
    Logged


    Thanks to soul for this sexy siggy!
    Central Thread:
    http://forums.kc-mm.com/index.php?topic=21501.msg402601#msg402601

    Pages:  1 ... 4 5 6 [7] 8 9 10 ... 16
    Print
    Jump to: