XWA Custom & Widescreen Resolutions

Any issues with the XWAU or X-Wing Alliance? Please let us know here!

Re: XWA Custom & Widescreen Resolutions

Voyager
Cadet 3rd Class
Posts: 38
Joined: Sun May 13, 2007 11:01 pm

Post by Voyager » Wed Jul 15, 2020 2:25 am

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.)

Cpt. Spaulding
Cadet 3rd Class
Posts: 35
Joined: Sat Dec 16, 2017 2:30 pm

Post by Cpt. Spaulding » Sun Sep 13, 2020 9:04 pm

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. :)

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

Post by JeremyaFr » Mon Sep 14, 2020 3:28 pm

Hello,
You need to set "IsAutoResolutionEnabled" to 1.

Cpt. Spaulding
Cadet 3rd Class
Posts: 35
Joined: Sat Dec 16, 2017 2:30 pm

Post by Cpt. Spaulding » Mon Sep 14, 2020 6:44 pm

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

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

Post by DarHan » Mon Sep 14, 2020 7:04 pm

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.)
“Red Four, nothing’s gone wrong yet.”
— Hobbie Klivian

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

Post by JeremyaFr » Mon Sep 14, 2020 7:08 pm

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.

Cpt. Spaulding
Cadet 3rd Class
Posts: 35
Joined: Sat Dec 16, 2017 2:30 pm

Post by Cpt. Spaulding » Mon Sep 14, 2020 7:13 pm

Thx Jeremy, that did the trick! Changing it in the hooks.ini worked perfectly fine! :)

Thx to DarHan too.

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

Post by Bob_Sinclar » 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.

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

Post by blue_max » Sat Oct 31, 2020 12:38 am

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.

beeman
Recruit
Posts: 4
Joined: Wed Nov 04, 2020 6:59 pm

Post by beeman » Wed Nov 11, 2020 7:38 am

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

User avatar
m0rgg
XWAU Member
Posts: 266
Joined: Wed Apr 01, 2020 10:33 pm

Post by m0rgg » Wed Nov 11, 2020 11:29 am

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
Last edited by m0rgg on Tue Nov 17, 2020 5:15 pm, edited 1 time in total.

beeman
Recruit
Posts: 4
Joined: Wed Nov 04, 2020 6:59 pm

Post by beeman » Tue Nov 17, 2020 3:26 pm

Thank you, that did the trick!

avazquezd75x
Recruit
Posts: 8
Joined: Sat Sep 05, 2020 1:39 pm

Post by avazquezd75x » Tue Apr 20, 2021 12:01 am

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 ?

avazquezd75x
Recruit
Posts: 8
Joined: Sat Sep 05, 2020 1:39 pm

Post by avazquezd75x » Tue Apr 20, 2021 1:48 am

I reinstalled and was able to download the hooks and updated resolution to 2560*1440 using IsAutoResolutionEnabled = 1 ... so far, so good.

Ion Flux
Recruit
Posts: 5
Joined: Wed Apr 28, 2021 8:22 pm

Post by Ion Flux » Tue May 04, 2021 5:14 pm

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

PbMagnet
Recruit
Posts: 2
Joined: Thu Jan 13, 2022 2:04 pm

Post by PbMagnet » Mon Jan 31, 2022 5:19 am

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?

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

Post by Bob_Sinclar » Fri Dec 30, 2022 10:41 pm

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!

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

Post by Bman » Sat Dec 31, 2022 11:16 pm

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.
W-I-P: TFTC, MC Viscount Cr., ISD-II Avenger, NL-1 Platform, Ton-Falk Esc. Cr., & Misc.

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

Post by Bob_Sinclar » Mon Jan 02, 2023 10:45 pm

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.

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

Post by JeremyaFr » Sun Jun 25, 2023 2:38 pm

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".

Post Reply