[Tutorial] A guide to get .XSP format ships into X3 TC

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

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

User avatar
TERRAN-CONFLICTOR
Posts: 154
Joined: Tue, 27. Jan 09, 03:24

Post by TERRAN-CONFLICTOR »

ediko wrote::lol: Good luck figuring out what's what. I hope somebody more experienced will help us :roll:
And my answer to that is the "more experienced" haven't produced a guide... :P
"The truth is told by whoever is left standing." -- Tom Zarek
Arraamis
Posts: 179
Joined: Sun, 17. Dec 06, 23:42
x3tc

Post by Arraamis »

TERRAN-CONFLICTOR wrote:
ediko wrote::lol: Good luck figuring out what's what. I hope somebody more experienced will help us :roll:
And my answer to that is the "more experienced" haven't produced a guide... :P
And sadly, that fact makes the learning curve steep. But, every little bit counts and the work you're doing {TERRAN-CONFLICTOR} along with apricotslice, axeface, observer, to name a few, is making the learning process alot easier.

I find myself reading way too many X3:R posts trying to piece together information only to find out later that the technique used then, doesn't work now.

Hopefully, those experienced skilled modders out there will find the time to present a comprehensive guide that's clearly written in a step by step format ... one day soon.

Until then, TERRAN-CONFLICTOR, keep up the good work and if I can help you out in any way... just give me a shout.
User avatar
TERRAN-CONFLICTOR
Posts: 154
Joined: Tue, 27. Jan 09, 03:24

Post by TERRAN-CONFLICTOR »

Good to know.. :D
"The truth is told by whoever is left standing." -- Tom Zarek
jimhsu77479
Posts: 168
Joined: Sun, 25. Nov 07, 22:39
x4

Post by jimhsu77479 »

Good tutorial. So after modding the Angelwing and other ships I discovered that:

1. Importing XSPs directly (with a few modifications) into plugin manager is indeed possible but ridiculously frustrating,
2. X3 editor TC is a great help for just about anything T related,
3. BACKUP! After making any change, back it up so that you don't accidentally mess it up later.

That said, the method outlined in the tutorial is far better than messing with importing XSPs directly. You'll do the same amount of work both ways.
ediko
Posts: 127
Joined: Sun, 16. Mar 08, 18:46

Post by ediko »

Heh, funny enough i didn't make any backup and was very surprised when I cheated in my newly added valhalla :lol: It was there but its model and textures weren't :D It was easy to do the same thing again correctly though and I didn't need any backups
jimhsu77479
Posts: 168
Joined: Sun, 25. Nov 07, 22:39
x4

Post by jimhsu77479 »

What I meant by backups is if you are actually working on a ship ... e.g. changing textures by hand, adding new turrets, etc. That helps a lot. After all why not put those shiny terran textures and such to good use.
ediko
Posts: 127
Joined: Sun, 16. Mar 08, 18:46

Post by ediko »

Those textures would be cool, but first we need to get those ships with turrets working :lol:
User avatar
Idea
Posts: 516
Joined: Fri, 24. Oct 08, 12:14
x4

Post by Idea »

My questions:
When will you finish your new tutorila about turrets?

I have a problem of importing some body files, my DBOX report lack of scripter memory.Is that in related to the RAM memory?How to increase scripter memory?
User avatar
TERRAN-CONFLICTOR
Posts: 154
Joined: Tue, 27. Jan 09, 03:24

Post by TERRAN-CONFLICTOR »

Prob tonight, unfortunetley I work for a living... :wink:

Your suppose to be able to give more memory to 3DS or gmax, look in their forums.
"The truth is told by whoever is left standing." -- Tom Zarek
User avatar
Idea
Posts: 516
Joined: Fri, 24. Oct 08, 12:14
x4

Post by Idea »

Prob tonight, unfortunetley I work for a living.
Great :)
Your suppose to be able to give more memory to 3DS or gmax, look in their forums.
I will look.Thanks
ediko
Posts: 127
Joined: Sun, 16. Mar 08, 18:46

Post by ediko »

looking forward to the new tutorial.
User avatar
TERRAN-CONFLICTOR
Posts: 154
Joined: Tue, 27. Jan 09, 03:24

Post by TERRAN-CONFLICTOR »

I'm not going to update the actual tutorial itself, I have found it difficult to get across what i'm trying to say on a word document.

Basically if you download a .xsp ship you might find the author has put in custom turrets, these need to be added to the components.txt file. If your planning to add more ships you'll need to update this file if the ship has custom turrets not already listed. Here is an example....


Unmodded Components.txt


SCTYPE_LASER; 33;
ships\props\bigturret_rightweapon; 1;
NULL; 0.182744;0.000000;0.978300; 0.000000;0.000000;0.000000;
ships\props\bigturret_leftweapon; 1;
NULL; -0.182744;0.000000;0.978300; 0.000000;0.000000;0.000000;
ships\props\turretdummy; 2;
NULL; 0.269895;0.458005;0.996840; 0.000000;0.000000;0.000000;
NULL; -0.269916;0.458005;0.996840; 0.000000;0.000000;0.000000;
ships\props\weapondummy; 1;
NULL; 0.000000;0.120056;0.935944; 0.000000;0.000000;0.000000;
ships\props\invisible_weapon; 1;
NULL; -0.000031;0.028748;0.540283; 0.000000;0.000000;0.000000;
944; 1;
LASERF_ROTATE; -0.000031;0.086548;-0.813232; 0.000000;0.000000;1.000000;
772; 1;
NULL; -0.000031;-0.245972;0.639771; 0.000000;0.000000;0.000000;
111; 1;
NULL; -0.000031;0.003998;0.632385; 0.000000;0.000000;0.000000;
375; 1;
NULL; -0.000031;0.003998;0.632385; 0.000000;0.000000;0.000000;
503; 2;
NULL; -0.000031;-0.000031;0.985870; 0.000000;0.000000;0.000000;
NULL; -0.000031;-0.216125;0.326111; 0.000000;0.000000;0.000000;
504; 1;
NULL; 0.000122;-0.000031;0.955322; 0.000000;0.000000;0.000000;
887; 1;
NULL; -0.000336;-0.088959;0.848816; 0.000000;0.000000;0.000000;
950; 1;
NULL; -0.002045;-0.397278;0.561432; 0.000000;0.000000;0.000000;
ships\props\m6maingun_moving; 1;
NULL; 0.000000;-0.000360;0.794557; 0.000000;0.000000;0.000000;
ships\props\m6turret4_leftweapon; 1;
NULL; -0.000577;0.119540;0.927867; 0.000000;0.000000;0.000000;
ships\props\m6turret4_rightweapon; 1;
NULL; -0.001654;0.118793;0.931432; 0.000000;0.000000;0.000000;
ships\props\m3gun1d_moving; 1;
NULL; 0.000000;0.000051;0.964585; 0.000000;0.000000;0.000000;
ships\props\m3turret1d_weapon; 2;
NULL; 0.021611;-0.018531;0.987697; 0.000000;0.000000;0.000000;
NULL; -0.021603;-0.018531;0.987697; 0.000000;0.000000;0.000000;
89; 4;
NULL; 0.057376;0.034991;0.975556; 0.000000;0.000000;0.000000;
NULL; -0.057376;0.034991;0.975556; 0.000000;0.000000;0.000000;
NULL; 0.057376;-0.034991;0.975556; 0.000000;0.000000;0.000000;
NULL; -0.057376;-0.034991;0.975556; 0.000000;0.000000;0.000000;
ships\props\weapondummy3; 1;
NULL; 0.000000;0.247254;0.955073; 0.000000;0.000000;0.000000;
ships\props\weapondummy4; 1;
NULL; -0.000094;0.148300;0.954920; 0.000000;0.000000;0.000000;
ships\props\weapondummy5; 1;
NULL; -0.000155;0.236543;0.970017; 0.000000;0.000000;0.000000;
ships\props\weapondummy6; 1;
NULL; -0.000145;0.212099;0.962463; 0.000000;0.000000;0.000000;
ships\props\weapondummy7d; 2;
NULL; -0.117696;0.022967;0.846600; 0.000000;0.000000;0.000000;
NULL; -0.118225;-0.021505;0.983380; 0.000000;0.000000;0.000000;
ships\props\weapondummy8d; 2;
NULL; -0.043016;0.117515;0.974974; 0.000000;0.000000;0.000000;
NULL; 0.042339;0.117171;0.918501; 0.000000;0.000000;0.000000;
ships\props\weapondummy2; 1;
NULL; 0.000000;0.179171;0.968145; 0.000000;0.000000;0.000000;
ships\props\weapondummy9d; 2;
NULL; 0.000285;0.281389;0.971798; 0.000000;0.000000;0.000000;
NULL; 0.000288;0.191135;0.802328; 0.000000;0.000000;0.000000;
ships\props\turretdummy2; 2;
NULL; -0.273861;0.356560;0.960418; 0.000000;0.000000;0.000000;
NULL; 0.273694;0.356560;0.960418; 0.000000;0.000000;0.000000;
ships\props\turretdummy3; 2;
NULL; -0.188328;0.399437;0.946520; 0.000000;0.000000;0.000000;
NULL; 0.188139;0.399437;0.946520; 0.000000;0.000000;0.000000;
ships\props\gatlingf_barrel; 3;
NULL; 0.111111;0.035028;0.973234; 0.000000;0.000000;0.000000;
NULL; -0.003177;-0.111231;0.974426; 0.000000;0.000000;0.000000;
NULL; -0.104800;0.065086;0.969279; 0.000000;0.000000;0.000000;
ships\props\bigturret4_weapon; 2;
NULL; -0.065040;0.001340;0.496070; 0.000000;0.000000;0.000000;
NULL; 0.064740;0.001340;0.496070; 0.000000;0.000000;0.000000;
ships\props\Galactica_Turret_leftweapon;2;
NULL; -0.308048;0.004165;0.641100; 0.000000;0.000000;0.000000;
NULL; 0.308048;0.004165;0.641100; 0.000000;0.000000;0.000000;
ships\props\Galactica_Turret_rightweapon;2;
NULL; 0.308048;0.004165;0.641100; 0.000000;0.000000;0.000000;
NULL; -0.308048;0.004165;0.641100; 0.000000;0.000000;0.000000;


Modded Version
Quote:

SCTYPE_LASER; 34; <----NOTE THE CHANGED NUMBER
ships\props\bigturret_rightweapon; 1;
NULL; 0.182744;0.000000;0.978300; 0.000000;0.000000;0.000000;
ships\props\bigturret_leftweapon; 1;
NULL; -0.182744;0.000000;0.978300; 0.000000;0.000000;0.000000;
ships\props\turretdummy; 2;
NULL; 0.269895;0.458005;0.996840; 0.000000;0.000000;0.000000;
NULL; -0.269916;0.458005;0.996840; 0.000000;0.000000;0.000000;
ships\props\weapondummy; 1;
NULL; 0.000000;0.120056;0.935944; 0.000000;0.000000;0.000000;
ships\props\invisible_weapon; 1;
NULL; -0.000031;0.028748;0.540283; 0.000000;0.000000;0.000000;
944; 1;
LASERF_ROTATE; -0.000031;0.086548;-0.813232; 0.000000;0.000000;1.000000;
772; 1;
NULL; -0.000031;-0.245972;0.639771; 0.000000;0.000000;0.000000;
111; 1;
NULL; -0.000031;0.003998;0.632385; 0.000000;0.000000;0.000000;
375; 1;
NULL; -0.000031;0.003998;0.632385; 0.000000;0.000000;0.000000;
503; 2;
NULL; -0.000031;-0.000031;0.985870; 0.000000;0.000000;0.000000;
NULL; -0.000031;-0.216125;0.326111; 0.000000;0.000000;0.000000;
504; 1;
NULL; 0.000122;-0.000031;0.955322; 0.000000;0.000000;0.000000;
887; 1;
NULL; -0.000336;-0.088959;0.848816; 0.000000;0.000000;0.000000;
950; 1;
NULL; -0.002045;-0.397278;0.561432; 0.000000;0.000000;0.000000;
ships\props\m6maingun_moving; 1;
NULL; 0.000000;-0.000360;0.794557; 0.000000;0.000000;0.000000;
ships\props\m6turret4_leftweapon; 1;
NULL; -0.000577;0.119540;0.927867; 0.000000;0.000000;0.000000;
ships\props\m6turret4_rightweapon; 1;
NULL; -0.001654;0.118793;0.931432; 0.000000;0.000000;0.000000;
ships\props\m3gun1d_moving; 1;
NULL; 0.000000;0.000051;0.964585; 0.000000;0.000000;0.000000;
ships\props\m3turret1d_weapon; 2;
NULL; 0.021611;-0.018531;0.987697; 0.000000;0.000000;0.000000;
NULL; -0.021603;-0.018531;0.987697; 0.000000;0.000000;0.000000;
89; 4;
NULL; 0.057376;0.034991;0.975556; 0.000000;0.000000;0.000000;
NULL; -0.057376;0.034991;0.975556; 0.000000;0.000000;0.000000;
NULL; 0.057376;-0.034991;0.975556; 0.000000;0.000000;0.000000;
NULL; -0.057376;-0.034991;0.975556; 0.000000;0.000000;0.000000;
ships\props\weapondummy3; 1;
NULL; 0.000000;0.247254;0.955073; 0.000000;0.000000;0.000000;
ships\props\weapondummy4; 1;
NULL; -0.000094;0.148300;0.954920; 0.000000;0.000000;0.000000;
ships\props\weapondummy5; 1;
NULL; -0.000155;0.236543;0.970017; 0.000000;0.000000;0.000000;
ships\props\weapondummy6; 1;
NULL; -0.000145;0.212099;0.962463; 0.000000;0.000000;0.000000;
ships\props\weapondummy7d; 2;
NULL; -0.117696;0.022967;0.846600; 0.000000;0.000000;0.000000;
NULL; -0.118225;-0.021505;0.983380; 0.000000;0.000000;0.000000;
ships\props\weapondummy8d; 2;
NULL; -0.043016;0.117515;0.974974; 0.000000;0.000000;0.000000;
NULL; 0.042339;0.117171;0.918501; 0.000000;0.000000;0.000000;
ships\props\weapondummy2; 1;
NULL; 0.000000;0.179171;0.968145; 0.000000;0.000000;0.000000;
ships\props\weapondummy9d; 2;
NULL; 0.000285;0.281389;0.971798; 0.000000;0.000000;0.000000;
NULL; 0.000288;0.191135;0.802328; 0.000000;0.000000;0.000000;
ships\props\turretdummy2; 2;
NULL; -0.273861;0.356560;0.960418; 0.000000;0.000000;0.000000;
NULL; 0.273694;0.356560;0.960418; 0.000000;0.000000;0.000000;
ships\props\turretdummy3; 2;
NULL; -0.188328;0.399437;0.946520; 0.000000;0.000000;0.000000;
NULL; 0.188139;0.399437;0.946520; 0.000000;0.000000;0.000000;
ships\props\gatlingf_barrel; 3;
NULL; 0.111111;0.035028;0.973234; 0.000000;0.000000;0.000000;
NULL; -0.003177;-0.111231;0.974426; 0.000000;0.000000;0.000000;
NULL; -0.104800;0.065086;0.969279; 0.000000;0.000000;0.000000;
ships\props\bigturret4_weapon; 2;
NULL; -0.065040;0.001340;0.496070; 0.000000;0.000000;0.000000;
NULL; 0.064740;0.001340;0.496070; 0.000000;0.000000;0.000000;
ships\props\Galactica_Turret_leftweapon;2;
NULL; -0.308048;0.004165;0.641100; 0.000000;0.000000;0.000000;
NULL; 0.308048;0.004165;0.641100; 0.000000;0.000000;0.000000;
ships\props\Galactica_Turret_rightweapon;2;
NULL; 0.308048;0.004165;0.641100; 0.000000;0.000000;0.000000;
NULL; -0.308048;0.004165;0.641100; 0.000000;0.000000;0.000000;
ships\props\hugeturret_weapon;6;
NULL; 0.295620;0.006045;0.699301; 0.000000;0.000000;0.000000;
NULL; 0.295620;-0.027048;0.699301; 0.000000;0.000000;0.000000;
NULL; -0.295620;-0.027048;0.699301; 0.000000;0.000000;0.000000;
NULL; -0.295620;0.006045;0.699301; 0.000000;0.000000;0.000000;
NULL; 0.295620;0.006045;0.699301; 0.000000;0.000000;0.000000;
NULL; -0.295620;0.006045;0.699301; 0.000000;0.000000;0.000000;
Notice I've incremented the number where it says SCTYPE_LASER; 33; to 34 when I've added the hugeturret.
If I added another turret then Id again increment the number to 35.

Check what turrets the ship is using first and see that they arent already in the components.txt
If they arent copy that turrets info from the old components.txt to the new one and just increment the number.
If the turret has a left weapon and a right weapon in the components.txt then the number of turrets is incremented by 2.
Make sure you are using the TC one not an old Components.txt from X3R as they are both different.
This is part of a thread I discussed with hawkbs
"The truth is told by whoever is left standing." -- Tom Zarek
KELMAR
Posts: 85
Joined: Mon, 18. Jul 05, 06:15
x3tc

Post by KELMAR »

my x3tc editor is throwing off errors when i try to look at entries in tfiles

"Error showing object: Object variable or with block variable not set"

i get that on the hammerhead files, and on tfiles from my own cat files
That was my health bar?
Arraamis
Posts: 179
Joined: Sun, 17. Dec 06, 23:42
x3tc

Post by Arraamis »

KELMAR wrote:my x3tc editor is throwing off errors when i try to look at entries in tfiles

"Error showing object: Object variable or with block variable not set"

i get that on the hammerhead files, and on tfiles from my own cat files
Check the path to X3 install ..... I was getting all kinds of errors untill I setup the correct path to X3TC in the editor.
KELMAR
Posts: 85
Joined: Mon, 18. Jul 05, 06:15
x3tc

Post by KELMAR »

i still get the same error. i set it exactly to x3tc.exe and it re-asks me to everytime restart the editor, and i'm still getting the error
That was my health bar?
zaparo
Posts: 6
Joined: Sun, 8. May 05, 17:18
x2

Stuck with the guide...please advice....

Post by zaparo »

Hi, In the guide u mentioned: double click on 03.cat and scroll till you find (types\Components.pck), I dont have that cat file, only have 1, 4, 5 and 6.cat... also no types/components.pck.

And when i extract that (t\0001-L044.pck) i have 2 options I can select or not: 1. decompress compressed files during extraction and 2. preserve file path. Do I need to select both.

I have been looking into the forums how to put my old xsp ships (like BG and SW) into the new game and there is sooooo much info that I just can't find it. Im a total noob in programming and scripting, but i managed it with X3R, thanks to the different programs made by Cycrow, LV and others. Now these programs give me a lot of error messages, like the plugin manager.. everything works until i push exit, then it crashes.
So im kinda stuck here... who can help me? Please dont say ..go to sticky ... cause i (almost) read them all and didnt got any wiser... Like this guide, it simplicity is very good and easy to follow...until u have a missing file or component like i have now... then ur stuck.
I hope this is the right spot to post this.
Cheers
Luke
User avatar
Idea
Posts: 516
Joined: Fri, 24. Oct 08, 12:14
x4

Post by Idea »

Are you steam user?Check 01.cat
Unserene
Posts: 572
Joined: Sat, 9. Oct 04, 17:31
x4

Post by Unserene »

I've got the Steam version and have .03. Dont understand whats happened to zaporos. Might be an reinstall job methinks.
zaparo
Posts: 6
Joined: Sun, 8. May 05, 17:18
x2

think i am a steam user....should i panic ? :(

Post by zaparo »

To Idea:
ye i am a steam user i think... well i wanted to buy the game but it wasn't in stock anymore so i bought it on steam...apparently it didn't downloaded the game but installed it. First time i use steam and if that 's the case, well then i find myself a bit cheated cause i thought i downloaded a full version that i can put on a disk or dvd :evil:
Must read their website again doh... anyway... I checked 01.cat file and found no types/components.pck file.
Any more advice? thx
Btw.. Can i reinstall the game, cause i am sure its not full download, only installed?
User avatar
Idea
Posts: 516
Joined: Fri, 24. Oct 08, 12:14
x4

Post by Idea »

Well i don't know what could be the problem.1,2,3 cat files are game files and 4,5,6 cat files are instaled with patches 1.2,1.3,1.4.You can try to reinstal the game but I can send you components.pck file by email.One thing is that you make a copy of components.pck file for backup :)

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”