Modding Travel Speed question

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

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

ApoxNM
Posts: 778
Joined: Wed, 5. Dec 18, 06:17
x4

Modding Travel Speed question

Post by ApoxNM » Sun, 24. Dec 23, 10:41

Hi guys,

so I made my first mod, in which all travel speeds have been increased by x3.
(I used other mods as reference, so copy & paste - meaning, I don't fully understand everything)

I halved the release and attack times, but one thing is not quite clear to me, if I want the time between startup and max speed of the travel drive to be max 3-5 seconds, which values do I need to tweak?
Is it "charge"? Or is there a formula of all values which is applied?

How do I calculate the time from travel drive engage to max speed?

I would appreciate any examples!

Thank you very much.

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<!--Exported by: nick (192.168.3.69) at 18.03.2020_13-06-26-->
<macros>
  <macro name="engine_arg_l_allround_01_mk1_macro" class="engine">
    <component ref="engine_arg_l_allround_01_mk1" />
    <properties>
      <identification name="{20107,3004}" basename="{20107,3001}" shortname="{20107,3005}" makerrace="argon" description="{20107,3002}" mk="1" />
      <boost duration="29" thrust="2" attack="10" release="1" />
      <travel charge="20" thrust="31" attack="75" release="22.5" />
      <thrust forward="4206" reverse="4627" />
      <angular />
      <hull max="4033" threshold="0.3" />
      <effects>
        <boosting ref="arg_boost_fx_l" />
      </effects>
      <sounds>
        <enginedetail ref="enginedetail_ship_l_01" />
      </sounds>
    </properties>
  </macro>
</macros>

Realspace
Posts: 1410
Joined: Wed, 15. Nov 06, 10:21
x4

Re: Modding Travel Speed question

Post by Realspace » Mon, 1. Jan 24, 10:14

I may be wrong but that factor is a result of base engine's acceleration plus oc the multiplier of speed. So very fast engines also give fast travel accelerations. The other values (attack and release) seem even not to be read by S engines and don't seem to change the acceleration.

ApoxNM
Posts: 778
Joined: Wed, 5. Dec 18, 06:17
x4

Re: Modding Travel Speed question

Post by ApoxNM » Mon, 1. Jan 24, 11:43

Realspace wrote:
Mon, 1. Jan 24, 10:14
I may be wrong but that factor is a result of base engine's acceleration plus oc the multiplier of speed. So very fast engines also give fast travel accelerations. The other values (attack and release) seem even not to be read by S engines and don't seem to change the acceleration.
Thank you.

So basically, I can not make it the same for all ships by ship size?
Would you know, where to find this script or function?

j.harshaw
EGOSOFT
EGOSOFT
Posts: 1889
Joined: Mon, 23. Nov 15, 18:02

Re: Modding Travel Speed question

Post by j.harshaw » Fri, 5. Jan 24, 00:51

No direct control for that (balancing values are lower-level), but you can affect it indirectly through a combination of travel thrust and travel attack. Travel attack is the time (in seconds, if i remember correctly) it takes to reach max thrust after travel mode engages, travel thrust is a multiplier on the engine's maximum thrust as previously stated, and thrust affects both acceleration and max speed.

ApoxNM
Posts: 778
Joined: Wed, 5. Dec 18, 06:17
x4

Re: Modding Travel Speed question

Post by ApoxNM » Fri, 5. Jan 24, 06:14

j.harshaw wrote:
Fri, 5. Jan 24, 00:51
No direct control for that (balancing values are lower-level), but you can affect it indirectly through a combination of travel thrust and travel attack. Travel attack is the time (in seconds, if i remember correctly) it takes to reach max thrust after travel mode engages, travel thrust is a multiplier on the engine's maximum thrust as previously stated, and thrust affects both acceleration and max speed.
Thank you, I will tinker around with it!

Return to “X4: Foundations - Scripts and Modding”