EnglishGermanFrenchRussianPolishItalianSpanish
Log inRegister
 
[SCRIPT]-(31-08-09)-Weapon Select Extension v2.00
Post new topic Reply to topic Goto page 1, 2, 3, 4, 5  Next
View previous topic :: View next topic
Author Message
WindsOfBoreas





Joined: 03 Aug 2008

Location: Paranid Space - Killing the Fundamentalists

modified
PostPosted: Fri, 16. Jan 09, 22:05    Post subject: [SCRIPT]-(31-08-09)-Weapon Select Extension v2.00 Reply with quote Print

Weapon Select Extension

Download

FileFront Downloads



Changelog

    Version 2.00
  • Complete Re-write

    Version 1.00
  • Project Start


What this Does...

There are six (6) hotkeys added:

  • WSE: Fire Missile 01
  • WSE: Fire Missile 02
  • WSE: Fire Missile 03
  • WSE: Fire Missile 04
  • WSE: Menu
    • This hotkey has multi-press functionality.

  • WSE: Quick-Profile
    • This hotkey has multi-press functionality.


WSE also adds one command to the Combat Commands section:
  • WSE: Switch Profile - Slot 355

There are configurable options to this plugin:

  • Change Multi-Press Delay Timer - Select this option to change the delay of the multi-press. The minimum is two hundred (200) milliseconds and four hundred (400) milliseconds. The default is two hundred and fifty (250) milliseconds.

  • Weapon Select Extension Lite - Only allows for the creation of Global and Personal Ship Profiles.

  • No Weapon Selected Empties Gun - If you do not select a weapon while creating a profile, the gun will be emptied when switching profiles. There is also a Empty Gun gun option in the create profile list. Leave this on False to keep the current weapon installed.

  • No Weapon in Hold Empties Gun - If you do not have enough of the weapons you listed in the profile in the ship's hold, the guns that should install the laser will be emptied. Leave this on False to keep the current weapon installed.


The Weapon Select Extension (WSE) allows the player to create weapon profiles designated to specific categories.

The categories are:

  1. Global - Create a profile that any ship can use via the WSE: Switch Profile combat command.

  2. Playership - Create a profile that is specific to the playership. When selected, only the playership will have the weapons switched if present.

  3. Class - Create a profile specific to a ship class. Set the Sector Only option to False to switch the weapons of all ships of this class outside of the current sector.

  4. Ship Type - Create a profile specific to a ship type. Set the Sector Only option to False to switch the weapons of all ships of this ship type outside of the current sector.


As well, the Weapon Select Extension (WSE) adds four Missile Quick-Fire slots. With these, you may assign four different missiles to be fired from a hotkey.

How to Use...

  • Creating a Profile

  1. To use the Weapon Select Extension (WSE), press the Menu hotkey.

  2. Select one of the four Create Profile... options. This is only two if you have WSE Lite enabled.

  3. Assign a name to the profile by selecting the Name option.

  4. If you are doing a Ship Class or Ship Type profile, assign a respective value to the Target option.

  5. If you are doing a Ship Class or Ship Type profile, select whether you want the profile to only affect the sector the player is currently in or the entire universe by selecting the Sector Only option.

  6. Below these options are all of the turrets on the ship (only the Playership profile will match how many turrets and guns actually exist). You can assign each of these slots individually or select the Set All Guns option.


  • Switching Profiles via Menu

  1. Open the menu with the Menu key.

  2. To select a Global or Playership Profile, simply scroll down the menu. For a Ship Class or Ship Type Profile, select the options Ship Class Profiles or Ship Type Profiles then select one of the profiles.

  3. This screen gives you three options: Switch Profile, Edit Profile, Delete Profile. Select Switch and you are done.



  • Switching Profiles via Quick-Profile Key

  1. Open the menu with the Menu key. Then select the Multi-Press Menu option.

  2. This screen shows a list of your ten Quick-Profile Stacks each with ten Quick-Profiles. Your first option is a menu to activate a certain Stack. The rest are Quick-Profiles you can assign. Select one of the open Slots.

  3. If you had a profile already assigned to this Slot, you would see three options: Assign Slot..., Move Slot..., and Remove Slot.... Since the slot you chose does not have anything assigned, you will just have the Assign Slot option. Choose it.

  4. In Version 2.00, I have only allowed Global Profiles to be set to Quick-Profiles so you will see a list of Global Profiles on this screen. Select one to assign it to the slot. If there had been something already assigned to this slot, you would have been asked to confirm overwriting the slot.

  5. Note which Stack you have just assigned the profile to then activate it via the first option or you can also activate a stack by pressing the Menu key the corresponding stack number plus one (so if it was Stack 01, press the key two times).

  6. Now press the Quick-Profile key the amount of times for that slot.


  • Using the Combat Command

  1. Open up the command console for any ship whose weapons you wish to change.

  2. Open the Combat Commands section and select the command WSE: Switch Profile.

  3. This is a list of all Global Profiles. Select one of the profiles to switch the weapons of the ship.



  • Setting Quick-Fire Missiles

  1. In order to set-up the four Quick-Fire Missile slots, you must first open the main menu with the Menu key.

  2. Then select the option Missile Quick-Fire Menu.

  3. Select one of the four slots on this next screen to take you to a list of missiles.

  4. Select a missile and it will be assigned to the chosen slot.

  5. The hotkey which corresponds to the missile slot will now fire that missile at an enemy. You must have a target and ammo before it will fire.


Known Errors and Issues...

Errors

  • After updating a profile, you will have to reassign it within the Multi-Press Menu. This is currently being worked on.


Issues

  • When creating a Ship Type Profile, all turrets show up as if they were there on that ship. This is, of course, not so and is merely an annoyance. I will fix this by spawning a ship of this type to sector null then returning its turret array.

  • When creating any profile, the weapons available may not be compatible with the ship or ship type. I will limit this too in the next version.



Enjoy,
The North Wind


_________________
"Humanity has the stars in its future, and that future is too important to be lost under the burden of juvenile folly and ignorant superstition." - Isaac Asimov


Last edited by WindsOfBoreas on Sun, 16. Oct 11, 00:40; edited 10 times in total
Back to top
View user's profile Send private message Send e-mail
kelmen





Joined: 09 Dec 2008

Location: Malaysia

PostPosted: Sat, 17. Jan 09, 16:01    Post subject: Reply with quote Print

Is this something like an extension over Weapons Quickswap
http://forum.egosoft.com/viewtopic.php?t=219454

, or different thingy?

Back to top
View user's profile Send private message
WindsOfBoreas





Joined: 03 Aug 2008

Location: Paranid Space - Killing the Fundamentalists

PostPosted: Sat, 17. Jan 09, 19:47    Post subject: Reply with quote Print

It's like Weapons Quickswap in that it allows you to change your weapons quickly. However, the similarities basically end there.

Weapons Quickswap, though being well written to do what it was supposed to do, has three major flaws.

  1. Very limited; you can only create three weapon profiles.

  2. Variables do not save with savegame; you must recreate your profiles every time that you load the game.

  3. Too many hotkeys; Weapons Quickswap creates six hotkeys for just the profiles.


Weapon Select Extension, however, does not have these limitations.

  1. Not limited; you can create an unlimited number of profiles that can be accessed by the menu and you can assign twenty-four of those profiles to a multi-press in the config menu.

  2. The variables are saved with your savegame; no matter how many times you load your game, your profiles will still be there. The only way they disappear is if you delete them personally.

  3. The profiles are all controlled by one hotkey, the Menu hotkey.


In the versions to come, as well, there will be the abilities to make profiles by class, ship type, globally, or specific playership.

And on that, you need not worry about updates erasing the profiles that you have made. Version 1.00 merely has the menu coding for class, ship type, and global commented out; the updates will only enable these again.


_________________
"Humanity has the stars in its future, and that future is too important to be lost under the burden of juvenile folly and ignorant superstition." - Isaac Asimov
Back to top
View user's profile Send private message Send e-mail
kelmen





Joined: 09 Dec 2008

Location: Malaysia

PostPosted: Sun, 18. Jan 09, 08:52    Post subject: Reply with quote Print

Sounds great! In fact, the limitation of Quickswap you mentioned is exactly what I encountered.

Ok, will be your lab test rat. dling now...

Back to top
View user's profile Send private message
WindsOfBoreas





Joined: 03 Aug 2008

Location: Paranid Space - Killing the Fundamentalists

PostPosted: Sun, 18. Jan 09, 09:08    Post subject: Reply with quote Print

kelmen: Great, thank you for testing it out. Please give me any feedback that you can so I can optimize this part ( it'll translate to the other three parts ).

______________


I originally designed this to also allow missiles to be changed with profiles by having a Full (Front Turret, Auxiliary Turrets, and Missile), Front-Missile, Turret-Missile, and Missile profiles.

Unfortunately, the X3TC scripting environment does not allow one to change missiles. This was part of the reason why I created the missile quick-fire keys. If they make command to do this in the future, then I will update WSE to include the missile profiles (merely removing the comments on the code). I will also leave the quick-fire keys.

As well, I will be updating the missile quick-fire portion soon to take into account missile fire rates. As it is currently, you can fire a hundred missiles in quick succession; not what I had intended, but oh well.


_________________
"Humanity has the stars in its future, and that future is too important to be lost under the burden of juvenile folly and ignorant superstition." - Isaac Asimov
Back to top
View user's profile Send private message Send e-mail
kelmen





Joined: 09 Dec 2008

Location: Malaysia

PostPosted: Sun, 18. Jan 09, 12:31    Post subject: Reply with quote Print

Ok, here's my tested-run feedback (based on my need and pref):

I practically don't use missles, probably until I got my 1st missle/boating ship only then I may need that.

The good thing using Weapon Quickswap is, its allow "quick" swap of the weapon.
Using this, I need to call up your menu selection, then click player profile, then click on the setup I want.
Its very inconvenient during combat. Say I have 1 set for full-range+dmg setup, then I wanna swap to another to deal with small-fighters, or for pre-boarding shield crippler. Its very inconvenient, to click through 3 menus to get the weapon setup, compare using "quickswap", just the hotkey and I'm good to continue bang-bang in-fight

Back to top
View user's profile Send private message
WindsOfBoreas





Joined: 03 Aug 2008

Location: Paranid Space - Killing the Fundamentalists

PostPosted: Sun, 18. Jan 09, 17:45    Post subject: Reply with quote Print

I actually use missiles all the time...I generally fly an LX or Nova and in the entire time spent actually playing the game (as opposed to scripting), I've barely fired a shot. Gone through a fortune's worth of missiles though.

Anyway...

_______________


That's where the multi-presses come in.

Go to the configuration menu before combat and put the profile to a multi-press. When you need to access that profile quickly, double, triple, quadruple-tap the Menu key.

Currently, I have my double-press set to Front: Mass Driver (eight MD's); triple-press is six Plasma Burst Generators and two Mass Drivers; and quadruple-press is set to eight repair lasers.

But don't think that it's limited to just three profiles. You can set up twenty-four multi-press profiles under the configuration menu.


_________________
"Humanity has the stars in its future, and that future is too important to be lost under the burden of juvenile folly and ignorant superstition." - Isaac Asimov
Back to top
View user's profile Send private message Send e-mail
WindsOfBoreas





Joined: 03 Aug 2008

Location: Paranid Space - Killing the Fundamentalists

PostPosted: Mon, 19. Jan 09, 22:58    Post subject: Reply with quote Print

Has anyone else tested this so far?


_________________
"Humanity has the stars in its future, and that future is too important to be lost under the burden of juvenile folly and ignorant superstition." - Isaac Asimov
Back to top
View user's profile Send private message Send e-mail
kelmen





Joined: 09 Dec 2008

Location: Malaysia

PostPosted: Tue, 20. Jan 09, 15:13    Post subject: Reply with quote Print

ok, with this multi-press, its worked as I expected now.
Great!

Will test how it go, if I chg ship. As I chg ship from M7 -> M3 (faster) frequently

Back to top
View user's profile Send private message
WindsOfBoreas





Joined: 03 Aug 2008

Location: Paranid Space - Killing the Fundamentalists

PostPosted: Tue, 27. Jan 09, 16:21    Post subject: Reply with quote Print

Ok, I'm going to try updating this within the next few days (depending on when I am able to get my English paper done) to include the extra functionality that I described.

First, however, I need to know how this is working for people. This version, though stable, was just a prototype for the full thing, so I need some feedback on it if I am to implement the rest of the things.

So please, tell me if you have had any problems with Weapon Select Extension. Tell me if you have any suggestions for extra functionality. Remember that you all are the consumers of these plugins; it's your job to tell us what you want.


_________________
"Humanity has the stars in its future, and that future is too important to be lost under the burden of juvenile folly and ignorant superstition." - Isaac Asimov
Back to top
View user's profile Send private message Send e-mail
Hieronymos





Joined: 30 Dec 2005
Posts: 829 on topic
Location: California--A State of Mind
Thank you for registering your game
PostPosted: Sun, 1. Feb 09, 03:56    Post subject: Reply with quote Print

Sounds like a really good idea. I'm game for a go.

If you can get the other two parts working as well, especially for all shipclasses in playerfleet, this is going to be the premier XTC weaponswitcher script.

Since I positively loathe micro-management, with a "equip all ships of this type like xxx" script and your WSE script my entire fighter and corvette force will be a breeze to manage.

Question: If I understand yr intentions about how the playerfleet portion of WSE will play out...if, for example, I'm hammering a Q with a wing of identical M3's using IonDisruptors, just before target's shields go down, I could have all of them switch to IRE's, to avoid frying the target's weapons while I send in my marines?? And then switch back to IonD's if the target's shields rise too quickly?


_________________
Back to top
View user's profile Send private message
WindsOfBoreas





Joined: 03 Aug 2008

Location: Paranid Space - Killing the Fundamentalists

PostPosted: Sun, 1. Feb 09, 06:00    Post subject: Reply with quote Print

I am actually working on all of the parts as I speak. To be sure that it will work the way that I want it to, I'm rewriting the entire plugin from the ground up.

Yes, your assumption on WSE's functionality is correct. If the ships have the weapons that you choose in the profile, their guns will switch to those weapons. If they don't have the weapons, the guns will all empty. (I'll probably make this into a configuration option). If they have say six out of eight guns, then six guns will have weapons and two will be emptied.

To further the functionality, I am actually thinking of adding a "Wing Profile" and adding a configuration option per profile to only switch the "Class" and "Ship Type" profiles in-sector or across the universe.

I expect to be done sometime this week or next weekend (it all depends on my classes this week).


_________________
"Humanity has the stars in its future, and that future is too important to be lost under the burden of juvenile folly and ignorant superstition." - Isaac Asimov
Back to top
View user's profile Send private message Send e-mail
Hieronymos





Joined: 30 Dec 2005
Posts: 829 on topic
Location: California--A State of Mind
Thank you for registering your game
PostPosted: Tue, 3. Feb 09, 23:15    Post subject: Reply with quote Print

Unfortunately, I'm not going to be able to try out WSE for a week or so, as I've got work to do back in X3R-land, as part of our effort to get the DDRS mod (56 new ships & the (original) PHQ) ported to TC.

With that timing, I should be just in time for the full WSE suite.
Keep it comin' dude!


_________________
Back to top
View user's profile Send private message
kelmen





Joined: 09 Dec 2008

Location: Malaysia

PostPosted: Tue, 17. Feb 09, 14:04    Post subject: Reply with quote Print

I think I hit up a bug here.

Noted: I run CMOD3 5.1

running M7 Panther ship, which got no main guns

I setup 2 profiles for this ship, when activated any 1 of these profiles, I noticed only the top 4 weapons in my front turret is toggled.

Is this a limitation over turret weapons?

Back to top
View user's profile Send private message
s9ilent





Joined: 29 Jun 2005
Posts: 2008 on topic
Location: Galactic Sector ZZ9-Plural Z alpha +10 GMT
Thank you for registering your game
PostPosted: Tue, 17. Feb 09, 14:37    Post subject: Reply with quote Print

Heh, I was going to write something like this (one day.....)



Just a suggestion (this is what I was going to do, although I'm probably not going to do it any more as this seems like a pretty solid script)

Make pressing a key cycle through all the .. ?loadouts? (sorry I don't know what you call them for your scripts)
And use Gazz's double click (multiple click) manager, such that on a double click it opens the menu.

Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic Reply to topic Goto page 1, 2, 3, 4, 5  Next
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Mon, 23. Oct 17, 13:34

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2017
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.84954 seconds, sql queries = 29