3D models during briefings cause crash on launch

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

3D models during briefings cause crash on launch

User avatar
ShadowOwl
Cadet 3rd Class
Posts: 33
Joined: Sat Jan 24, 2015 12:47 am

Post by ShadowOwl » Sat Jan 24, 2015 4:16 pm

Here's another problem I've noticed:

Whenever there's a 3D model shown during the briefings the game will crash during the load screen after launching the mission. This s happening with or without the XWAU Craft pack 1.1 being installed, GOG version being used with the renderer by JérémyaFr. Any known causes or fixes for this?

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

Post by Darksaber » Sat Jan 24, 2015 4:47 pm

Sorry this is the first I've heard of this, if you say its with out without the XWAUCP then that's a relief it must be something GOG may have done :(
“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: 4007
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Sat Jan 24, 2015 6:05 pm

A workaround for this problem was provided by DTM.

Can you give details about the crash?

User avatar
ShadowOwl
Cadet 3rd Class
Posts: 33
Joined: Sat Jan 24, 2015 12:47 am

Post by ShadowOwl » Sat Jan 24, 2015 7:27 pm

JeremyaFr wrote:A workaround for this problem was provided by DTM.

Can you give details about the crash?
I have attached the crash report from the Windows Event Manager as XML. I'll do some further testing.
Same problem as reported here btw: viewtopic.php?f=15&t=11254
You do not have the required permissions to view the files attached to this post.

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

Post by JeremyaFr » Sat Jan 24, 2015 7:40 pm

ShadowOwl wrote:Same problem as reported here btw: viewtopic.php?f=15&t=11254
You're right. It's exactly the same problem.

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

Post by JeremyaFr » Mon Jan 26, 2015 8:15 pm

Is'nt there something wrong with the wireframe overlay?

Original model:
corellian_transport_ext_tg.jpg
Upgraded model:
corellian_transport_ext_up.jpg
You do not have the required permissions to view the files attached to this post.

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

Post by Darksaber » Tue Jan 27, 2015 2:03 am

Is this the cause of the crashing then??
“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: 4007
Joined: Mon Jan 18, 2010 5:52 pm
Contact:

Post by JeremyaFr » Wed Jan 28, 2015 10:12 pm

The crash is related to the briefing wireframe overlay.

There is a bug in the exe that lead to a buffer overflow when more than 8000 points are generated.
Starting from 5000 points, there are missing parts. Then starting from around 8100 points, the game crashes in the hangar.

A workaround is to disable the briefing wireframe overlay:

Code: Select all

At offset 07E09C, replace 7D with EB
At offset 07E12E, replace 7D with EB
At offset 07E1B9, replace 47 with 90
The result is:
briefing_wireframe_overlay_off.jpg
You do not have the required permissions to view the files attached to this post.

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

Post by Reimar » Thu Jan 29, 2015 10:07 pm

Those modifications seem to be around the checks to 5000 points limit. Did you check/figure out why they don't work properly?
Just so I know if it's a complete waste of time if I try and have a look at it.

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

Post by JeremyaFr » Thu Jan 29, 2015 10:45 pm

The checks are fine (just limiting). The problem is around the third modification. There is no check here.
I think the simplest way to solve that and to remove the limit would be to transform the static arrays into dynamic ones.
I wonder if there is a point to do that and if the animation would still be good with a lots of faces.

Post Reply