File not Found Error with Imported Body

The place to discuss scripting and game modifications for X²: The Threat.

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

User avatar
RAFIO
Posts: 3085
Joined: Sat, 19. Jun 04, 18:22
x3ap

File not Found Error with Imported Body

Post by RAFIO »

Hello everyone!

Well, I have made my own model of Hiigarian Ion Frigate:

[ external image ]

Im exports it to 00124.txt body file with DBOX2 in to my mod v folder. Then i bulids new schip using this part:

Code: Select all

/# Exported with dbox2 from 04172.max at 2006-06-13 17:14:03
 
VER: 4;
 
P 0; B 105; C 12289; N 105_12289b; 
{ 0x2002;  14900; -1600; -103000;  0.0; 0.0; 0.0; 0.0;  -1; -1; } // 0
P 1; B 105; C 12289; N 105_12289b01; 
{ 0x2002;  6900; -4600; -103000;  0.0; 0.0; 0.0; 0.0;  -1; -1; } // 0
P 2; B 105; C 12289; N 105_12289b02; 
{ 0x2002;  2000; 2400; -103000;  0.0; 0.0; 0.0; 0.0;  -1; -1; } // 0
P 3; B 105; C 12289; N 105_12289b03; 
{ 0x2002;  -2800; -4600; -103000;  0.0; 0.0; 0.0; 0.0;  -1; -1; } // 0
P 4; B 105; C 12289; N 105_12289b04; 
{ 0x2002;  -10400; -1700; -103000;  0.0; 0.0; 0.0; 0.0;  -1; -1; } // 0
P 5; B 919; C 1; N 919_1b; 
{ 0x2002;  2100; -3699; 106400;  0.25; 0.0; 0.0; -1.0;  -1; -1; } // 0
P 6; B 910; C 1; N 910_1b; 
{ 0x2002;  -38400; 6900; -69700;  0.0; 0.0; 0.0; 0.0;  -1; -1; } // 0
P 7; B 940; N 940Mainbody; 
{ 0x2002;  0; 0; 0;  0.0; 0.0; 0.0; 0.0;  -1; -1; } // 0
P 8; B 124; N 124b;
{ 0x2002;  0; 0; 0;  0.0; 0.0; 0.0; 0.0;  -1; -1; } // 0
Everything appears to be in order, but when i want to place this ship for tests, game crashes with "File not found" error, and I dont know why?

Pardon my english, I still learning it :P
Last edited by RAFIO on Sun, 25. Jun 06, 16:22, edited 1 time in total.
Budoka
Posts: 211
Joined: Mon, 27. Feb 06, 21:46
x4

Post by Budoka »

My english is'nt very good, but i'll give my best :wink: :
I've got two ideas why its not working:
1. I took a look at some original scenes of X² and there was an empty line between every part, like this:

Code: Select all

VER: 4; 

P 0; B 770; N 770b01; // idx 0, flags: 0
{ 0x2002; 8744;1010;-25980; 0.000000;0.000000;0.000000;0.000000; -1; -1; } // 0

P 1; B 924; N 924boost; // idx 1, flags: 0
{ 0x2002; -8865;1004;-19894; 0.000000;0.000000;0.000000;0.000000; -1; -1; } // 0

P 2; B 924; N 924boost01; // idx 2, flags: 0
{ 0x2002; 8851;1025;-19897; 0.499985;0.000000;0.000000;1.000000; -1; -1; } // 0

P 3; B 770; N 770b07; // idx 3, flags: 0
{ 0x2002; -8652;1032;-25978; 0.000000;0.000000;0.000000;0.000000; -1; -1; } // 0

P 4; B 106; C 1; N 106_1b01; // idx 4, flags: 0
{ 0x2002; -3213;-4466;19134; 0.000000;0.000000;0.000000;0.000000; -1; -1; } // 0

.....
2. DBOX2 can´t read .bob files, if your scene uses any .bob files you have to use X2BC to decompress them into .bod files, you can get X2BC from shadowtech's website

Though its not working, the ship is nice :roll:
"Das Leben ist wie ein Videospiel, man weiß nie welche Grausamkeiten einen erwarten."
"Auf den Boden P*ssen kann jeder, sei ein Held und sch**ß an die Decke!"
User avatar
RAFIO
Posts: 3085
Joined: Sat, 19. Jun 04, 18:22
x3ap

Post by RAFIO »

Schip scene file is good. When i deletes the parth from v and runs the game everything woorks great, but wehen i use this part, the game crashes. And best thing: When I export this part to txt and import it back to 3D studio, it works! Well, maybe its all caused by wrong textures configuration or somthing?

BTW: I know hot to make my own schip by biuliding it from "parts", but now, when I want to do something really new, I have a problems.
Harlock776
Posts: 2261
Joined: Wed, 9. Mar 05, 21:53
x2

scenes

Post by Harlock776 »

If you were able to make the ship in max then you need to make the scene in max too. I use the egosoft exporter for scenes and bod files and it works great. I export my parts as bod because I now use LOD feature and LOD export doesn't work properly with egosoft exporter so I manually alter the LOD settings after export to bod and then use doubleshadow's bod to bob converter to convert the part to bob format to save space and to force the game to use the part just in case there is a default part with the same number. BOB is read before BOD by the game so it's better to use BOB format.

Also your part is not loading properly because it might not be getting packed correctly. What mod packing program are you using to pack your mod? If it's mod manager then you have to do something to the file before packing it but if you use X2Archiver v1.02 it will see it as a bod or bob file and pack it as such. I've been using X2Archiver since 2004 with no problems.
User avatar
RAFIO
Posts: 3085
Joined: Sat, 19. Jun 04, 18:22
x3ap

Post by RAFIO »

I'm using:

-DBOX2 to export my model as .txt body file
-X2 Archiver (v1.02)
-3D Studio Max 7
-Doubleshadow's Body compiler

I try to export it as a bob, and write about effects :P

(Wish me luck ;))
User avatar
RAFIO
Posts: 3085
Joined: Sat, 19. Jun 04, 18:22
x3ap

Post by RAFIO »

I tryied to do this, but it's not working too, I really don know what to do with this?! :(

EDIT:Model is displayed corrlectly in BODviever

Harlock776:What about I send you max file with that part, and you try to do something with it?
Harlock776
Posts: 2261
Joined: Wed, 9. Mar 05, 21:53
x2

sure

Post by Harlock776 »

Sure send me the file it's all good I can get it to export a scene file and bod parts for you. I can export the parts in bod format so you can read them in notepad and the scene file too so you can read that in notepad as well but I think the main problem is the dbox2 exporter might not be set correctly on your setup. Before you send some things try reading the readme file that came with doubleshadow's exporter and make sure your settings are correct.

You know now that I think about it I might have trouble opening that file since it is from MAX 7 and I only use MAX 5. There is a problem with textures being different thanks to something evil called mental ray in MAX and it was included with MAX 6 and higher but not with MAX 5. You might have to export your ship as a .3ds file so I can import it otherwise I don't think it will open for me.
User avatar
RAFIO
Posts: 3085
Joined: Sat, 19. Jun 04, 18:22
x3ap

Post by RAFIO »

Sukccess! It's appears tha Egosoft Exporter for 3Dstudio 6 works very great in 3Dstudio 7 :D
Harlock776
Posts: 2261
Joined: Wed, 9. Mar 05, 21:53
x2

slo mo

Post by Harlock776 »

Sorry to take so long but I'm finally getting the time to get to your ship. I have some questions for ya though... where is the bridge on this ship? I've looked at the homeworld sites on the net and found other pics of the same ship but as far as I can tell the only place a bridge could be on the ship is deep inside it somewhere or that structure on the top front of the ship. It's important to know where the bridge will be because you can't have a place to sit in the ship without it. Also are there any turrets on the ship?
Our mighty sovereign may she always go before us sailing brightly in the sea of black.
User avatar
RAFIO
Posts: 3085
Joined: Sat, 19. Jun 04, 18:22
x3ap

Post by RAFIO »

cocpit is in left side of that ship, and it havent got any turrets. Olny main cannon.
Harlock776
Posts: 2261
Joined: Wed, 9. Mar 05, 21:53
x2

homeworld ships

Post by Harlock776 »

Ah ok I see the windows you textured on in those pics you sent me. hmm... well with the bridge over ther on one side it will be hard to steer to the right when filoting from the bridge view and with only one gun in the front this ship will have to travel with other ships like M6 or fighters to keep it from being shot up too quickly. I know that the main function of this ship is to strike heavy slow moving targets in large number like having five or six of them together at once but it's definitely a niche type of ship hehe:-) I'll see what I can do but it's probably best to use an invisible body seperate for the bridge location so you can see the rest of the ship when flying it. I have a body just for that purpose in me mod called 18801.bod that works great. I'll get the scene together today and send it to ya.
Our mighty sovereign may she always go before us sailing brightly in the sea of black.

Return to “X²: The Threat - Scripts and Modding”