[Question] Modifying tug physics

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

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

Cardinal_z
Posts: 13
Joined: Mon, 11. Apr 22, 08:43
x4

[Question] Modifying tug physics

Post by Cardinal_z »

I did some tests in-game: It seems when a tug ship pulls a wreck or scrapcube the speed is calculated with the maximum drag (from forward, reverse, horizontal, etc.) of the wreck/scrapcube. I hope to change this, but as a new modder, I'm not familiar with the file structure yet. Does anyone have intuition on where can I find the definitions for such "game rules"? How difficult would it be to modify them?
DeadAirRT
Posts: 1124
Joined: Fri, 25. Jan 19, 03:26
x4

Re: [Question] Modifying tug physics

Post by DeadAirRT »

I think i saw something in libraries/parameters.xml regarding tug drag but I'm not 100% sure.
Cardinal_z
Posts: 13
Joined: Mon, 11. Apr 22, 08:43
x4

Re: [Question] Modifying tug physics

Post by Cardinal_z »

DeadAirRT wrote: Sun, 1. May 22, 13:57 I think i saw something in libraries/parameters.xml regarding tug drag but I'm not 100% sure.
Thank you so much! In parameters.xml, I found this:

Code: Select all

  <tug speedscale="5" highwayspeedscale="5" accelerationscale="0.002" decelerationscale="0.005" distance="600" maxwidth="50" maxlength="100" />
I'll experiment on what these values do.

Return to “X4: Foundations - Scripts and Modding”