Reticle hook

A Forum dedicated to the Suggestion, Creation and Editing of XWA Dynamic Link Library Files

Moderator: JeremyaFr

Post Reply

Reticle hook

User avatar
JeremyaFr
XWAU Member
Posts: 3921
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Thu Apr 30, 2020 1:09 pm

Hello,
Here is a new hook.

This hook permits to select the reticle image index for any craft.

xwa_hook_reticle.zip

Suppose that the craft is "FlightModels\[Model].opt".

To select the reticle image index, create a file named "FlightModels\[Model]Reticle.txt" or create a section named "[Reticle]" in "FlightModels\[Model].ini".
If the file does not exist, default values are used.

The format is:
Reticle_XX = image index

XX is in { 5, 6, 7, 8, 9, 10, 15, 16, 17, 18, 19, 20, 21, 22 }.

The reticle images are in "HUD.dat", group ID 12000.
The images are referenced by their position in the group, starting at 1.

User avatar
BenKenobi
Cadet 2nd Class
Posts: 94
Joined: Wed Mar 18, 2020 12:30 pm

Post by BenKenobi » Thu Apr 30, 2020 4:19 pm

I'm not sure what this Hook will do, can you explain and/or perhaps show an example?

Thanks!

User avatar
Ace Antilles
Admiral (Moderator)
Posts: 7829
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Thu Apr 30, 2020 5:18 pm

Simply put you can now have special crosshairs for different ships.
hud2.jpg
That is an example but not a final product.
You just need to create and add new images to the HUD and then you can assign them to different flyable ships.
You do not have the required permissions to view the files attached to this post.
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

User avatar
ual002
XWAU Member
Posts: 983
Joined: Wed Sep 24, 2008 2:23 am

Post by ual002 » Thu Apr 30, 2020 7:59 pm

That is fantastic and does well more than most would realize to capture a sense of difference in feel in flying different craft. Stylized reticles with art styles reminiscent of their parent craft are going to be fantastic.
Image Image Image Image Image

User avatar
ual002
XWAU Member
Posts: 983
Joined: Wed Sep 24, 2008 2:23 am

Post by ual002 » Thu Apr 30, 2020 8:04 pm

Additionally it makes me wonder if we are closer to a gun snake style HUD element. Something that displays a constantly calculated bolt trail and puts some indicator on the trail where the current target's sensor range is. That would be fantastic, even if not really done in SW.
Image Image Image Image Image

User avatar
blue_max
XWAU Member
Posts: 2295
Joined: Wed Mar 20, 2019 5:12 am

Post by blue_max » Thu Apr 30, 2020 10:28 pm

Just a note for potential reticle authors: In order for the new custom reticles to be properly supported in VR, you'll have to start numbering them starting in group 12000, image 5001. I've already added support for this:
custom-reticle-vr.jpg
You do not have the required permissions to view the files attached to this post.

Bman
Lieutenant Commander
Posts: 1167
Joined: Mon Apr 05, 2004 11:01 pm

Post by Bman » Thu Apr 30, 2020 11:53 pm

Neat! I wouldn't mine making one of them completely transparent through, making it more challenging and realistic. Only thing, can the reticle parts that light up when you're taking enemy fire be moved somewhere on the dashboard through DC project, like the laser bars and so forth ?
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.

User avatar
keiranhalcyon7
Lieutenant JG
Posts: 599
Joined: Tue Jan 02, 2018 6:41 am

Post by keiranhalcyon7 » Fri May 01, 2020 1:12 am

I'd like to request a setting to scale the reticle independently of the rest of the HUD, if that's possible. I've upped my HUD scale from 1.49 to 1.75 now that we have better font handling, and I like the resulting font sizes, but I'm finding that I dislike the enlarged reticle.
ual002 wrote:
Thu Apr 30, 2020 8:04 pm
Additionally it makes me wonder if we are closer to a gun snake style HUD element. Something that displays a constantly calculated bolt trail and puts some indicator on the trail where the current target's sensor range is. That would be fantastic, even if not really done in SW.
I understood almost none of that. Could you explain the jargon?

User avatar
ual002
XWAU Member
Posts: 983
Joined: Wed Sep 24, 2008 2:23 am

Post by ual002 » Fri May 01, 2020 5:15 pm

Ok, so I confused a couple technologies. Gun Snake or Gun tunnel/funnel is used when you DON'T have lock on ability and its a guide for visually aiming and firing weapons based on the calculated trajectory of the bullet, a known wingspan and several other factors. Its rough, passive and not the most accurate.
Image

With a sensor/radar lock, a simpler gun sight is calculated and predicted in front of the aircraft based on some quick math and its current speed and course. Its basically a predictive aim point.
Image

This is a little off topic by my own self-admission. And ultimately probably not appropriate for a SW game.
Image Image Image Image Image

User avatar
Trevor
Lieutenant JG
Posts: 541
Joined: Thu Dec 04, 2014 7:11 pm

Post by Trevor » Tue May 05, 2020 11:28 am

On the second type, XWA already calculates lead because it turns the retile green (and bleeps) when enough lead is given.
So, all you need is to show that lead.

Trev

User avatar
Will T
Galactic Empire
Posts: 1371
Joined: Thu Aug 19, 2004 11:01 pm

Post by Will T » Tue May 05, 2020 2:19 pm

Jeremy, this might end being handled somewhere completely unrelated to the visuals for the reticle, but do you know if it would be possible for different reticles to have different sound effects associated with them?

What I'm thinking is that if it's now possible to get an Imperial style reticle for the TIE Fighters, it would be cool to get the TIE style targeting computer sound when you have your target bracketed and then change the Rebel fighters to use the X-Wing style sounds.

Not a big deal at all, and might not even work given that the stock XWA reticle design is based around the sound being very brief (you could end up with a lot of overlapping sound if the target bounces in and out too quickly and the sound is too long).

Just curious if this could be done.
Formerly known as The 95 Headhunter

Bob_Sinclar
Cadet 3rd Class
Posts: 25
Joined: Sun May 03, 2020 9:26 pm

Post by Bob_Sinclar » Thu Jun 18, 2020 12:07 am

Hello,

I am a new comer, sorry in advance for my question.

I edited "xwing.ini" file in "FlightModels" directory.
I added Reticle section [Reticle] in it and wrote:
Reticle_21 = 21

But nothing has changed, my x-wing has still the vanilla crosshair/reticle...

Could you help me to set another reticle than the standard one ?
Is there a way to view what the reticles look like in order to make a choice before installing them ?

Suggestion: add a new reticle (as option) in each downloadable craft. This way the mod will be ready for use with best in class ships. X-Wing aand Tie Fighter could perhaps include a crosshair close to the one seen in the movies, no ?

Thx for the help.

User avatar
Ace Antilles
Admiral (Moderator)
Posts: 7829
Joined: Sat Jan 22, 2000 12:01 am
Contact:

Post by Ace Antilles » Thu Jun 18, 2020 12:22 am

Bob_Sinclar wrote:
Thu Jun 18, 2020 12:07 am
Hello,

I am a new comer, sorry in advance for my question.

I edited "xwing.ini" file in "FlightModels" directory.
I added Reticle section [Reticle] in it and wrote:
Reticle_21 = 21

But nothing has changed, my x-wing has still the vanilla crosshair/reticle...

Could you help me to set another reticle than the standard one ?
Is there a way to view what the reticles look like in order to make a choice before installing them ?

Suggestion: add a new reticle (as option) in each downloadable craft. This way the mod will be ready for use with best in class ships. X-Wing aand Tie Fighter could perhaps include a crosshair close to the one seen in the movies, no ?

Thx for the help.
You can't change the INI file unless you have already created a new Reticle to use.
New reticles have yet to be released.
Please see this forum post: viewtopic.php?f=15&t=12613
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

Post Reply