Need help on mod testing

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

Need help on mod testing

Post by Cardinal_z »

Hi all, thank you for clicking on this post.
I started trying to make my first mod today.
I followed the tutorial in this forum and ended up with an XML patch file ship_gen_m_tugboat_01_a_macro.xml like this:

Code: Select all

<?xml version='1.0' encoding='utf-8'?>
<diff>
  <replace sel="/macros/macro/properties/physics/drag/@forward">10.620</replace>
  <replace sel="/macros/macro/properties/physics/drag/@reverse">39.318</replace>
</diff>
as well as an ordinary content.xml. I am trying to reduce the drag of Manticores.

I tested the mod on my machine and everything works.

I then uploaded it to steam workshop using X Tool:

Code: Select all

>WorkshopTool publishx4 -path "..\X4 Foundations\extensions\manticore_low_drag" -preview "..\X4 Foundations\extensions\manticore_low_drag\preview.jpg" -buildcat -keepcatfiles
Here's the .dat file I've got:

Code: Select all

<?xml version='1.0' encoding='utf-8'?>
<diff>
  <replace sel="/macros/macro/properties/physics/drag/@forward">10.620</replace>
  <replace sel="/macros/macro/properties/physics/drag/@reverse">39.318</replace>
</diff>
This is the same as my XML patch file, I'm not sure if it should be like this...
And the .cat file:

Code: Select all

assets/units/size_m/macros/ship_gen_m_tugboat_01_a_macro.xml 216 1650973010 a0c5e5931821c993250e8a137505f086
I then decided to test if it works for other people. I only have one machine so I used GeForce Now and subscribed to my own upload.
However, I always get a black screen during game startup.

I really have no idea why this is the case. Am I doing something wrong during the upload? Could someone test the mod by subscribing to it?
Any thoughts are much appreciated. Thank you very much in advance and sorry for my poor language skills.

Here's the Mod page:
https://steamcommunity.com/sharedfiles/ ... 2800174270
Taylor2008
Posts: 302
Joined: Fri, 20. Mar 09, 16:38
x4

Re: Need help on mod testing

Post by Taylor2008 »

No problems here.
Congratulation to your first mod!!!
User avatar
alexalsp
Posts: 1896
Joined: Fri, 18. Jul 14, 05:28
x4

Re: Need help on mod testing

Post by alexalsp »

Here's the .dat file I've got:
This is fine.

Your file, I can't tell if this affects anything, but it's better to bring it to a more normal form.

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<diff xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <replace sel="/macros/macro/properties/physics/drag/@forward">10.620</replace>
  <replace sel="/macros/macro/properties/physics/drag/@reverse">39.318</replace>
</diff><?xml version="1.0" encoding="utf-8"?>
to

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<diff>
  <replace sel="//properties/physics/drag/@forward">11</replace>
  <replace sel="//properties/physics/drag/@reverse">40</replace>
</diff>
XRCatToolGUI.exe

Create cat/dat with it
I make myself a cmd file

upload_mod.cmd

Code: Select all

@echo off
CLS
WorkshopTool publishx4 -path "..\X Rebirth Tools\X4 Foundations\mod_folder" -preview "..\X Rebirth Tools\X4 Foundations\mod_folder\prv_01.jpg"

pause
update_mod.cmd

Code: Select all

@echo off
CLS
WorkshopTool update -path "..\X Rebirth Tools\X4 Foundations\Steam\mod_folder" -changenote "support ToA 5.00"

pause
update_minor_mod.cmd

Code: Select all

@echo off
CLS
WorkshopTool update -path "..\X Rebirth Tools\X4 Foundations\mod_folder" -changenote "minor fix" -minor

pause

Return to “X4: Foundations - Scripts and Modding”