Modding Achievements is not working: help

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

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

Post Reply
DARCA1213
Posts: 24
Joined: Fri, 16. May 14, 21:51
x4

Modding Achievements is not working: help

Post by DARCA1213 » Sun, 1. Aug 21, 23:15

Hey all, I have a few mods I made for myself and some on the nexus. i am trying to make a mod that lowers the requirements for the trade and fight ranks. Below is the code I used from the stats.xml in cat8 in the game files and made an extension:

<replace sel="/stat[@id='trade_score']/mapto[@min='58000000']/@min">570000</replace>
<replace sel="/stat[@id='trade_score']/mapto[@min='58000000']/@max">600000</replace>

<replace sel="/stat[@id='trade_score']/mapto[@min='100000000']/@min">600000</replace>

This did not seem to work( :evil: ) for a existing game so I reloaded and tested the values at just 1-30 in a new game for all ranks and blew up some spawned zenon ks, no change. The code is intented to lower the range for each rank to be equal to about rank 20 stats.

I since added code like this to see if this method would work:

<replace sel="/stat[@id='s_fight_rank']/achievement/@unlock='16'">5</replace>
<replace sel="/stat[@id='s_fight_rank']/achievement/@unlock='30'">10</replace>

That also did not seem to work. :cry: I do not know what it could be or if there is some kind of hard coding for this? Help.
DARCA ;)

Post Reply

Return to “X4: Foundations - Scripts and Modding”