Tool to move around cockpits?

The place to discuss scripting and game modifications for X4: Foundations.

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

Post Reply
BrummBear02
Posts: 308
Joined: Fri, 3. Oct 08, 20:43
x3ap

Tool to move around cockpits?

Post by BrummBear02 » Fri, 19. Apr 19, 01:20

Hello there,

Ive made quite some ships now and the cockpit on S and M ships is a pain to create so i reuse existing ones.
actually i have no idea how to access some parts of a cockpit. the paranid holograms or the L and XL holograms for example. kinda the same issue as with accessing the different layers of the multimat material.
but thats not what i wanna talk about here.

Reusing an existing cockpit comes with a shitload of repetive, boring work in the XML file.

for example if i reuse the paranid miner cockpit and move it Y=9.62206 Z=11.8795 ill have to adjust every connection in the XML file by that degree. thats part_cockpit part_glass and every other form of glass, part_cockpitframe, all the chairs(pilotcontrol, navigationcontrol, gunnercontrol) tochair, uianchor and the transporter. not counting child connections, which dont have to get moved but u need to pay attention u dont alter their possition totalling in more than 20 connections. maybe 30 or more. idk. i dont even know if i mentioned everything here. but thats not important.

what i wanted to know, and maybe ask for, is a tool that lets me add a template of connections, for example this one
<connection name="Connection109" group="navigationcontrol" tags="part ">
<offset>
<position x="3.68093" y="18.042621" z="-15.58039"/>
<quaternion qx="7.670903E-07" qy="-0.4222538" qz="1.669248E-02" qw="-0.9063239"/>
</offset>
<parts>
<part ref="interiors_chair_02_body.part_chair_01" name="part_chair_028"/>
</parts>
<waypoints/>
</connection>
now i wanna add multible connections here and then be able to globally offset their positioning. lets say i added every connection needed for the cockpit and now wanna move it X 10 and Y 10 Z 10. The tool now should shit out every connection in the template with the desired offset. which would result in the example
<connection name="Connection109" group="navigationcontrol" tags="part ">
<offset>
<position x="13.68093" y="28.042621" z="-05.58039"/>
<quaternion qx="7.670903E-07" qy="-0.4222538" qz="1.669248E-02" qw="-0.9063239"/>
</offset>
<parts>
<part ref="interiors_chair_02_body.part_chair_01" name="part_chair_028"/>
</parts>
<waypoints/>
</connection>
i cant code and i dont know how much work it would be to create such a tool but if anyone is willing to take this on or has a solution how to make the task easier id be super glad.
Gebt mir einen Spiegel dann schlage ich ihn mit seinem eigenen Gesicht

Cg089
Posts: 80
Joined: Fri, 18. Jan 19, 19:25
x4

Re: Tool to move around cockpits?

Post by Cg089 » Fri, 19. Apr 19, 07:06

Most of that functionality is already in the works in the revised converter I'm working on (I know it's taking me a while, bear with me), and the rest will be in there soon. Not sure if it's exactly what you described here but I think it will satisfy the requirements ;)

UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Re: Tool to move around cockpits?

Post by UniTrader » Wed, 24. Apr 19, 16:48

sounds like a job for xsl conversion..
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)

Nifhtyeq
Posts: 73
Joined: Fri, 15. Feb 19, 17:32

Re: Tool to move around cockpits?

Post by Nifhtyeq » Sun, 28. Apr 19, 02:32

UniTrader wrote:
Wed, 24. Apr 19, 16:48
sounds like a job for xsl conversion..
Is that some of modding tools players will have soon?

Post Reply

Return to “X4: Foundations - Scripts and Modding”