Page 6 of 6

Re: XWA Custom & Widescreen Resolutions

Posted: Wed Jul 15, 2020 2:25 am
by Voyager
Ace Antilles wrote:
Wed Jul 15, 2020 12:50 am
Voyager wrote:
Wed Jul 15, 2020 12:45 am
Minor suggestion: For simplicity, when setting the resolutions in the installer, could the \Star Wars - X-Wing Alliance\DDRaw.cfg PreserveAspectRatio value be set to '1' by default?

The default install appears to set it to '0', which, if you've got a multi-monitor setup, ends up, rather spectacularly, distorting the view, until you figure out the right flag to change.

thank you,

Harry Voyager
There's an option in the latest Effects from Blue Max to change the Aspect Ratio
Ah cool. Had not gotten that far in the install stack yet. Was currently installing the new aircraft first. (Though my end goal is VR, so this is more an interim step while I get everything else working.)

Re: XWA Custom & Widescreen Resolutions

Posted: Sun Sep 13, 2020 9:04 pm
by Cpt. Spaulding
Hi all there, I'm using a new pc to run XWA:

My PC-Setup:
MSI B450M Pro-VDH MAX Mainboard
Ryzen 3 3100
Radeon RX 5500XT
16 GB RAM
Corsair MP510 960 GB SSD

I'm using it my TV (LG B7D) as screen.
How can i change game resolution to my TV 3840x2160 resolution?
First of all: XWA Hacker is not working for me (any solution about that? also admin mode does not help).
In the hook_resolution.cfg i typed i the following but it doesnt't change anything in game:

Code: Select all

; Auto set the game resolution
; 1 to enable the feature
; 0 to disable the feature
IsAutoResolutionEnabled = 0

; Define the resolution width
; When set to 0, the screen width is used
ResolutionWidth = 3840

; Define the resolution height
; When set to 0, the screen height is used
ResolutionHeight = 2160
Can anyone help?
Thx in advance. :)

Re: XWA Custom & Widescreen Resolutions

Posted: Mon Sep 14, 2020 3:28 pm
by JeremyaFr
Hello,
You need to set "IsAutoResolutionEnabled" to 1.

Re: XWA Custom & Widescreen Resolutions

Posted: Mon Sep 14, 2020 6:44 pm
by Cpt. Spaulding
Thank you, but i did that and the max resolution to choose in game is again only 1920 x 1080...

https://imgur.com/a/GiYJZZA

Code: Select all

; Auto set the game resolution
; 1 to enable the feature
; 0 to disable the feature
IsAutoResolutionEnabled = 1

; Define the resolution width
; When set to 0, the screen width is used
ResolutionWidth = 3840

; Define the resolution height
; When set to 0, the screen height is used
ResolutionHeight = 2160

Re: XWA Custom & Widescreen Resolutions

Posted: Mon Sep 14, 2020 7:04 pm
by DarHan
Have you tested actually flying a mission? Due to the way the hook works, the resolution displayed in the options and the resolution actually used by the game might be different.

(For example, on my computer, I used XwaHacker so the options read as “800×500” but the game actually runs at my screen’s native resolution, which is 1680×1050.)

Re: XWA Custom & Widescreen Resolutions

Posted: Mon Sep 14, 2020 7:08 pm
by JeremyaFr
Cpt. Spaulding wrote:
Sun Sep 13, 2020 9:04 pm
In the hook_resolution.cfg i typed i the following but it doesnt't change anything in game:
Hello,
cfg files were the old method to configure the hooks. Now the settings are in the "hooks.ini" file.

Under the "[hook_resolution]" section of "hooks.ini", there are the settings for the resolution hook.

As DarHan wrote, the game will always use the screen’s native resolution.

Re: XWA Custom & Widescreen Resolutions

Posted: Mon Sep 14, 2020 7:13 pm
by Cpt. Spaulding
Thx Jeremy, that did the trick! Changing it in the hooks.ini worked perfectly fine! :)

Thx to DarHan too.

Re: XWA Custom & Widescreen Resolutions

Posted: Fri Oct 30, 2020 9:37 pm
by Bob_Sinclar
Fantastic, I am playing in WQHD: 2560*1440. The game looks amazing!
I suspect the FPS is slightly slower.

Re: XWA Custom & Widescreen Resolutions

Posted: Sat Oct 31, 2020 12:38 am
by blue_max
Bob_Sinclar wrote:
Fri Oct 30, 2020 9:37 pm
Fantastic, I am playing in WQHD: 2560*1440. The game looks amazing!
I suspect the FPS is slightly slower.
Yes, the bigger your desktop resolution is, the slower XWA will render, whereas changing the in-game resolution has little effect on performance.

Re: XWA Custom & Widescreen Resolutions

Posted: Wed Nov 11, 2020 7:38 am
by beeman
Hi,

I have a 1920x1080 screen, but my computer is a bit older, so it don't want to use full resolution, for performance reasons.
I read the thread, but I don't fully understand what I need to do.
I read that the game always uses the screen's native solution, what does that mean?
How can I play the game in, say, 1280x720?

Thanks
Alex

Re: XWA Custom & Widescreen Resolutions

Posted: Wed Nov 11, 2020 11:29 am
by m0rgg
Hi,

You can customize it with the Hook_Resolution.dll. You need to put this in the Hooks.ini (after downloading the latest version of the hooks using XwaHooksSetup).

If you have an older version of the hooks, you may have to put the same (without [hook_resolution] header) in Hook_Resolution.cfg.

Code: Select all

[hook_resolution]

; Auto set the game resolution
; 1 to enable the feature
; 0 to disable the feature
IsAutoResolutionEnabled = 1

; Define the resolution width
; When set to 0, the screen width is used
ResolutionWidth = 1280

; Define the resolution height
; When set to 0, the screen height is used
ResolutionHeight = 720
Also, there are many other things to tweak to improve performance, beyond resolution. Check this thread:
viewtopic.php?f=36&t=12490

Re: XWA Custom & Widescreen Resolutions

Posted: Tue Nov 17, 2020 3:26 pm
by beeman
Thank you, that did the trick!

Re: XWA Custom & Widescreen Resolutions

Posted: Tue Apr 20, 2021 12:01 am
by avazquezd75x
Hi,
I tried to install the 2020 upgrade on top of my regular install (steam game plus older mod + individual ships mods) ... everything went wrong (controlls do not work, screen looks shrinked, cockpit gauges does not work, game functions does nothing, you name it)

I unisntalled the game and trying again (steam, 2020 upgrade, Update 2.1)

Once all this is done ... I need to use XwaHooksSetup to change resolution to 2560*1440 ?

Re: XWA Custom & Widescreen Resolutions

Posted: Tue Apr 20, 2021 1:48 am
by avazquezd75x
I reinstalled and was able to download the hooks and updated resolution to 2560*1440 using IsAutoResolutionEnabled = 1 ... so far, so good.

Re: XWA Custom & Widescreen Resolutions

Posted: Tue May 04, 2021 5:14 pm
by Ion Flux
XWA in 4k

Awesome!!

Thanks god for people having problems, ya learn things :)


[hook_resolution]
; Auto set the game resolution
; 1 to enable the feature
; 0 to disable the feature
IsAutoResolutionEnabled = 1

; Define the resolution width
; When set to 0, the screen width is used
ResolutionWidth = 3840

; Define the resolution height
; When set to 0, the screen height is used
ResolutionHeight = 2160

Re: XWA Custom & Widescreen Resolutions

Posted: Mon Jan 31, 2022 5:19 am
by PbMagnet
I've applied the following [hook_resolution] for my LG widescreen.

[hook_resolution]
; Auto set the game resolution
; 1 to enable the feature
; 0 to disable the feature
IsAutoResolutionEnabled = 1

; Define the resolution width
; When set to 0, the screen width is used
ResolutionWidth = 2560

; Define the resolution height
; When set to 0, the screen height is used
ResolutionHeight = 1080

Works great!

I get the following return description from the in games Video Options>Single Player Video Options> Screen Resolution

2560x1080 HUD1.80 DPI:100%

Before I knew abount [hook_resolution] I hex hacked XWINGALLIANCE.EXE to 2560x1080 reolution and Screen Resolution reported
2560x1080 HUD:1.44

I know HUD= Heads UP Display, but what is the 1.80 or 1.44 value after the HUD mean?

Re: XWA Custom & Widescreen Resolutions

Posted: Fri Dec 30, 2022 10:41 pm
by Bob_Sinclar
Hello,

I followed all instructions about "Hood.ini" modifications.
It worked like a charm!

However I think doing nothing is the best option since in 1920*1080 the game (I have Tie Fighter Total Conversion mod 1.3.2 installed but I usually only play skimirsh battles) works perfectly but if I changed my resolution to 2560*1440, it seems the GPU works a lot more.
I have an Nvidia GTX 1060 6GB.

I also tried on a multi-screen configuration with Nvidia surround (3 27 inches screens of 2560*1440) leading to a "native" resolution of 7680*1440.
There I have three problems : the game seems to slow down a little + it is a lot harder to play on the Empire side since the left and right screens are nearly useless, they show the cockpit interior (a problem you do not have in an X-Wing or in a A-Wing) + the cursor showing the direction of the targeted craft is now moving across three screens and not one, so the player does not see it easily thus leading to a huge efficiency issue in game.
So I thought, let's remove the cockpit view even if the direction arrow of the targeted craft remains an issue, but in TFTC mod if you remove the cockpit view you also remove the two big circles showing the enemy position (they were still there in the original unmodded game).

Understand me well, I congratulate the team for the work performed so far and the TFTC mod is a pure jewel. It is a lot better than the original game, I do not complain. It is a nice New Year's gift!

This to explain that the game works better :
a) under a "low" resolution of 1920*1080 (since TFTC mod demands more on hardware than the original game);
b) under one unique screen (and not three even if it also works).

Thx for those great mods and Happy New Year!

Re: XWA Custom & Widescreen Resolutions

Posted: Sat Dec 31, 2022 11:16 pm
by Bman
Hey Bob, if you turn off your cockpit view, I assume you press the period key, you can toggle your D key to return the original HUD et al screens. You can then also hide them piecemeal by pressing the six keys grouped on your keyboard.... Insert (forward radar sensor), Home, PageUp (rear radar sensor), Delete, End, and PageDown. You can toggle each of them back on too. The original game manual has keyboard layout. It's referenced somewhere on this website as .pdf I think, and updated. The new hooks and ddraw stuff add new keyboard combinations, but that's referenced in elsewhere in the various readme files.

Re: XWA Custom & Widescreen Resolutions

Posted: Mon Jan 02, 2023 10:45 pm
by Bob_Sinclar
Hi Bman,

Thx for the tip, it works.
Sole issue : the original HUD (two circles with AI position) are located at the extreme right and left (screen 1 (left) and 3 (right), but not 2 (central screen)), so after a few game sessions I could have neck problem ;-)
In TFTC mod the modified huds are well located on central screen.

Re: XWA Custom & Widescreen Resolutions

Posted: Sun Jun 25, 2023 2:38 pm
by JeremyaFr
UPDATE

Hello,
I've updated the resolution hook.

Changes are:
- add a HudScale setting
- add a Fov setting

To enable the auto resolution setting, set the IsAutoResolutionEnabled setting.
To define the resolution, set the ResolutionWidth and ResolutionHeight settings.

To set the HUD scale, set the HudScale setting.
When set to 0, the default value is ResolutionHeight / 600.0f, the type is float.

To set the FOV, set the Fov setting.
When set to 0, the default value is ResolutionHeight * 1.0666f + 0.5f, the type is int.

See the "hook_resolution.cfg" file or the "hook_resolution" section of "hooks.ini".