X4: Foundations

X4: Foundations

Buy And Sell Stations
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.
F1tgal911 12 Jun @ 10:15am 
Can confirm this mod works in 7.6 but cannot sell defence stations anymore.
Celludriel  [author] 23 May @ 8:43am 
There are probably options for it but as said before this isn't really my mod, just something I supported to keep it playable. I rather not start cutting and fiddling with the original frame ore vision. Adding a faction is the most in intrusive way of fixing extra factions.
Disrupted 21 May @ 4:14pm 
Couldn't you just delete the "isplanneddefencestation and not event.object.station." for that?
Celludriel  [author] 17 May @ 8:57am 
you don't, you add more factions in a new cue and add it to the array.

fe:

<set_value name="$validFactions" exact="[faction.antigone, faction.argon, faction.holyorder, faction.ministry, faction.paranid, faction.teladi, faction.hatikvah, faction.scaleplate, faction.alliance]"/>
<include_actions ref="AddBoronFaction" />

<library name="AddBoronFaction">
<actions>
<do_if value="faction.boron? and @faction.boron.isactive">
<append_to_list name="$validFactions" exact="faction.boron"/>
</do_if>
</actions>
</library>
Slartibartfast 16 May @ 5:25pm 
If I wanted to remove the restriction on buying/selling defense stations, how could I do that?
Celludriel  [author] 16 May @ 6:49am 
I believe that is because Xenon / Kaak isn't in the allowed list of factions in the script. When I find some spare time I'm off work from 18th June till 30 June I could take a look at it
raz334 15 May @ 2:12pm 
This mod works in 7.6(beta) Confirmed.

Bug Found: Cannot sell to Xenon / Kaak, even though i have managed to become their allies.
Cube 15 May @ 12:01pm 
doesnt work for me at the moment, the station manager doesnt give me the option to sell or buy a station
Malaras 1 May @ 3:49am 
yes i was using it
Bloodlance 30 Apr @ 2:27pm 
this mod looks really nice, does it work for 7.5 ?
Celludriel  [author] 19 Mar @ 11:23am 
This is weird

md.Conversations.DefaultComm

doesn't even exist in the script. Maybe this is the culprit

<do_if value="@md.ExtendedConversationMenu.Main.exists">
<set_value name="md.ExtendedConversationMenu.Main.$convOptions.$BuySellStationMenu" exact="table[ $signalCue = BuySell_Main_ConversationExtensionManagerSupport, $params = [] ]"/>
</do_if>

do any of you have this md.ExtendedConversationMenu installed ? It doesn't seem to be an easy fix and it's somewhere deep in a cue being called
]TPG[*Dagger 18 Mar @ 8:54pm 
Here's the error. This isn't showing the options when you chat to folks and it throws this error when you talk to the manager of a station. Running current version of the game (7.5)
[] 81757.14 Error in MD cue md.Conversations.DefaultComm<inst:2dfe7b>: Property lookup failed: event.object.{1}
* event.object == component.{0x7f8bbL} (name='Ulmanckamstras', class=npc)
* Expression: event.object.{1}
* Action: <set_value>, line 29
[General] 81757.14 ======================================
[General] 81757.14 ======================================
[] 81757.14 Error in MD cue md.Conversations.DefaultComm<inst:2dfe7b>: Property lookup failed: event.object.{2}
* event.object == component.{0x7f8bbL} (name='Ulmanckamstras', class=npc)
* Expression: event.object.{2}
* Action: <set_value>, line 30
[General] 81757.14 ======================================
Beep 3 Feb @ 10:33am 
@Celludriel Understandable I am not knowledgeable in how to do that sadly lol.
Celludriel  [author] 2 Feb @ 10:43pm 
If you have a look in the logs and can tell me if there is an error there I can see if I can fix it quickly. I don't have the game installed now nor do I have a lot of free time to start debugging.
Beep 31 Jan @ 7:32pm 
any chance for update? Seems to not be working
HARDY_ZOCKT 9 Jan @ 1:12pm 
hi is there away for adding mod fractions?
Arthur | Typical 5 Jan @ 2:43am 
Would be nice if this could be updated to 7.X
Celludriel  [author] 11 Dec, 2024 @ 2:18pm 
I haven't downloaded the beta yet so I did not test. My only goal with this mod is to keep it working for versions to come. I'm not planning on doing any actual development to it as I said in previous messages. So should it not work for the 7.5 beta let me know and I'll reinstall X4 so I can see if there are any error messages.
Cube 9 Dec, 2024 @ 5:13pm 
Does this work with the 7.5 beta?
Virus_q88 24 Nov, 2024 @ 12:41am 
Hi Mate like other players asking is any possibility You can make mod with trade any station for us ?
Malaras 23 Oct, 2024 @ 7:19pm 
but some type of setting would be great also, to control how expensive they are in some way
Malaras 23 Oct, 2024 @ 7:18pm 
Are you guys thinking about price could include storage?
v.espagne 21 Oct, 2024 @ 7:35pm 
can you make a version where we can buy all stations please ?
Yoga3000 23 Sep, 2024 @ 1:30pm 
The Prices are insane :O 58 million for a small and empty Turret Comp. Station
knightphantom420 18 Sep, 2024 @ 3:03pm 
any chance u can put an ability to recycle ships at ur shipyard or would that have to be a seperate mod?
All In 21 Aug, 2024 @ 6:39pm 
Is there a way to customise the way stations are valued? Some of the prices I'm seeing are crazy. I'm seeing a station that's worth about 30 mil going for 130 mil, so once I'm at the point where I can afford it it doesn't really seem worth doing, is there a way to modify an .ini or .xml file or something to make the prices a bit more reasonable? Maybe a mod manager?
Rampager 3 Aug, 2024 @ 9:37am 
i understand a faction unwilling to sell their stations, but could you allow it so that you can sell the prohibited items in a one way trade? aka defence platforms, wharfs, etc
WAKE 2 Aug, 2024 @ 1:42pm 
selling any stations to factions would be great...
Astarte 19 Jul, 2024 @ 10:31pm 
It mentions no buying defense platforms, but could you sell a defense platform to a faction to give them control of a sector? I ask because the Xenon ravaged the north half early on for me, and although I've now cleared them out all of the relevant factions seem reluctant to reclaim their territory.

Also, how do you sell a station? I'm not getting any dialog to choose a station to sell when I go to a factions station manager or faction rep, nor does the sell option appear when I talk to the manager of the station I want to sell...
T600_Mod 12 Jul, 2024 @ 5:35pm 
is there any way you can make a version where I can Buy all Stations? and release that Seperatley.
I want to take over a few sectors and be a miny nation. and the defence platforms are in the way.
Thanks for making this by the way. its great.
Instinct 5 Jul, 2024 @ 3:40pm 
What about only allowing selling the banned stations?
hanz 3 Jul, 2024 @ 5:25am 
kinda sad that station that has admin module can't be sold. was hoping i could build a defense platform near xenon gate border and sell it to the faction so i have no need to get ownership.
Roach 2 Jul, 2024 @ 10:22am 
Teladi tradestations not buyable?
Celludriel  [author] 30 Jun, 2024 @ 2:28am 
@CaptianFluffy100 thnx glad I don't have to fix anything, it's to hot to code stuff now
CaptianFluffy100 29 Jun, 2024 @ 8:25pm 
Works in 7.0
Dark Ace 20 Jun, 2024 @ 8:40pm 
Seems stations with admin module can't be sold. Due to the 1) show livestream 7.0 vanilla option that conflicts with the mod? Perhaps set to option 3 with station manager instead of 1
dmansail 3 Jun, 2024 @ 12:28pm 
Very good mod, I am using it in 7 and looks that works ok, but i have a question to make , why when i build a defense platform and converted it to a trading station, i could not sell it ?
knightphantom420 17 May, 2024 @ 6:35pm 
so no answer to my ? huh?
knightphantom420 9 May, 2024 @ 2:28pm 
pryo if u were talking to me ... i was talking about ships the ai/npc sell that u can buy that are used/damaged like in x3
PyroMancer 7 May, 2024 @ 8:04pm 
You can sell ships in vanilla X4. Just right click on Warf or Shipyard depending on S/M or L/XL ship and there is sell ship option.