[MOD] self sufficient player factories

The place to discuss scripting and game modifications for X Rebirth.

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

copperzinc
Posts: 80
Joined: Sun, 23. Sep 12, 20:29
x4

[MOD] self sufficient player factories

Post by copperzinc »

http://www.nexusmods.com/xrebirth/mods/403/

So I wanted to make a mod that simulates X3 complexes where we can take outputs of one factory directly as input of another factory. While I'm experimenting with md scripts, I made this as an experiment for station triggers. I thought: why not upload it?
Last edited by copperzinc on Thu, 31. Jul 14, 06:28, edited 1 time in total.
User avatar
NZ-Wanderer
Posts: 1627
Joined: Thu, 5. Aug 04, 01:57
x4

Post by NZ-Wanderer »

This looks interesting :)
I presume it plays nice with build shipyards etc?

Hmmm, mistake somewhere, on this page you say 20% on nexus you say 50%
Link to the list of Mods working in X4-Foundations and also Link to the list of Mods working in X-Rebirth

NOTE: I play with a modded game, so any reports I make outlining suggestions/problems/bugs/annoyances, are made with mods installed and running.
copperzinc
Posts: 80
Joined: Sun, 23. Sep 12, 20:29
x4

Post by copperzinc »

Yeah it seems to work fine with build shipyard mod.

Neither one of them is correct with the newest version (which uses trade offer hints instead of a hard percentage). Please see the download detail in nexusmods for the most recent description :lol:
User avatar
NZ-Wanderer
Posts: 1627
Joined: Thu, 5. Aug 04, 01:57
x4

Post by NZ-Wanderer »

hmmm what the heck is a "funding upkeep mission"?? :)
Link to the list of Mods working in X4-Foundations and also Link to the list of Mods working in X-Rebirth

NOTE: I play with a modded game, so any reports I make outlining suggestions/problems/bugs/annoyances, are made with mods installed and running.
copperzinc
Posts: 80
Joined: Sun, 23. Sep 12, 20:29
x4

Post by copperzinc »

You need to make sure the factory manager have $ to spend on resources. You'd need to do this even without the cheat. (Go to property manager, select the station, click details, select manager, click details, click "current funding", click "change", and adjust $$$ so manager have money to work with.) In the most recent version, the money will not actually be spent, but they have to be reserved so the trade offers will be found in the script. See mission manager (2-5) for details. You don't have to fully satisfy the missions in this version but make sure they have enough to buy some resources with (~1M minimum).

Once you have enough money in manager's account, trade offers will be updated and resources will be pumped into the station. (And you'd have enough to start any ship production in a minute once you give your manager funding if you're using shipyard mod.)
User avatar
NZ-Wanderer
Posts: 1627
Joined: Thu, 5. Aug 04, 01:57
x4

Post by NZ-Wanderer »

Supplying my managers on two of my stations is ok, but the damn manager on my shipyard wants over 300,000,000 to satisfy her needs, and I aint got that much, she only gets 5,000,000 at a time when I can afford it :lol:
Link to the list of Mods working in X4-Foundations and also Link to the list of Mods working in X-Rebirth

NOTE: I play with a modded game, so any reports I make outlining suggestions/problems/bugs/annoyances, are made with mods installed and running.
copperzinc
Posts: 80
Joined: Sun, 23. Sep 12, 20:29
x4

Post by copperzinc »

NZ-Wanderer wrote:Supplying my managers on two of my stations is ok, but the damn manager on my shipyard wants over 300,000,000 to satisfy her needs, and I aint got that much, she only gets 5,000,000 at a time when I can afford it :lol:
That should be enough to work with. (To confirm, go to property manager-->station-->trade offers, see "offers", and make sure the total prices (last column) for the resources from your station are >0 if they're buying (price at +14%++).) Sometimes managers are just too greedy :twisted:

After you give them some funds, they should be making profits (since the running cost for factories are $0 with this cheat :roll:), and they should be able to supply themselves with $$$.

Really, there's something wrong with NPC trade ships for player stations. I've looked at the current scripts and I'm not impressed. The resource purchase is greedy (purchase as long as price is good and has cargo space,...) without taking consideration of how to satisfy the next production cycle. You really shouldn't need 300,000,000 if the script is good. This is the reason I'm making a normal version of this mod that links all factories like a complex (and resources won't appear in thin air). :P

Also, to use the cheat to its maximum potential, you should restrict trades to other factions on resources and intermediate products.
BlackRain
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 7465
Joined: Mon, 15. Dec 03, 18:53
x4

Post by BlackRain »

copperzinc wrote:
NZ-Wanderer wrote:Supplying my managers on two of my stations is ok, but the damn manager on my shipyard wants over 300,000,000 to satisfy her needs, and I aint got that much, she only gets 5,000,000 at a time when I can afford it :lol:
That should be enough to work with. (To confirm, go to property manager-->station-->trade offers, see "offers", and make sure the total prices (last column) for the resources from your station are >0 if they're buying (price at +14%++).) Sometimes managers are just too greedy :twisted:

After you give them some funds, they should be making profits (since the running cost for factories are $0 with this cheat :roll:), and they should be able to supply themselves with $$$.

Really, there's something wrong with NPC trade ships for player stations. I've looked at the current scripts and I'm not impressed. The resource purchase is greedy (purchase as long as price is good and has cargo space,...) without taking consideration of how to satisfy the next production cycle. You really shouldn't need 300,000,000 if the script is good. This is the reason I'm making a normal version of this mod that links all factories like a complex (and resources won't appear in thin air). :P

Also, to use the cheat to its maximum potential, you should restrict trades to other factions on resources and intermediate products.
The reason why his station needs 300 million is because it is a shipyard. It is not a normal station and it requires a substantial amount of resources and lots of high end resources at that since shipyards are intended to be the sink of the economy. It requires quite a bit of money to function.
copperzinc
Posts: 80
Joined: Sun, 23. Sep 12, 20:29
x4

Post by copperzinc »

Just checked on this. Looks like after giving 5M and wait till the mod gets kicked in, the manager's funding requirement drops back down to $0 for me. Guess the mod is working :D

P.S.: Anyone knows whether there's support for something like $container.resources.$ware.count? I sort of need a way to determine consumption per hour or consumption per cycle. I've looked everywhere (buildingmodule, resources, anchor, existing vanilla trade scripts) and the best I came up with is to find trade offers of the players' stations.
DlMFlRE
Posts: 15
Joined: Wed, 1. Jan 14, 01:04
xr

Post by DlMFlRE »

Hello Thank you for this modification.

Please add resources for building ships
copperzinc
Posts: 80
Joined: Sun, 23. Sep 12, 20:29
x4

Post by copperzinc »

@DiMFiRE
Not sure what you mean. If you own the shipyard you should have the resources, assuming you are using the mod correctly?
User avatar
YorrickVander
Posts: 2774
Joined: Tue, 29. Oct 13, 21:59
x4

Post by YorrickVander »

not tested but

Code: Select all

$container.resources.{$ware}.count
should do it
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.
copperzinc
Posts: 80
Joined: Sun, 23. Sep 12, 20:29
x4

Post by copperzinc »

Heh. Tried this (sorry about the typo), but I don't think that's been implemented. It's not in the schema file either. Ty for the help though =]
User avatar
YorrickVander
Posts: 2774
Joined: Tue, 29. Oct 13, 21:59
x4

Post by YorrickVander »

Boo. I haven't done much with stations, modding or building so far. Been waiting for the long needed bug fixes. Seems like 2.5 will open it up :)
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.
User avatar
NZ-Wanderer
Posts: 1627
Joined: Thu, 5. Aug 04, 01:57
x4

Post by NZ-Wanderer »

Good news, this has been updated :)
Link to the list of Mods working in X4-Foundations and also Link to the list of Mods working in X-Rebirth

NOTE: I play with a modded game, so any reports I make outlining suggestions/problems/bugs/annoyances, are made with mods installed and running.

Return to “X Rebirth - Scripts and Modding”