Game Crashes on second Loading

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

Game Crashes on second Loading

vpermir
Recruit
Posts: 4
Joined: Fri Jan 04, 2019 10:45 pm

Post by vpermir » Fri Jan 04, 2019 10:50 pm

Hi, first time writing, been following this a while, I'm having the same issue as always, whenever I play the game the firs mission I start it works well but when I go for a second one while it loads at the end of the loading it crashes, happened both in campaign and in simulator. I have de xwaup 1.5 and the xwa ddraw fix on it,
also im using xwahacker for custom resolution 2560x1440. Any help?

Justagai
Cadet 1st Class
Posts: 218
Joined: Mon Dec 08, 2014 10:59 pm

Post by Justagai » Fri Jan 04, 2019 11:03 pm

EDIT: I've added instructions just incase.

Please post the event viewer logs that are related to XWA from the application folder.

You can reach the Event Viewer through the windows search: https://i.imgur.com/UCN3euZ.png

Event viewer and a log related to XWA looks like this: https://i.imgur.com/dCzRnne.png

vpermir
Recruit
Posts: 4
Joined: Fri Jan 04, 2019 10:45 pm

Post by vpermir » Fri Jan 04, 2019 11:08 pm

i hope you dont mind that is in spanish? heheheh

Application name with errors: XwingAlliance.exe, version: 2.0.0.2, timestamp: 0x3765a9b7
Module name with errors: XwingAlliance.exe, version: 2.0.0.2, timestamp: 0x3765a9b7
Exception code: 0xc0000005
Error offset: 0x000d3214
Process identifier with errors: 0x2b78
Start time of the application with errors: 0x01d4a4822194cf5c
Path of the application with errors: F: \ Program Files (x86) \ GOG Galaxy \ Games \ Star Wars - X-Wing Alliance \ XwingAlliance.exe
Module path with errors: F: \ Program Files (x86) \ GOG Galaxy \ Games \ Star Wars - X-Wing Alliance \ XwingAlliance.exe
Reporting ID: 14e93515-d001-400e-a0a3-9a7bef01220c
Full name of the package with errors:
Relative application identifier of the package with errors:


EDIT: I've just tried a custom mission 8P in simulator and while on it when im cyrcling around fighters game crashes again

vpermir
Recruit
Posts: 4
Joined: Fri Jan 04, 2019 10:45 pm

Post by vpermir » Fri Jan 04, 2019 11:44 pm

Mmm playing in 1600x1200 seems to be the solution, but i would like to play it at wide resolution

Reimar
Cadet 1st Class
Posts: 239
Joined: Mon Jan 19, 2009 11:45 am

Post by Reimar » Sat Jan 05, 2019 3:04 pm

Did you try the "Fix crashes for high resolutions (height > 1200)" setting in XWAHacker?
Note that I am not sure if it really works though.
Also, all that you're changing with that resolution setting is the resolution of the 2D objects like the HUD.
All 3D parts will always render at desktop resolution anyway.
EDIT: You should adjust the resolution to match your monitor's aspect though I guess.

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

Post by JeremyaFr » Sat Jan 05, 2019 3:49 pm

Reimar wrote:
Sat Jan 05, 2019 3:04 pm
Did you try the "Fix crashes for high resolutions (height > 1200)" setting in XWAHacker?
Note that I am not sure if it really works though.
This doesn't work. The game randomly crashes.

Here is a solution. I've done a quick test. Without it, the game crashes. With it, the game hasn't crashed.
Please download xwa_hook_res1200.zip
This hook replaces a static buffer with a dynamic one in initializing 2d buffer. It fixes a crash when resolution height > 1200 is used.
Last edited by JeremyaFr on Thu Jan 10, 2019 5:06 pm, edited 1 time in total.

vpermir
Recruit
Posts: 4
Joined: Fri Jan 04, 2019 10:45 pm

Post by vpermir » Sat Jan 05, 2019 6:49 pm

Ok I'm new with the hook thing. So I copy it to the folder and then what?

And yeah the fix in xwahacker doesnt work

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

Post by JeremyaFr » Sat Jan 05, 2019 7:22 pm

First, you need the custom dinput.dll from xwa_hook_main.zip. If you have installed XWAUCP or DSUCP, you already have it.

Then, copy hook_res1200.dll from xwa_hook_res1200.zip next to XWingAlliance.exe.

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

Post by keiranhalcyon7 » Sun Jan 06, 2019 7:37 am

This raises some questions for me.
Reimar wrote:
Sat Jan 05, 2019 3:04 pm
All 3D parts will always render at desktop resolution anyway.
How? I noticed recently that the game continued to output at desktop resolution regardless of the internal resolution setting, but I'm pretty sure this wasn't the original behavior, nor was it typical of games of the period.
JeremyaFr wrote:
Sat Jan 05, 2019 3:49 pm
This doesn't work. The game randomly crashes.

Here is a solution. I've done a quick test. Without it, the game crashes. With it, the game hasn't crashed.
xwa_hook_res1200.zip
I've had some occasional crash issues on certain missions. I've had some luck (but not enough to call it a workaround) getting it to run by loading the flight engine in the simulator, quitting to the concourse, and then loading the troublesome mission. Does that ring any bells? Or maybe it was just totally random and I was just fooling myself. I'll download this and see if it improves things.

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

Post by JeremyaFr » Thu Jan 10, 2019 5:10 pm

Here is a solution. I've done a quick test. Without it, the game crashes. With it, the game hasn't crashed.
Please download xwa_hook_res1200.zip
This hook replaces a static buffer with a dynamic one in initializing 2d buffer. It fixes a crash when resolution height > 1200 is used.

Related topic: viewtopic.php?f=10&t=11528

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

Post by JeremyaFr » Thu Jan 10, 2019 5:14 pm

keiranhalcyon7 wrote:
Sun Jan 06, 2019 7:37 am
This raises some questions for me.
Reimar wrote:
Sat Jan 05, 2019 3:04 pm
All 3D parts will always render at desktop resolution anyway.
How? I noticed recently that the game continued to output at desktop resolution regardless of the internal resolution setting, but I'm pretty sure this wasn't the original behavior, nor was it typical of games of the period.
Hello,
This is not the behavior of base game, without any mod/patch. It is done by the custom DDraw dll that uses Direct3D 11.

Justagai
Cadet 1st Class
Posts: 218
Joined: Mon Dec 08, 2014 10:59 pm

Post by Justagai » Fri Jan 11, 2019 4:29 am

JeremyaFr wrote:
Sat Jan 05, 2019 3:49 pm
Reimar wrote:
Sat Jan 05, 2019 3:04 pm
Did you try the "Fix crashes for high resolutions (height > 1200)" setting in XWAHacker?
Note that I am not sure if it really works though.
This doesn't work. The game randomly crashes.

Here is a solution. I've done a quick test. Without it, the game crashes. With it, the game hasn't crashed.
Please download xwa_hook_res1200.zip
This hook replaces a static buffer with a dynamic one in initializing 2d buffer. It fixes a crash when resolution height > 1200 is used.
This is good stuff. Something of note that may or may not be related, I had issues of crashing in multiplayer regions on the map screen (1920x1080p, host only as clients seem to be fine) when going through targets so I wonder if that fixes it as well. If it doesn't then at least this is a good lead. Awesome job!

Post Reply