[SCRIPT] Automated Defense System 1.01 (06-02-22)

The place to discuss scripting and game modifications for X³: Reunion.

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

User avatar
Serial Kicked
Posts: 3493
Joined: Fri, 12. Aug 05, 20:46
x3tc

[SCRIPT] Automated Defense System 1.01 (06-02-22)

Post by Serial Kicked » Wed, 22. Feb 06, 03:26

ADS: Automated Defense System 1.01
Idea from apricotslice

This script will add two commands to the TS and M6. Allowing them to drop mines or lasertowers in order to lay a defense grid or to protect a factory. The lasertowers will be equiped with a 125MJ shield. Another command is added to factories to allow destroyed LT replacement.
This script adds the two following commands to Special Command Mk1 equipped TS and M6.

ADS: Lay a defensive grid
Allow to drop arrays of 125Mj Laser Towers (or Squash Mines) of the specified size and orientation. The player will be charged for each LT dropped except if the ship also has 125M Shields in its cargo bay. First you'll have to choose a center position for your grid. Then the orientation, type 0 for (x,y), 1 for (x,z) and 2 for (y,z). The third parameter is the ware you want to drop (only lasertowers and mines will work), this ware must be loaded in the cargo bay. An finally a max amount, 0 = unlimited.

ADS: Protect a station with LTs
Choose the factory you want to protect and the amount of LT your want to use (0=unlimited) and the TS will start to drop Laser Towers (with a 125MJ shield) around the factory. The LT's homebase will be set to the protected factory. Player will be charged the price of a 125Mj shield minus the price of a 25Mj shield for each LT dropped except if the ship have those shields in its cargobay.


An additional command slot is also added to factories (only working available on factories/complex producing lasertowers).

ADS: Replace destroyed LTs
This command allows the factory to use a TS in order to replace destroyed lasertowers in the current sector for a small fee of 50k credits. Player will also be charged for each LT dropped.

Compatibility: This script should be compatible with all other mods, scripts and plugins for X3 Reunion except for LV's cheat pack.

:arrow: Download Link
Last edited by Serial Kicked on Sun, 27. Apr 14, 08:47, edited 9 times in total.
X3:TC/AP Pirate Guild 3 - Yaki Armada 2 - Anarkis Defense System

Anarkis Gaming HQ
Independent Game Development
X3 Scripting and Modding Station

User avatar
Serial Kicked
Posts: 3493
Joined: Fri, 12. Aug 05, 20:46
x3tc

Dev Notes and Changelog

Post by Serial Kicked » Wed, 22. Feb 06, 03:26

Official Topic :
http://anarkis.fxnetworks.org/forum/viewtopic.php?id=17


Used Slots :

Code: Select all

<t id="850">ANARKIS_ADS_LAYFIELD</t>
<t id="851">ANARKIS_ADS_PROTECT</t>
<t id="1125">ANARKIS_ADS_GRID</t>
Textfile/page : 8511


Changelog :

Code: Select all

v1.01 - Official Release
 (+) Special Software ST1 is needed to activate the commands
 (+) Lasertower price adjusted (125Mw shield price - 25Mw shield price)
 (+) Added french support
 (+) If the ships have 125Mw shields in the cargobay, they will be used to drop free LTs
 (*) Command Slots changed to avoid conflicts
 (*) Textfiles upgraded

Special Thanks
XaiCorp for the library lib.Xai.ship.eject.cargo.xml i'm using
X3:TC/AP Pirate Guild 3 - Yaki Armada 2 - Anarkis Defense System

Anarkis Gaming HQ
Independent Game Development
X3 Scripting and Modding Station

Shada
Posts: 155
Joined: Fri, 16. Dec 05, 20:47
x3tc

Post by Shada » Wed, 22. Feb 06, 13:23

Nice one, I hate manually placing defences. They always end up looking stupid or shooting each other.

fud
Posts: 6989
Joined: Wed, 25. Jan 06, 15:26
x3

Post by fud » Wed, 22. Feb 06, 17:56

Nice, I'll grab this when I get home.

One question tho, could this be modified to automatically make docked M3s undock when the station's under attack to protect it (then they dock again when the threat is gone)?

User avatar
antagonist
Posts: 182
Joined: Tue, 18. Jan 05, 22:02
x4

Post by antagonist » Wed, 22. Feb 06, 18:14

You'd block the station's docking clamps with that command...
"Man fears the darkness, and so he scrapes away at the edges of it with fire."
Image

User avatar
Serial Kicked
Posts: 3493
Joined: Fri, 12. Aug 05, 20:46
x3tc

Post by Serial Kicked » Wed, 22. Feb 06, 21:25

Thanks all :D
fud wrote:One question tho, could this be modified to automatically make docked M3s undock when the station's under attack to protect it (then they dock again when the threat is gone)?
Nice idea, i'll add this in a future version :)

antagonist wrote:You'd block the station's docking clamps with that command...
No. Except maybe for biggest complexs and eq. docks.
X3:TC/AP Pirate Guild 3 - Yaki Armada 2 - Anarkis Defense System

Anarkis Gaming HQ
Independent Game Development
X3 Scripting and Modding Station

fud
Posts: 6989
Joined: Wed, 25. Jan 06, 15:26
x3

Post by fud » Wed, 22. Feb 06, 22:48

Serial Kicked wrote:Thanks all :D
fud wrote:One question tho, could this be modified to automatically make docked M3s undock when the station's under attack to protect it (then they dock again when the threat is gone)?
Nice idea, i'll add this in a future version :)

Sweet. I asked about it before in a round-about way. The answers/explanations I got went right over my head. :D


I just thought it'd be fairly logical to set {x} number of ships, of any type to protect a station/complex. Rather than having them cruising all over the sector they stay within 3-5km of the station.

User avatar
Azz
Posts: 1031
Joined: Tue, 18. May 04, 20:14
x4

Post by Azz » Wed, 22. Feb 06, 23:59

Fud a écrit:
One question tho, could this be modified to automatically make docked M3s undock when the station's under attack to protect it (then they dock again when the threat is gone)?

The script RS.security do already that

http://forum2.egosoft.com/viewtopic.php?t=112290

But it will be nice that you integrate such a fonction in your script SK :)
iou naud ouate, aille ama pis | Pilote IA | Site

fud
Posts: 6989
Joined: Wed, 25. Jan 06, 15:26
x3

Post by fud » Thu, 23. Feb 06, 16:35

Nice. :thumb_up:

User avatar
Serial Kicked
Posts: 3493
Joined: Fri, 12. Aug 05, 20:46
x3tc

Post by Serial Kicked » Thu, 23. Feb 06, 19:29

Azz wrote:Fud a écrit:
One question tho, could this be modified to automatically make docked M3s undock when the station's under attack to protect it (then they dock again when the threat is gone)?

The script RS.security do already that

http://forum2.egosoft.com/viewtopic.php?t=112290

But it will be nice that you integrate such a fonction in your script SK :)
I know, like there's already some scripts to lay lasertowers grids. But i want to create a "all-in-one" sector defense script in the long term :)
X3:TC/AP Pirate Guild 3 - Yaki Armada 2 - Anarkis Defense System

Anarkis Gaming HQ
Independent Game Development
X3 Scripting and Modding Station

User avatar
BoDgE
Posts: 39
Joined: Sat, 17. Apr 04, 23:25
x4

Post by BoDgE » Fri, 24. Feb 06, 00:39

bugrep: (maybe) :?

I only get the ADS: replace destroyed LTs command in the station command menu.

Am I missing something, or is there a conflict with either burianek and Alaardb's station manager or naffarin's station trader scripts?

I have tried re-downloading an re-istalling them.

:cry:
Computers are wonderful things...
Till windows ****ing crashes again!!!

User avatar
Serial Kicked
Posts: 3493
Joined: Fri, 12. Aug 05, 20:46
x3tc

Post by Serial Kicked » Fri, 24. Feb 06, 04:03

Your TS and M6 with "special command mk1" software should have the two other commands in the general command menu. I've tested both Alaardb and Burianek plugins scripts without any issue.

The only reported issue i had was with the LV's cheat pack. You can't use it with my plugin because they are using the same command slots.

If you're not using the cheat pack, i would be happy to know the whole list of scripts you're using in order to know which script make this issue.
X3:TC/AP Pirate Guild 3 - Yaki Armada 2 - Anarkis Defense System

Anarkis Gaming HQ
Independent Game Development
X3 Scripting and Modding Station

ORIOLE
Posts: 274
Joined: Wed, 20. Oct 04, 10:34
x2

Post by ORIOLE » Tue, 15. Aug 06, 10:09

Is this script X3 1.4 compatible?

Thx :)

User avatar
Serial Kicked
Posts: 3493
Joined: Fri, 12. Aug 05, 20:46
x3tc

Post by Serial Kicked » Tue, 15. Aug 06, 16:16

Yes.
Compatibility: This script should be compatible with all other mods, scripts and plugins for X3 Reunion except for LV's cheat pack.
X3:TC/AP Pirate Guild 3 - Yaki Armada 2 - Anarkis Defense System

Anarkis Gaming HQ
Independent Game Development
X3 Scripting and Modding Station

Khaak_Slayer
Posts: 388
Joined: Sun, 18. Apr 04, 17:04
x4

Post by Khaak_Slayer » Tue, 6. Feb 07, 22:22

Bugger! What the hell is up with all these 403 Forbidden errors i keep getting left, right and center

Post Reply

Return to “X³: Reunion - Scripts and Modding”