[solved] A ration problem.

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

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

Post Reply
Melraki
Posts: 48
Joined: Tue, 29. Dec 09, 12:08
x4

[solved] A ration problem.

Post by Melraki » Wed, 7. Apr 21, 16:58

Hi,
I have updated the 10x module variant, all 10x module works perfectly, DLC included, but i got the same bug with Ration.
All racial foods switch to argon ration, and i can't find why.
My wares.xml
Anybody see why i can't see?

The full mod : https://drive.google.com/drive/folders/ ... wSzQbeWNaO

PS : I start to script in X4 6days ago ^^
Last edited by Melraki on Thu, 8. Apr 21, 11:40, edited 1 time in total.

Mackan
Posts: 143
Joined: Thu, 1. Aug 13, 05:59
xr

Re: [Help] A ration problem.

Post by Mackan » Wed, 7. Apr 21, 20:41

Your mod seems to be lacking patched files libraries/modules.xml and libraries/modulegroups.xml. You probably need to add your modules to those.

modules.xml habitat structure:

Code: Select all

  <!-- Teladi Habitation Modules -->
  <module id="hab_tel" group="hab_tel">
    <category tags="[habitation, module]" race="teladi" faction="[teladi, ministry, scaleplate]" />
  </module>
modulegroups.xml habitat structure:

Code: Select all

  <!-- Teladi Habitation Module Groups -->
  <group name="hab_tel">
    <select macro="hab_tel_l_01_macro" />
    <select macro="hab_tel_m_01_macro" />
    <select macro="hab_tel_s_01_macro" />
  </group>

Melraki
Posts: 48
Joined: Tue, 29. Dec 09, 12:08
x4

Re: [Help] A ration problem.

Post by Melraki » Wed, 7. Apr 21, 23:29

If I understand, modules and modulegroups is for sharing module between all race/faction you want. And, i want this new modules only for player.

Mackan
Posts: 143
Joined: Thu, 1. Aug 13, 05:59
xr

Re: [Help] A ration problem.

Post by Mackan » Thu, 8. Apr 21, 02:26

Melraki wrote:
Wed, 7. Apr 21, 23:29
If I understand, modules and modulegroups is for sharing module between all race/faction you want. And, i want this new modules only for player.
Hmm, maybe, I don't remember. I have those for my custom modules in my Academy mod, so I figured they may be necessary but apparently not then.

Since I don't seem to have this problem with my mod I went through it to see if I could find anything else I did differently from you, but nothing stands out. Honestly got no clue what could cause it.

jlvitorasso
Posts: 29
Joined: Thu, 1. Mar 18, 04:52
x4

Re: [Help] A ration problem.

Post by jlvitorasso » Thu, 8. Apr 21, 03:15

Mackan wrote:
Thu, 8. Apr 21, 02:26
Melraki wrote:
Wed, 7. Apr 21, 23:29
If I understand, modules and modulegroups is for sharing module between all race/faction you want. And, i want this new modules only for player.
Hmm, maybe, I don't remember. I have those for my custom modules in my Academy mod, so I figured they may be necessary but apparently not then.

Since I don't seem to have this problem with my mod I went through it to see if I could find anything else I did differently from you, but nothing stands out. Honestly got no clue what could cause it.
I'm a complete noob when it comes to mods/scripts in general. But since you said you dont have this problem, and the OP said that modules.xml was to set race and factions, maybe try to limit factions to player only on the modules.xml?
something like this

Code: Select all

<!-- Teladi Habitation Modules -->
  <module id="hab_tel" group="hab_tel">
    <category tags="[habitation, module]" race="teladi" faction="[player]" />
  </module>

Melraki
Posts: 48
Joined: Tue, 29. Dec 09, 12:08
x4

Re: [Help] A ration problem.

Post by Melraki » Thu, 8. Apr 21, 08:20

I will try.
But this bug appear on the original mod, without habitat :(

Melraki
Posts: 48
Joined: Tue, 29. Dec 09, 12:08
x4

Re: [solved] A ration problem.

Post by Melraki » Thu, 8. Apr 21, 11:41

Solved.
Problem come from dupplicate default race.

Post Reply

Return to “X4: Foundations - Scripts and Modding”