Fractal Softworks Forum

Starsector => Mods => Topic started by: stormbringer951 on May 17, 2018, 02:30:54 PM

Title: [0.9.1a] Weapons Group Controls 1.1.0
Post by: stormbringer951 on May 17, 2018, 02:30:54 PM
Download (https://bitbucket.org/stormbringer951/toggleweapongroup/downloads/ToggleWeaponGroup%201.1.0.zip)
Supports Version Checker (http://fractalsoftworks.com/forum/index.php?topic=8181.0)
View source code (https://bitbucket.org/stormbringer951/toggleweapongroup/src/master/)

Demonstration Image:
Spoiler
(https://i.imgur.com/2neCIxb.gif)
[close]

A utility mod that adds some rebindable in-combat hotkeys:

- Deselect All Weapon Groups: Default key [6]. Deselects all weapon groups, even if all 5 weapon groups are defined. Useful if you want to autofire everything and just sit back and pilot.
- Toggle Fire Mode: Default key [7]. Switch selected weapon group between alternating and linked fire type.
- Quick Hold Fire: Default key [8]. Hold down to switch off all weapon groups that do not contain a point defence weapon (or small non-missile weapons when Integrated Point Defence AI is installed) as long as hotkey is held down, re-enabled when key is released.

Inspired by a conversation on Discord with Johnny the Wedge Guy, Avanitia, Snrasha and TheKart.

Credits
Lazywizard - permission to use his code from Empty Weapons Group Selector (https://bitbucket.org/LazyWizard/prototypes/downloads/) for Deselect all Weapons Groups hotkey.

Changelog
1.1.0 - 2018-05-24
- Added Unselect all weapons groups button - thanks to LazyWizard for use of the code from his Empty Weapons Selector mod

1.0.0 - 2018-05-17
- Initial Implementation
Title: Re: [0.8.1a] Weapons Group Controls 1.0.0
Post by: A Random Jolteon on May 17, 2018, 03:14:45 PM
Download (https://bitbucket.org/stormbringer951/toggleweapongroup/downloads/ToggleWeaponGroup.zip)
Supports Version Checker (http://fractalsoftworks.com/forum/index.php?topic=8181.0)
View source code (https://bitbucket.org/stormbringer951/toggleweapongroup/src/master/)

Demonstration Image:
Spoiler
(https://i.imgur.com/2neCIxb.gif)
[close]

A utility mod that adds some configurable in-combat hotkeys:

- Toggle Weapon Group: Switch selected weapon group between alternating and linked fire type.
- Quick Hold Fire: Hold down to switch off all weapon groups that do not contain a point defence weapon (or small non-missile weapons when Integrated Point Defence AI is installed) as long as hotkey is held down, re-enabled when key is released.

Inspired by a conversation on Discord with joaonunes, Avanitia, Snrasha and TheKart.

Changelog

1.0.0 - 2017-05-17
- Initial Implementation
Perfect. I'll test it out when I start playing SS again.
Title: Re: [0.8.1a] Weapons Group Controls 1.1.0
Post by: stormbringer951 on May 23, 2018, 04:51:42 PM
Mod is updated to 1.1.0 (https://bitbucket.org/stormbringer951/toggleweapongroup/downloads/ToggleWeaponGroup%201.1.0.zip).

(https://i.imgur.com/RHvuKdg.gif)

Thanks to LazyWizard, who gave me permission to incorporate his code from Empty Weapons Group Selector mini-mod as a hotkey for deselecting all weapon groups.
Title: Re: [0.8.1a] Weapons Group Controls 1.1.0
Post by: Astraltor on December 25, 2018, 07:21:52 PM
tested and it seems to work perfectly fine for 0.9!!!
Title: Re: [0.8.1a] Weapons Group Controls 1.1.0
Post by: Daquan_Baton on December 27, 2018, 05:12:59 AM
Man this is great, I know i'm super late. I've been waiting for a mod like this since I started playing. Much appreciated my guy.
Title: Re: [0.8.1a] Weapons Group Controls 1.1.0
Post by: aZmoDen on December 29, 2018, 06:47:33 PM
only know about this because of the weapon goup thread in general discussion.
would love to see this mod added to the mods list
Title: Re: [0.8.1a] Weapons Group Controls 1.1.0
Post by: stormbringer951 on May 21, 2019, 12:16:58 PM
tested and it seems to work perfectly fine for 0.9!!!

Thanks for doing the leg work and confirming it for people :).

Man this is great, I know i'm super late. I've been waiting for a mod like this since I started playing. Much appreciated my guy.

Cheers!

only know about this because of the weapon goup thread in general discussion.
would love to see this mod added to the mods list

I've been putting it off for no good reason, so sent a request.
Title: Re: [0.9.1a] Weapons Group Controls 1.1.0
Post by: Morbo513 on May 22, 2019, 09:14:50 AM
Been wanting something like this for a while and completely missed it. Should be base-game features in the first place really, but thanks for addressing it anyway
Title: Re: [0.9.1a] Weapons Group Controls 1.1.0
Post by: JDCollie on August 03, 2019, 11:17:09 AM
Perfect! I've been flying around with an empty weapon group because I don't like manning the guns while piloting.
Title: Re: [0.9.1a] Weapons Group Controls 1.1.0
Post by: Jastebro on August 15, 2019, 08:19:08 AM
I'd like to make a request that a single weapon could be put in more than one weapon group.

For example, when piloting the Onslaught, the fixed twin cannons are too far apart for more than one shot to hit smaller targets.
The AI handles that well on autopilot by only firing the weapon that will actually hit.
But if player controlled, firing both barrels will mean the target has to have a reasonably large hitbox for both shots to land.
The alternative is to set each cannon as a separate group for manual control, but that would mean not being able to fire them both at once at larger targets.
Title: Re: [0.9.1a] Weapons Group Controls 1.1.0
Post by: Rigel on August 21, 2019, 06:37:20 AM
is it possible to map a hotkey to mouse buttons? i been looking into the link provided in the TOGGLE_WEAPONS_HOTKEYS.ini and it seems number 2 uses for both the keyboard 1 key and mouse middle click which is what im aiming for as i want to bind hold fire to middle click so im not sure how i could bind mouse buttons to it or if its possible
Title: Re: [0.9.1a] Weapons Group Controls 1.1.0
Post by: Rohzdear on September 17, 2019, 06:53:44 PM
Very useful mod. unfortunately, for whatever reason, the game seems to crash (sometimes) whever I press 6 to deselect all of my weapons during combat.
It's doesn't crash 100% of the time, but when  it does it's certainly an unpleasant experience.

Would appreciate any input as to why this might be happening on my game, as it doesn't seem anyone is suffering from it.
Title: Re: [0.9.1a] Weapons Group Controls 1.1.0
Post by: Sundog on September 17, 2019, 07:12:34 PM
Can you post the last hundred or so lines from starsector.log after a crash? It's in the starsector-core folder.
Title: Re: [0.9.1a] Weapons Group Controls 1.1.0
Post by: okj on December 29, 2019, 01:10:38 AM
can you add a select all group too?
Title: Re: [0.9.1a] Weapons Group Controls 1.1.0
Post by: Vind on February 11, 2020, 04:25:57 AM
    Thanks for this very useful mod. Holding fire on all guns except PDs is extremely useful.
Dont know if this is possible to implement but ideally ship must have 2-3 groups of auto/manual weapon presets and switch between them so player can control which guns autofire and which is on hold for a moment. Manually reconfiguring multiple groups with control-number in combat is too awkward.
Title: Re: [0.9.1a] Weapons Group Controls 1.1.0
Post by: Dinkel on June 19, 2020, 04:01:06 PM
@Sundog

Mentioned crash by pressing 6 happenes to me too.

(https://s12.directupload.net/images/200620/temp/o665deuz.png) (https://www.directupload.net/file/d/5856/o665deuz_png.htm)

I linked the file of starsector.log.1, that should be the right one. Well, i have no idea of this stuff, i'm just a peasant trying to micromanage his Onslaught.

https://sereiya.tuxonfire.eu/Freundesachen/starsector.log.1
Title: Re: [0.9.1a] Weapons Group Controls 1.1.0
Post by: poika on July 08, 2020, 07:56:05 AM
Is there a way to make "Hold fire" a toggle?

I created this simple AutoHotkey script as a temporary solution but it would be nice if it was a setting in the mod config files.

Code
#IfWinActive Starsector 0.9.1a-RC8

XButton1::
KeyDown := !KeyDown
If KeyDown
SendInput {8 down}
Else
SendInput {8 up}
Return
Title: Re: [0.9.1a] Weapons Group Controls 1.1.0
Post by: Neitronus on September 23, 2020, 09:00:34 AM
Is it possible to update to fix version checker issue? There's an issue with version file being unreacheble on bitbucket after recent bitbucket change AFAIK.
Title: Re: [0.9.1a] Weapons Group Controls 1.1.0
Post by: CyberSultanVader on April 15, 2021, 05:12:33 PM
Hey man dont want to bug you but I am just curious if this mod will be getting an update for 0.95. Its such a super useful mod!
Title: Re: [0.9.1a] Weapons Group Controls 1.1.0
Post by: pearagon on April 21, 2021, 04:50:24 PM
Hey man dont want to bug you but I am just curious if this mod will be getting an update for 0.95. Its such a super useful mod!

Seconded!
Title: Re: [0.9.1a] Weapons Group Controls 1.1.0
Post by: Dukoth on April 23, 2021, 10:16:27 AM
ok, here's what cha gota do:

go to the mod's "TOGGLE_WEAPONS_HOTKEYS.ini"

go to the line that says: "deselectAllWeapons": 7," and change it to 8, then go to the line that says: "toggleSelectedGroupMode": 8, and change the number to 9

this is cause the weapon groups now go to 7 so the default hotkeys don't work anymore

then go to the file "mod_info.json" and goto the line "gameVersion": "0.8.1a" and change the number to the current version of the game, which I think is 0.95a-RC15, or what ever version you have downloaded

and then wallah, you're golden, tested it my self and can confirm it works
Title: Re: [0.9.1a] Weapons Group Controls 1.1.0
Post by: Paul_Kauphart on May 11, 2021, 01:23:41 AM
I have hacked together an update for the latest version (0.95a-RC15).
Because I don't have a developpement environement, I had to do it via scripting (ie lots of otherwise unecessary modifications). I also hardcoded the three function to 8 for delect all weapons, 9 for toggle Selected Group Mode and 0 for quick Hold Fire.

I tested it in a simulator and it works fine.

stormbringer951 if you're not working on this anymore, can I post it here ?
If you are do you need info on what I did to make it compatible with the latest version ?
Title: Re: [0.9.1a] Weapons Group Controls 1.1.0
Post by: poika on November 07, 2021, 10:33:51 PM
The link to Empty Weapons Group Selector seems dead and this one hasn't been updated to 0.95a? A real shame  :(
Title: Re: [0.9.1a] Weapons Group Controls 1.1.0
Post by: Paul_Kauphart on January 04, 2022, 03:06:23 AM
So, by popular demand, here's my copy of the mod updated for 0.95a-RC15.

Disclaimer, I am not a modder, I don't have a mod dev environement setup, I just know enough to find my way around code. I made this fix for my own personnal use, use at your own risk.

Also, I don't own that code.


Edit PS : I hardcoded the keyboard keys because that was the quickest and simplest way for me to make it work with an AZERTY keyboard.

Edit PPS : just looking at the code, all you have to do to make the mod work if you have a qwerty keyboard is change the keys in TOGGLE_WEAPONS_HOTKEYS.ini to use 8, 9 and 0, no need to download what I just posted.

[attachment deleted by admin]
Title: Re: [0.9.1a] Weapons Group Controls 1.1.0
Post by: Shade255 on October 14, 2022, 08:50:18 PM
This Mod needs an update, or Someone else to revive it
Title: Re: [0.9.1a] Weapons Group Controls 1.1.0
Post by: Paul_Kauphart on May 15, 2023, 02:38:46 PM
So, by popular demand, here's my copy of the mod updated for 0.95a-RC15.

Disclaimer, I am not a modder, I don't have a mod dev environement setup, I just know enough to find my way around code. I made this fix for my own personnal use, use at your own risk.

Also, I don't own that code.


Edit PS : I hardcoded the keyboard keys because that was the quickest and simplest way for me to make it work with an AZERTY keyboard.

Hello everyone, I tested my previous hackjob at updating the mod for 0.95.1a and it works fine, just update the mod_info with that version.

I haven't tested it with version 0.96, I haven't downloaded it yet. Maybe I'll get to it, one day, who knows... alsom maybe it just works fine as well.

Note, I was wrong, just changing the TOGGLE_WEAPONS_HOTKEYS.ini file doesn't work.
Title: Re: [0.9.1a] Weapons Group Controls 1.1.0
Post by: goldmaster on May 27, 2023, 08:53:23 AM
Since this mod needs an update, I have set up IDE and fixed some problems and added some features, like fixed crashing with more than 5 weapon groups and option to change disabling all non-PD from hold to toggle.
If you want to try it, here is a link: https://github.com/goldmaster23/ToggleWeapons
Title: Re: [0.9.1a] Weapons Group Controls 1.1.0
Post by: JoeCool on October 30, 2023, 09:03:02 PM
Great work, @goldmaster.

If you remove the hash (#) from the first line in version_files.csv the mod won't make Version Checker crash.
EDIT: for the file hosted on github you need to use the raw. link like so: https://raw.githubusercontent.com/goldmaster23/ToggleWeapons/0.96a-RC9/toggleWeaponsFixed.version
Title: Re: [0.9.1a] Weapons Group Controls 1.1.0
Post by: goldmaster on November 06, 2023, 02:23:50 PM
Great work, @goldmaster.

If you remove the hash (#) from the first line in version_files.csv the mod won't make Version Checker crash.
EDIT: for the file hosted on github you need to use the raw. link like so: https://raw.githubusercontent.com/goldmaster23/ToggleWeapons/0.96a-RC9/toggleWeaponsFixed.version
Thanks JoeCool!
Tested and commited to github.