Fractal Softworks Forum

Starsector => Mods => Topic started by: Sundog on March 11, 2020, 09:07:42 PM

Title: [0.97a] Flux Reticle v1.3.0 - A more immersive and helpful combat cursor
Post by: Sundog on March 11, 2020, 09:07:42 PM
Flux Reticle


(https://img.shields.io/github/downloads/NateNBJ/FluxReticle/total?color=496B8E&label=Download%20Flux%20Reticle&style=flat&logo=DocuSign&logoColor=white)
 (https://github.com/NateNBJ/FluxReticle/releases/latest/download/Flux.Reticle.zip)
Old Versions (https://github.com/NateNBJ/FluxReticle/releases/)
Change Log (https://github.com/NateNBJ/FluxReticle/wiki/Change-Log)

Compatible with all known mods.
Integrated with Version Checker (http://fractalsoftworks.com/forum/index.php?topic=8181).
Can be added to existing games.
Can be removed from games in which it was already used.


This mod replaces the default cursor during combat with a reticle that displays flux level.
It also allows you to toggle "strafe and turn to cursor" behavior during battle by pressing "K"
The mod will remember your preference for each hull type, so you won't need to toggle each time you switch between ships.
Strafe toggling features will only activate while the vanilla setting for strafe toggling is disabled.
The size and colors of the reticle can be customized by editing FLUX_RETICLE_OPTIONS.ini, as well as the toggle hotkey.

(https://i.imgur.com/Iv8x4u0.png)
Title: Re: [0.9.1a] Flux Reticle v1.0.0 - A more useful and immersive aiming cursor
Post by: pedro1_1 on March 11, 2020, 09:12:49 PM
Flux Reticle

Download link will be here in a few minutes


Compatible with all known mods.
Integrated with Version Checker (http://fractalsoftworks.com/forum/index.php?topic=8181).
Can be added to existing games.
Can be removed from games in which it was already used.


This mod replaces the default cursor during combat with a reticle that displays flux level.

(https://i.imgur.com/uxnQgz7.jpg)
Did not think I would need someting like this, It fits into that category of needing It but not knowing it
Title: Re: [0.9.1a] Flux Reticle v1.0.0 - A more useful and immersive aiming cursor
Post by: e on March 11, 2020, 11:40:35 PM
Wow!

This is useful for me because i always get distracted away from my flux bar.

Thanks a lot!!
Title: Re: [0.9.1a] Flux Reticle v1.0.0 - A more useful and immersive aiming cursor
Post by: Shrugger on March 12, 2020, 06:01:01 AM
Top notch idea!
Title: Re: [0.9.1a] Flux Reticle v1.0.0 - A more useful and immersive aiming cursor
Post by: TimeDiver on March 12, 2020, 06:30:02 AM
Does this work in combination with the Leading Pip (https://fractalsoftworks.com/forum/index.php?topic=7921.0) mod by Dark.Revenant?
Title: Re: [0.9.1a] Flux Reticle v1.0.0 - A more useful and immersive aiming cursor
Post by: SCC on March 12, 2020, 07:06:54 AM
I wish there was an alternate reticule, a simple crosshair. This one is a bit ambiguous and has a shadow around it. Shadow's probably useful, but it bothers me to no end.
Does this work in combination with the Leading Pip (https://fractalsoftworks.com/forum/index.php?topic=7921.0) mod by Dark.Revenant?
Yes, it does.
Title: Re: [0.9.1a] Flux Reticle v1.0.0 - A more useful and immersive aiming cursor
Post by: Sundog on March 13, 2020, 02:11:07 AM
Did not think I would need someting like this, It fits into that category of needing It but not knowing it
Top notch idea!
;D

This is useful for me because i always get distracted away from my flux bar.
Yup. Me too!  ;D

Does this work in combination with the Leading Pip (https://fractalsoftworks.com/forum/index.php?topic=7921.0) mod by Dark.Revenant?
Yup. Only thing it's likely to ever be incompatible with is another mod that changes the mouse cursor image somehow, but I'm not aware of any other mod that does that.

I wish there was an alternate reticule, a simple crosshair. This one is a bit ambiguous and has a shadow around it. Shadow's probably useful, but it bothers me to no end.
Yeah, the shadow is ugly as sin. A hard black outline should be enough to make it visible over light backgrounds and other gui elements. Someone on discord suggested a different, pointier reticle image to make it more clear exactly where the mouse's hotspot pixel is. I'll experiment a bit, but I think I'll probably just go with a simple crosshair, as you suggest.
Title: Re: [0.9.1a] Flux Reticle v1.0.0 - A more useful and immersive aiming cursor
Post by: Sundog on March 14, 2020, 05:28:26 PM
Someone on discord reported the reticle disappearing every once in a while during battle. If anyone knows of a reliable way to reproduce this issue, could you let me know? It would be a great help in figuring out how to fix it.

Also, I'm planning to change the reticle image in the next update. Thoughts?
(https://i.imgur.com/O4TMq5X.png)
Title: Re: [0.9.1a] Flux Reticle v1.0.0 - A more useful and immersive aiming cursor
Post by: Alex on March 14, 2020, 05:31:31 PM
IIRC, I tried some cursor manipulation (you're using Mouse.setNativeCursor, right?) beyond what the game already does for friend/foe and I ran into the same issue. Wasn't able to figure it out; this was a looooong time ago.
Title: Re: [0.9.1a] Flux Reticle v1.0.0 - A more useful and immersive aiming cursor
Post by: Sundog on March 14, 2020, 09:35:27 PM
I'm using Mouse.setNativeCursor to switch between the default cursor and an invisible cursor, but no part of the reticle itself is a proper hardware cursor. It's just drawn using sprites and primitives in CombatPlugin.advance. When the reticle goes AWOL, the vanilla cursor is rendered just fine in the contexts in which it should (e.g. escape menu and tactical screen), so my best guess is that some aspect of the OpenGL state that the mod doesn't account for is being changed in such a way that the reticle fails to render properly. No idea what that could be though. I'm a bit of a putz when it comes to graphics  ::)
Title: Re: [0.9.1a] Flux Reticle v1.0.0 - A more useful and immersive aiming cursor
Post by: Alex on March 16, 2020, 05:08:10 PM
Ah - that's definitely a different issue, then... hmm.
Title: Re: [0.9.1a] Flux Reticle v1.0.0 - A more useful and immersive aiming cursor
Post by: Yubbin on April 05, 2020, 08:59:03 AM
I got an error while using this mod while commanding the excelsior ship from ship and weapon pack (I have the newest version of both). This didn't crash the game, but it spammed the chat with an error message
Quote
Color parameter outside of expected range: Alpha
Flux reticle encountered an error!
Please let the mod author know.
I think this only happens when I start the combat with another ship, then switch into the excelsior. I have a lot of mods running, do I need to give a modlist? Thanks.
Title: Re: [0.9.1a] Flux Reticle v1.0.0 - A more useful and immersive aiming cursor
Post by: Sundog on April 05, 2020, 03:07:51 PM
Thanks for the report! Someone else actually reported the excelsior error spam earlier today, so I just fixed it. I should be able to get a patch out soon. Hopefully today.
Title: Re: [0.9.1a] Flux Reticle v1.0.1 - A more useful and immersive aiming cursor
Post by: Sundog on April 05, 2020, 04:24:17 PM
Flux Reticle 1.0.1 (http://fractalsoftworks.com/forum/index.php?topic=18166)
Compatible with all previous versions

Improved reticle icon
Fixed error spam sometimes occurring when ships with scripted flux mechanics were piloted (e.g. Excelsior, Ryoku)
Title: Re: [0.9.1a] Flux Reticle v1.0.1 - A more useful and immersive aiming cursor
Post by: PureTilt on April 13, 2020, 08:26:13 PM
reticle doesn't drawn if you use not your flagship (nvm traumtanzer bugs some effects)
Title: Re: [0.9.1a] Flux Reticle v1.0.1 (BETA) - A more useful and immersive aiming cursor
Post by: SCC on July 17, 2020, 05:28:25 AM
Hey Sundog, could you consider adding some indicator to the flux reticle to show when ship system is on?
Title: Re: [0.9.1a] Flux Reticle v1.0.1 (BETA) - A more useful and immersive aiming cursor
Post by: Sundog on July 18, 2020, 05:25:11 PM
Yeah, I think a system state indicator could be a good fit for flux reticle. I've got a list of potential indicators to add, and that one's near the top, but I'll probably hold off on adding too much until the next Starsector release.
Title: Re: [0.9.1a] Flux Reticle v1.0.1 (BETA) - A more useful and immersive aiming cursor
Post by: Sanrai on July 29, 2020, 04:24:50 PM
I've noticed a glitch with this mod where mousing near the center of the ship causes things like weapon arcs and the trails of weapon fire to skew a fixed amount.
Title: Re: [0.9.1a] Flux Reticle v1.0.1 (BETA) - A more useful and immersive aiming cursor
Post by: Sundog on July 29, 2020, 04:37:04 PM
Someone else reported something similar a while back, but that was only when the GUI was disabled with F11. Is that the case for you as well?
Title: Re: [0.9.1a] Flux Reticle v1.0.1 (BETA) - A more useful and immersive aiming cursor
Post by: Sanrai on July 29, 2020, 04:41:44 PM
No, I didn't even know you could diable the gui like that.
Title: Re: [0.9.1a] Flux Reticle v1.0.1 (BETA) - A more useful and immersive aiming cursor
Post by: Sundog on July 29, 2020, 09:16:29 PM
Ok, gotcha. Thanks for the info! Hopefully I'll get the chance to solve that issue soon, but unfortunately I haven't managed to reproduce it yet, which makes things a lot harder. By the way, do you use f.lux or have an AMD or integrated graphics card?
Title: Re: [0.9.1a] Flux Reticle v1.0.1 (BETA) - A more useful and immersive aiming cursor
Post by: Sanrai on July 29, 2020, 10:16:57 PM
No, I don't use F.lux. I've disabled my integrated GPU, I only use my 1080 nvidia card.
Title: Re: [0.9.1a] Flux Reticle v1.0.1 (BETA) - A more useful and immersive aiming cursor
Post by: Helldiver on January 24, 2021, 03:22:54 AM
This is super useful. I was wondering how to make player flux more obvious because I'd often lose track of it during brawly combat and this is a lot more elegant a solution than making a flux bar bigger.
Title: Re: [0.9.1a] Flux Reticle v1.1.0 - A more useful and immersive aiming cursor
Post by: Sundog on March 29, 2021, 08:07:56 PM
Flux Reticle 1.1.0 (http://fractalsoftworks.com/forum/index.php?topic=18166)

Updated compatibility to Starsector version 0.95a
Added: pressing K (by default) toggles "Strafe and turn to cursor" functionality mid-battle, with appropriate audiovisual cues
Title: Re: [0.95a] Flux Reticle v1.1.0 - A more useful and immersive aiming cursor
Post by: Achilles42x on March 30, 2021, 11:06:52 PM
EXACTLY what I wanted
Always gets too squirrely and losing track of my flux in the heat of things
Title: Re: [0.95a] Flux Reticle v1.1.0 - A more useful and immersive aiming cursor
Post by: saya39 on April 01, 2021, 11:51:36 PM
Hi! It's me again :) (if you still remember me)
Just found this fantastic mod had already moved to Mods Board.
May I post it on Fossic, which is the Chinese starsector forum?
Title: Re: [0.95a] Flux Reticle v1.1.0 - A more useful and immersive aiming cursor
Post by: Sundog on April 02, 2021, 04:48:27 PM
Always gets too squirrely and losing track of my flux in the heat of things
Same!  ;D

May I post it on Fossic, which is the Chinese starsector forum?
Go for it! This one should be much easier to translate than the others...
Title: Re: [0.95a] Flux Reticle v1.1.0 - A more useful and immersive aiming cursor
Post by: saya39 on April 02, 2021, 06:11:12 PM
May I post it on Fossic, which is the Chinese starsector forum?
Go for it! This one should be much easier to translate than the others...
Thanks for the permission!
And, yeah, exactly it is. It's convenient for me when every update posted. ;D

Edit: Here is the address.
https://www.fossic.org/thread-2774-1-1.html (https://www.fossic.org/thread-2774-1-1.html)
Title: Re: [0.95a] Flux Reticle v1.1.0 - A more useful and immersive aiming cursor
Post by: AliTanwir on April 06, 2021, 09:59:04 AM
Hi, can I get somewhere the previous versions of your mods? I'm still playing 0.9.1a
Title: Re: [0.95a] Flux Reticle v1.1.0 - A more useful and immersive aiming cursor
Post by: Sundog on April 06, 2021, 04:58:00 PM
There is, but it's not particularly accessible. I've been meaning to put up links to the latest 0.9.1 compatible versions in the OPs of my mods, but haven't gotten around to it yet. In the meantime...

https://github.com/NateNBJ/FluxReticle/releases/download/v1.0.1/Flux.Reticle.zip
https://github.com/NateNBJ/Hyperdrive/releases/download/v2.0.0/Hyperdrive.zip
https://github.com/NateNBJ/StarshipLegends/releases/download/v1.4.3/Starship.Legends.zip
https://github.com/NateNBJ/NewBeginnings/releases/download/v1.1.2/New.Beginnings.zip
https://github.com/NateNBJ/FuelSiphoning/releases/download/v1.1.4/Fuel.Siphoning.zip
https://github.com/NateNBJ/RuthlessSector/releases/download/v1.2.7/Ruthless.Sector.zip
Title: Re: [0.95a] Flux Reticle v1.1.0 - A more useful and immersive aiming cursor
Post by: AliTanwir on April 06, 2021, 10:45:51 PM
Thanks! I appreciate it.
Title: Re: [0.95a] Flux Reticle v1.1.0 - A more useful and immersive aiming cursor
Post by: Sundog on April 08, 2021, 07:11:20 PM
No problem  :)
Title: Re: [0.95a] Flux Reticle v1.1.1 - A more useful and immersive aiming cursor
Post by: Sundog on April 26, 2021, 11:29:43 AM
Flux Reticle 1.1.1 (http://fractalsoftworks.com/forum/index.php?topic=18166)

Fixed flux reticle being shown while the UI was hidden
Darkened the background of the reticle a bit to improve visibility

Side note: Has anyone had the bug where the reticle disappears sometimes? I'm beginning to suspect it's no longer a problem in 0.95a...
Title: Re: [0.95a] Flux Reticle v1.1.1 - A more useful and immersive aiming cursor
Post by: Ruddygreat on May 06, 2021, 02:21:10 AM
Is there a way to use the "toggle point to cursor" functionality without using the reticule?
I prefer the vanilla cursor, but that toggle is so useful
Title: Re: [0.95a] Flux Reticle v1.1.1 - A more useful and immersive aiming cursor
Post by: Sundog on May 06, 2021, 08:17:56 AM
There is not, sorry. I might make another mod that only has the toggle functionality. I'm surprised no one else has done it already, honestly.
Title: Re: [0.95a] Flux Reticle v1.1.1 - A more useful and immersive aiming cursor
Post by: Sundog on February 14, 2022, 08:43:15 PM
Flux Reticle 1.2.0 (http://fractalsoftworks.com/forum/index.php?topic=18166)

Added glow around reticle to improve visibility
Added new settings:
      "glowOpacity"
      "showReticleWhenInterfaceIsHidden"
      "showReticle" - Useful if you want to be able to toggle turn-to-cursor with a hotkey, but don't want the reticle cursor
Changed: turn-to-cursor settings are now remembered on a per hull type basis
Changed the default reticle color to match the vanilla cursor
Title: Re: [0.95a] Flux Reticle v1.2.0 - Also lets you toggle turn-to-cursor with a hotkey!
Post by: Yendorc on April 13, 2022, 08:15:07 AM
small "bug"-report (it's more of an annoyance, really):


Apparently this mod now always deselects the
Invert behavior of "Strafe and turn to cursor" button
on game start
Title: Re: [0.95a] Flux Reticle v1.2.0 - Also lets you toggle turn-to-cursor with a hotkey!
Post by: Sundog on April 13, 2022, 03:44:21 PM
Yeah, I'd definitely call that a bug. I'll look into it soon. The mod now remembers your preference for each hull type, meaning that switching to a different type of ship will cause the mod to revert to the default, rather than what you selected for the previous ship. Could that be what you're seeing?
Hmm... now that I consider it, using alt+F4 during battle could maybe result in what you described, since the mod wouldn't get the chance to set the setting back to what it's supposed to be.

edit: I just read the discussion on Discord concerning this. Assuming that was you. Looks like neither of the things I mentioned are the cause. I should get a chance to figure out what's going wrong in a few days. Thanks again for letting me know!
Title: Re: [0.95a] Flux Reticle v1.1.1 - A more useful and immersive aiming cursor
Post by: Sundog on April 24, 2022, 07:22:53 PM
Flux Reticle 1.2.1 (http://fractalsoftworks.com/forum/index.php?topic=18166)
Compatible with previous versions

Fixed unchecking "Invert behavior of Strafe and turn to cursor button" setting on load
Title: Re: [0.95a] Flux Reticle v1.2.1 - Also lets you toggle turn-to-cursor with a hotkey!
Post by: KZadBhat on May 06, 2023, 05:47:00 PM
Editing mod_info.json for version 0.96a is presenting no problems with loading, and the reticle does operate properly in combat. This is so far only tested in a single Mission from the main menu though.
Title: Re: [0.95a] Flux Reticle v1.2.1 - Also lets you toggle turn-to-cursor with a hotkey!
Post by: Sundog on May 06, 2023, 08:02:08 PM
Yeah, the current version *should* work without any major issues. It doesn't work properly with the new setting that makes the shift key toggle "strafe and turn to cursor" instead of needing to hold it. I'll need to decide how I want to handle that situation before I can update this mod.
Title: Re: [0.95a] Flux Reticle v1.2.1 - Also lets you toggle turn-to-cursor with a hotkey!
Post by: Zuthal on June 17, 2023, 03:15:12 AM
Yeah, the current version *should* work without any major issues. It doesn't work properly with the new setting that makes the shift key toggle "strafe and turn to cursor" instead of needing to hold it. I'll need to decide how I want to handle that situation before I can update this mod.

I think the most sensible course of action would be to just remove that part of the mod, since it is a vanilla functionality now.
Title: Re: [0.95a] Flux Reticle v1.2.1 - Also lets you toggle turn-to-cursor with a hotkey!
Post by: Sundog on June 18, 2023, 09:06:42 AM
I agree that removing it would be the most sensible course of action if the vanilla version supported all of the functionality that this mod does. Unfortunately, the vanilla toggle-strafe option doesn't support several features that I think are important:
I also find this mod's visual indicator for whether or not the mouse-strafe is applied to be much cleaner.

Pretty sure I'm just going to disable this mod's version of the option by default and add a note to the setting explaining that it's not compatible with the vanilla version.
Title: Re: [0.95a] Flux Reticle v1.1.1 - A more useful and immersive aiming cursor
Post by: Sundog on February 02, 2024, 08:37:19 PM
Flux Reticle 1.3.0 (http://fractalsoftworks.com/forum/index.php?topic=18166)
Save-compatible with previous versions

(https://img.shields.io/github/downloads/NateNBJ/FluxReticle/total?color=496B8E&label=Download%20Flux%20Reticle&style=flat&logo=DocuSign&logoColor=white)
 (https://github.com/NateNBJ/FluxReticle/releases/latest/download/Flux.Reticle.zip)

- Updated for Starsector 0.97a
- Changed: Automatic toggling of strafe-and-turn-to-cursor is now disabled if the vanilla setting for strafe toggling is enabled