Anarkis Defense System - Real Wings Edition v1.16

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

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

Post Reply
User avatar
anachron13
Posts: 144
Joined: Tue, 2. Nov 10, 23:41
x3tc

Post by anachron13 » Sat, 21. Sep 13, 18:26

The last version of ANCC does not modify any file of ADS and i have added a condition check on the flag you use to dock your wings which will start a docking procedure on all scrambled ships. It seems to work fine so far.

For the defensive wing, i have tried it with the menu. It let me pickup a target to defend and the number of wings to send, the wing is correctly renamed but never undock.
I don't use any other script from Serial Kicked, i have removed all previous ADS and ECS file before trying your version. I will try to do more tests on this when i get back home.
I would like to be able to call the send defensive wing script from the overview of my script.

User avatar
anachron13
Posts: 144
Joined: Tue, 2. Nov 10, 23:41
x3tc

Post by anachron13 » Sat, 21. Sep 13, 22:36

I have found a problem which could be related. You have used a new version number (107) which is inferior to the version number of the original ADS scripts (265). So the new hotkeys are not registered and i guess that some things could be missing from the default configuration array.

Edit : modifying the ver number does trigger the setup correctly but it doen't refresh the hotkey or the default settings. I haven't found the 'tactical settings' in the ADS menu, so i guess it return null when the defense script ask for the needed values.

Nicoman35
Posts: 681
Joined: Thu, 17. Nov 05, 13:12
x3tc

Post by Nicoman35 » Sat, 21. Sep 13, 23:32

anachron13 wrote:I have found a problem which could be related. You have used a new version number (107) which is inferior to the version number of the original ADS scripts (265). So the new hotkeys are not registered and i guess that some things could be missing from the default configuration array.
OK, I'll have a look how this could be fixed for games already running. Good you pointed that out.

*EDIT*
OK, anarchon, please open the setup.anarkis.acc.xml, delete all code, copy and paste below code instead. I tidied up the setup a bit, could you tell me how is it working?

Code: Select all

$PageID = 8510
load text: id=$PageID

set script command upgrade: command=[ANARKIS_DOCKALL]  upgrade={Carrier Command Software}
global script map: set: key=[ANARKIS_DOCKALL], class=[M1], race=[Player], script='anarkis.acc.cmd.dock.all.pl', prio=0
global script map: set: key=[ANARKIS_DOCKALL], class=[M7], race=[Player], script='anarkis.acc.cmd.dock.all.pl', prio=0
global script map: set: key=[ANARKIS_DOCKALL], class=[TL], race=[Player], script='anarkis.acc.cmd.dock.all.pl', prio=0
global script map: set: key=[ANARKIS_DOCKALL], class=[TM], race=[Player], script='anarkis.acc.cmd.dock.all.pl', prio=0
global script map: set: key=[ANARKIS_DOCKALL], class=[M2], race=[Player], script='anarkis.acc.cmd.dock.all.pl', prio=0

set script command upgrade: command=[ANARKIS_BUYWARES]  upgrade={Carrier Command Software}
global script map: set: key=[ANARKIS_BUYWARES], class=[M1], race=[Player], script='anarkis.acc.cmd.buywares.pl', prio=0
global script map: set: key=[ANARKIS_BUYWARES], class=[M7], race=[Player], script='anarkis.acc.cmd.buywares.pl', prio=0
global script map: set: key=[ANARKIS_BUYWARES], class=[TL], race=[Player], script='anarkis.acc.cmd.buywares.pl', prio=0
global script map: set: key=[ANARKIS_BUYWARES], class=[TM], race=[Player], script='anarkis.acc.cmd.buywares.pl', prio=0
global script map: set: key=[ANARKIS_BUYWARES], class=[M2], race=[Player], script='anarkis.acc.cmd.buywares.pl', prio=0

set script command upgrade: command=[ANARKIS_SELLWARES]  upgrade={Carrier Command Software}
global script map: set: key=[ANARKIS_SELLWARES], class=[M1], race=[Player], script='anarkis.acc.cmd.sellwares.pl', prio=0
global script map: set: key=[ANARKIS_SELLWARES], class=[M7], race=[Player], script='anarkis.acc.cmd.sellwares.pl', prio=0
global script map: set: key=[ANARKIS_SELLWARES], class=[TL], race=[Player], script='anarkis.acc.cmd.sellwares.pl', prio=0
global script map: set: key=[ANARKIS_SELLWARES], class=[TM], race=[Player], script='anarkis.acc.cmd.sellwares.pl', prio=0
global script map: set: key=[ANARKIS_SELLWARES], class=[M2], race=[Player], script='anarkis.acc.cmd.sellwares.pl', prio=0

set script command upgrade: command=[ANARKIS_STATIONDEFENSE]  upgrade=[TRUE]
global script map: set: key=[ANARKIS_STATIONDEFENSE], class=[Dock], race=[Player], script='anarkis.acc.cmd.call.autostation', prio=0

set script command upgrade: command=[ANARKIS_SETUPSTATION]  upgrade=[TRUE]
global script map: set: key=[ANARKIS_SETUPSTATION], class=[Dock], race=[Player], script='anarkis.acc.setup', prio=0

set script command upgrade: command=[ANARKIS_AUTOCARRIER]  upgrade={Carrier Command Software}
global script map: set: key=[ANARKIS_AUTOCARRIER], class=[M1], race=[Player], script='anarkis.acc.cmd.call.autocarrier', prio=0
global script map: set: key=[ANARKIS_AUTOCARRIER], class=[M7], race=[Player], script='anarkis.acc.cmd.call.autocarrier', prio=0
global script map: set: key=[ANARKIS_AUTOCARRIER], class=[TL], race=[Player], script='anarkis.acc.cmd.call.autocarrier', prio=0
global script map: set: key=[ANARKIS_AUTOCARRIER], class=[TM], race=[Player], script='anarkis.acc.cmd.call.autocarrier', prio=0
global script map: set: key=[ANARKIS_AUTOCARRIER], class=[M2], race=[Player], script='anarkis.acc.cmd.call.autocarrier', prio=0

set script command upgrade: command=[ANARKIS_SETTACTICS]  upgrade={Carrier Command Software}
global script map: set: key=[ANARKIS_SETTACTICS], class=[M1], race=[Player], script='anarkis.acc.setup', prio=0
global script map: set: key=[ANARKIS_SETTACTICS], class=[M7], race=[Player], script='anarkis.acc.setup', prio=0
global script map: set: key=[ANARKIS_SETTACTICS], class=[TL], race=[Player], script='anarkis.acc.setup', prio=0
global script map: set: key=[ANARKIS_SETTACTICS], class=[TM], race=[Player], script='anarkis.acc.setup', prio=0
global script map: set: key=[ANARKIS_SETTACTICS], class=[M2], race=[Player], script='anarkis.acc.setup', prio=0

set script command upgrade: command=[ANARKIS_ATTACKWING]  upgrade={Carrier Command Software}
global script map: set: key=[ANARKIS_ATTACKWING], class=[M1], race=[Player], script='anarkis.ads.wing.attack.pl', prio=0
global script map: set: key=[ANARKIS_ATTACKWING], class=[M7], race=[Player], script='anarkis.ads.wing.attack.pl', prio=0
global script map: set: key=[ANARKIS_ATTACKWING], class=[TL], race=[Player], script='anarkis.ads.wing.attack.pl', prio=0
global script map: set: key=[ANARKIS_ATTACKWING], class=[TM], race=[Player], script='anarkis.ads.wing.attack.pl', prio=0
global script map: set: key=[ANARKIS_ATTACKWING], class=[M2], race=[Player], script='anarkis.ads.wing.attack.pl', prio=0

set script command upgrade: command=[ANARKIS_DEFENSIVEWING]  upgrade={Carrier Command Software}
global script map: set: key=[ANARKIS_DEFENSIVEWING], class=[M1], race=[Player], script='anarkis.ads.wing.defense.pl', prio=0
global script map: set: key=[ANARKIS_DEFENSIVEWING], class=[M7], race=[Player], script='anarkis.ads.wing.defense.pl', prio=0
global script map: set: key=[ANARKIS_DEFENSIVEWING], class=[TL], race=[Player], script='anarkis.ads.wing.defense.pl', prio=0
global script map: set: key=[ANARKIS_DEFENSIVEWING], class=[TM], race=[Player], script='anarkis.ads.wing.defense.pl', prio=0
global script map: set: key=[ANARKIS_DEFENSIVEWING], class=[M2], race=[Player], script='anarkis.ads.wing.defense.pl', prio=0

set script command upgrade: command=[ANARKIS_CLEANSECTOR]  upgrade={Carrier Command Software}
global script map: set: key=[ANARKIS_CLEANSECTOR], class=[M1], race=[Player], script='anarkis.acc.wing.clearsector.pl', prio=0
global script map: set: key=[ANARKIS_CLEANSECTOR], class=[M7], race=[Player], script='anarkis.acc.wing.clearsector.pl', prio=0
global script map: set: key=[ANARKIS_CLEANSECTOR], class=[TL], race=[Player], script='anarkis.acc.wing.clearsector.pl', prio=0
global script map: set: key=[ANARKIS_CLEANSECTOR], class=[TM], race=[Player], script='anarkis.acc.wing.clearsector.pl', prio=0
global script map: set: key=[ANARKIS_CLEANSECTOR], class=[M2], race=[Player], script='anarkis.acc.wing.clearsector.pl', prio=0

set script command upgrade: command=[ANARKIS_DEFENDCARRIER]  upgrade={Carrier Command Software}
global script map: set: key=[ANARKIS_DEFENDCARRIER], class=[M1], race=[Player], script='anarkis.acc.wing.defendcarrier.pl', prio=0
global script map: set: key=[ANARKIS_DEFENDCARRIER], class=[M7], race=[Player], script='anarkis.acc.wing.defendcarrier.pl', prio=0
global script map: set: key=[ANARKIS_DEFENDCARRIER], class=[TL], race=[Player], script='anarkis.acc.wing.defendcarrier.pl', prio=0
global script map: set: key=[ANARKIS_DEFENDCARRIER], class=[TM], race=[Player], script='anarkis.acc.wing.defendcarrier.pl', prio=0
global script map: set: key=[ANARKIS_DEFENDCARRIER], class=[M2], race=[Player], script='anarkis.acc.wing.defendcarrier.pl', prio=0

$ver = read text: page=$PageID id=101
$ver = string $ver to integer
$c.ver = get global variable: name='anarkis.rwe.ads.plugin'
$old.ads.ver = get global variable: name='anarkis.acc.plugin'
set global variable: name='anarkis.ads.manager.open' value=null

* New install, add hotkeys
if $c.ver == null AND $old.ads.ver == null
= [THIS]-> call script 'anarkis.acc.hotkey.install' : page.id=$PageID
$gl.setup = [THIS]-> call script 'anarkis.ads.setup.init' : page.id=$PageID
$msg = sprintf: pageid=$PageID textid=103, $ver, null, null, null, null
send incoming message $msg to player: display it=[TRUE]
START [THIS]-> call script 'anarkis.acc.ecs.register' :
= null-> call script 'anarkis.lib.get.wingnames' :

* Upgrade Needed
else if $ver > $c.ver OR $old.ads.ver
set global variable: name='anarkis.acc.plugin' value=null
$update = [TRUE]
= [THIS]-> call script 'anarkis.acc.hotkey.uninstall' :
= [THIS]-> call script 'anarkis.acc.ecs.remove' :
$gl.setup = [THIS]-> call script 'anarkis.ads.setup.init' : page.id=$PageID
= [THIS]-> call script 'anarkis.acc.upgrade.disable' :
= [THIS]-> call script 'anarkis.acc.upgrade.enable' :
= [THIS]-> call script 'anarkis.acc.ecs.register' :
= [THIS]-> call script 'anarkis.acc.hotkey.install' : page.id=$PageID
$msg = sprintf: pageid=$PageID textid=104, $ver, null, null, null, null
null-> send incoming message: text=$msg temporary=[FALSE]
end
set global variable: name='anarkis.rwe.ads.plugin' value=$ver

return null
anachron13 wrote:Edit : modifying the ver number does trigger the setup correctly but it doen't refresh the hotkey or the default settings. I haven't found the 'tactical settings' in the ADS menu, so i guess it return null when the defense script ask for the needed values.
The tactical settings sould be found when you open the setup menu, hangars, setup docked ships. It is not related to any hotkey. You do not see that secton at all??

User avatar
anachron13
Posts: 144
Joined: Tue, 2. Nov 10, 23:41
x3tc

Post by anachron13 » Sun, 22. Sep 13, 15:37

My bad, i wasn't looking at the right place for the new menu part. Everything was indeed present but set to null before you new install script.

It is working fine with your updated setup script, and it actually work perfectly with the defend command from ANCC Scramble now which is nice :)

Nicoman35
Posts: 681
Joined: Thu, 17. Nov 05, 13:12
x3tc

Post by Nicoman35 » Sun, 22. Sep 13, 16:55

anachron13 wrote:My bad, i wasn't looking at the right place for the new menu part. Everything was indeed present but set to null before you new install script.

It is working fine with your updated setup script, and it actually work perfectly with the defend command from ANCC Scramble now which is nice :)
YEAH

User avatar
anachron13
Posts: 144
Joined: Tue, 2. Nov 10, 23:41
x3tc

Post by anachron13 » Sun, 22. Sep 13, 18:45

Now that i have more time to test your version of ADS, i was wondering if when a wing is launched via your scripts the high pitched sound following by the flood (audio and in subtitle) of "momomomomomosquitos missiles not installed" and "weapon systems not available" is intended?

Nicoman35
Posts: 681
Joined: Thu, 17. Nov 05, 13:12
x3tc

Post by Nicoman35 » Sun, 22. Sep 13, 19:20

Oh, another miss of mine. I use MDM if it is installed to protect the wingships. MDMc (convoy protection) is started on the leadership, all followers have the normal version. Normally, when MDM runns on a ship belonging to the player, and no suitable missiles are to be found by MDM, a 'mosquitos missiles not installed' will be heared. You do not have to sit in that ship to hear the message. On my PC, I changed this behaviour of MDM. Now, I only hear that message if MDM does not find any missile on the PLAYERSHIP.
I forgot about that in the meantime :). Will fix that in the next version by making an extra check before activating MDM on wingships. Sorry for that hassle.

BrandonM3
Posts: 2
Joined: Sun, 22. Sep 13, 22:59
x4

Post by BrandonM3 » Mon, 30. Sep 13, 03:53

I'm having an issue with it not detecting my Cerberus. It works for my Magnatar just fine. I was poking thru the scripts to see if the cerberus is something different than an M7 but I couldn't find an obect group that it might be in instead. However my knowledge of scripting in x3. Is very limited.

Nicoman35
Posts: 681
Joined: Thu, 17. Nov 05, 13:12
x3tc

Post by Nicoman35 » Mon, 30. Sep 13, 10:02

BrandonM3 wrote:I'm having an issue with it not detecting my Cerberus. It works for my Magnatar just fine. I was poking thru the scripts to see if the cerberus is something different than an M7 but I couldn't find an obect group that it might be in instead. However my knowledge of scripting in x3. Is very limited.
Carrier command software installed?

Nicoman35
Posts: 681
Joined: Thu, 17. Nov 05, 13:12
x3tc

Post by Nicoman35 » Wed, 2. Oct 13, 15:33

There was a command missmatch in the setup of v1.09 - fixed this. Please redownload everyone experiencing problems - sorry for the hassle.

Vayde
Posts: 849
Joined: Fri, 6. Feb 04, 21:02
x3tc

Post by Vayde » Wed, 2. Oct 13, 19:27

Hi Nicoman35,

Considering the work you have put into making this script set, the occasional oops is of no consequence. The hassle factor is also none existent.

Great work, keep it up.

Vayde
Still life in the old dog yet...

Nicoman35
Posts: 681
Joined: Thu, 17. Nov 05, 13:12
x3tc

Post by Nicoman35 » Wed, 2. Oct 13, 23:44

Vayde wrote:Hi Nicoman35,

Considering the work you have put into making this script set, the occasional oops is of no consequence. The hassle factor is also none existent.

Great work, keep it up.

Vayde
:)

Murp
Posts: 2
Joined: Wed, 2. Oct 13, 15:52

Post by Murp » Fri, 4. Oct 13, 08:20

Pirate Guild 3 doesn't seem to be able to detect ADS on my X3AP.
Am I doing something wrong ? O:
Any help would be appreciated

User avatar
anachron13
Posts: 144
Joined: Tue, 2. Nov 10, 23:41
x3tc

Post by anachron13 » Fri, 4. Oct 13, 08:42

This is probably because Pirate Guild 3 detect ADS based on is version variable which as changed in rwe. This is not necessarily a bad thing as i think the auto carrier part needed by Pirate Guild 3 is actually not working correctly. You should wait for a new version.
Last edited by anachron13 on Fri, 4. Oct 13, 09:27, edited 2 times in total.

Murp
Posts: 2
Joined: Wed, 2. Oct 13, 15:52

Post by Murp » Fri, 4. Oct 13, 08:44

Alright then.
Thanks (:

Nicoman35
Posts: 681
Joined: Thu, 17. Nov 05, 13:12
x3tc

Post by Nicoman35 » Fri, 4. Oct 13, 09:48

Yeah, I think Anarchon is right. Serial Kicked's Pirate Guild 3 And Yaki Armada 2. Are also quite big mods, they use to a certain extent the same files as ADS. One would have to look at that mods how they work and then make changes to get them working with ads.
When I think of the necessary work I *shudder*.
But there might be a simple solution though.

User avatar
anachron13
Posts: 144
Joined: Tue, 2. Nov 10, 23:41
x3tc

Post by anachron13 » Fri, 4. Oct 13, 22:35

Since the last version, my wing were named 'null null'. After a bit of investigation it seems that you only call the 'anarkis.lib.get.wingnames' script in the setup if there was no previous version of ADS RWE, not in a case of upgrade. Maybe you should check if the global variable is still properly set on upgrade to avoid this.

Nicoman35
Posts: 681
Joined: Thu, 17. Nov 05, 13:12
x3tc

Post by Nicoman35 » Sat, 5. Oct 13, 10:17

anachron13 wrote:Since the last version, my wing were named 'null null'. After a bit of investigation it seems that you only call the 'anarkis.lib.get.wingnames' script in the setup if there was no previous version of ADS RWE, not in a case of upgrade. Maybe you should check if the global variable is still properly set on upgrade to avoid this.
Thanks for feedback, check, if the nex fix does - well - fix this.

User avatar
anachron13
Posts: 144
Joined: Tue, 2. Nov 10, 23:41
x3tc

Post by anachron13 » Sat, 5. Oct 13, 13:28

It works but your new version number (1.09a) doesn't really like the string to integer command :wink:

Nicoman35
Posts: 681
Joined: Thu, 17. Nov 05, 13:12
x3tc

Post by Nicoman35 » Sat, 5. Oct 13, 15:08

anachron13 wrote:It works but your new version number (1.09a) doesn't really like the string to integer command :wink:
ARGH! Kill me!
Looking for this tomorrow.

Post Reply

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