[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: 3823
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, 02: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: 3823
Joined: Fri, 12. Aug 05, 20:46
x3tc

Dev Notes and Changelog

Post by Serial Kicked » Wed, 22. Feb 06, 02: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: 156
Joined: Fri, 16. Dec 05, 19:47
x3tc

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

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

fud
Posts: 9837
Joined: Wed, 25. Jan 06, 14:26
x3

Post by fud » Wed, 22. Feb 06, 16: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)?

PainGod85
Posts: 200
Joined: Tue, 18. Jan 05, 21:02
x4

Post by PainGod85 » Wed, 22. Feb 06, 17: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."
[ external image ]

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

Post by Serial Kicked » Wed, 22. Feb 06, 20: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: 9837
Joined: Wed, 25. Jan 06, 14:26
x3

Post by fud » Wed, 22. Feb 06, 21: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, 22: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: 9837
Joined: Wed, 25. Jan 06, 14:26
x3

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

Nice. :thumb_up:

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

Post by Serial Kicked » Thu, 23. Feb 06, 18: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 » Thu, 23. Feb 06, 23: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: 3823
Joined: Fri, 12. Aug 05, 20:46
x3tc

Post by Serial Kicked » Fri, 24. Feb 06, 03: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: 324
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: 3823
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: 403
Joined: Sun, 18. Apr 04, 17:04
x4

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

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

Deleted User

Post by Deleted User » Mon, 22. Oct 07, 21:21

Hate to bump up the topic. But I have been looking around and I'm unable to find this hosted anywhere, seeing as Serial Kicked is unavailable. (Wish Xai-Corp hosted this one too). Could anyone that has it email it to me?

Neeko
Posts: 5
Joined: Sat, 4. Aug 07, 00:55
x3

Post by Neeko » Fri, 14. Dec 07, 18:04

I want to download this mod, so I hope no one minds if I bump htis in effort of finding someone who can send me the script.

User avatar
Malakie
Posts: 1061
Joined: Tue, 13. Apr 04, 23:08
x4

Post by Malakie » Fri, 14. Dec 07, 21:38

Neeko wrote:I want to download this mod, so I hope no one minds if I bump htis in effort of finding someone who can send me the script.
Same here.. been looking for this script as well... Anyone who has it, please pass it along if possible! Thanks

Malakie

angrysquirrel
Posts: 267
Joined: Tue, 18. Nov 03, 00:46
x3

Post by angrysquirrel » Tue, 25. Dec 07, 13:47

me too! If someone has this script could you please let me know where I can download it? Thanks!

Tarthrin
Posts: 29
Joined: Tue, 24. Aug 04, 20:13
x3tc

Post by Tarthrin » Fri, 4. Jan 08, 15:14

Still hunting around for this script.

The only other lasertower scripts I've seen charge you for them and then create them out of thin air. This one does what I want, uses the lasertowers that I have collected/produced. No offense to the other scripts, I just don't like creating things to buy from nothing, its like messing with the economy (or ignoring it actually).

Post Reply

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