Help with a small mod to space suit

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

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

CaptG
Posts: 471
Joined: Sat, 12. May 07, 17:29
x3tc

Help with a small mod to space suit

Post by CaptG »

Has anyone added a gun to the space suit? I've modified the suit using doubleshadow's editor to carry an Alpha IRE, a shield, and expanded its cargo capacity and size. I wrote a script to add the items to the space suit everytime the player is in it, and it works. The weapon slot and the icon appear on the screen and the shields work, but when i pull the trigger nothing happens. I tried increasing the weapon power but that didnt do anything. Can anyone help?
User avatar
Gazz
Posts: 13244
Joined: Fri, 13. Jan 06, 16:39
x4

Post by Gazz »

Did you include the weapon mounts in the suit's scene file?

Weapons must fire from *somewhere* yaknow.
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
CaptG
Posts: 471
Joined: Sat, 12. May 07, 17:29
x3tc

Post by CaptG »

How can i edit the scene file? And where is the correct file?
User avatar
Flybye
Posts: 1400
Joined: Fri, 9. Feb 07, 04:46
x3tc

Post by Flybye »

You have just asked the million dollar question LOL.

http://www.xwiki.chaos.net.nz/index.php/Main_Page

Yo need to read up on:
1) Unpacking your entire X3 folder.
2) Converting from .bob to .bod and back to .bob.
3) Creating/Editing a ship with weapons dummies
4) Getting a copy of GMAX (Free) or 3DS Max (a few hundred dollars with a student discount, over $3000 retail price)
5) Using DBOX to import and export X3 ships into either of the above mentioned editors.

Didn't think this was going to be easy, did you? ;)
CaptG
Posts: 471
Joined: Sat, 12. May 07, 17:29
x3tc

Post by CaptG »

Where can i get GMAX?
User avatar
Flybye
Posts: 1400
Joined: Fri, 9. Feb 07, 04:46
x3tc

Post by Flybye »

http://www.turbosquid.com/gmax

Googling "Download GMAX" works for me ;)
CaptG
Posts: 471
Joined: Sat, 12. May 07, 17:29
x3tc

Post by CaptG »

Ok i have extracted the files from the catalogs, found the astronaut scene (astronaut.bob), and installed GMAX and DBOX. Now what do i do to open the file and edit it? I already opened GMAX and I am trying to figure out what to do next.
User avatar
Stevio
Posts: 2271
Joined: Sat, 4. Jun 05, 10:36
x3tc

Post by Stevio »

Try reading some of the tutorials in the sticky :roll:
User avatar
Flybye
Posts: 1400
Joined: Fri, 9. Feb 07, 04:46
x3tc

Post by Flybye »

CaptG
Posts: 471
Joined: Sat, 12. May 07, 17:29
x3tc

Post by CaptG »

Thank you that helps. I cant find the program to convert the .bob into .bod.
User avatar
Flybye
Posts: 1400
Joined: Fri, 9. Feb 07, 04:46
x3tc

Post by Flybye »

CaptG
Posts: 471
Joined: Sat, 12. May 07, 17:29
x3tc

Post by CaptG »

Ive opened the astronaut_scene.bod file. All I see is a blue cube. How do i add weapon mounts?
CaptG
Posts: 471
Joined: Sat, 12. May 07, 17:29
x3tc

Post by CaptG »

Ok I saved both files as .GMAX and then imported the weapondummy file into the astronaut_scene file. How do I save it? Or did I do it wrong?
User avatar
Flybye
Posts: 1400
Joined: Fri, 9. Feb 07, 04:46
x3tc

Post by Flybye »

Squelch
Posts: 252
Joined: Sat, 15. May 04, 11:03
x2

Post by Squelch »

I believe you now have to export the scenes back to bod, and then convert to bob.

It is probably wise to then use ship creator with your new/edited suit to be able to install into game without overwriting the original.

[Edit] ^ What he said ^ [/Edit]
CaptG
Posts: 471
Joined: Sat, 12. May 07, 17:29
x3tc

Post by CaptG »

I was able to export the file as text and then changed it to .bod. I loaded X3 with the new file in place in a new catalog, the space suit works but there is no external sign of a weapon and it still wont fire. I had exported the file as a scene, so I changed it and exported it as a Body and loaded the game. The space suit wasnt visible but you could fire the weapon. It just seemed to originate from a point. Can someone help me?
User avatar
Stevio
Posts: 2271
Joined: Sat, 4. Jun 05, 10:36
x3tc

Post by Stevio »

Make sure the Weapon ID in your scene is matched to that in Tships, (The P Number)

also make sure the weapon is set on a Camera right
Note the " C1 " References...

Code: Select all

//Astropnaut Cockpit cam
P 0; B ships\others\astronaut; C 1; N Bships\others\astronaut_1b; b
  { 0x2002;  0; 0; 0;  0.000000; 0.000000; 0.000000; 0.000000;  17500;  1; } // 1
  { 0x2002;  0; 0; 0;  0.000000; 0.000000; 0.000000; 0.000000;  -1;  -1; } // -1

//Weapon Dummy
P 1; B ships\props\weapondummy; C 1; N Bships\props\weapondummy_1b; b
CaptG
Posts: 471
Joined: Sat, 12. May 07, 17:29
x3tc

Problem Recompiling .bod files

Post by CaptG »

I can not get the X2BC compiler to recompile my .bod file back to .bob. Everytime it gives me this error:

Compiler - line 3, col 1 - Error: Expected version specification

Can anyone help?
User avatar
Stevio
Posts: 2271
Joined: Sat, 4. Jun 05, 10:36
x3tc

Post by Stevio »

because scenes are not meant to be bobbed

the Scene must stay as "astronaut_scene.bod"
and the mesh File should be compresses to "astronaut.bob"
Last edited by Stevio on Sun, 13. May 07, 20:00, edited 1 time in total.
CaptG
Posts: 471
Joined: Sat, 12. May 07, 17:29
x3tc

Post by CaptG »

its not a scene its a bod file. (astronaut.pbb)

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