X4: Foundations

X4: Foundations

RandomMine
Faryu Dec 24, 2021 @ 2:27am
Changes to the mods
Thank you for creating the 3 RandomX mods.
I used them for some weeks and run into some issues like in RandomSupply the supply ships not supplying the station that needs it the most or in RandomMine the mining ships trying to mine in basically depleted sectors or getting stuck.
Over the last few days I modified the mod to address those issues and it works great for me now.

Some things I changed:
- Added a mechanic, that every 10 minutes a mining ship will check all squad members, if they have been mining for more than 15 minutes. If so, they will cancel that order.
- Got inspired by SectorSatelites in how to detect ore and use those methods to find the wares.
- Replaced the stocklevel parameter in find buyorder with relativeprice. This allows my trading stations to work together with the other stations (I set the trading station buy prices to the minimum) and it also get's the mining ships to focus on the stations that need it the most.

What this does is: I set all the output prices of producing stations to minimum price, all the buying wares in stations to automatic pricing and all the trading stations buying wares to minimum.
Now RandomSupply will first satisfy build storage, then station buyorder with relativeprice >= 0, then station sellorders which are relativeprice < 0, then station buyorder with relativeprice < 0.

I also changed the subordinate update. Now it will update all subordinates with the same shiptype, if they don't have the RandomX defaultorder. This allows the automatic rebuild of destroyed ships mod to work, as otherwise they would only follow the leader.
I also added an automatic subordinate update every 60 minutes, since new subordinates might have low captain levels and thereby a short range. An update will allow them to reach the range set in the commander.

There are still some changes I want to make, but I wanted to ask if I can publish the modified mods or if you are interested in adapting those changes / working together via github for example on this.
If you don't wish for any of this that is fine as well. Then I will only use it myself.

I learned a lot in how the inner workings of X4 are and how extensions are working.
Thank you once again for creating the mods and have a nice christmas!
< >
Showing 1-4 of 4 comments
riddickulous Feb 17, 2022 @ 8:45am 
I think a lot of people would be very interested in that fork (at least I would). It would be great as a 5.0 mod when Tides of Avarice launches.
Slatex Nov 10, 2022 @ 4:33pm 
id say just do your fork and give credit to him kinda dead the mod atm
Andro  [developer] Dec 24, 2022 @ 11:01am 
Sorry, I'm not playing this game at the moment.
I published randomsupply on github though
https://github.com/YuJin44/randomsupply
However, I was not able to recreate the entire history of the changes, just a few.
Feel free to fork, merge, or self-publish your changes.
If this github release is received well and doesn't mean a lot of work for me, I will release the other 2 mods as well.
Faryu Jan 28, 2023 @ 4:43am 
Thank you for the permission. I have now uploaded my repo and published my version of the RandomSupply and RandomMine mod.
I have added Delta to the name, to make it easier to tell them appart.
< >
Showing 1-4 of 4 comments
Per page: 1530 50