(QUES 1) Wares list for Small fighter ships

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

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

dertien
Posts: 283
Joined: Tue, 22. Feb 05, 13:27
x2

(QUES 1) Wares list for Small fighter ships

Post by dertien »

I would like to make a mod to remove some ships from the small ship dealer list (like the Bonescout) and add a couple others (like the Birog, the Nechtan, the Talorcan and the Vasio).

I do not wish to add more dealers in, just change the ships that are on offer at the existing small ship dealers available in vanilla X-Rebirth.

Can anyone tell me what file or code line that defines the array of small ships (to add in a couple), and what files are responsible for showing the different small ships on offer (to change the availability of some ships depending on region/faction)?

I know the T file shows the correct names and how to change those.

Thanks
BlackRain
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 7465
Joined: Mon, 15. Dec 03, 18:53
x4

Re: (QUES 1) Wares list for Small fighter ships

Post by BlackRain »

dertien wrote:I would like to make a mod to remove some ships from the small ship dealer list (like the Bonescout) and add a couple others (like the Birog, the Nechtan, the Talorcan and the Vasio).

I do not wish to add more dealers in, just change the ships that are on offer at the existing small ship dealers available in vanilla X-Rebirth.

Can anyone tell me what file or code line that defines the array of small ships (to add in a couple), and what files are responsible for showing the different small ships on offer (to change the availability of some ships depending on region/faction)?

I know the T file shows the correct names and how to change those.

Thanks
This is easy to do, but, you would be changing one of the build modules for even NPC's unless you created a custom build module and custom station.

I mean you could say duplicate an existing shipyard, just change its name add macro to macro list, etc. and then tie it to a duplicated buildmodule which you edited and changed the name of.

Look in assets/structures/build_trees/macros

Then open one of the small shipyard macros

Look for

ConnectionFor_struct_econ_prod_ships_macro

In the file, and there it links to the build module

struct_econ_prod_ships_macro

For example. that is for fight ships

This is for fighters:
ConnectionFor_struct_econ_prod_shipm_macro

links to:
struct_econ_prod_shipm_macro

This is for trade ships. These buildmodule files are found in the following:

assets/structures/economy/production/macros

file is something like
struct_econ_prod_ships_macro

there are different files for different shipyard types from the different factions
dertien
Posts: 283
Joined: Tue, 22. Feb 05, 13:27
x2

Post by dertien »

Hi BlackRain

Thanks for the quick answer. I see this will unfortunately not be as straightforward as setting the availability from 100 to 0 as it is with the weapons dealer.

I now have an idea on where to look, and hope this can be done with a <diff></diff> tag somehow. I have not unpacked the HOL and the Teladi DLC cat/dat files, hopefully I won't need them. Will check that out too.
BlackRain
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 7465
Joined: Mon, 15. Dec 03, 18:53
x4

Post by BlackRain »

dertien wrote:Hi BlackRain

Thanks for the quick answer. I see this will unfortunately not be as straightforward as setting the availability from 100 to 0 as it is with the weapons dealer.

I now have an idea on where to look, and hope this can be done with a <diff></diff> tag somehow. I have not unpacked the HOL and the Teladi DLC cat/dat files, hopefully I won't need them. Will check that out too.
You don't need the HOL or Teladi DLC files.

You can just edit them with diff but like I said, it will change all shipyards that use that build module.
dertien
Posts: 283
Joined: Tue, 22. Feb 05, 13:27
x2

Post by dertien »

BlackRain wrote: You don't need the HOL or Teladi DLC files.
Nice to know, thank you.
BlackRain wrote: You can just edit them with diff but like I said, it will change all shipyards that use that build module.
Okidokey, that floats my boat just fine :)
dertien
Posts: 283
Joined: Tue, 22. Feb 05, 13:27
x2

Post by dertien »

When opening up struct_econ_prod_ships_ol_macro.xml, one can find this code:

Code: Select all

<properties>
      <identification name="{20107,3901}" description="{20107,3902}" unique="0" />
      <explosiondamage value="100000" />
      <hull max="3600000" />
      <secrecy level="4" />
      <production wares="shp_s_military_01 shp_s_military_02 shp_s_military_03 shp_s_military_04 shp_s_military_05 shp_s_military_06 shp_s_torpedo_01">
        <queue>
          <item ware="shp_s_military_01" />
          <item ware="shp_s_military_02" />
          <item ware="shp_s_military_03" />
          <item ware="shp_s_military_04" />
          <item ware="shp_s_military_05" />
          <item ware="shp_s_military_06" />
          <item ware="shp_s_torpedo_01" method="omicron" />
        </queue>
      </production>
    </properties>
    <connections>
Can anyone tell me what <secrecy level="4" /> means ? Is the ability to purchase these fighters related to how well your standing is with this vendor's faction, (just like in previous X3 titles) or is this something else ?

Then there is <item ware="shp_s_torpedo_01" method="omicron" /> what does the method refer to ?

Thanks in advance.
BlackRain
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 7465
Joined: Mon, 15. Dec 03, 18:53
x4

Post by BlackRain »

dertien wrote:When opening up struct_econ_prod_ships_ol_macro.xml, one can find this code:

Code: Select all

<properties>
      <identification name="{20107,3901}" description="{20107,3902}" unique="0" />
      <explosiondamage value="100000" />
      <hull max="3600000" />
      <secrecy level="4" />
      <production wares="shp_s_military_01 shp_s_military_02 shp_s_military_03 shp_s_military_04 shp_s_military_05 shp_s_military_06 shp_s_torpedo_01">
        <queue>
          <item ware="shp_s_military_01" />
          <item ware="shp_s_military_02" />
          <item ware="shp_s_military_03" />
          <item ware="shp_s_military_04" />
          <item ware="shp_s_military_05" />
          <item ware="shp_s_military_06" />
          <item ware="shp_s_torpedo_01" method="omicron" />
        </queue>
      </production>
    </properties>
    <connections>
Can anyone tell me what <secrecy level="4" /> means ? Is the ability to purchase these fighters related to how well your standing is with this vendor's faction, (just like in previous X3 titles) or is this something else ?

Then there is <item ware="shp_s_torpedo_01" method="omicron" /> what does the method refer to ?

Thanks in advance.
Secrecy level has to do with scanning the module.

The method refers to the wares file and is what resources get used. So in that case it would be omicron resources
dertien
Posts: 283
Joined: Tue, 22. Feb 05, 13:27
x2

Post by dertien »

LOL what a joy it must be to know all about what those lines of code mean without giving it a second thought, ok then I will not touch those values. Thanks again BlackRain !

So in X-Rebirth, aside from not being able to dock/talk to the station (red icon) when being on bad terms with the faction anyone with neutral relations can purchase any ships that they like ?

Return to “X Rebirth - Scripts and Modding”