[MOD] shutup rewards - how to

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

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

Post Reply
AR_Starfighter
Posts: 65
Joined: Thu, 6. Jun 19, 06:02

[MOD] shutup rewards - how to

Post by AR_Starfighter » Wed, 19. Jun 19, 06:02

Tested for the windows - GOG version 4.30 - successfully for one week.


Directory structure:
Reward_Fix
--MD
----Notifications.xml
--content.xml


Reward_Fix - Folder

content.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<content id="ARSrewardfix" name="Reward Fix" description="Fixes Reward Message Spam - 10% chance" author="AR_Starfighter" version="1.0" date="2019-15-6" save="0" enabled="1">
 <text language="44" name="Shutup Rewards" description="Fixes Reward Message Spam - 10% chance" author="AR_Starfighter"/>
</content>
md - Folder

Notifications.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<diff>
  <replace sel="//cue[@name='AccumulateRewards']/conditions">
     <conditions>
       <do_if chance="10">
          <event_cue_signalled/>
       </do_if>
     </conditions>
  </replace>
</diff>

Enjoy the silence in battle! :)


FYI, It took me three days to do this simple mod.

AR_Starfighter
Posts: 65
Joined: Thu, 6. Jun 19, 06:02

Re: [MOD] shutup rewards

Post by AR_Starfighter » Thu, 27. Jun 19, 22:24

It's works, but gives errors in the debug log. Disregard the the above code. This is the fully debugged code. My settings: chance=1

Through making the second mod, I learned how to fix this one.

Content.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<content id="ARSrewardfix" name="Reward Fix" description="Fixes Reward Message Spam" author="AR_Starfighter" version="100" date="2019-6-26" save="0" enabled="1">
 <text language="44" name="Reward Fix" description="Fixes Reward Message Spam" author="AR_Starfighter"/>
</content>
Notifications.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<diff>
	<replace sel="//cue[@name='AccumulateRewards']/conditions">
    		<conditions>
      			<event_cue_signalled/>
      			<check_value  value="true" chance="10" />
    		</conditions>
  	</replace>
</diff>

AR_Starfighter
Posts: 65
Joined: Thu, 6. Jun 19, 06:02

Re: [MOD] shutup rewards - how to

Post by AR_Starfighter » Sat, 29. Jun 19, 02:34

https://file.town/download/lxd8i1nyk9o7g1ttrzxt7ure9

So far, setting the chance to 1% seems to work best. This download will be available for 90 days, website limit.

Report any problems here.

Post Reply

Return to “X Rebirth - Scripts and Modding”