Loot Box lifetime

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

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

Post Reply
jah
Posts: 268
Joined: Fri, 12. Mar 04, 15:39
x4

Loot Box lifetime

Post by jah » Wed, 24. Mar 21, 18:53

Does anyone know, if it's possible to edit the time before dropped items destroy themselves. Or is a mod out there for this?

DeadAirRT
Posts: 1008
Joined: Fri, 25. Jan 19, 03:26
x4

Re: Loot Box lifetime

Post by DeadAirRT » Wed, 24. Mar 21, 19:27

parameters.xml

Code: Select all

	<replace sel="//drop/timeout[@min='1200']/@min">####</replace>
	<replace sel="//drop/timeout[@max='1800']/@max">####</replace>

jah
Posts: 268
Joined: Fri, 12. Mar 04, 15:39
x4

Re: Loot Box lifetime

Post by jah » Thu, 25. Mar 21, 07:26

DeadAirRT wrote:
Wed, 24. Mar 21, 19:27
parameters.xml

Code: Select all

	<replace sel="//drop/timeout[@min='1200']/@min">####</replace>
	<replace sel="//drop/timeout[@max='1800']/@max">####</replace>
thank you, but where do I find this xml? probably hidden behind an archive?

Lechrenski
Posts: 7
Joined: Tue, 30. Mar 21, 01:45
x4

Re: Loot Box lifetime

Post by Lechrenski » Tue, 30. Mar 21, 07:34

DeadAirRT wrote:
Wed, 24. Mar 21, 19:27
parameters.xml

Code: Select all

	<replace sel="//drop/timeout[@min='1200']/@min">####</replace>
	<replace sel="//drop/timeout[@max='1800']/@max">####</replace>
Are you saying that if one were to make a folder in extensions (let's call it /loot_lasts_longer) and then make a .dat file (ext_01.dat?) in it with only the contents:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<diff>
	<replace sel="//drop/timeout[@min='1200']/@min">2400</replace>
	<replace sel="//drop/timeout[@max='1800']/@max">3600</replace>
</diff>
that would make the drops last longer?

Anything else? Does it need a .cat and/or a content.xml?

DeadAirRT
Posts: 1008
Joined: Fri, 25. Jan 19, 03:26
x4

Re: Loot Box lifetime

Post by DeadAirRT » Tue, 30. Mar 21, 07:54

I answered the question based on assuming knowledge of modding for x4

Make a folder for your mod in extensions
Create a content file for it (you can copy the majority of the structure from another mod)
Create a sub folder called "libraries"
Create a file called parameters.xml
In parameters.xml put the xml header (can copy from any diff file)
Put the two lines of code and replace #### with your own numbers (this is in second)

Lechrenski
Posts: 7
Joined: Tue, 30. Mar 21, 01:45
x4

Re: Loot Box lifetime

Post by Lechrenski » Tue, 30. Mar 21, 21:25

DeadAirRT wrote:
Tue, 30. Mar 21, 07:54
I answered the question based on assuming knowledge of modding for x4

Make a folder for your mod in extensions
Create a content file for it (you can copy the majority of the structure from another mod)
Create a sub folder called "libraries"
Create a file called parameters.xml
In parameters.xml put the xml header (can copy from any diff file)
Put the two lines of code and replace #### with your own numbers (this is in second)
Thank you very much for your time and explanation!

12vh3
Posts: 8
Joined: Sun, 17. Nov 19, 09:25
x3ap

Re: Loot Box lifetime

Post by 12vh3 » Sun, 20. Jun 21, 04:46

it did not work!

the parameter seems not to be for the drops lifetime after a ship is destroyed.
i stopped a self-destruction time of ~5 minutes on 6 loot boxes.
1200 are 20 minutes. so there must be another parameter for the loot box lifetime....

everything was better in X3!

DeadAirRT
Posts: 1008
Joined: Fri, 25. Jan 19, 03:26
x4

Re: Loot Box lifetime

Post by DeadAirRT » Mon, 21. Jun 21, 18:58

12vh3 wrote:
Sun, 20. Jun 21, 04:46
it did not work!

the parameter seems not to be for the drops lifetime after a ship is destroyed.
i stopped a self-destruction time of ~5 minutes on 6 loot boxes.
1200 are 20 minutes. so there must be another parameter for the loot box lifetime....

everything was better in X3!
There may be a limit on the times you can use. I notice then lasting longer but I never timed it

Post Reply

Return to “X4: Foundations - Scripts and Modding”