Where can I find the prices for ships and modules?

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

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

Max Bain
Posts: 1463
Joined: Wed, 27. Jun 18, 19:05
x3ap

Where can I find the prices for ships and modules?

Post by Max Bain »

I have searched in all xml files for the tag price but I couldnt find the prices for ships and modules so far, only for wares.
Does anyone know where they are?
XR Ship Pack (adds several ships from XR) Link
Weapon Pack (adds several new weapons) Link
Economy Overhaul (expands the X4 economy with many new buildings) Link
X4 Editor (view stats of objects and make your own mod within a few clicks) Link
Chair5768
Posts: 36
Joined: Sun, 15. Jan 06, 06:43
x3

Re: Where can I find the prices for ships and modules?

Post by Chair5768 »

It's included in the libraries/wares.xml file
Spoiler
Show
<ware id="engine_arg_l_allround_01_mk1" name="{20107,3004}" description="{20107,3002}" group="engines" transport="equipment" volume="1" tags="engine equipment noplayerblueprint">
<price min="321518" average="357242" max="392966" />
<production time="20" amount="1" method="default" name="{20206,101}">
<primary>
<ware ware="antimatterconverters" amount="147" />
<ware ware="energycells" amount="25" />
<ware ware="engineparts" amount="67" />
</primary>
</production>
<component ref="engine_arg_l_allround_01_mk1_macro" amount="1" />
<restriction licence="generaluseequipment" />
<use threshold="0" />
<owner faction="argon" />
</ware>
I highly recommend using a program like Agent Ransack to search through your extracted X4 directory for information like this. Screenshot so you can see how useful it is:
Image

Windows explorer has a slightly less powerful feature built into it, but I've had issues with it failing to detect results in the past. The preview pane that lets you show how items you searched for are used in the file is a pretty nice timesaver too.
SirNukes
Posts: 549
Joined: Sat, 31. Mar 07, 23:44
x4

Re: Where can I find the prices for ships and modules?

Post by SirNukes »

Chair5768 wrote: Tue, 4. Dec 18, 19:54 I highly recommend using a program like Agent Ransack to search through your extracted X4 directory for information like this.
I've been using grepWin (https://github.com/stefankueng/grepWin), which is open source and also has regex support.

Return to “X4: Foundations - Scripts and Modding”