Register  FAQ  Search  Memberlist  Profile  Log in to check your private messages  Log in  Main Site 

Xbox 360 Theme Extractor
Goto page 1, 2  Next
 
Post new topic  Reply to topic   Infectionist Machinima Forum Index » Chat
View previous topic :: View next topic  
Author Message
HaLo2FrEeEk
Overlord Extraordinaire

Joined: 15 Aug 2006
Posts: 4058
Status: Offline
Style: Xbox 360
Location: Trying really hard to do something

PostPost subject: Xbox 360 Theme Extractor Reply with quote
Third time's the charm. I've tried writing this post 2 times already and the first time I fell asleep and my computer mysteriously turned off, the second time I got logged out when I tried posting. This time it's gonna work.

Ever since I learned about the structure of LIVE, PIRS, and CON files, I've messed around with them trying to see what I can make of it. When I found some theme files on my harddrive I started pulling out the images and putting them up on my forum, sort of a preview for people that might want to buy the theme.

Unfortunately, the task of pulling out all the images is pretty involved. Sure, I could use a tool like wxPirs to do it, but I'm the kinda guy that likes to, well, do things the hard way. If I use something that someone else made, I don't feel like I did anything. It's like cheating, you might get the right answer, but you don't know why that's the answer. The first thing I'd do when I wanted to extract a theme was to open the file in a hex editor and remove the hashes (0x2000 bytes at 0xB6000 and 0x1000 bytes every 0xAA000 bytes after that.) Then I'd go through the content list and copy out the starting cluster and filesize for each file. Once I had my list I'd go through and manually copy each section and save it. It took me about an hour or 2 altogether. I decided to build my own program to help me.

Now, I hear you saying, doesn't that go against what he just said? If he likes to do things the hard way, why is he making a program to do it for him? Well, the way I figure it, the people that made the first calculators had to know that 2+2=4, and they had to program that in. Building my own program means that I have to not only understand C# enough to actually make it work, but I have to understand how the files are stored in the STFS file structure. I'm doing the work by making a program that can do the work.

I put a decent amount of time into this this time around. I focused not just on making it functional, but also making it visually appealing. It may not be the most beautiful, but I really like how it looks. It's simple, yet elegant, and it gets the job done. I'm very proud of the result because it marks the first program I made that's actually useful, and has a visual element to it as well.


The first thing you see is the layout. I chose to go with the probably-overused dotNetBar, but it worked nicely for what I wanted.


Click Open and select a file to process and immediately a bunch of information gets filled in. You'll see the program extracts out the game tile and displays it, it also gets the theme name, total filesize, number of files contained, content size, and whether the theme is standard or premium. You'll also see the list populate with the filenames, offsets, and filesizes. Later I plan to implement a double-click-preview feature where double clicking an item will open a preview window.


Click "Dump Files" and you'll be asked to select a folder where you want to save the files. Simple enough, select your folder and click OK.


And there's the cake. All the image files are saved to your desired location. There are 2 files that I exclude from the dump, DashStyle and parameters.ini (the latter only being found in Premium themes.)

Download:
http://infectionist.com/extras/csharp/l...ractor.zip

Like I said, I'm quite proud of the way this turned out, I worked very hard on it. I merged the dotNetBar dll into the main assembly for simplicity, so the program is a 100% standalone application that will work on any computer with .NET 2.0 and above.

Please try it out and let me know if you find any problems. I tried as hard as I could to find them all and fix them, but I'm sure there's something I overlooked. Comments are also apperciated.

And just for Infectionist, here is a theme file you can use to test this out:

http://infectionist.com/extras/csharp/l...o_Drop.zip

Just unzip that file to your desktop or somewhere you'll remember and open it with the program. Don't rename it though, you need it to have no extension, the program won't open it if it has an extension. Your filename should be this:

ABDDE535550FA2C9D709C7A6CC00F6C116274A804D
_________________
This user has made more than 500 posts on the Infectionist forums!

~HaLo2FrEeEk

I wrote:
I'm sexy, admit it.


Are you?

Saturday, January 30, 2010 3:20:33 am
View user's profile Send private message Visit poster's website
Author Message
KJdog23
Honorary Member

Joined: 17 Oct 2006
Posts: 1689
Status: Offline
Style: Xbox 360
Location: IL eating Portillos...

PostPost subject: Reply with quote
I'll go on my Windows later today and try it out but from the screenies it looks really good and professional. Nice job man.
_________________
This user has made more than 500 posts on the Infectionist forums!


H2F wrote:
There's this newfangled invention called the internet. Its great for getting things that you don't currently have.
Sunday, January 31, 2010 6:10:33 am
View user's profile Send private message Visit poster's website AIM Address
Author Message
HaLo2FrEeEk
Overlord Extraordinaire

Joined: 15 Aug 2006
Posts: 4058
Status: Offline
Style: Xbox 360
Location: Trying really hard to do something

PostPost subject: Reply with quote
Thank you, I was wondering if anyone was gonna comment on this.
_________________
This user has made more than 500 posts on the Infectionist forums!

~HaLo2FrEeEk

I wrote:
I'm sexy, admit it.


Are you?

Sunday, January 31, 2010 6:21:52 am
View user's profile Send private message Visit poster's website
Author Message
HaLo2FrEeEk
Overlord Extraordinaire

Joined: 15 Aug 2006
Posts: 4058
Status: Offline
Style: Xbox 360
Location: Trying really hard to do something

PostPost subject: Reply with quote
Dude this is bull! I don't give a crap if YOU find this useful or not, you can test it with the provided theme file, and give me comments on it! KJ commented, but never replied whether he'd tried it or not, he probably forgot about it. I'm really bummed, I worked REALLY hard on this and I only got 1 comment on both sites I posted it on, that's ridiculous!
_________________
This user has made more than 500 posts on the Infectionist forums!

~HaLo2FrEeEk

I wrote:
I'm sexy, admit it.


Are you?

Saturday, February 6, 2010 9:50:32 am
View user's profile Send private message Visit poster's website
Author Message
snailthatflies
Elite Combat Form
Elite Combat Form

Joined: 29 Mar 2007
Posts: 211
Status: Offline
Style: Xbox 360
Location: East Coast somewhere

PostPost subject: Reply with quote
maybe its cuz no one cares
_________________


Si vis pacem, para bellum
Saturday, February 6, 2010 1:32:36 pm
View user's profile Send private message
Author Message
HaLo2FrEeEk
Overlord Extraordinaire

Joined: 15 Aug 2006
Posts: 4058
Status: Offline
Style: Xbox 360
Location: Trying really hard to do something

PostPost subject: Reply with quote
Temp ban time. You asked for it strock, if you're gonna be here you're gonna keep it civil, if you have nothing constructive to say don't say anything.
_________________
This user has made more than 500 posts on the Infectionist forums!

~HaLo2FrEeEk

I wrote:
I'm sexy, admit it.


Are you?

Saturday, February 6, 2010 6:45:24 pm
View user's profile Send private message Visit poster's website
Author Message
Cifer
Infection Form
Infection Form

Joined: 08 Feb 2010
Posts: 8
Status: Offline
Style: Xbox 360

PostPost subject: Reply with quote
meh.
_________________
Monday, February 8, 2010 8:19:51 am
View user's profile Send private message
Author Message
HaLo2FrEeEk
Overlord Extraordinaire

Joined: 15 Aug 2006
Posts: 4058
Status: Offline
Style: Xbox 360
Location: Trying really hard to do something

PostPost subject: Reply with quote
Strock if that's you, you should know that ban evasion will result in a permanent ban, I gave you a temp ban because of your attitude, just serve your 1 week and you will be welcome back.
_________________
This user has made more than 500 posts on the Infectionist forums!

~HaLo2FrEeEk

I wrote:
I'm sexy, admit it.


Are you?

Monday, February 8, 2010 11:55:04 am
View user's profile Send private message Visit poster's website
Author Message
Pivot
Banned

Joined: 07 Jan 2009
Posts: 420
Status: Offline
Style: Wii
Location: IN

PostPost subject: Reply with quote
Stuff
_________________
This user has been banned


Last edited by Pivot on Tuesday, February 9, 2010 12:05:33 pm; edited 1 time
Monday, February 8, 2010 2:13:30 pm
View user's profile Send private message Send e-mail
Author Message
Poisonblood
Proto-Gravemind
Proto-Gravemind

Joined: 11 Apr 2007
Posts: 1569
Status: Offline
Style: Xbox Xtreme
Location: New Awesometon

PostPost subject: Reply with quote
Pivot wrote:
Stuff

Of course not. But it doesnt hurt to make your post less offensive. Start trying.
_________________
This user has made more than 500 posts on the Infectionist forums!


HaLo2FrEeEk wrote:
Don't make him angry, he'll turn into a Elite Monster!!!!

Tuesday, February 9, 2010 8:19:23 am
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Post new topic  Reply to topic   Infectionist Machinima Forum Index » Chat

Page 1 of 2
All times are GMT - 8 Hours
Goto page 1, 2  Next

Display posts from previous:

  

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group
Xbox 360 by Scott Stubblefield