A thought: Dynamic crosshair

Want to edit the game, build your own craft and missions? Here you'll find help, tools, guides and people to discuss with.

Re: A thought: Dynamic crosshair

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Fri Apr 10, 2020 7:37 pm

Jeremy/Blue Max, for the external hook to work do you need Blue Max's new cockpit look hook or are these independent to each other?
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate

Good Things Come To Those Who Wait....
Darksaber's X-Wing Station

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

Post by JeremyaFr » Fri Apr 10, 2020 7:39 pm

They are independent.

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Fri Apr 10, 2020 7:41 pm

Ah good :) cheers, just wanted to clarify
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate

Good Things Come To Those Who Wait....
Darksaber's X-Wing Station

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Fri Apr 10, 2020 8:11 pm

I didn't know this, but just looked it up, in Cockpit Mode and now in External Mode you can toggle the HUD on and off using the Ctrl + End Keys

I was going to suggest a toggle on/off key, but it's not needed as it exists :)
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate

Good Things Come To Those Who Wait....
Darksaber's X-Wing Station

User avatar
DarHan
Rebel Alliance
Posts: 325
Joined: Mon Dec 05, 2005 12:01 am
Contact:

Post by DarHan » Fri Apr 10, 2020 8:55 pm

blue_max wrote:
Fri Apr 10, 2020 7:28 pm
OK, here you go:
Thanks, that’s perfect. I had mostly wanted that feature because trying to adjust zoom levels during the Death Star tunnel run was a challenge and a half.
“Red Four, nothing’s gone wrong yet.”
— Hobbie Klivian

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Sat Apr 11, 2020 10:05 am

Jeremy while in the hangar in external mode pressing the keypad keys the hud is showing just the two text screens and the bottom centre screen, can these be disabled from the external view while in the hangar, enabling the external hud only when you've entered the mission

Thanks
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate

Good Things Come To Those Who Wait....
Darksaber's X-Wing Station

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

Post by JeremyaFr » Sat Apr 11, 2020 11:37 am

UPDATE

I've fix it.

Please redownload the hook.

User avatar
Darksaber
Vice Admiral
Posts: 10931
Joined: Mon Jan 10, 2000 12:01 am
Contact:

Post by Darksaber » Sat Apr 11, 2020 1:08 pm

Cheers Jeremy :D
“You can please some of the people all of the time, you can please all of the people some of the time, but you can’t please all of the people all of the time”.”
- John Lydgate

Good Things Come To Those Who Wait....
Darksaber's X-Wing Station

User avatar
Vince T
Fleet Admiral (Administrator)
Posts: 14045
Joined: Fri Apr 27, 2001 11:01 pm
Contact:

Post by Vince T » Tue Apr 14, 2020 6:13 am

I've encounted a few more bugs:
- if you have hidden the cockpit, then go to exterior view and press * to look around, the camera will spin uncontrollably fast. This also happens in target view (ALT+U). If you have the cockpit activated, it all works fine.
- if you hide all the UI elements separately, the crosshair will still turn white.
Your ship, Captain. I need a drink. - Vince Trageton
Vince T's X-Wing HQ - where the bad guys get their gear

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

Post by JeremyaFr » Tue Apr 14, 2020 11:42 am

Hello,
The bugs appear with the exterior hook or the DDraw dll?

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

Post by blue_max » Tue Apr 14, 2020 5:35 pm

General_Trageton wrote:
Tue Apr 14, 2020 6:13 am
- if you have hidden the cockpit, then go to exterior view and press * to look around, the camera will spin uncontrollably fast. This also happens in target view (ALT+U). If you have the cockpit activated, it all works fine.
This might be a bug the cockpit inertia feature. Please disable the CockpitLook hook and try again.
- if you hide all the UI elements separately, the crosshair will still turn white.
Known bug in the VR mod. Already fixed; but haven't released it yet.

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

Post by blue_max » Tue Apr 14, 2020 7:39 pm

Looks like it's my turn to report a bug in the exterior hook: if you target any object and the hide the HUD, the targeted object will still be visible, floating behind other objects:
targeted-object-should-not-be-visible.jpg
This happened with the latest exterior hook version + ddraw 1.3.9.
You do not have the required permissions to view the files attached to this post.

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

Post by JeremyaFr » Tue Apr 14, 2020 8:35 pm

Thanks for the bug report.

UPDATE

I've fixed the target HUD.

Please redownload the exterior hook.

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

Post by blue_max » Tue Apr 14, 2020 9:59 pm

blue_max wrote:
Tue Apr 14, 2020 5:35 pm
General_Trageton wrote:
Tue Apr 14, 2020 6:13 am
- if you have hidden the cockpit, then go to exterior view and press * to look around, the camera will spin uncontrollably fast.
This might be a bug the cockpit inertia feature. Please disable the CockpitLook hook and try again.
This is a bug in the CockpitLook hook. It's related to the tilt that I added so that the aiming reticle is visible as soon as we jump to the exterior view. I'll fix this.

@Jeremy: Thanks! Everything works fine now.

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

Post by blue_max » Wed Apr 15, 2020 9:10 pm

- if you hide all the UI elements separately, the crosshair will still turn white.
The latest update posted here: https://xwaupgrade.com/phpBB3/viewtopic ... 91#p165191 fixes this problem.

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

Post by blue_max » Sun Apr 19, 2020 10:18 pm

General_Trageton wrote:
Tue Apr 14, 2020 6:13 am
- if you have hidden the cockpit, then go to exterior view and press * to look around, the camera will spin uncontrollably fast.
Fixed (I think!) Please, download the latest cockpit look hook here:

https://www.dropbox.com/s/xrkisb7dr657i ... 0.dll?dl=0

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

Post by Ace Antilles » Fri Apr 24, 2020 10:29 pm

blue_max wrote:
Sun Apr 19, 2020 10:18 pm
General_Trageton wrote:
Tue Apr 14, 2020 6:13 am
- if you have hidden the cockpit, then go to exterior view and press * to look around, the camera will spin uncontrollably fast.
Fixed (I think!) Please, download the latest cockpit look hook here:

https://www.dropbox.com/s/xrkisb7dr657i ... 0.dll?dl=0
Sorry I still get the spinning issue bug with this version download
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

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

Post by blue_max » Fri Apr 24, 2020 10:44 pm

Ace Antilles wrote:
Fri Apr 24, 2020 10:29 pm
Sorry I still get the spinning issue bug with this version download
No problem. How can I reproduce it?

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

Post by Ace Antilles » Fri Apr 24, 2020 11:06 pm

I just do the same as GT did.
Go to Exterior view with / and press * to look around, the camera will spin uncontrollably fast and can't be stopped.
I also have the exterior HUD hook thing active. It's always active afaik
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

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

Post by blue_max » Fri Apr 24, 2020 11:44 pm

Ace Antilles wrote:
Fri Apr 24, 2020 11:06 pm
Go to Exterior view with / and press * to look around, the camera will spin uncontrollably fast and can't be stopped.
Can you repeat this test disabling the CockpitLook hook? Just rename the extension to ".DL_" or something like that.

I just did this and it seems to be fine over here.

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

Post by Ace Antilles » Sat Apr 25, 2020 12:24 am

blue_max wrote:
Fri Apr 24, 2020 11:44 pm
Ace Antilles wrote:
Fri Apr 24, 2020 11:06 pm
Go to Exterior view with / and press * to look around, the camera will spin uncontrollably fast and can't be stopped.
Can you repeat this test disabling the CockpitLook hook? Just rename the extension to ".DL_" or something like that.

I just did this and it seems to be fine over here.
Lemme see if I can explain this ok as I'm not good at it lol :)
If I use Hook_CockpitLook-Apr-19-2020 then the ship spins. All I need to do is press "/"
If I use the Hook_CockpitLook in my attached Zip file then everything works ok.

If I do what you said and disable the DLL name then everything work ok too. But so does the older file I was using.
I've added the CFG file I have too in case there's some useful info in there.
So it's only the Apr-19-2020 file that is causing me this issue. I don't have VR btw
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
blue_max
XWAU Member
Posts: 2295
Joined: Wed Mar 20, 2019 5:12 am

Post by blue_max » Sat Apr 25, 2020 12:31 am

OK, two things:

1. Did you remember to rename "Hook_CockpitLook-Apr-19-2020.dll" to "Hook_CockpitLook.dll"? (Sorry, had to ask)
2. Your cfg file is missing the external inertia section, that's why nothing happens in the older versions. You need to add the following:

external_inertia_enabled = 1
external_inertia = 1.5
external_max_inertia = 0.03
external_tilt = -10.0

The "external_tilt" is the thing that makes the ship spin out of control if it's set to a nonzero value -- but it's also used to tilt the view a little bit so that you can see your ship and the reticle at the same time without having to move the external camera.

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

Post by Ace Antilles » Sat Apr 25, 2020 12:52 am

blue_max wrote:
Sat Apr 25, 2020 12:31 am
OK, two things:

1. Did you remember to rename "Hook_CockpitLook-Apr-19-2020.dll" to "Hook_CockpitLook.dll"? (Sorry, had to ask)
2. Your cfg file is missing the external inertia section, that's why nothing happens in the older versions. You need to add the following:

external_inertia_enabled = 1
external_inertia = 1.5
external_max_inertia = 0.03
external_tilt = -10.0

The "external_tilt" is the thing that makes the ship spin out of control if it's set to a nonzero value -- but it's also used to tilt the view a little bit so that you can see your ship and the reticle at the same time without having to move the external camera.
It was the Config file that was doing it. It works with the new Hook now. Sorry I'm still getting used to these new hook things.
I probably wasn't planning on adding something that was still being worked on until it was finished. But when I see a new download I have to get it lol
So I didn't add anything to the CFG file. I think it could be worth adding new CFG files with updated hooks too at least ones marked "example" or something.
That way you won't have to deal with idiots like me so much. :( At least I keep you busy testing stuff ;)
Thanks for your help Max appreciate it :)
Chief XWAU Team annoying nitpicker.
Ace Antilles - The X-Wing Outpost
Image

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

Post by blue_max » Sat Apr 25, 2020 1:26 am

Ace Antilles wrote:
Sat Apr 25, 2020 12:52 am
I think it could be worth adding new CFG files with updated hooks too at least ones marked "example" or something.
You're right, that would've saved us some grief. I'll add sample cfg files to my future updates. Also: thanks for testing my stuff!

Post Reply