Modding DLC Ship Speed Help

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

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

GrimJack.
Posts: 3
Joined: Mon, 1. Apr 19, 00:34
x3ap

Modding DLC Ship Speed Help

Post by GrimJack. »

Hey i am trying to modify the Max Speed of the Xenon F to bring it in line with some of the other Ships in the same class.

So i am not a Programmer in any way but i looked at the many tutorials and other peoples work to find out how to do this and did the following:

\extensions\ego_dlc_timelines\assets\units\size_s\macros\ship_xen_s_heavyfighter_01_a_macro.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<diff>
  <replace sel="/macros/macro/properties/physics/drag/@forward">4.1</replace>
  <replace sel="/macros/macro/properties/Physics/drag/@reverse">19.9</replace>
  <replace sel="/macros/macro/properties/physics/drag/@horizontal">4.75</replace>
  <replace sel="/macros/macro/properties/physics/drag/@Vertical">4.2</replace>
  <replace sel="/macros/macro/properties/physics/drag/@pitch">3.6</replace>
  <replace sel="/macros/macro/properties/physics/drag/@Yaw">3.8</replace>
  <replace sel="/macros/macro/properties/physics/drag/@Roll">2.8</replace>
  <replace sel="/macros/macro/properties/physics/@mass">5139</replace>  
</diff>
content.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<content 
	id="XenonFSpeedBuff" 
	name="Xenon F Speed Buff" 
	description="Reduces Drag on the Xenon F increasing its Base Max Speed" 
	author="GrimJ" version="100" date="2025-04-02" save="0" enabled="1">
	<dependency id="ego_dlc_timelines" optional="false" name="Timelines"/>
	<text language="44" name="Xenon F Speed Buff" description="Reduces Drag on the Xenon F increasing its Base Max Speed" author="GrimJ"/>
</content>
Made the folder structure as above and put it in X4 Foundations/extensions mod is enabled ingame aswell

The mod shows up ingame in the Extension Menu as i also added it to the content.xml under Documents/egosoft but when i load into the game in my current Save with a Xenon F it still gives the old values, same if i try to make a new game with the custom start in the Ship Editor ingame it shows Max Speed: 205 with the changed mass and forward drag should be different.

Any idea what im doing wrong or why it doesnt apply the changes?
CBJ
EGOSOFT
EGOSOFT
Posts: 54202
Joined: Tue, 29. Apr 03, 00:56
x4

Re: Modding DLC Ship Speed Help

Post by CBJ »

It may not be the whole problem, but the sel attribute is likely to be case-sensitive, which would mean your Vertical, Yaw and Roll attributes wouldn't be found and replaced as all attributes are lower case.
sprIder
Posts: 135
Joined: Sat, 3. Jul 10, 23:23
x4

Re: Modding DLC Ship Speed Help

Post by sprIder »

Just for the record:
Let's say, you named your mod folder XenonFSpeedBuff.
then the whole file path is
X4 Foundations\extensions\XenonFSpeedBuff\extensions\ego_dlc_timelines\assets\units\size_s\macros\ship_xen_s_heavyfighter_01_a_macro.xml
Be aware of the double "extension".
GrimJack.
Posts: 3
Joined: Mon, 1. Apr 19, 00:34
x3ap

Re: Modding DLC Ship Speed Help

Post by GrimJack. »

sprIder wrote: Wed, 2. Apr 25, 23:02 Just for the record:
Let's say, you named your mod folder XenonFSpeedBuff.
then the whole file path is
X4 Foundations\extensions\XenonFSpeedBuff\extensions\ego_dlc_timelines\assets\units\size_s\macros\ship_xen_s_heavyfighter_01_a_macro.xml
Be aware of the double "extension".
Yes thats exactly correct and the File Path.
GrimJack.
Posts: 3
Joined: Mon, 1. Apr 19, 00:34
x3ap

Re: Modding DLC Ship Speed Help

Post by GrimJack. »

Solved the Problem by looking at Folder Structuring of X4 Customizer apparently the Xenon F is not under "extensions/ego_dlc_timelines" the correct structure starts with "assets".

Which is confusing as Xenon F is part of the Timelines DLC but is a base game asset. Maybe Egosoft has code that doesnt make it appear if you dont own the DLC?

anyway case closed, good work Detectives.
Rothank
XWiki Moderator
XWiki Moderator
Posts: 93
Joined: Mon, 11. Aug 14, 22:48
x4

Re: Modding DLC Ship Speed Help

Post by Rothank »

F (also B and H) is a base game ship, it can spawn even without Timelines. It was added to base game in 7.0; Timelines just makes heavy use of it as it is the "original Terraformer fighter".
Image Image
Image

Return to “X4: Foundations - Scripts and Modding”