[Mod] Boarding Target Protector V1.04

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

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

Post Reply
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

[Mod] Boarding Target Protector V1.04

Post by UniTrader » Fri, 1. Apr 16, 01:19

hi all, i just created a small extension which protects the Ships which are currently boarded from being shot by others. not much more to say here...

Update 1.04: this script also influenced the player ship which may get annoying - changed.

here the DL-Link: Download

as usual Back up your Savegames - this was created in the last 4 hours and may still have sideeffects

have fun boarding :D
Last edited by UniTrader on Fri, 1. Apr 16, 12:33, edited 1 time in total.
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)

Sparky Sparkycorp
Moderator (English)
Moderator (English)
Posts: 8074
Joined: Tue, 30. Mar 04, 12:28
x4

Post by Sparky Sparkycorp » Fri, 1. Apr 16, 01:43

Nice one, thanks :)

User avatar
Marvin Martian
Posts: 3546
Joined: Sun, 8. Apr 12, 09:40
x4

Post by Marvin Martian » Fri, 1. Apr 16, 07:54

woohoo is that the last one from mod-advent ? :D

linolafett
EGOSOFT
EGOSOFT
Posts: 3321
Joined: Mon, 26. Mar 12, 14:57
x4

Post by linolafett » Fri, 1. Apr 16, 09:35

Ah, good addition. Its always annoying to happen while boarding an enemy ship. Great solution, Thanks!
01001100 01101001 01101110 01100101 01110011 00100000 01101111 01100110 00100000 01110100 01101001 01101101 01100101 01110011 00101110 00101110 00101110

My art stuff

User avatar
YorrickVander
Posts: 2689
Joined: Tue, 29. Oct 13, 21:59
x4

Post by YorrickVander » Fri, 1. Apr 16, 11:39

Smart idea, but could get expensive if the player's ships/drones still attacking. Maybe an alternate version that sets the ship being boarded to min hull 5% or something like that?
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.

UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader » Fri, 1. Apr 16, 12:37

Oh, thanks for the reminder.. this script also influenced the player ship which could get annoying - changed, player ship is now ignored.. Updated Version 1.04 is now in the OP

And this script works as intended, if you want to change the behavior feel free to take the code and change it ;)
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)

JESS 246
Posts: 573
Joined: Mon, 3. Jul 06, 03:24
x3

Post by JESS 246 » Fri, 1. Apr 16, 14:41

And about time too this has been needed for a long time.

Will look forward to trying this mod.

UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader » Sat, 2. Apr 16, 16:55

ok, i think its time to solve this - this Mod is an April Fools Joke - although it does whats stated (Protecting Ships being boarded) i dont think the method used is in everyones interest (blowing up all Attackers :D initially even the Player Ship :P)

i hope you had fun with this, i will leave the Link as is if you still want to use it (or create something better based on this) ;)
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)

w.evans
Posts: 2963
Joined: Tue, 18. Nov 14, 16:23
x4

Post by w.evans » Sat, 2. Apr 16, 23:00

had a good laugh when I looked at your script. "what the..." then I saw the version numbers!

User avatar
TSM
Not a Moderator
Posts: 2947
Joined: Thu, 1. Jul 04, 12:31
x4

Post by TSM » Sun, 3. Apr 16, 03:10

@Unitrader now your challenge is to get it to work for real :D
FAQ's Egosoft Interactive FAQ
Egosoft Wiki

pref
Posts: 5589
Joined: Sat, 10. Nov 12, 17:55
x4

Post by pref » Thu, 14. Apr 16, 21:38

You could do it by changing factions for the duration of the boarding session, did this in hijack and it seemed to work.

Change ship owner to faction.friendly for ex (iirc that means noone will attack , not even pirates), and apply a decent negative rep boost on the target vs the player.

User avatar
alexalsp
Posts: 1820
Joined: Fri, 18. Jul 14, 05:28
x4

Post by alexalsp » Mon, 11. Dec 17, 12:22

XR 4.30

Hi. Does not work. Do you want to fix it?

After clicking the "Boarding" menu, the ships disappear.

Code: Select all

[=ERROR=] 138.13 Error in MD cue md.UT_BoardingTargetProtector.ProtectBoardee<inst:343cc>: Evaluated value 'null' is not of type component
* Expression: event.param
[General] 138.13 ======================================
[General] 138.13 ======================================
[=ERROR=] 138.13 Error in MD cue md.UT_BoardingTargetProtector.ProtectBoardee<inst:343d5>: Evaluated value 'null' is not of type component
* Expression: event.param
[General] 138.13 ======================================
[General] 138.15 ======================================
[=ERROR=] 138.15 Error in MD cue md.UT_BoardingTargetProtector.ProtectBoardee<inst:343da>: Evaluated value 'null' is not of type component
* Expression: event.param
[General] 138.15 ======================================
[General] 138.17 ======================================
[=ERROR=] 138.17 Error in MD cue md.UT_BoardingTargetProtector.ProtectBoardee<inst:343db>: Evaluated value 'null' is not of type component
* Expression: event.param
[General] 138.17 ======================================
[General] 138.19 ======================================
[=ERROR=] 138.19 Error in MD cue md.UT_BoardingTargetProtector.ProtectBoardee<inst:343dc>: Evaluated value 'null' is not of type component
* Expression: event.param
[General] 138.19 ======================================
[General] 138.21 ======================================
[=ERROR=] 138.21 Error in MD cue md.UT_BoardingTargetProtector.ProtectBoardee<inst:343dd>: Evaluated value 'null' is not of type component
* Expression: event.param
[General] 138.21 ======================================


iforgotmysocks
Posts: 1244
Joined: Fri, 8. Nov 13, 22:35
x4

Post by iforgotmysocks » Mon, 11. Dec 17, 18:32

alexalsp wrote:XR 4.30

Hi. Does not work. Do you want to fix it?

After clicking the "Boarding" menu, the ships disappear.
Thats exactly what this april fools joke is supposed to do, lol.

Romz
Posts: 21
Joined: Sat, 24. Dec 16, 19:39
x4

Post by Romz » Mon, 11. Dec 17, 22:02

alexalsp wrote:XR 4.30

Hi. Does not work. Do you want to fix it?

After clicking the "Boarding" menu, the ships disappear.
It's work fine for me. I use this mod, and Boarding Options, and Marine Rebalance. Allies make one shot after the start of boarding and then no longer shoot.

User avatar
alexalsp
Posts: 1820
Joined: Fri, 18. Jul 14, 05:28
x4

Post by alexalsp » Tue, 12. Dec 17, 11:39

Romz wrote:
alexalsp wrote:XR 4.30

Hi. Does not work. Do you want to fix it?

After clicking the "Boarding" menu, the ships disappear.
It's work fine for me. I use this mod, and Boarding Options, and Marine Rebalance. Allies make one shot after the start of boarding and then no longer shoot.
They do not shoot because there is no one to shoot. ))

Romz
Posts: 21
Joined: Sat, 24. Dec 16, 19:39
x4

Post by Romz » Tue, 12. Dec 17, 16:46

alexalsp wrote:They do not shoot because there is no one to shoot. ))
I normally seized ships even in the middle of the sector near the station. Allies do as I wrote above. The main thing - to have time to declare boarding, before the ship is disassembled.

oliverjanda
Posts: 309
Joined: Sun, 14. Feb 10, 17:47
xr

Post by oliverjanda » Thu, 4. Jan 18, 14:15

I haven't modded for some years and did this in notepad++ but how about this:

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<mdscript name="BoardingTargetProtector" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <cues>
    <cue name="BoardingStarted" instantiate="true" namespace="this" version="100">
      <conditions>
        <event_boarding_triggered/>
      </conditions>
      <actions>
        <set_value name="$boardee" exact="event.param2"/>
        <set_owner object="$boardee" faction="faction.friend"/>
        <add_relation_boost object="$boardee" otherobject="$boardee.boarder" value="-0.1" decay="1" delay="480min" silent="true" />
      </actions>
      <cues>
        <cue name="BoardingEnded" checktime="5s" checkinterval="5s" version="100">
          <conditions>
            <check_value value="$boardee.boarder.exists" negate="true"/>
          </conditions>
          <actions>
            <cancel_cue cue="BoardingStarted"/>
          </actions>
        </cue>
      </cues>
    </cue>
  </cues>
</mdscript>

Requiemfang
Posts: 3206
Joined: Thu, 16. Jul 09, 12:24
x4

Post by Requiemfang » Mon, 8. Jan 18, 02:42

Huh seems familiar seeing how J3ANP3T3R did a similar script although it was a combination script of it mainly being around protecting your trade ships from Fields of Opportunity pirates. It added a script that protected any ships you were boarding as well. Though it's old now and no longer works.

oliverjanda
Posts: 309
Joined: Sun, 14. Feb 10, 17:47
xr

Post by oliverjanda » Mon, 8. Jan 18, 10:08

@ Requiemfang
The mod is not available for download anymore, so i cant take a llok.

Post Reply

Return to “X Rebirth - Scripts and Modding”