[SCRIPT] Anarkis Defense System - v2.65.1 - [2010-08-13]

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

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

ragamer
Posts: 523
Joined: Wed, 6. Nov 02, 20:31
x4

Post by ragamer »

First of all congrats for the effort done in this set of scripts.

A comment regarding autonaming logic:

- I haven't found a way to deactivate it in the global setup (index 15) variable besides hacking the Default Values.

- On the script "anarkis.acc.task.autoname" lines 006 and 007 there is a potential problem if the variable do not exist that results on what I have observed that all my fighters are renamed to the default "Your blah blah" as when you cap a fighter at the very moment I call for a strike (anarkis.acc.wing.attack calls this script each time you issue the order) from the carrier I'm currently piloting. Probably because line 007 is called with a null argument because "anarkis.ass.task.autoname.plus" has never been executed so far as I only have a single light carrier I'm always piloting.

The variable could be created and/or rechecked when you "enable" a docked fighter for ADS to manage or each time you rename all your fighters using the rename menu.

EDIT: I made a small modification on your "anarkis.acc.setup.hangar" to register the old name when a ships is activated manually or using the "add all" option and the small glitch dissapeared completely.
Last edited by ragamer on Mon, 8. Jun 09, 15:50, edited 1 time in total.
Lancefighter
Posts: 3144
Joined: Sun, 19. Dec 04, 02:41
x4

Post by Lancefighter »

Arnaud3385 wrote:salut j ai bien réusi a installer mais quand je vais sur scripts editor je ne trouve pas le scrips nommé " anarkis.cheat.* " quesque je doit faire merci d avance....

Il n'y a pas de script par le nom de "anarkis.cheat" dans le téléchargement, vous trouverez tout shouldnt dans votre éditeur de script

In english -
i believe you asked why you cant find 'anarkis.cheat' scripts in your script editor

I stated that there werent any by that name in the download
ragamer
Posts: 523
Joined: Wed, 6. Nov 02, 20:31
x4

Post by ragamer »

Hello again...

I have found another glitch... This is a weird combo probably so I'm going to describe the scenario for you to reproduce it, k?.

The glitch is that sometimes I loose a lot of fighters because they collide in the hangar. The problem is that the "line" of ships docking is broke (and redone) each time one of the ships dock... So if the next ship is close enough (or even into) the hangar, it will collide to its death (collision detection is activated at that moment). Probably is a difference on EGO commands used...


I will give you 2 examples using your own scripts for you to see the difference, k?:

Setup:
- Carrier: Panther M7.
- Fighters Types: Cutlass, Eclipse and Sabre.

I launch a 8-fighters wing to attack a target (this is just to make them linked by your scripts). The 2 ways to call them back yield different results:

a) I call all of them back using your command "Dock All".
RESULT: They all form a docking line and all enter one after the other in a row without problems.

b) I instruct ONLY the wing leader (the 1st ship launched) to dock (Using vanilla "Return Home" command).
RESULT: The wing leader docks and then each time one of the followers docks, the "docking line" is fully reformed... At some point one of the followers will get stuck and destroyed. The same happens when you send an "Attack Wing" to intercept and there is no more targets available so it returns autonomously to the carrier.

OFC this is only an issue IS and looks a problem with the action "Landing in Station" when the ships belong to a formation.
ragamer
Posts: 523
Joined: Wed, 6. Nov 02, 20:31
x4

Post by ragamer »

I'm really enjoying your script more the more I'm using it :).

A suggestion:

- The "Buy Wares" command is very useful but can we have an option to make the Ware List persistent and the ammounts there to be converted into stock levels to keep? So we can configure a "desired stock list" per carrier for the fighters to try to fill up each time the command is executed?

I ask because I'm usually finding myself using the same ammount of Max Energy Cells, max ammount of Missile, etc, etc and could rock to just keep the list (and ammounts) memorized to order a full restock in just 2 "clicks".
User avatar
Serial Kicked
Posts: 3823
Joined: Fri, 12. Aug 05, 20:46
x3tc

Post by Serial Kicked »

New release!

On demand i've now added a delay before ships will return home (works for both Automated Carrier and station's Sector Defense). Fighter wings will fly around the carrier until the delay is passed. If an enemy breach the defense perimeter during this time, the battle will be resumed. If not, ships will dock. You can change the delay in the setup menu or even cancel this feature by setting the delay to 0.

Also, the target selection mechanism improved so you won't have far away wings doing nothing when enemies are near the carrier/dock. It was mainly happening when you set the radar range over the usual Triplex Scanner distance.

I've also corrected a silly bug that was preventing the biggest wing to protect the carrier/station when it's under attack by another 'big ship'.

----

Download Note : It seems that my server is currently down, however files have been uploaded, so please be patient. Thanks .

----

@ragamer: Thanks for the input, i don't have the time to give a full answer today, but i've copied your messages and i'll investigate :)

@fud: The issue is related to your radar range beeing too long. It has been corrected with this version. Enjoy :)
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 »

Ok, I've installed the newest version, got the update IM when loaded.


But fighters still don't do anything. They launch, then idle. Even with an enemy ship within 3km of them (they're set to 10km in the auto carrier settings)..


At this point, they're pretty much worthless.


Another thing, maybe connected, maybe not. When I assign said fighters to protect a given ship, they don't do anything. They follow, but only idle when the target ship is attacked....

Is it something with the actual attack script?
GobsmackedIII
Posts: 107
Joined: Thu, 29. Jan 09, 14:32
x3tc

Post by GobsmackedIII »

I have this script and MARS, one of the two is stopping the correct ship from being created in the Treasure Hunt in 2.1, instead of the prize you are expecting you get a Mammouth..., you might want to check this.
MutantDwarf
Posts: 716
Joined: Tue, 20. Jun 06, 02:29
x4

Post by MutantDwarf »

That doesn't sound right. The prize ship was already in the game files - there's no reason for any mod to make it somehow become some other ship. A script certainly wouldn't do it - only a modification of TShips or the Mission Director file would do that. I don't think ADS mods TShips, either, and the tiny change to TShips in MARS won't do what you're saying.

Do you have any other mods or scripts installed?
Langy the Mutant Dwarf
fud
Posts: 9837
Joined: Wed, 25. Jan 06, 14:26
x3

Post by fud »

ADS is scripts only. There's nothing modding Tships (which your issue sounds like an indexing problem with Tships).


MARS only adds a couple lines at the end, which again, shouldn't affect anything.

In fact, if it did, you'd get a CTD/corrupt save game when loading an existing game.
GobsmackedIII
Posts: 107
Joined: Thu, 29. Jan 09, 14:32
x3tc

Post by GobsmackedIII »

They are the only two scripts I have installed, I did install the OOS rebalance, but my PC could not run it. I just copied back the clean Scripts and t folder and then copied MARS and this script into those folders. I have not touched the mission director folder and MARS was the only thing to change TShips. I will check teh MARS thread.
fud
Posts: 9837
Joined: Wed, 25. Jan 06, 14:26
x3

Post by fud »

It sounds like an MD bug in the new patch, to me.
GobsmackedIII
Posts: 107
Joined: Thu, 29. Jan 09, 14:32
x3tc

Post by GobsmackedIII »

It seems to be the MARS repair drones mod that means I have a 2.0 version of TShips. So its nothing to do with this script, which I really like by the way.
fud
Posts: 9837
Joined: Wed, 25. Jan 06, 14:26
x3

Post by fud »

Ah. That might do it.

The 2.1 Tships is different indeed.
GobsmackedIII
Posts: 107
Joined: Thu, 29. Jan 09, 14:32
x3tc

Post by GobsmackedIII »

Any advice on how to sort it out? I am completely stumped...
Sahvion
Posts: 311
Joined: Fri, 5. Dec 03, 01:51
x3tc

Post by Sahvion »

I'm kind of curious why this version of Anarkis wasn't made into a .spk like the other....
ragamer
Posts: 523
Joined: Wed, 6. Nov 02, 20:31
x4

Post by ragamer »

Another suggestion. This time goes to "Wing" configurations. The logic I use to setup/select my fighters is basically configuring them against specific targets by creating homogenous speed wings with adecuate weapons to kill the average target that travels at that speed. That gives minimum interception time (and usually kill time also).

When I instruct "Clear Sector" or the "Send Attack Wing" the resulting wings usually contain one of my Slow Heavy Bombers, making them very slow at intercepting some targets.

The Mixed wings created based on Thread Level are nice for the "Clear Sector" (And Protect Target) but as the "Send Attack Wing" requires a Target I wonder if we could get some extra options to only consider fighters that are as fast as possible against that particular target.

I was thinking on how to do this from your script PoV and this is the suggestion I came with:

- Allow for a Carrier Based Option on Hangars ("Setup Fighters", probably) to "Match Speed of Target on Attack Wings" which would be the minimum speed (0 disable this option, 100% default value) a figher should have to qualify for belonging to an Attack Wing against a given target (A typical value of 150% would yield adequate intercept speed wings). Notice that this option just signals a preference... If at some point, there are not enough fighters to fullfill the Threat MUltiplier (see below) the Wing will be configured ignoring this option, as it's the responsability of a Carrier Commander to not strech thin his fighter complement.

Collaterally I would also create another Option Parameter on "Setup Fighters" to control the Threat Level multiple an Attack Wing should honor:

- Threat Level Multiplier (Default 3). The ammount of "Fighter Power" each "Attack Wing" configuration will try to match. It's a multiplier based on the basic Threat Level of your target... A value of 3 will make an Attack Wing against a M3 to be made of 3xM3.


I was also thinking on a way to tell ADS to NOT use specific fighters against specific targets (Namelly, Xenon, Khaak and Yaki) but that would require someking of Flag Labelling system that will make ADS a bit more complex than you have already expressed ADS is meant to be.

EDIT: Clarified some concepts


EDIT2:

Could also rock that an Attack Wing configured like above would show a "preference" for similar targets as the original one selected by the Commander once the current one is destroyed.
crimson522
Posts: 36
Joined: Thu, 28. May 09, 23:07
x4

Post by crimson522 »

i think i found a bug with this. everytime i send my fighters out with the "attack my target" hotkey the names of all the fighters reset to the default "your (ship name)". this is fustrating since alot of my fighters r of the same type and i wana be able to tell each one apart
User avatar
kerDajan
Posts: 74
Joined: Sun, 20. Aug 06, 20:33
x4

Post by kerDajan »

@Serial Kicked
Any word on your server status? I'm assuming their still down atm?
shinyclef
Posts: 32
Joined: Sun, 2. Sep 07, 13:25

Post by shinyclef »

I have never been able to access the server. I don't think it's down, I think it's inaccessible to some parts of the world...
I'm in Japan. But I really want these scripts!!
Mzuz
Posts: 25
Joined: Fri, 10. Apr 09, 04:01
x3tc

Post by Mzuz »

None of my ships launched through this mod from my panther will dock. They all piss about around the back of the ship and constantly switch from the dock command, to either target the target of my ship (which is nothing) or "Retreat". They will not dock, and nothing I've tried to do will get them to dock again.

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”