doubleshadow's X2BC (1.0.11)

The place to discuss scripting and game modifications for X³: Reunion.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

doubleshadow
Posts: 671
Joined: Fri, 12. Mar 04, 08:14
x3

doubleshadow's X2BC (1.0.11)

Post by doubleshadow » Tue, 20. Dec 05, 18:31

X2BC latest version 1.0.11 - released 15.1.2007

X2BC page on X-Wiki

Download from www.doubleshadow.wz.cz

Changes:
+ support for normals maps (bump maps) - you must have DBOX 1.8 (or higher)

Description
Program for decompilation of BOB files and compilation of BOD files.

Compatible with X2 The Threat and X3 Reunion files.
Last edited by doubleshadow on Mon, 15. Jan 07, 12:57, edited 3 times in total.

doubleshadow
Posts: 671
Joined: Fri, 12. Mar 04, 08:14
x3

Post by doubleshadow » Tue, 20. Dec 05, 18:33

The version 0.0.8 can decompile X3 BOBs but the price is that you cannot no longer compile bod files into bobs.

This is just a temporary sollution until I will have time to fix it.

There are bout 4 files which will not decompile - you will receive error.

To decompile them, you must use the option

Code: Select all

--x3bob-
The objects\ships\bodies\Raceship1.bob is one of them.

Example:

Code: Select all

x2bc -d --x3bob- Raceship1.bob
Last edited by doubleshadow on Fri, 20. Jan 06, 17:08, edited 1 time in total.

Galaxy613
Posts: 3285
Joined: Tue, 28. Dec 04, 02:19
x4

Post by Galaxy613 » Tue, 20. Dec 05, 23:24

Great job as always! :D
10,000 Lightyears of awesomeness

doubleshadow
Posts: 671
Joined: Fri, 12. Mar 04, 08:14
x3

Post by doubleshadow » Fri, 20. Jan 06, 17:11

Version 0.0.9 is out.

Can decompile all files without need for the x3bob flag.
Can compile all files.

Please re-read the readme and the extra_bob_data.txt. the second will tell you about data which are stored in BOB format but which are not supported by BOD format and how this can be overcomed.

User avatar
-XTM-
Posts: 1277
Joined: Sat, 12. Nov 05, 19:46
x3

Post by -XTM- » Sat, 21. Jan 06, 04:49

You are the man DS..

The new version has reduced loadtime of new models to almost the same
as the original ES ones.
Great, great work!!


Note to endusers;
This version comes as a 7z file, you can get the decompressor here:

http://www.7-zip.org/
The Xtended Mod

Need Help?

Ask Questions / View the FAQ's at TheXUniverse Forums
Read the News on Mod Developments at our Website

User avatar
nuclear_eclipse
Posts: 1129
Joined: Thu, 2. Sep 04, 01:54
x3tc

Post by nuclear_eclipse » Sat, 21. Jan 06, 16:35

Moxy wrote:Note to endusers;
This version comes as a 7z file, you can get the decompressor here:

http://www.7-zip.org/
Also of note is that WinRAR will also extract from 7z format, so no need toget 7zip if you already have WinRAR.

User avatar
-XTM-
Posts: 1277
Joined: Sat, 12. Nov 05, 19:46
x3

Post by -XTM- » Sat, 21. Jan 06, 18:24

Also of note is that WinRAR will also extract from 7z format, so no need toget 7zip if you already have WinRAR.
My Winrar didn't, but then again, I probably use version 1.0a.
The Xtended Mod

Need Help?

Ask Questions / View the FAQ's at TheXUniverse Forums
Read the News on Mod Developments at our Website

User avatar
nuclear_eclipse
Posts: 1129
Joined: Thu, 2. Sep 04, 01:54
x3tc

Post by nuclear_eclipse » Sat, 21. Jan 06, 20:13

Moxy wrote:My Winrar didn't, but then again, I probably use version 1.0a.
It helps to have version 3 or higher =]

kevonski
Posts: 22
Joined: Sun, 2. Apr 06, 23:56
x3

Post by kevonski » Sat, 29. Apr 06, 01:56

When I open the command prompt to run this program (win xp sp2) I can't. :-( Tried "run xb2c.exe" etc. Have tried the RUN command from the start button, but either way I cant get it to launch in the cli prompt.

I am a noob, anyone able to be give me some advice? Please?

Thanks!

kevonski
Posts: 22
Joined: Sun, 2. Apr 06, 23:56
x3

Post by kevonski » Sat, 29. Apr 06, 02:23

okay, I now tried "start x2bc.exe" from the cli and I get this error about how the lib.dll (forget full name) file is missing. Its in the same dir as the x2bc.exe though.

mine777
Posts: 45
Joined: Thu, 3. Aug 06, 17:41

Post by mine777 » Tue, 12. Sep 06, 18:57

kevonski wrote:okay, I now tried "start x2bc.exe" from the cli and I get this error about how the lib.dll (forget full name) file is missing. Its in the same dir as the x2bc.exe though.
You need the .lib files from the doubleshadow site. Download them and place them in your system directory or your application directory (whichever turns you on).


Step by step method:

1 - Start->Run->type "cmd" (no quotes) in the run box->OK. This opens the command prompt.

2 - In the command prompt, navigate to your X2BC directory (Example: I type "D:", press enter, then type "cd X2BC", press enter. My command prompt then says: "D:\X2BC>"

3 - Run the program.

3a - Decompile example: After having copied xenon_m1.bob to the X2BC directory (use windows and drag drop or whatever turns you on): I type "x2bc -d xenon_m1.bob" at the command prompt. This creates xenon_m1.bod

3b - Compile example: After making sure that the xenon_m1.bod file I want to work with is in the X2BC directory: I type "x2bc -c --bob xenon_m1.bod" at the command prompt. This creates xenon_m1.bob. Note the "--bob" after the "-c". Software needs an operator after "-c" to compile.

4 - Refference: Type x2bc -? and press enter at the command prompt in order to see the flags (the -c or -d type stuff) you can type at the command prompt.



IMPORTANT NOTE: This is command line software. It is NOT windowed software. This means that it talks to you and accepts commands from you through the command prompt ONLY. It does NOT open a GUI on the desktop to interface with it.
Remember: You're unique, just like everybody else.

doubleshadow
Posts: 671
Joined: Fri, 12. Mar 04, 08:14
x3

Post by doubleshadow » Wed, 13. Sep 06, 08:11

kevonski wrote:okay, I now tried "start x2bc.exe" from the cli and I get this error about how the lib.dll (forget full name) file is missing. Its in the same dir as the x2bc.exe though.
Instructions can be found here: http://www.xwiki.chaos.net.nz/index.php/X2BC

If you downlaoded the X2BC_1.0.9.7z (binary only) package, then all the required files are in there. If you downloaded the source package, then you need to move msvcr71.dll next to the x2bc.exe (or to a location listed in your PATH env. variable) as explained in the readme.

demoneyes
Posts: 9
Joined: Mon, 11. Sep 06, 00:59
x3

Post by demoneyes » Sun, 3. Dec 06, 13:30

wrong one

doubleshadow
Posts: 671
Joined: Fri, 12. Mar 04, 08:14
x3

Post by doubleshadow » Mon, 15. Jan 07, 13:00

Version 1.0.11 is out.

It has support for bump maps. You will need to re-export your bodies with DBOX 1.8 (or higher) and then re-compile with x2bc.

Hadhafang
Posts: 86
Joined: Mon, 5. Jul 04, 15:23
x3

Post by Hadhafang » Tue, 27. Feb 07, 02:58

I am having problems recompling bod files.

I wanted to change the color of the minbari Sharlin so I decompiled the bob files and changed the color of the dds files it used, changed their names, adjusted the bod files acordingly, inserted the new textures into my mod and then attempted to compile the changed bod files into bob files but got an error saying "Type of input file notspecified"

I typed "x2bc -c minbari_c0.bod" Is this wrong? Have I screwed up somewhere or changed the bod files somehow when I saved them after using a text editor on them?
"And so it begins!" Ambassador Koch, Babylon 5

"I have got to get me one of these!" Me after seeing a Whitestar

User avatar
Observe
Posts: 5079
Joined: Fri, 30. Dec 05, 17:47
xr

Post by Observe » Tue, 27. Feb 07, 03:36

Try this:

Code: Select all

x2bc -c --bob "minbari_c0.bod" "minbari_c0.bob"

Hadhafang
Posts: 86
Joined: Mon, 5. Jul 04, 15:23
x3

Post by Hadhafang » Tue, 27. Feb 07, 07:10

Thanks Observe, worked a treat as usual :D
"And so it begins!" Ambassador Koch, Babylon 5

"I have got to get me one of these!" Me after seeing a Whitestar

doubleshadow
Posts: 671
Joined: Fri, 12. Mar 04, 08:14
x3

Post by doubleshadow » Wed, 28. Feb 07, 08:54

Hadhafang wrote:I am having problems recompling bod files...

I typed "x2bc -c minbari_c0.bod" Is this wrong?
Observe wrote:Try this:

Code: Select all

x2bc -c --bob "minbari_c0.bod" "minbari_c0.bob"
@Hadhafang - you have to specify the file type when compiling: body file (bob) or scene file (cut).

Run x2bc /? or x2bc --help to view all the options. (which applies to all other command line based programs as well).

User avatar
halo112358
Posts: 374
Joined: Thu, 16. Feb 06, 07:56
x3

Post by halo112358 » Thu, 3. May 07, 23:12

Recompiling asteroid bodies with 1.0.11 is causing the models to lose their collision data.

The models work fine in game if they're used as .bod files, but compiling to .bob causes the in-game autopilot to stop avoiding them.
*** modified ***

[ external image ]

doubleshadow
Posts: 671
Joined: Fri, 12. Mar 04, 08:14
x3

Post by doubleshadow » Fri, 4. May 07, 13:03

halo112358 wrote:Recompiling asteroid bodies with 1.0.11 is causing the models to lose their collision data.

The models work fine in game if they're used as .bod files, but compiling to .bob causes the in-game autopilot to stop avoiding them.
Yeah there is still one set of data which is a mystery to me. But as long as I have bumb maps I don't give a ... (you surely got the idea) ;)

Collision data you say? That's a good start to decypher the stuff. I will look at it *sometime*.

Post Reply

Return to “X³: Reunion - Scripts and Modding”