Resolution issue

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

Resolution issue

Marcusorelius
Recruit
Posts: 6
Joined: Wed Mar 04, 2015 10:07 pm

Post by Marcusorelius » Thu Mar 12, 2015 7:29 am

Hi guys

I'm running the Gog version, and have just installed Craft Pack 1.2. I also have XWA Hacker for widescreen support on my LCD TV. I previously had all the craft and the backdrops patch installed individually. Even though the game was limited by the force 800x600 mode, it looked pretty good at 1280x720, my TV's native resolution.

Now that force 800x600 mode has been disabled, I can set my desired resolution, and all is fine for the first mission that I play. However, if I replay the mission, or try another, the game defaults to 1280 x 1024 and I'm left with a very distorted looking display. Is there any way of keeping the settings so that I don't have to re-set the resolution each time I play a different mission?

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

Post by JeremyaFr » Fri Mar 13, 2015 8:16 pm

Hello,

The game defaults to 1280x1024 because you have chose a resolution whose the width is 1280.

You can remove this behavior by making these modifications to XWingAlliance.exe:

Code: Select all

At offset 0x10A431, replace A134AD9100 with E9AE000000.

User avatar
DARoot
Cadet 3rd Class
Posts: 38
Joined: Sun May 17, 2009 11:08 pm

Post by DARoot » Sat Mar 14, 2015 12:14 am

Greetings, JeremyFr
Thank you for this information, and for everything else you have done.

I have a quick question for you, or anyone else who "speaks binary" (I'm afraid I do not).

I have been using a hexeditor (HxD) for many years.
It will display offsets in hexadecimal, decimal, or octal.
However, when I use it on "XWingAlliance.exe," the offsets it shows never seem to correspond to those you reference in this, and other, Forum threads.

For example, I could locate six (6) instances of the string "A1 34 AD 91 00" at (per HxD) offsets --
00047610
0010A430
0010CE10
0010CEE0
0010CFA0
0010F3E0

So, if someone could "translate" these to find which (if any) corresponds to offset "0x10A431" referenced by JeremyFr above, I would be very appreciative.

Or, should I just get a new editor, and if so, what would you recommend?

Thanks

DARoot
Be yourself. Everyone else is already taken ...

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

Post by JeremyaFr » Sat Mar 14, 2015 12:41 am

hex10A431.png
An hex editor generally shows data in row of 16 bytes.
So offset 10A431 is 10A430 + 1.
You do not have the required permissions to view the files attached to this post.

User avatar
DARoot
Cadet 3rd Class
Posts: 38
Joined: Sun May 17, 2009 11:08 pm

Post by DARoot » Sat Mar 14, 2015 12:01 pm

Thanks!

Happy Pi Day!

DARoot

Edit: So, then,
offset 0x10A430 starts with "C3,"
offset 0x10A431 starts with "A1,"
offset 0x10A432 starts with "34,"
offset 0x10A43B starts with "77,"
and after 0x10A43F ("3D") the next line starts, with 0x10A440?
And "0x" is a notational convention to say, "This is a hexadecimal number?"

Oh, this is easy, when someone who knows how explains it well!
Merci beaucoup, JeremyFr!

Learned something new today, I have.
Be yourself. Everyone else is already taken ...

Marcusorelius
Recruit
Posts: 6
Joined: Wed Mar 04, 2015 10:07 pm

Post by Marcusorelius » Sat Mar 14, 2015 10:21 pm

:D Merci Jeremy!

Post Reply