How To Properly Extract Data From Spore Files

Forum rules
Can't get a mod to work?
Try these... FIRST!

http://www.davoonline.com/phpBB3/viewforum.php?f=6
Sergeant First Class

Sergeant First Class

GBAura
User avatar
Posts: 247
Joined: Sat Sep 17, 2011 7:24 am
Location: In a blackhole
Gender: Female
Contact:
Status: Offline

How To Properly Extract Data From Spore Files

Unread post #1 by GBAura » Wed Feb 19, 2014 6:49 pm

As you may know, there was a major glitch in SporeMaster where if you try to unpack any of the package files, the program may run into an error where it goes something like (depending on the file);

System.Exception.invalid type 6
at Gibbed.Spore.PropertyFile.Read(Stream input)
at SporeMaster.PackageUnpack.writePropFile(Byte [] data, String fn)
at SporeMaster.PackageUnpack...ctor(Stream[] packageFiles, String
destina-AAAARRRGGGH!

It doesn't always happen, but there was some package files that always run into this issue no matter what, most notably the Booster file from the Creepy and Cute parts pack. What made it worse is that when SporeMaster runs into this error, it stops unpacking immediately, meaning that the rest of the files that would be extracted failed to get through. This is really annoying for serious modders who want to get all the data out of the files, especially to those who want to play around and see how many unused stuff they can find in there. I did hear of a lost version of SporeMaster that fixed this issue, but we never got it. However, when I found out that these files are actually DBPF files, I discovered a way to unpack them with no trouble. Believe or not, I actually found this a long time ago, but I didn't try it out because I didn't know I could do that. Silly me. XP

Alright. Here's what you need:
---------------------------------
SporeMaster

Any file you have trouble unpacking before

The Sims 3 Package Editor (kudos to the Sims modding community for making this tool!)

Now you got everything you need, lets start.
---------------------------------
First off, open S3PE and open the file you had issues unpacking. Alternatively, you can just click on the package file and S3PE will open it, but it may not always work. The program will "hide" for a bit, but don't worry, it's loading it.
Now that you have the program running the file, it'll show you a bunch of internal data in it. If you want to extract certain elements at a time, you need to the click on the "Tag" tab on the left it it'll sort the file types by name. Also, you need to understand the tags the Package Editor sorted out, but I'll give you a short guide.

AUD - A sound file.

SWB- An .#EA5118B0 file. Don't know what it's for.

CNFG - A trigger file.

IMA - A picture file (if you set S3PE to view the images, it'll show you a preview on the right, just like in SporeMaster, but you can also view the DDS file).

PROP - A #02B9F662 file. Not sure what it was used for though either.

UNK - A foreign file that isn't detected by the program. Most of it is XML's but it can be pretty much anything. However, some of these are the main reason why SporeMaster couldn't open the package date to begin with, so be aware of that if you are trying to extract these types of files.

VOCE - Data for the way sounds are being played in the game (like fading and filters)
---------------------------------
If you want to get the files of a certain type, click on the first instance of the file you want, and go down to the last instance of the file type, hold the Shift key and click on it. Depending on how many you are there, it'll take time for the program to select all of them. You can speed it up by moving down as the files are being highlighted.

Once that's done, fight click on any selected file and go to Export - To Package. Name it hover you want and wait for the program to export it. Whatever you do, don't export it to file because depending on the file type itself, it may export it in a different format and name.

Now, get SporeMaster and unpack the file you just created, and you should be able to get the content you didn't get before. However, it's not recommended you highlight all the files in S3PE, because if there are any files that SporeMaster had trouble opening previously, it won't open them either. Remember what I said about the UNK files? Yeah, S3PE won't fix it.
Also be wary of the fact that when the Package Editor extracts the files, depending on how many you selected and what type it is, the created DBPF will be larger than the original. Electronic Arts really had some powerful compression tools for this type of stuff, and they were the ones who created the DBPF format!

Hope this helps! ;)


Image

Ripper of Spore: Unofficial Galactic Score and... that's about it.

Meaningless Quote:

"Raggedy Ann scares me!"

The Boss
Location: NOLA
Gender: Male
Zodiac: Cancer
Age: 33
Contact:
Status: Offline

Re: How To Properly Extract Data From Spore Files

Unread post #2 by Davo » Thu Feb 20, 2014 1:28 am

Thanks for the tutorial. I learned a bit from EMD, at least what i could. It was enough to make the core texture/model mod for DI.

Nice to see a tutorial here!
Support my Site via Adf.ly : View the Ad or Skip the Ad


Tech Support

Tech Support

Emd4600 [ASR]
User avatar
Posts: 621
Joined: Sun Dec 09, 2012 6:21 am
Location: Sporepedia2's City, Spain
Gender: Male
Contact:
Status: Offline

Re: How To Properly Extract Data From Spore Files

Unread post #3 by Emd4600 [ASR] » Thu Feb 20, 2014 9:44 am

.#EA5118B0 is for effect files
The error happens because SporeMaster is attempting to convert a .prop file that is corrupt or invalid. In case of EP1_Data, the file on the #40004000 folder is corrupt, so if you erase it with S3PE and pack the package another time SporeMaster will open it.
Image
Image

Staff Sergeant

Staff Sergeant

p.d
User avatar
Posts: 186
Joined: Tue Jun 08, 2010 7:48 pm
Gender: None specified
Status: Offline

Re: How To Properly Extract Data From Spore Files

Unread post #4 by p.d » Thu Feb 20, 2014 3:17 pm

This sounds really useful!

But when I go to open any of the official "spore_xxxx.package" files, I get an error reading:

unable to parse file: Expected 2, got 3, at position 8

...I have no idea what that means.

Private

Private

94Connor949
User avatar
Posts: 36
Joined: Fri Apr 29, 2011 10:20 am
Gender: Male
Zodiac: Capricorn
Status: Offline

Re: How To Properly Extract Data From Spore Files

Unread post #5 by 94Connor949 » Sun Aug 10, 2014 2:01 am

So I've been getting back into Spore modding recently, but I've running into the same thing that p.d.'s mentioned. It pretty much keeps giving me the same error message when I try to open anything that isn't a core-spore file.

Here's the message:
s3pe wrote:Could not open package:
C:\Program Files (x86)\Origin Games\SPORE Galactic Adventures\Data\Spore_EP1_Data.package

This file does not contain the expected package major version number in the header.
This could be because it is a package for Sims2 or Spore.

---
Error message:
Expected major version '2'. Found '3'.


Any advice?
Image

Sergeant First Class

Sergeant First Class

GBAura
User avatar
Posts: 247
Joined: Sat Sep 17, 2011 7:24 am
Location: In a blackhole
Gender: Female
Contact:
Status: Offline

Re: How To Properly Extract Data From Spore Files

Unread post #6 by GBAura » Sun Aug 10, 2014 6:15 pm

I think the problem you and P.D. had (I feel bad for not responding to him since I forgot about it...) is that you didn't install the latest version of Microsoft .NET Framework, which is what S3PE and SporeMaster needs in order to function properly. Then again, I'm just guessing since it's a long time since I used those programs. If that doesn't work, try installing Microsoft Visual C++. I don't remember what version you need, but try snagging all of it to keep your system up to date.
Image

Ripper of Spore: Unofficial Galactic Score and... that's about it.

Meaningless Quote:

"Raggedy Ann scares me!"

Tech Support

Tech Support

Emd4600 [ASR]
User avatar
Posts: 621
Joined: Sun Dec 09, 2012 6:21 am
Location: Sporepedia2's City, Spain
Gender: Male
Contact:
Status: Offline

Re: How To Properly Extract Data From Spore Files

Unread post #7 by Emd4600 [ASR] » Mon Aug 11, 2014 4:40 am

Image
Image

Private

Private

94Connor949
User avatar
Posts: 36
Joined: Fri Apr 29, 2011 10:20 am
Gender: Male
Zodiac: Capricorn
Status: Offline

Re: How To Properly Extract Data From Spore Files

Unread post #8 by 94Connor949 » Tue Aug 12, 2014 4:21 pm

Okay, that solved it. Thanks guys. :)
Image


Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 1 guest