Is it useful? If you use missiles you have likely noticed that there is no way to select the missile group and still see the weapon arcs of your other weapons, which you might want to see for aiming etc. This mod fixes that.
Requirements
LazyLib
Controls
Use “ALT + 1-7” to toggle drawing of weapon groups on/off.
If for some reason using ALT does not work, first press “h” and then the 1-7 you want to activate, then “h” again to stop toggling arcs.
If “h” is used for something else, you can change the key from settings.
It is recommended (but not required) to disable vanilla weapon arcs while using this mod. Default hotkey for disabling vanilla is “~”.
In the root folder of the mod you will find “weapon-arcs-settings.json”. From there you can:
- Change the color of the weapon arcs
- Set options to auto enable arcs on weapon groups
- Set the roughness of the displayed weapon arc. For more smooth arch, set a lower number (minimum 1. This will draw for each degree in the arc). For a blocky arc, set a higher number (don’t go over 50)
- Turn on individual colors for each weapon group (default off)
- set a key which will toggle whether 1-7 triggers the arcs. This is mainly for users where the Alt key does not work, such as on a mac
- Set the amount of range bands on the arcs
Changelog
1.7.0 – Added a config setting for range bands. Default is 4 and it can be set to other amounts. Credit goes to Lrizika for implementing this feature https://github.com/archigo/WeaponArcsStarsector/pull/2
1.6.0 – Added toggle key as workaround for Mac users. Added functionality to have individual colors on each weapon group.
1.5.0 – Added setting to change the “roughness” of the displayed Weapon arcs. Fixed a potential crash.
1.4.1 – Support weapon groups 6 and 7.
1.4.0 – Update game version number. Add additional crash check.
1.3.1 – Fixed possible crash on entering combat
1.3.0 – Introduced in memory caching of active groups, will persist as long as you do not change ship. Introduced settings file in the main folder of the mod. Can set weapon arc colors and set group to auto enable.
1.2.2 – Fixed a case sensitivity issue with version checker files on Linux.
1.2.1 – Updated the download link, so the new version can actually be downloaded! Also implemented version checker support
1.2 – updated mod info for 0.9. Weapon arcs are now off by default simply turn them on with “ALT + 1-5”.
1.1 – Introduced the ability to toggle drawing of individual weapon groups off, with “ALT + 1-5”.
Compatibility
This mod should be compatible with all other mods. Other mods might use the same hotkeys, but both mods should still work.
Save games
This mod is save game safe. Add it to you existing saves, or remove it, the saves will still work.
In game examples
Credits
LazyWizard – the creator of Lazylib, which is used for vector rotation in this mod.
I’ve been trying to implement switching weapon groups off, but i hit a snag:
List weaponGroups = engine.getPlayerShip().getWeaponGroupsCopy();
List weapons = weaponGroups.get(0).getWeaponsCopy();
When i run startsector this gives me:
“A method name “getWeaponsCopy” is not declared in any enclosing class nor any supertype, nor through a static import”
The method is right here though: http://fractalsoftworks.com/starfarer.api/com/fs/starfarer/api/combat/WeaponGroupAPI.html#getWeaponsCopy() and netbeans also find it in the starfarer api file
Any idea why this is?
Additionally i tried using ArrayList for some stuff, but when using methods like “isEmpty()” and “size()” i would get errors as well. Is it not possible to use ArrayLists in a script? If i try to use the “List” type that the api returns i apparently have to implement all the interface methods on it.
full code:
I’ve been trying to implement switching weapon groups off, but i hit a snag:
http://fractalsoftworks.com/forum/index.php?topic=13431.0
Already exist, do not implement thing than people have already made :p
You misunderstand, i meant switching the drawing on and off, not the actual weapon group. So that you could, for example, draw only group 1, 2, 3 but not 4 and 5.
After, on my head: getWeaponGroupsCopy();
A copy is not linked to the ship where you got the copy, this is just for take informations without modify the ship per error.
But ArrayList is the standard list you use when you need a list.
You have not forgot to import the ArrayList?
Have you tried copying the code from the spoilers, into the java file in the mod and running starsector? That is the issue i am having trouble with.
Edit: All my issues got solved by compiling as a jar instead of letting Janino compile.

Thanks for making my mods list +1 longer!
I’m just asking, if You could implement some features. (Not like You should, just asking)
1. Automatically turn off/on vanilla weapon arcs, (even if hotkey is changed) and turn on/off modded ones, every battle.
2. Change and/or toggle transparency of modded arcs.
3. Make .cfg file for configuring those functions. Maybe also turning on arcs for each weapon group separately. Maybe make currently used arc less transparent while other stay transparent.
4. (Is it even possible) Show arcs for hostile/friendly ships with a hotkey for each group.
It would be awesome if You added those. Still very nice mod, I think devs should integrate it into the game.
Actually maybe propose to integrate it? I mean this looks like it should be in game permanently, not just mod.
Maybe add a poll about integration before proposing to devs, just as an idea?
Thank You for such usefull mod!
Also implemented version checker support.
I’m on linux which has case sensitive filenames, and I encountered an error until I changed the filename “weaponarcs.version” to “WeaponArcs.version”. Cheers!