Hello

Welcome, Guest. To unlock the rest of the forums
please login or register.
Did you miss your activation email?

Author Topic: fbExtractor V1.6, fbBuilder V1.0, and cfgBuilder V1.0 RELEASED  (Read 8004 times)

Offline Norrin Radd

  • Marvel Modder
  • Incredible Member
  • **********
  • Posts: 2279
  • Upvotes: 15
Norrin Radd's fb program pack
NR's fb program pack Download
Contains fbExtractor, fbBuilder, and cfgBuilder. Instructions for each can be found below.


fbExtractor by Norrin Radd RELEASE V1.4

This program extracts .fb file types into separate files, which are contained in the .fb file. Please let me know if you have any questions or problems.

Version 1.6
fbExtractor Download

Added in V1.6:
A cfg is made as FILENAME.cfg where FILENAME is the fb file you are exporting. This cfg file is compatible with fbBuilder

Version 1.4
fbExtractor Download

Added in V1.4:
A rough package file (pkg file) is made as FILENAME.pkg where FILENAME is the fb file you are exporting

Fixed in V1.2
Now the program functions in directories with spaces in them.

======Using fbExtractor======
It's pretty simple. Open the command prompt, go to the directory with the .fb file and type:
fbExtractor.exe fb_file.fb

Or, it can be used like this:
Quote from BliZZ
Quote
Put it in c:\windows and Right click/"open with" an fb. Select fbExtractor and check "always open these types of file with it". Then fbs are a double click away from decompiling.

Notes:
1. During extraction, new folders may be created and files may be overwritten. Make sure to backup any important files before running this program.
2. Put fbExtractor.exe in c:\windows directory (or similar directory for your machine) to be able to use fbExtractor in any directory.
3. If you are not in the directory where the fb_file.fb file is located, it will give an error saying the file could not be found.
4. Lines on the screen that say the following (or something similar):
A subdirectory or file C:\...\.. already exists.
are normal. This is part of the normal operation, it is just saying that the directory mentioned is already in existance and a new directory with the same name does not need to be created.

fbBuilder by Norrin Radd RELEASE V1.0
fbBuilder Download

Instructions:
1. unzip exe and cfg file to a folder
2. place files you want compiled to an fb file type into that folder
3. create the cfg file using the instructions below
4. double click on fbBuilder.exe and enter your cfg file name, the output fb file will be CFGFILENAME.fb, where CFGFILENAME is your cfg file name

How to setup the cfg:
actual_file_name file_path_full file_type
where actual_file_name is the name of the file in the same directory as the exe, file_path full is the full path that is put in the fb, and file_type is the type of file
example:
shared_nodes.engb data/shared_nodes.engb xml
An example cfg file is included, it is the cfg file for xml2 shared_nodes.fb

cfgBuilder by Norrin Radd RELEASE V1.0
cfgBuilder Download

This program creates a cfg file from a .pkg file type for use with fbBuilder

Instructions:
1. unzip exe and cfg file to a folder
2. place files you want converted to cfg file types into that folder
3. create the cfg file using the instructions below
4. double click on cfgBuilder.exe and enter your pkg file name, the output cfg file will be PKGFILENAME.cfg, where PKGFILENAME is your pkg file name
(Alternatively you can run it using command line as "cfgBuilder.exe PKGFILENAME")

The filetypes accepted are those in cfgBuilder_info.cfg file so that users can easily change parameters and add/remove filetypes. The format of the file is as follows:
FILETYPE DIRECTORY EXTENSION
where DIRECTORY is the added directory to the beginning of the file location, and EXTENSION is the file extension. In addition, the '#' at the beginning of a line denotes a comment

Thanks to:
Teancum for the idea to make the program and fb file type information, and BliZZ for the usage tip

Link to Modding Rundown: FBs
http://marvelmods.com/forum/index.php?topic=631.msg11565#msg11565
« Last Edit: March 05, 2009, 10:30pm by Norrin Radd »

Offline BliZZ

  • Moderator
  • Invincible Member
  • ***********
  • Posts: 3435
  • Upvotes: 13
Re: fbExtractor V1.0 RELEASED
« Reply #1 on: July 30, 2007, 10:37am »
Uh, it made all the directories fine, but none of the files actually extyracted. There were just actors, dialogs, etc folders.

I was using it on tutorial1 from XML2PS2.

Offline Norrin Radd

  • Marvel Modder
  • Incredible Member
  • **********
  • Posts: 2279
  • Upvotes: 15
Re: fbExtractor V1.0 RELEASED
« Reply #2 on: July 30, 2007, 11:59am »
hm, it worked fine for me (i used items.fb and another one, i will try tutorial1 later)
edit:
i even decompiled the xmlb files it created, with no problems.
i also viewed the igb files and saw the textures

edit:
did you do a search on your computer to see if the files were created anywhere?
« Last Edit: July 30, 2007, 01:20pm by Norrin Radd »

Offline BliZZ

  • Moderator
  • Invincible Member
  • ***********
  • Posts: 3435
  • Upvotes: 13
Re: fbExtractor V1.0 RELEASED
« Reply #3 on: July 30, 2007, 02:19pm »
I keep trying and all I get is empty folders.

Offline Norrin Radd

  • Marvel Modder
  • Incredible Member
  • **********
  • Posts: 2279
  • Upvotes: 15
Re: fbExtractor V1.0 RELEASED
« Reply #4 on: July 30, 2007, 02:25pm »
ok i will try using that .fb, but is that the only one you tried? its weird if it makes the correct folders though. Tonight i will download the package i released and test it. But i know that at least i have a working version (although i am not 100% sure if every single byte is in the exact location in the newly created files).

edit: also, what operating system are you using?
(i am wondering because it may be the format that i use to create new files with)
« Last Edit: July 30, 2007, 02:29pm by Norrin Radd »

Offline BliZZ

  • Moderator
  • Invincible Member
  • ***********
  • Posts: 3435
  • Upvotes: 13
Re: fbExtractor V1.0 RELEASED
« Reply #5 on: July 30, 2007, 02:34pm »
XP Pro SP2

Offline Norrin Radd

  • Marvel Modder
  • Incredible Member
  • **********
  • Posts: 2279
  • Upvotes: 15
Re: fbExtractor V1.0 RELEASED
« Reply #6 on: July 30, 2007, 02:37pm »
ok, i also use xp, so it should be fine. Don't worry about trying it anymore until i take a look at it.

Offline Teancum
  • Admin
  • Ultimate Member
  • ************
  • Posts: 5937
  • Upvotes: 114
Re: fbExtractor V1.0 RELEASED
« Reply #7 on: July 30, 2007, 02:46pm »
@ BliZZ -- remember that when you're running a command line program it's gonna have trouble with certain directories.  For instance.  I ran it from C:\Documents and Settings\BLA\Desktop\FB_extractor and got no files, but putting it in C:\FB_extractor fixed that.

Offline Norrin Radd

  • Marvel Modder
  • Incredible Member
  • **********
  • Posts: 2279
  • Upvotes: 15
Re: fbExtractor V1.0 RELEASED
« Reply #8 on: July 30, 2007, 02:59pm »
ok, then its the spaces in the directory name (possibly)

if this is the problem, i will fix it

edit:
yeah, theres errors when there is a space in the directory name, i'll try to fix it
« Last Edit: July 30, 2007, 03:46pm by Norrin Radd »

Offline Norrin Radd

  • Marvel Modder
  • Incredible Member
  • **********
  • Posts: 2279
  • Upvotes: 15
Re: fbExtractor V1.2 RELEASED
« Reply #9 on: July 30, 2007, 04:04pm »
ok problem fixed and new program uploaded.

Now the program works from within directories with spaces in them, such as \Documents and Settings\ etc.

edit:
BliZZ please let me know if this solves your problem
« Last Edit: July 30, 2007, 04:48pm by Norrin Radd »

Offline BliZZ

  • Moderator
  • Invincible Member
  • ***********
  • Posts: 3435
  • Upvotes: 13
Re: fbExtractor V1.2 RELEASED
« Reply #10 on: July 30, 2007, 04:53pm »
Fixed :bowdown1:

Offline Norrin Radd

  • Marvel Modder
  • Incredible Member
  • **********
  • Posts: 2279
  • Upvotes: 15
Re: fbExtractor V1.2 RELEASED
« Reply #11 on: July 30, 2007, 04:54pm »

Offline BliZZ

  • Moderator
  • Invincible Member
  • ***********
  • Posts: 3435
  • Upvotes: 13
Re: fbExtractor V1.2 RELEASED
« Reply #12 on: July 30, 2007, 05:00pm »
Although, all of the .igbs (the map itself and the files that go in "models/") don't extract separately, they are all in a file called __combined.igb.

Offline Norrin Radd

  • Marvel Modder
  • Incredible Member
  • **********
  • Posts: 2279
  • Upvotes: 15
Re: fbExtractor V1.2 RELEASED
« Reply #13 on: July 30, 2007, 05:02pm »
but is that how it is defined in the fb file?

Offline BliZZ

  • Moderator
  • Invincible Member
  • ***********
  • Posts: 3435
  • Upvotes: 13
Re: fbExtractor V1.2 RELEASED
« Reply #14 on: July 30, 2007, 05:06pm »
That is the first .igb. There are other ones immediately following it, but they stay as part of it. (Or maybe I am misunderstanding, and they ARE all a part of __combined.igb, and they need to be extracted from that. Dunno)