[REQUEST] Minerals Respawn Faster

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

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

Post Reply
leecarter
Posts: 379
Joined: Sat, 9. Sep 06, 22:35
x3tc

[REQUEST] Minerals Respawn Faster

Post by leecarter » Sun, 30. Dec 18, 16:54

My mega-stations are constantly struggling with Ore, Silicon and sometimes Ice. Throwing more miners at them doesn't seem to help, they just keep traveling father and farther away to mine. The gas resources can keep up or even max out storage with only a third of the miners assigned so there seems to be some issue with mineral availability.

My refined goods mega factory has 25 mineral miners and 10 gas miners assigned. The gas resources are currently sitting around 50-70% full, while ore and silicon are almost always empty.

Unless there's some other workaround or I'm doing something wrong one of you could point out.

KRM398
Posts: 1556
Joined: Wed, 6. Nov 02, 20:31
xr

Re: [REQUEST] Minerals Respawn Faster

Post by KRM398 » Sun, 30. Dec 18, 18:07

Do mined minerals EVER respawn? Its not a MMO where they need to make it easier for the next guy. if you get greedy and go mega, then you might just be depleting the natural resources and soon will be out altogether in your area. thats just normal average mining. 8)

leecarter
Posts: 379
Joined: Sat, 9. Sep 06, 22:35
x3tc

Re: [REQUEST] Minerals Respawn Faster

Post by leecarter » Sun, 30. Dec 18, 18:20

KRM398 wrote:
Sun, 30. Dec 18, 18:07
Do mined minerals EVER respawn? Its not a MMO where they need to make it easier for the next guy. if you get greedy and go mega, then you might just be depleting the natural resources and soon will be out altogether in your area. thats just normal average mining. 8)
From what I've read here and there they do respawn. If they didn't an extended game would starve from resources and die, so they would almost have to.

Requiemfang
Posts: 3206
Joined: Thu, 16. Jul 09, 12:24
x4

Re: [REQUEST] Minerals Respawn Faster

Post by Requiemfang » Sun, 30. Dec 18, 19:12

Yeah they respawn, just takes a while for it to spawn again. Pretty sure there's a script that controls the timing for roid respawning though I don't know since I don't mod.

Zhukov1945
Posts: 36
Joined: Fri, 14. Dec 18, 15:16

Re: [REQUEST] Minerals Respawn Faster

Post by Zhukov1945 » Sun, 30. Dec 18, 19:31

leecarter wrote:
Sun, 30. Dec 18, 16:54
My mega-stations are constantly struggling with Ore, Silicon and sometimes Ice. Throwing more miners at them doesn't seem to help, they just keep traveling father and farther away to mine. The gas resources can keep up or even max out storage with only a third of the miners assigned so there seems to be some issue with mineral availability.

My refined goods mega factory has 25 mineral miners and 10 gas miners assigned. The gas resources are currently sitting around 50-70% full, while ore and silicon are almost always empty.

Unless there's some other workaround or I'm doing something wrong one of you could point out.

WTF!!! Did you dried out the entire x4 universe? And some of us complain that are to many resources!!!

7ate9tin11s
Posts: 813
Joined: Fri, 11. Nov 05, 23:18
x4

Re: [REQUEST] Minerals Respawn Faster

Post by 7ate9tin11s » Sun, 30. Dec 18, 20:52

You'd want to modify libraries/regionyields.xml, it controls all that I think (no idea if replenishtime is minutes, hours, etc):

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<regionyields xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="regionyields.xsd">
  <resource ware="ore" scaneffect="scfx_result_region_ore_01" scaneffectdensity="0.003">
    <yield name="medium" resourcedensity="2.5" replenishtime="60" scaneffectintensity="0.1" />
    <yield name="high" resourcedensity="25" replenishtime="240" scaneffectintensity="0.3" />
    <yield name="veryhigh" resourcedensity="25000" replenishtime="2400" scaneffectintensity="1.0" />
  </resource>
  <resource ware="silicon" scaneffect="scfx_result_region_silicon_01" scaneffectdensity="0.003">
    <yield name="medium" resourcedensity="2.5" replenishtime="90" scaneffectintensity="0.1" />
    <yield name="high" resourcedensity="25" replenishtime="360" scaneffectintensity="0.3" />
    <yield name="veryhigh" resourcedensity="25000" replenishtime="3600" scaneffectintensity="1.0" />
  </resource>
  <resource ware="ice" scaneffect="scfx_result_region_ice_01" scaneffectdensity="0.003">
    <yield name="medium" resourcedensity="2.5" replenishtime="30" scaneffectintensity="0.1" />
    <yield name="high" resourcedensity="25" replenishtime="120" scaneffectintensity="0.3" />
  </resource>
  <resource ware="nividium" scaneffect="" scaneffectdensity="0.001">
    <yield name="medium" resourcedensity="2.5" replenishtime="250" scaneffectintensity="0.1" />
    <yield name="high" resourcedensity="25" replenishtime="600" scaneffectintensity="0.3" />
    <yield name="veryhigh" resourcedensity="2500" replenishtime="3600" scaneffectintensity="1.0" />
  </resource>
  <resource ware="hydrogen" scaneffect="" scaneffectdensity="0.001">
    <yield name="medium" resourcedensity="100" replenishtime="60" gatherspeedfactor="1.0" scaneffectintensity="0.1" />
    <yield name="high" resourcedensity="1000" replenishtime="240" gatherspeedfactor="4.0" scaneffectintensity="0.3" />
  </resource>
  <resource ware="helium" scaneffect="" scaneffectdensity="0.001">
    <yield name="medium" resourcedensity="100" replenishtime="60" gatherspeedfactor="1.0" scaneffectintensity="0.1" />
    <yield name="high" resourcedensity="1000" replenishtime="240" gatherspeedfactor="4.0" scaneffectintensity="0.3" />
  </resource>
  <resource ware="methane" scaneffect="" scaneffectdensity="0.001">
    <yield name="medium" resourcedensity="100" replenishtime="60" gatherspeedfactor="1.0" scaneffectintensity="0.1" />
    <yield name="high" resourcedensity="1000" replenishtime="240" gatherspeedfactor="4.0" scaneffectintensity="0.3" />
  </resource>
</regionyields>

leecarter
Posts: 379
Joined: Sat, 9. Sep 06, 22:35
x3tc

Re: [REQUEST] Minerals Respawn Faster

Post by leecarter » Sun, 30. Dec 18, 23:13

Zhukov1945 wrote:
Sun, 30. Dec 18, 19:31
WTF!!! Did you dried out the entire x4 universe? And some of us complain that are to many resources!!!
Yeah I've got quite the production infrastructure going. :)

leecarter
Posts: 379
Joined: Sat, 9. Sep 06, 22:35
x3tc

Re: [REQUEST] Minerals Respawn Faster

Post by leecarter » Sun, 30. Dec 18, 23:18

7ate9tin11s wrote:
Sun, 30. Dec 18, 20:52
You'd want to modify libraries/regionyields.xml, it controls all that I think (no idea if replenishtime is minutes, hours, etc):
Awesome, thanks for finding that. I might tinker around with it in my own game, if I can get it working well I'll release it.

jmattspartacus2
Posts: 73
Joined: Wed, 5. Dec 18, 07:04

Re: [REQUEST] Minerals Respawn Faster

Post by jmattspartacus2 » Wed, 2. Jan 19, 04:13

The time is in seconds, the replenishtime governs how fast it regenerates, and the resourcedensity governs an average density of the resource per volume in the region iirc

GDI-BOSS
Posts: 579
Joined: Wed, 27. Dec 06, 19:04
x4

Re: [REQUEST] Minerals Respawn Faster

Post by GDI-BOSS » Sun, 12. May 19, 21:38

7ate9tin11s wrote:
Sun, 30. Dec 18, 20:52
You'd want to modify libraries/regionyields.xml, it controls all that I think (no idea if replenishtime is minutes, hours, etc):

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<regionyields xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="regionyields.xsd">
  <resource ware="ore" scaneffect="scfx_result_region_ore_01" scaneffectdensity="0.003">
    <yield name="medium" resourcedensity="2.5" replenishtime="60" scaneffectintensity="0.1" />
    <yield name="high" resourcedensity="25" replenishtime="240" scaneffectintensity="0.3" />
    <yield name="veryhigh" resourcedensity="25000" replenishtime="2400" scaneffectintensity="1.0" />
  </resource>
  <resource ware="silicon" scaneffect="scfx_result_region_silicon_01" scaneffectdensity="0.003">
    <yield name="medium" resourcedensity="2.5" replenishtime="90" scaneffectintensity="0.1" />
    <yield name="high" resourcedensity="25" replenishtime="360" scaneffectintensity="0.3" />
    <yield name="veryhigh" resourcedensity="25000" replenishtime="3600" scaneffectintensity="1.0" />
  </resource>
  <resource ware="ice" scaneffect="scfx_result_region_ice_01" scaneffectdensity="0.003">
    <yield name="medium" resourcedensity="2.5" replenishtime="30" scaneffectintensity="0.1" />
    <yield name="high" resourcedensity="25" replenishtime="120" scaneffectintensity="0.3" />
  </resource>
  <resource ware="nividium" scaneffect="" scaneffectdensity="0.001">
    <yield name="medium" resourcedensity="2.5" replenishtime="250" scaneffectintensity="0.1" />
    <yield name="high" resourcedensity="25" replenishtime="600" scaneffectintensity="0.3" />
    <yield name="veryhigh" resourcedensity="2500" replenishtime="3600" scaneffectintensity="1.0" />
  </resource>
  <resource ware="hydrogen" scaneffect="" scaneffectdensity="0.001">
    <yield name="medium" resourcedensity="100" replenishtime="60" gatherspeedfactor="1.0" scaneffectintensity="0.1" />
    <yield name="high" resourcedensity="1000" replenishtime="240" gatherspeedfactor="4.0" scaneffectintensity="0.3" />
  </resource>
  <resource ware="helium" scaneffect="" scaneffectdensity="0.001">
    <yield name="medium" resourcedensity="100" replenishtime="60" gatherspeedfactor="1.0" scaneffectintensity="0.1" />
    <yield name="high" resourcedensity="1000" replenishtime="240" gatherspeedfactor="4.0" scaneffectintensity="0.3" />
  </resource>
  <resource ware="methane" scaneffect="" scaneffectdensity="0.001">
    <yield name="medium" resourcedensity="100" replenishtime="60" gatherspeedfactor="1.0" scaneffectintensity="0.1" />
    <yield name="high" resourcedensity="1000" replenishtime="240" gatherspeedfactor="4.0" scaneffectintensity="0.3" />
  </resource>
</regionyields>
I guys,where can i find this to edit??thanks

User avatar
mr.WHO
Posts: 8571
Joined: Thu, 12. Oct 06, 17:19
x4

Re: [REQUEST] Minerals Respawn Faster

Post by mr.WHO » Mon, 13. May 19, 17:02

Ohhhh, that explain why I see my miners all over universe, despite the fact that all needed resources should be within 2 sectors from my mega-complex.

LegionOfOne
Posts: 122
Joined: Sun, 16. Dec 18, 13:16
x4

Re: [REQUEST] Minerals Respawn Faster

Post by LegionOfOne » Sun, 9. Jun 19, 10:20

You can edit the 'mining' speed of gas, and the regeneration rate of mineral asteroids, of every sector's asteroid and gas fields independently, by changing the density to high, or very_high for the resources that have a very_high setting.
You can also add new types of gas or minerals to resource fields ! Make sure to add the corresponding asteroids when adding minerals.

You can do all that in libraries\region_definitions.xml

Shameless plug :
If you want a working example, with all densities at their allowed max, check out my Nopileos' True Fortune mod.

GDI-BOSS
Posts: 579
Joined: Wed, 27. Dec 06, 19:04
x4

Re: [REQUEST] Minerals Respawn Faster

Post by GDI-BOSS » Mon, 10. Jun 19, 20:27

Sorry for a noob cuestión guys,but i search folder called libraries in X4 and steam but not find it,where is located?

Post Reply

Return to “X4: Foundations - Scripts and Modding”