Player inventory location in save file

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

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

Post Reply
JakubCW
Posts: 196
Joined: Fri, 18. Aug 06, 06:59
x4

Player inventory location in save file

Post by JakubCW » Thu, 2. Apr 20, 15:37

Anyone know what search string to use to find the player inventory section/wares in the save file, old guides appear to use out of date code.

also how could you add the seminars into inventory?

thanks.

FunkDooBiesT
Posts: 13
Joined: Thu, 3. May 12, 14:01
x4

Re: Player inventory location in save file

Post by FunkDooBiesT » Mon, 6. Apr 20, 04:22

search for the following:

class="player"

That is where you can find the inventory section of the small wares you have.

DO NOT JUST COPY AND PASTE THE FOLLOWING LINES!

Add in or change the following lines for the type of seminar you want and set the # to the number you want to give yourself.

Code: Select all

<inventory>
.........
<ware ware="inv_seminar_management_0" amount="#"/>
<ware ware="inv_seminar_management_1" amount="#"/>
<ware ware="inv_seminar_management_2" amount="#"/>
<ware ware="inv_seminar_piloting_0" amount="#"/>
<ware ware="inv_seminar_piloting_1" amount="#"/>
<ware ware="inv_seminar_piloting_2" amount="#"/>
........
</inventory>

JakubCW
Posts: 196
Joined: Fri, 18. Aug 06, 06:59
x4

Re: Player inventory location in save file

Post by JakubCW » Tue, 7. Apr 20, 11:42

Thanks for this :)

Post Reply

Return to “X4: Foundations - Scripts and Modding”