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.

so it shows the gfx already?... can u pm me the exe? wnna go thru the gfx and view em....wow im bored lol

Quote from: theshyguy on January 03, 2011, 11:10:48 PM
so it shows the gfx already?... can u pm me the exe? wnna go thru the gfx and view em....wow im bored lol

lol...
it's gonna display the GFX through the tree...

you D-click the images and they're supposed to resize the canvas (not there yet)

I still have to get the formats down :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.

>.>

well when u get it to view the image...i WANT lol..i really wnna see some gfx without having to go ingame....

January 03, 2011, 11:52:55 PM #48 Last Edit: January 03, 2011, 11:56:36 PM by Tcll
Quote from: theshyguy on January 03, 2011, 11:30:11 PM
>.>

well when u get it to view the image...i WANT lol..i really wnna see some gfx without having to go ingame....

lol just as I was planning ;)
you're an inside man... man... :D
you get first looks at everything I do :)
(including BJ96 (another inside man))

EDIT:
hey, have you found any REFT files with more than 1 internal file??

and I also expect something other than an internal REFT...
gonna put a debug check in ;)

[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 04, 2011, 09:28:17 PM #49 Last Edit: October 06, 2022, 06:11:56 PM by DarkPikachu
well, it doesn't view the images yet...
but I'm getting there...
I've gotten the tree to work.  ;D

here's a progress shot:


I still have to add the format functions yet...
but to get this, I pretty much had to split the file from the program...
(not an easy thing to do)

so I've thought of a way to access the outside data from the table...
here's the function:

def OnDoubleClick(self):
        if not self.node.hasChildNodes( ): #makes sure it only displays an image (not an internal/external file)
                read_img(str(self.node).split(' ')[2])

lol, the 'if not' was something I'd seen before...
just now tried it and it worked! XD

EDIT: note:
the read_img(name) function I'm adding reads the image headers at their offsets,
and walks over to the format functions which reads the data

[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 04, 2011, 09:36:41 PM #50 Last Edit: January 04, 2011, 10:11:54 PM by theshyguy
i dun think ive found any with multiple files, srry...

buuuut you can make some quick code that finds the number of files quickly.

Ex.you can put a bunch of files in a folder then load all of em into variables or something.  Then using the above code to read the section of bytes that tell the total internal files.  The only long part would be exporting the misc data...unless u just find the main reloc. offsets within the pac...then it would be veeery easy

EDIT: Im just about done with the bone tree editor, just need it to show and edit the matrices right, but i just got home so i might do it later.

edit: i only looked at 2 (logic) pacs and well here:

0x60(4) ->first file size ----logic
(after ^) unsure lol, but if you can, put if readbytes = ARC
^0x(41) -> file size = F2----efls
0x^(32)->0x^(F2) -> includes capt.falcons RE3D file
then again if readbytes = REFF..----misc data 1 and then u should know the rest...

^lol

-> for some reason cpt falcon has  RE3D file...eh random

Quote from: theshyguy on January 04, 2011, 09:36:41 PM
i dun think ive found any with multiple files, srry...

buuuut you can make some quick code that finds the number of files quickly.

lol I've already got it set for the worst :D
(if it's an REFT with multiple files that has an internal file without REFT)
^I think that's as bad as it could possibly get :P

and nice to hear of your progress ;D
I can't wait until you finish it :3
btw... have you figured out how to find the 4th level of the matrix yet??

and also...
my program will have an installer with it...
(it has images and icons it accesses from 'Program Files' in it's directory)
^didn't seem to want to work a better way...

however, I may be able to use 'C:/.../.../data/icons/icon_name' or 'C://'
I havn't tried everything yet...

ah well...
it's only v0.1a...
it's ment to be the worst, but do it's job

I'ma have to do some registry edits as well... (file association)

don't worry... XD
I won't add a 30day trial thing on it ;)
I'm 100% free :)

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

havent figured out the fourth yet lol..i dun get it cuz i changed EVERYTHING to 0 and it was still 1 >.>

edit: look at the edit^

January 04, 2011, 10:31:27 PM #53 Last Edit: January 07, 2011, 03:06:07 AM by Tcll
Pika has one too...
I have it listed in 'Other file types' on my brawl formats page

btw, I've reversed the sort order of my posts... (newest first)
I find it easier that way :P

that's why I say stuff like "check my last post" and such :P

EDIT:
I've merged the data and read the image headers...
all that's left is the format conversion, and displaying the image ;D

wow...
I can't believe I'm almost done with my first GUI :D
it's gonna suck, but it's gonna beast at the same time XD

EDIT2:
well, I had to resize the canvas differently from what I thought...
but it works >:3

am still working on a conversion method...

[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 05, 2011, 04:09:58 AM #54 Last Edit: October 06, 2022, 06:52:05 PM by DarkPikachu
well...
can't say I ain't makin progress :P



it's comin along...
my prob is getting to know the format :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.

If you guys can make the gfx viewable.. That would be beyond awesome... Just a question... Why do some graphics come out how they should while others appear like a blurry box? Is it because of the format? Well are all graphics a different format?
FC:4898-8419-2778


Nvm I figured it out myself :P
FC:4898-8419-2778

January 06, 2011, 08:38:25 PM #58 Last Edit: October 06, 2022, 06:53:24 PM by DarkPikachu
I8 FORMAT SUCCESS!!! :happy:


finally
it's a little slow when drawing the image...
BUT IT WORKS!!! :af2:

I'll speed it up when I find a better way...

so I8 is finished
0  I4 (4 bit intensity, 8x8 tiles)
1  I8 (8 bit intensity, 8x4 tiles)
2  IA4 (4 bit intensity with 4 bit alpha, 8x4 tiles)
3  IA8 (8 bit intensity with 8 bit alpha, 4x4 tiles)
4  RGB565 (4x4 tiles)
5  RGB5A3 (*) (4x4 tiles)
6  RGBA8 (4x4 tiles in two cache lines - first is AR and second is GB)
8  CI4 (4 bit color index, 8x8 tiles)
9  CI8 (8 bit color index, 8x4 tiles)
10 CI14X2 (14 bit color index, 4x4 tiles)
14 CMP (S3TC compressed, 2x2 blocks of 4x4 tiles)


I can't do alpha formats yet...
but the next format will be colored

EDIT:
here's the code for the format:
Quote
def I8(offset,width,height,length):
    X,Y,TX,TY,read = 2,2,0,0,1
    fr.seek(offset,0)
    while read:

        tiles = []
        while len(tiles) < length/32:
            tile = []
            while len(tile) < 32: tile.append(fr.read(1).encode('hex'))
            tiles.append(tile)

        for tile in tiles:
            for pixel in tile:
                R=G=B=pixel
                color = '#'+R+G+B
                x = int(TX+X)
                y = int(TY+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

        read = 0

it may come in handy ;)

EDIT2:
you know...
I prbly don't even need the lists

all I have to do is use:

while length > 0:
    pixel = fr.read(1).encode('hex')
    #code
    length -= 1

I'ma try that real quit...
(should speed it up a little)

[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 06, 2011, 08:54:44 PM #59 Last Edit: January 06, 2011, 08:59:00 PM by theshyguy
omg reading post right now....GIMMMMMIEEEEEE lol gj

edit:ima try n contribute sometime today.  First finish bte then this.