X4: Foundations

X4: Foundations

123 ratings
Buy And Sell Stations
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
26.034 KB
29 Apr, 2024 @ 8:11am
7 May, 2024 @ 4:47pm
2 Change Notes ( view )

Subscribe to download
Buy And Sell Stations

Description
Player can sell stations to other factions and buy stations from other factions.

This mod is made by General Vash and all I did was make it compatible with 6.0. I asked and have received permission to upload this to steam so it can be enjoyed by everyone.

If and when General Vash starts modding again and he decides to expand on this mod I will take this one down and you can subscribe on his new version should it ever come to pass.

Enjoy being a station real estate mongol

=================================================
Usage and more expanded description
=================================================

This mod allows buying and selling of stations, except for defense stations, wharfs, shipyards, trade stations, or any faction's headquarters. These were excluded from purchase because I thought that governments would be extremely reluctant to sell strategic resources.

You can speak to any station manager and get an appraisal for the station, which prints to the logbook.
The appraisal for buying stations is as follows:

- The price of all the station's modules, the price of all drones, the price of all the station's cargo at max valuation, plus the price of the station's build plot. This is the base price.

- Then, every station owned by the faction which produces the same products of the station being appraised are evaluated for their relative prices to get the product which has the highest average relative price within the faction. That relative price is divided by 10 to arrive at a value between -0.1 and +0.1. Negative maximums are set to 0. This becomes the exponent accounting for product scarcity, i.e the scarcest product of a station which has relative price of +45% results in an exponent of 1.045, with a factor of 0 being an exponent of 1.

- If the station being appraised is the last station producing some ware owned by the faction, they automatically assign an exponent of 1.1 regardless of the relative price of the ware. This is to make it more difficult to monopolize every station producing some ware.

- The exponent is applied to base price. Formula ( Price of all modules + price of all drones + price of all cargo + price of build plot) ^ (1 + (relative price of scarcest product / 10 )

The appraisal for selling stations is as follows:

- The price of all the station's modules, the price of all drones, the price of all the station's cargo at max valuation, plus the price of the station's build plot. This is the base price.

- Then, the relation of the player with the faction buying the station is checked, and a flat percent bonus is applied for good relations. The bonus scales up to 30%

=======================================
Compatibility
=======================================

Compatibility with Recycle Ships and Stations: His mod replaces my mod's dialogue for owned stations, but doesn't affect buying AI stations. Thanks to iforgotmysocks for this mod, which helped me figure out the dialogue system and provided a good starting point for my work. His mod does not appraise owned stations' cargo or build plot, so you'll sell for less. His method of transferring ownership doesn't use the library for this purpose, but I haven't tested whether there are bugs with the station accounts in Recycle Ships and Stations.

Other mods which add conversation options to station managers probably also interfere with my mod...I tried to look at Extended Conversation Menu but couldn't figure out how to get that to work.
64 Comments
@Celludriel - Comically-high price or not, i was still more than willing to pay it in order to stop the HAT station turning hostile due to stray shots! I'm at that game stage where the universe is really hotting-up and incursions/wars are going on all over the place, so not having to worry about this HAT station shooting up my sector is a godsend, to be honest.
Celludriel  [author] 10 Sep @ 2:36pm 
I didn't change anything from the original author about pricing. I haven't even studied that part myself. All I can say that it was his original vision.
Mod is working for me as of the new 8.0 Envoy/Diplomacy update, but i'm a bit confused as to how the pricing and exponents work. There is a HAT-owned factory in the sector i took ownership of (Heretic's End), and it's positioned right in the middle of what is now a very busy sector thanks to my own production lines. It keeps getting hit by stray shots from my patrols or it is hitting me with its defences while shooting at pirates (i don't know which), and turning hostile, so this mod was the answer to end this, and i bought it from HAT.

However, the total cost to buy it was an astonishing 413 MILLION. I checked the report that you can generate, the total station value plus goods is around 47 million, with an exponent of 1.1. Whatever way the final cost is worked out, it still seems like a completely ludicrous price to have to pay, but at least my "turning hostile" issue is now solved!

Thanks for the mod!
☠Miracler☠ 1 Sep @ 11:47am 
Can I install it mid save?
Luisian320 27 Aug @ 1:46am 
Does this work with Star Wars Interworlds?
Galaxies 3 Aug @ 8:11am 
It doesn't seem to be working for me. It worked fine before the most recent update, but now the option isn't appearing.

I have quite a few mods, so they might be overriding the Buy & Sell option, but it hasn't been a problem before this most recent update.
Celludriel  [author] 18 Jun @ 3:06am 
@DMan90 if that warf is not designated as a defense station it should work. However just to be sure save your game in a seperate savefile before you attempt it
DMan90 17 Jun @ 3:07am 
I'm wanting to sell a warf to the Argon who've had their warf destroyed. Will it work or is it gonna be a big waste of materials?
F1tgal911 14 Jun @ 1:32pm 
Ahh kk.
Celludriel  [author] 12 Jun @ 11:23pm 
I believe you never could sell defense stations. The reasoning being there are missions to let you build defense stations for other factions.