Anarkis Defense System - Real Wings Edition v1.16
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
- anachron13
- Posts: 144
- Joined: Tue, 2. Nov 10, 23:41
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.
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.
- anachron13
- Posts: 144
- Joined: Tue, 2. Nov 10, 23:41
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.
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.
OK, I'll have a look how this could be fixed for games already running. Good you pointed that out.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.
*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
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??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.
- anachron13
- Posts: 144
- Joined: Tue, 2. Nov 10, 23:41
YEAHanachron13 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
- anachron13
- Posts: 144
- Joined: Tue, 2. Nov 10, 23:41
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.
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.
Carrier command software installed?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.
- anachron13
- Posts: 144
- Joined: Tue, 2. Nov 10, 23:41
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.
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.
When I think of the necessary work I *shudder*.
But there might be a simple solution though.
- anachron13
- Posts: 144
- Joined: Tue, 2. Nov 10, 23:41
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.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.
- anachron13
- Posts: 144
- Joined: Tue, 2. Nov 10, 23:41