[HELP] mod idea: secondary engines for L ships

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

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

Xenon472
Posts: 162
Joined: Fri, 19. Jun 09, 20:07
x4

[HELP] mod idea: secondary engines for L ships

Post by Xenon472 »

Hi everyone!
I am making a mod to rebalance a bit the L destroyers but I have hit a wall
One of the things I wanted to do was to add some secondary M engines to the L ships so that when they lose the L engines they don't become an immobile brick but can still turn around (and move super slowly)
But something doesn't work, I tried adding the M engines to the main engine group, they show the correct outline before equipping any engine but when I go to select it in the build menu only L engines show up, and if I select an L engine it gets placed also where there should be the M engine.
instead, if I put it into another group the ship build menu breaks, and I can't select any slot because they are all greyed-out
does somebody know a way to add M engines to L ships? (or else to allow the ships to turn when the main engines are down)

here are some screenshots of a test made with the behemoth:
engine in different group: https://ibb.co/rtkSgLT
engine in same group before selecting engine: https://ibb.co/jDN6Vqv
engine in same group after selecting engine: https://ibb.co/XjjjNJs
User avatar
Shuulo
Posts: 1633
Joined: Mon, 14. Apr 08, 17:03
x4

Re: [HELP] mod idea: secondary engines for L ships

Post by Shuulo »

it is currently impossible to have engines of different sizes on the ship. All engines need to be the same type for ship to work.
I think this part with moving without engines is hardcoded, but maybe someone else will shed some light.
Xenon472
Posts: 162
Joined: Fri, 19. Jun 09, 20:07
x4

Re: [HELP] mod idea: secondary engines for L ships

Post by Xenon472 »

Shuulo wrote: Thu, 11. Mar 21, 02:23 it is currently impossible to have engines of different sizes on the ship. All engines need to be the same type for ship to work.
I think this part with moving without engines is hardcoded, but maybe someone else will shed some light.
Thanks for the insight, I'll see if I can find another way to change the movement without engines than xD

By the way do you happen to have an old version of VRO (pre v2.x) lying around?
I am also experimenting with integrating m turrets into the hull but for some reason I can make unhittable only 2 turrets :gruebel: :?
So I would love to see how you did it in the first versions of VRO to see what I am doing wrong :mrgreen:

(Right now I am mostly experimenting, my actual mod will be smaller in scope at first, it will just make the vanguard and sentinel variants more different even in hardpoints, but I am already planning the next steps XD)
User avatar
Shuulo
Posts: 1633
Joined: Mon, 14. Apr 08, 17:03
x4

Re: [HELP] mod idea: secondary engines for L ships

Post by Shuulo »

Xenon472 wrote: Thu, 11. Mar 21, 04:02
By the way do you happen to have an old version of VRO (pre v2.x) lying around?
I am also experimenting with integrating m turrets into the hull but for some reason I can make unhittable only 2 turrets :gruebel: :?
So I would love to see how you did it in the first versions of VRO to see what I am doing wrong :mrgreen:
its just <hull integrated="1" /> in turret macro files, nothing more to it
Xenon472
Posts: 162
Joined: Fri, 19. Jun 09, 20:07
x4

Re: [HELP] mod idea: secondary engines for L ships

Post by Xenon472 »

Shuulo wrote: Thu, 11. Mar 21, 12:13 its just <hull integrated="1" /> in turret macro files, nothing more to it
Oh I see, thanks a lot!, i was going the super long way of modify each turret tag of every ship putting "integrated" instead of "hittable" xD
You saved me a lot of typing hahahaha

Return to “X4: Foundations - Scripts and Modding”