Broken mod type in 7.60

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

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

Konradius
Posts: 34
Joined: Mon, 3. Dec 18, 22:53
x4

Broken mod type in 7.60

Post by Konradius »

The 7.60 patch broke a number of mods that allowed the player to sell inventory wares at vendors.
Normally the following would allow SETI to be sold to vendors:
<add sel="/stocks/stock[@id='default_trader']">
<ware ref="inv_timewarp" min="1" max="1" chance="100" />
</add>

This worked in 7.50, it doesn't work anymore in 7.60. Maybe a value was added to limit selling a good even if it was offered in a store?
If so, what was changed? I did check the various change lists for 7.60 and could not find it except possibly for this:
- Fixed station-based traders sometimes showing empty ware baskets.

The thread on the wiki listing mod breaking changes doesn't even have an entry for 7.60 (it goes from 7.50 to 8.0)

Anyone know? These types of mods make decluttering the personal inventory possible without feeling you're throwing away credits.
staeuber
Posts: 33
Joined: Tue, 8. Feb 05, 00:36
x4

Re: Broken mod type in 7.60

Post by staeuber »

hi
just guessing
Instead of modifying stocks, use the add_tradeware approach:

Code: Select all

<add_tradeware object="$trader" ware="ware.inv_timewarp" allowbuy="true" allowsell="true" />
i might completely wrong about this
greets
keine

Return to “X4: Foundations - Scripts and Modding”