[Mod Request] Slight production change.

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

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

Post Reply
ravayen
Posts: 56
Joined: Mon, 25. Jan 16, 02:02
x4

[Mod Request] Slight production change.

Post by ravayen » Thu, 27. May 21, 21:50

Can any modder make me a quick mod please, not worried if no one can be bothered.

Changes to Modules..

Hull part production
-------------------
50% increase to amount produced per cycle
25% decrease to time of cycle

Weapon part production
------------------
30% increase to amount produced per cycle


I just really cba to unpack all those files again and find all the things needed to change for such a small thing (i know i'm lazy) that will only 'slightly' improve the game and the mods that exist are either out of date or massively unbalance the game with 10x the production or something ridiculous like that.
Thnx in advance if anyone does, if not.....well you never know till you ask :)
'Coming like a train baby'
'Choo choo'

arshiba
Posts: 48
Joined: Thu, 1. Jul 04, 15:30
x4

Re: [Mod Request] Slight production change.

Post by arshiba » Fri, 28. May 21, 18:19

Create a new folder "extensions/youcoolmod" and put 2 files.

content.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<content id="some_balance" name="Some balance" description="Slight production change." author="OneGuy" version="100" save="false" >
  <dependency version="400"></dependency>
</content>
libraries\wares.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<diff>
  <replace sel="/wares/ware[@id='hullparts']/production[@method='default']/@time">675</replace>
  <replace sel="/wares/ware[@id='hullparts']/production[@method='default']/@amount">441</replace>
  <replace sel="/wares/ware[@id='hullparts']/production[@method='teladi']/@time">675</replace>
  <replace sel="/wares/ware[@id='hullparts']/production[@method='teladi']/@amount">441</replace>
  <replace sel="/wares/ware[@id='weaponcomponents']/production[@method='default']/@amount">221</replace>
</diff>

ravayen
Posts: 56
Joined: Mon, 25. Jan 16, 02:02
x4

Re: [Mod Request] Slight production change.

Post by ravayen » Fri, 28. May 21, 22:12

Did you seriously just write that without even looking at the files!?! wtf lmao thnx appreciated.
'Coming like a train baby'
'Choo choo'

arshiba
Posts: 48
Joined: Thu, 1. Jul 04, 15:30
x4

Re: [Mod Request] Slight production change.

Post by arshiba » Sat, 29. May 21, 08:46

ravayen wrote:
Fri, 28. May 21, 22:12
Did you seriously just write that without even looking at the files!?!
No magic.
I'm currently working on my new mod. So I remember many game structures (and wares are not exception) and I have all the unpacked game files. Between debugging game reloads I checked ids, times, amounts of wares and wrote these lines.

ravayen
Posts: 56
Joined: Mon, 25. Jan 16, 02:02
x4

Re: [Mod Request] Slight production change.

Post by ravayen » Tue, 1. Jun 21, 15:58

So after a while playing those figures are almost perfect, the ai don't grind to a halt now.
Slightly lowered the hull parts production because after a while it builds up but other than that it improves the game immensely, there is still a massive market for those 2 wares but now the game won't suddenly stop producing ships anymore so thnx for this.
'Coming like a train baby'
'Choo choo'

Post Reply

Return to “X4: Foundations - Scripts and Modding”