[SCRIPT] Weapons Changer v2.50 [Updated 15/07/07]
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
Hehe yea that can be a problemrussbo wrote:Yes, it is a superb script. Shame it can't be more "user friendly", but that's probably my own problem. Just can't seem to remember the different numbers and what they do, LOL. I use it all the time, and find it indispensable.
I placed the heaviest weaponry on "1" and the lesser on "2"
That way i use to remember which is which
On my python 1 is for capital ships and 2 for fighters
Havent used the third loadout option yet...
-
- EGOSOFT
- Posts: 13093
- Joined: Sat, 9. Nov 02, 11:45
Re: [SCRIPT] Weapons Changer v1.45
I hope this helps you and other people. If you set the ware as string variable it should clear the turret. e.gBunny wrote:Technical Note:
There appears to be a slight bug with script editor command <RefObj>switch laser in turret <Var/Number> gun <Var/Number> to <Var/Ware>. A null ware does not clear the weapons slot (that was fun to work around )
Code: Select all
$TestVar = 'Test'
<[PLAYERSHIP]>switch laser in turret <1> gun <1> to <$TestVar>.
Come watch me on Twitch where I occasionally play several of the X games
Thank You Bunny!!!
This script has GREATLY helped with my Assassin (Cycrow's) missions. I like to use 8 APBEs when dealing with wingman, since the capure rate seems higher, then switch to the AHEPTS for the big guys. I was getting tired of having to exit the fight in order to install the HEPTS, then reentering. Now, I just lay on the PBEs until the shields are dropped, and hotkey to the full set of HEPTS to wipe the space lanes of the filth that is my primary target..
This is definately somthing that should have been originally put into the vanilla game.
Keep up the good work. I have been telling all my friends to get this mod--and, hopefully they will. This single mod has absolutely changed the way i loadout all of my ships....Thanks again
This script has GREATLY helped with my Assassin (Cycrow's) missions. I like to use 8 APBEs when dealing with wingman, since the capure rate seems higher, then switch to the AHEPTS for the big guys. I was getting tired of having to exit the fight in order to install the HEPTS, then reentering. Now, I just lay on the PBEs until the shields are dropped, and hotkey to the full set of HEPTS to wipe the space lanes of the filth that is my primary target..
This is definately somthing that should have been originally put into the vanilla game.
Keep up the good work. I have been telling all my friends to get this mod--and, hopefully they will. This single mod has absolutely changed the way i loadout all of my ships....Thanks again
Cool!
I'll give this one a try.
It strikes me, that the way the the weapons confiiguration stands in vanila game is incomplete. Having 8 primary slots that empty the energy reserves in quick order, instead of 2 primary slots, switchable between different weapons sets seems odd. Also the fact that the AI always uses the last configuration regardless, has led to the demise of some of my prize ships, simply because I was using them in capture mode and had left them without teeth.
Your readme looks like the script will redress some of this. I look forward to testiing it.
One thing I see that would possibly be useful. A ceasefire hotkey. I guess it would be possible to set one of your modes to empty to achieve this, but a dedicated ceasefire mode would be a godsend.
Here is an example.
I'm in sector, in a small ship, and and have a large ship with a PPC loadout present. A pirate harrier raider decides to have a pop at the cap ship, so it responds by spraying PPC all over the place. By the time I've accessed the ships menu to unload the cannons, it's too late, and destroyed half the stations. An over exaggeration I know, but the point stands. A simple ceasefire command would really help here.
I'll give this one a try.
It strikes me, that the way the the weapons confiiguration stands in vanila game is incomplete. Having 8 primary slots that empty the energy reserves in quick order, instead of 2 primary slots, switchable between different weapons sets seems odd. Also the fact that the AI always uses the last configuration regardless, has led to the demise of some of my prize ships, simply because I was using them in capture mode and had left them without teeth.
Your readme looks like the script will redress some of this. I look forward to testiing it.
One thing I see that would possibly be useful. A ceasefire hotkey. I guess it would be possible to set one of your modes to empty to achieve this, but a dedicated ceasefire mode would be a godsend.
Here is an example.
I'm in sector, in a small ship, and and have a large ship with a PPC loadout present. A pirate harrier raider decides to have a pop at the cap ship, so it responds by spraying PPC all over the place. By the time I've accessed the ships menu to unload the cannons, it's too late, and destroyed half the stations. An over exaggeration I know, but the point stands. A simple ceasefire command would really help here.
There is a script to toggle ALL turret commands on/off and there is the AEGIS light script, allowing preselected turret commands much like Bunny's weapon changer.
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
Thanks Bunny I have just been testing it.
It works great by the way. Other than the previous comments made here, it's worth pointing out that the ego weapon config selections ie What slots are firing, take precedance. So, if you leave a ship firing only one slot, that's how it stays. I'm not sure if this is controlable from a script.
Aegis Lite can be found here.
http://forum.egosoft.com/viewtopic.php?t=143932
It's German only as far as I see und mien Deutsch ist nicht shon gut.
It works great by the way. Other than the previous comments made here, it's worth pointing out that the ego weapon config selections ie What slots are firing, take precedance. So, if you leave a ship firing only one slot, that's how it stays. I'm not sure if this is controlable from a script.
Aegis Lite can be found here.
http://forum.egosoft.com/viewtopic.php?t=143932
It's German only as far as I see und mien Deutsch ist nicht shon gut.
Last edited by Squelch on Sat, 24. Mar 07, 19:25, edited 1 time in total.
It occurred to me that since the mainscript on task whatever is running permanently and therefore there is a delay when giving orders to other ships, mostly when saving their base config.
If your setstate script would not just check IF the mainscript runs but also kick it out and restart a new mainscript... there would be no delay if the player personally gives an order.
I assume the configs are saved in local variables anyway so this would not matter. =)
If your setstate script would not just check IF the mainscript runs but also kick it out and restart a new mainscript... there would be no delay if the player personally gives an order.
I assume the configs are saved in local variables anyway so this would not matter. =)
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
Nope the configs are not in locals that's why this script must be manually restarted.
With 3 configuration on a titan that would be 120 variables it seemed a bit excessive to try and store the arrays as locals.
The script was originally written and tested in 2 days flat and the idea was it would be the finished version that would not need expanding.
However, we now have the upgrade ideas for this.
Time for the flames.
With 3 configuration on a titan that would be 120 variables it seemed a bit excessive to try and store the arrays as locals.
The script was originally written and tested in 2 days flat and the idea was it would be the finished version that would not need expanding.
However, we now have the upgrade ideas for this.
Time for the flames.
Hi Bunny,
I have run into a problem/bug.
I mainly use it on my M7. It works as expected while I'm piloting it, or if I undock my LX, IS/OOS modes etc appear to work too. Until I dock again. Then it will ignore all input. Either hotkey or via menu.
I've run debug on it and cannot see anything different while it's zombie state from normal operation. All variables are the same and the configs are still there. A debug log shows it cycling in While $State loop with a value of 7, but doesn't appear to register new input at all.
I haven't the foggiest why this is happening, and the only way get it running again is to:
run your hotkey removal
save
remove scripts
reload
save
reinstall scripts
reload
reassign hotkey and start mode 7
Incidentley I don't see a way to shut the script down. It's still running after the first reload, and the variables are still intact. I even tried to manualy run the main script with a value of 0 without result. Only after the second reload and hotkey reassignment does it behave again.
The only other scripts running on the ship are missile defense, and I have Hot turret switch installed. Both still function.
I hope this report helps, and you can recreate it. It's late now and my eyes are sore trying to work this one out.
It's a learning thing
I have run into a problem/bug.
I mainly use it on my M7. It works as expected while I'm piloting it, or if I undock my LX, IS/OOS modes etc appear to work too. Until I dock again. Then it will ignore all input. Either hotkey or via menu.
I've run debug on it and cannot see anything different while it's zombie state from normal operation. All variables are the same and the configs are still there. A debug log shows it cycling in While $State loop with a value of 7, but doesn't appear to register new input at all.
I haven't the foggiest why this is happening, and the only way get it running again is to:
run your hotkey removal
save
remove scripts
reload
save
reinstall scripts
reload
reassign hotkey and start mode 7
Incidentley I don't see a way to shut the script down. It's still running after the first reload, and the variables are still intact. I even tried to manualy run the main script with a value of 0 without result. Only after the second reload and hotkey reassignment does it behave again.
The only other scripts running on the ship are missile defense, and I have Hot turret switch installed. Both still function.
I hope this report helps, and you can recreate it. It's late now and my eyes are sore trying to work this one out.
It's a learning thing
Hi,
I can't change the weapons loadout of my Xenon K, doesn't matter of I control it or if it is docked. When I load a weapons (manually, one by one), the configuration is reseted, there is a weapon in every 8th bank of the craft. I've tried to cleared the weapons configuration (mode 0), but I have yet to specify a weapons config A,B or C!!
Any clue of what's going on?
THanks!
I can't change the weapons loadout of my Xenon K, doesn't matter of I control it or if it is docked. When I load a weapons (manually, one by one), the configuration is reseted, there is a weapon in every 8th bank of the craft. I've tried to cleared the weapons configuration (mode 0), but I have yet to specify a weapons config A,B or C!!
Any clue of what's going on?
THanks!