TheShyGuy's EXE stuff - NEW -> Bone Tree Editor V1.1 Released

Started by TheShyGuy, December 26, 2010, 08:39:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

January 08, 2011, 12:18:55 AM #90 Last Edit: January 08, 2011, 03:49:47 AM by Tcll
Quote from: Ghost Spectre on January 07, 2011, 11:53:05 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)

[spoiler]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.

January 08, 2011, 01:47:25 AM #91 Last Edit: January 08, 2011, 02:06:21 AM by theshyguy

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#



           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

January 08, 2011, 02:17:25 AM #92 Last Edit: January 08, 2011, 03:49:36 AM by Tcll
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...

[spoiler]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.


January 08, 2011, 02:40:29 AM #94 Last Edit: January 08, 2011, 03:48:54 AM by Tcll
O.o forgot something

fr.seek(offset,0)
finds the offset from the start of the file...
(absolute position)

[spoiler]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.

interesting programs theshyguy, id like to see some video demos of them though.
I DONT TAKE REQUESTS.


^ 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

Quote from: theshyguy on January 08, 2011, 03:49:45 AM
^ 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.
I DONT TAKE REQUESTS.



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 :D

[spoiler]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.

Quote from: Tcll on January 08, 2011, 03:56:29 AM

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 :D

is it free? or are you a pirate... :P

like the majority of us here.
I DONT TAKE REQUESTS.


Quote from: ShadowSnake on January 08, 2011, 03:59:20 AM
Quote from: Tcll on January 08, 2011, 03:56:29 AM

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 :D

is it free? or are you a pirate... :P

like the majority of us here.

lol it's free XD

even though I do admit I'm a pirate in most cases :P

[spoiler]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.

January 08, 2011, 06:26:30 PM #101 Last Edit: October 06, 2022, 10:38:48 PM by DarkPikachu
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:

[spoiler]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.

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

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

January 09, 2011, 01:30:10 AM #103 Last Edit: January 09, 2011, 05:24:01 PM by Tcll
Quote from: SSJCerious on January 09, 2011, 01:17:41 AM
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...

[spoiler]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.

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

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

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