Skip to content

Commit

Permalink
0.6.0 (#4)
Browse files Browse the repository at this point in the history
 - Added custom dialog lines during harass operation, now you know that you are threatening them.
 - Minor fixes
 - Uploaded to Steam
  • Loading branch information
AlbertoRota authored Apr 22, 2020
1 parent 3f6910a commit 8acc1c1
Show file tree
Hide file tree
Showing 20 changed files with 85 additions and 5 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@ Added more than 20 configuration options to let you tune the mod to your likings
- Kevrlet -> Author of `FixBailChance`, where a lot of inspiration was drawn.
- SirNukes -> Author of `SirNukes Mod Support APIs`.
- Smashicons -> Author of the image used as Thumbnail (https://www.flaticon.es/autores/smashicons)
- https://text2voice.org, https://twistedwave.com/online and https://voicechanger.io/ -> All of them used to create the custom dialog lines.

## Changelog
### 0.6.0
- Added custom dialog lines during harass operation, now you know that you are threatening them.
- Minor fixes
### 0.5.0
- Improved the "Harass" command vs capital ships, now it will only shoften them.
- Added distance checks to the "Harass" command, now you really need to stick on the target.
Expand Down
2 changes: 1 addition & 1 deletion content.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<content id="ws_2056100433" name="Better piracy" description="X4 Foundations mod to improve piracy." version="500" save="0" author="alberto-rota" date="2020-04-20" sync="false" lastupdate="1587413005">
<content id="ws_2056100433" name="Better piracy" description="X4 Foundations mod to improve piracy." version="600" save="0" author="alberto-rota" date="2020-04-22" sync="false" lastupdate="1587591304">
<langugage language="7" description="X4 Foundations mod to improve piracy."/>
<langugage language="33" description="X4 Foundations mod to improve piracy."/>
<langugage language="34" description="Mod para X4 Foundations que mejora la piratería."/>
Expand Down
21 changes: 21 additions & 0 deletions libraries/sound_library.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<diff>
<add sel="/soundlibrary">
<sound id="61538_normal" description="Better piracy - Threats" repeat="1" is3d="1" preload="0">
<sample start="extensions\better_piracy\voice\61538\normal" />
<volume start="3" distance="1"/>
<effects>
<filter mode="bandpass" frequency="0.26" oneoverq="1.45" />
<reverb room="sewer pipe" roomsize="10" drymix="5" density="90" />
</effects>
</sound>
<sound id="61538_comm" description="Better piracy - Threats" repeat="1" is3d="1" preload="0">
<sample start="extensions\better_piracy\voice\61538\normal" />
<volume start="3" distance="1"/>
<effects>
<filter mode="bandpass" frequency="0.26" oneoverq="1.45" />
<reverb room="sewer pipe" roomsize="10" drymix="5" density="90" />
</effects>
</sound>
</add>
</diff>
1 change: 1 addition & 0 deletions md/betterpiracy_custom_bail_logic.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<check_value value="not $target.islasertower"/>
<check_value value="@$target.order.state != orderstate.critical"/>
</conditions>
<delay exact="5s"/>
<actions>
<set_value name="$MissionCue" exact="event.param"/>
<set_value name="$target" exact="$MissionCue.$Target"/>
Expand Down
1 change: 1 addition & 0 deletions md/betterpiracy_harass.xml
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@
<set_value name="$NextBailCheck" exact="player.age + ($Config.{'$keep_pressure_timer'})s"/>
<set_value name="$Pressure" operation="add"/>
<set_value name="$BailAttepmps" operation="add"/>
<speak actor="player.computer" page="61538" line="[4401, 4402, 4403, 4404, 4405, 4406, 4407, 4408, 4409].random" priority="90"/>
<signal_cue_instantly cue="md.Betterpiracy_custom_bail_logic.PlayerOwnedShipHarass" param="$MissionCue"/>
</do_if>
</actions>
Expand Down
6 changes: 3 additions & 3 deletions md/notifications.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<!-- Sightly lowered the base chance to happen to make the "Harass" command more attractive -->
<set_value
name="$ejectchance"
exact="( (md.Betterpiracy_config.Config.$Config.{$combat_base_bail_chance} - $target.combinedskill / 5) * [(($attacker.shieldpercentage + $attacker.hullpercentage) / [($target.shieldpercentage + $target.hullpercentage), 1.0].max), 1.0].min )i"
exact="( (md.Betterpiracy_config.Config.$Config.{'$combat_base_bail_chance'} - $target.combinedskill / 5) * [(($attacker.shieldpercentage + $attacker.hullpercentage) / [($target.shieldpercentage + $target.hullpercentage), 1.0].max), 1.0].min )i"
/>
</replace>

Expand All @@ -30,12 +30,12 @@
</do_if>

<!-- Remove extra damage to hull -->
<do_if value="md.Betterpiracy_config.Config.$Config.{$combat_bailing_pilots_damage_hull} == 0">
<do_if value="md.Betterpiracy_config.Config.$Config.{'$combat_bailing_pilots_damage_hull'} == 0">
<set_value name="$damageminpercent" exact="100"/>
</do_if>
</add>

<!-- This selector matches line 1022 -->
<!-- Remove extra damage to components -->
<replace sel="//do_if[@value='$pilotbail?']/do_if[@value='$target.exists']/@value">md.Betterpiracy_config.Config.$Config.{$combat_bailing_pilots_destroy_components} == 1 and $target.exists</replace>
<replace sel="//do_if[@value='$pilotbail?']/do_if[@value='$target.exists']/@value">md.Betterpiracy_config.Config.$Config.{'$combat_bailing_pilots_destroy_components'} == 1 and $target.exists</replace>
</diff>
11 changes: 10 additions & 1 deletion resources/Commands.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
// Update mod in SteamWorkshop. (Remember to add a proper change note)
WorkshopTool update -path "..\X4 Foundations\extensions\better_piracy" -buildcat -changenote ""
WorkshopTool update -path "..\X4 Foundations\extensions\better_piracy" -buildcat -changenote ""

// Workflow to generate new audio lines
1) https://text2voice.org
-> English: Joanna, Female
2) https://twistedwave.com/online
-> Normalize all audio with "Effects -> Normalize... -> RMS value"
-> Export as "WAVE audio -> 16 bits"
3) https://voicechanger.io/
-> Use the "Dalek"
11 changes: 11 additions & 0 deletions t/0001-l034.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,15 @@
<t id="5191">(Combat bailing pilots destroy components name)Combat bailing pilots destroy components</t>
<t id="5192">(Combat bailing pilots destroy components mouseover)When enabled, after after shooting a target until it bails the bailing pilot will destroy some of the ship componets.\n\nThe number of componets destroyed is proportional to the pilot morale.</t>
</page>
<page id="61538" title="Better piracy voices" descr="0" voice="yes">
<t id="4401">The battle is over, abandon your ship immediately!</t>
<t id="4402">We are just interested in the ship. Make it easy and surrender now!</t>
<t id="4403">You have only two options now, surrender or prepare to die!</t>
<t id="4404">We are going to board the ship. You don't want to be inside when that happens!</t>
<t id="4405">You stand no chance, be smart, and surrender.</t>
<t id="4406">Are you really willing to die? No? Then get out of the ship!</t>
<t id="4407">You are not going to make it out with your ship, but you can still make it out alive.</t>
<t id="4408">You have already proved your courage, now prove your wisdom and surrender!</t>
<t id="4409">Your stubbornness will end up killing you. Surrender now!</t>
</page>
</language>
11 changes: 11 additions & 0 deletions t/0001-l044.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,15 @@
<t id="5191">(Combat bailing pilots destroy components name)Combat bailing pilots destroy components</t>
<t id="5192">(Combat bailing pilots destroy components mouseover)When enabled, after after shooting a target until it bails the bailing pilot will destroy some of the ship componets.\n\nThe number of componets destroyed is proportional to the pilot morale.</t>
</page>
<page id="61538" title="Better piracy voices" descr="0" voice="yes">
<t id="4401">The battle is over, abandon your ship immediately!</t>
<t id="4402">We are just interested in the ship. Make it easy and surrender now!</t>
<t id="4403">You have only two options now, surrender or prepare to die!</t>
<t id="4404">We are going to board the ship. You don't want to be inside when that happens!</t>
<t id="4405">You stand no chance, be smart, and surrender.</t>
<t id="4406">Are you really willing to die? No? Then get out of the ship!</t>
<t id="4407">You are not going to make it out with your ship, but you can still make it out alive.</t>
<t id="4408">You have already proved your courage, now prove your wisdom and surrender!</t>
<t id="4409">Your stubbornness will end up killing you. Surrender now!</t>
</page>
</language>
11 changes: 11 additions & 0 deletions t/0001-l049.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,15 @@
<t id="5191">(Combat bailing pilots destroy components name)Combat bailing pilots destroy components</t>
<t id="5192">(Combat bailing pilots destroy components mouseover)When enabled, after after shooting a target until it bails the bailing pilot will destroy some of the ship componets.\n\nThe number of componets destroyed is proportional to the pilot morale.</t>
</page>
<page id="61538" title="Better piracy voices" descr="0" voice="yes">
<t id="4401">The battle is over, abandon your ship immediately!</t>
<t id="4402">We are just interested in the ship. Make it easy and surrender now!</t>
<t id="4403">You have only two options now, surrender or prepare to die!</t>
<t id="4404">We are going to board the ship. You don't want to be inside when that happens!</t>
<t id="4405">You stand no chance, be smart, and surrender.</t>
<t id="4406">Are you really willing to die? No? Then get out of the ship!</t>
<t id="4407">You are not going to make it out with your ship, but you can still make it out alive.</t>
<t id="4408">You have already proved your courage, now prove your wisdom and surrender!</t>
<t id="4409">Your stubbornness will end up killing you. Surrender now!</t>
</page>
</language>
11 changes: 11 additions & 0 deletions t/0001.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,15 @@
<t id="5191">(Combat bailing pilots destroy components name)Combat bailing pilots destroy components</t>
<t id="5192">(Combat bailing pilots destroy components mouseover)When enabled, after after shooting a target until it bails the bailing pilot will destroy some of the ship componets.\n\nThe number of componets destroyed is proportional to the pilot morale.</t>
</page>
<page id="61538" title="Better piracy voices" descr="0" voice="yes">
<t id="4401">The battle is over, abandon your ship immediately!</t>
<t id="4402">We are just interested in the ship. Make it easy and surrender now!</t>
<t id="4403">You have only two options now, surrender or prepare to die!</t>
<t id="4404">We are going to board the ship. You don't want to be inside when that happens!</t>
<t id="4405">You stand no chance, be smart, and surrender.</t>
<t id="4406">Are you really willing to die? No? Then get out of the ship!</t>
<t id="4407">You are not going to make it out with your ship, but you can still make it out alive.</t>
<t id="4408">You have already proved your courage, now prove your wisdom and surrender!</t>
<t id="4409">Your stubbornness will end up killing you. Surrender now!</t>
</page>
</language>
Binary file added voice/61538/normal/4401.wav
Binary file not shown.
Binary file added voice/61538/normal/4402.wav
Binary file not shown.
Binary file added voice/61538/normal/4403.wav
Binary file not shown.
Binary file added voice/61538/normal/4404.wav
Binary file not shown.
Binary file added voice/61538/normal/4405.wav
Binary file not shown.
Binary file added voice/61538/normal/4406.wav
Binary file not shown.
Binary file added voice/61538/normal/4407.wav
Binary file not shown.
Binary file added voice/61538/normal/4408.wav
Binary file not shown.
Binary file added voice/61538/normal/4409.wav
Binary file not shown.

0 comments on commit 8acc1c1

Please sign in to comment.