Author Topic: Save keeps crashing on AI turn  (Read 1289 times)

0 Members and 1 Guest are viewing this topic.

Offline vidyajames

Save keeps crashing on AI turn
« on: May 28, 2019, 02:53:16 am »
I'm well into a game using Scient's patch with PRACX over top. Now I'm getting consistent crashes during the AIs turn in this one spot. I tried on a fresh installation with Yitzi's patch and I get the same thing. I've attached my save file, the issue can be replicated simply by ending the turn.

Any help would be appreciated.

EDIT: Turns out this issue is related to PRACX, I used bad troubleshooting practice and installed PRACX over Yitzi the first retry. Still an issue, but I'll just play without it I guess.

EDIT 2: It's just intermittent, it happens without PRACX. As well.
« Last Edit: May 28, 2019, 03:10:42 am by vidyajames »

Offline scient

Re: Save keeps crashing on AI turn
« Reply #1 on: June 14, 2019, 04:50:21 am »
I confirmed this crash happens intermittently in the vanilla SMACX game (seems like 75% of the time). It happens inside has_abil() function when doing a check for Pirates "Marine Detachment" ability with Adaptive Doctrine (so SMAC is likely unaffected). Something with the memory gets garbled. Because of how the game crashes and state it is left in, it is hard to pin down exact cause. I spent probably too much time trying to track down the problem. It may have to do with how Player data is parsed in as well since the crash is caused by the equivalent of this line:
Code: [Select]
int abilBonusID = Players[factionID].factionBonusVal1[i];
if (has_tech(Ability[abilBonusID].preqTech, factionID) && ..

Something causes abilBonusID to be way out of bounds so game crashes trying to access preqTech value. While I wasn't able to track down the exact cause, I can say that my dll version is unaffected. I fully loaded/unloaded the game about 10-15 times and save never crashed.  :)

 

* User

Welcome, Guest. Please login or register.

Login with username, password and session length

Select language:

* Community poll

SMAC v.4 SMAX v.2 (or previous versions)
-=-
24 (7%)
XP Compatibility patch
-=-
9 (2%)
Gog version for Windows
-=-
105 (33%)
Scient (unofficial) patch
-=-
40 (12%)
Kyrub's latest patch
-=-
14 (4%)
Yitzi's latest patch
-=-
89 (28%)
AC for Mac
-=-
3 (0%)
AC for Linux
-=-
6 (1%)
Gog version for Mac
-=-
10 (3%)
No patch
-=-
16 (5%)
Total Members Voted: 316
AC2 Wiki Logo
-click pic for wik-

* Random quote

As the writhing, teeming mass of mindworms swarmed over the outer perimeter, we saw the defenders recoil in horror. 'Stay calm! Use your flame guns!' shouted the commander, but to no avail. It is well know that the Mind Worm Boil uses psychic terror to paralyze its prey, and then carefully implants ravenous larvae into the brains of its still-conscious victims. Even with the best weapons, only the most disciplined troops can resist this horrific attack.
~Lady Deidre Skye 'Our Secret War'

* Select your theme

*
Templates: 5: index (default), PortaMx/Mainindex (default), PortaMx/Frames (default), Display (default), GenericControls (default).
Sub templates: 8: init, html_above, body_above, portamx_above, main, portamx_below, body_below, html_below.
Language files: 4: index+Modifications.english (default), TopicRating/.english (default), PortaMx/PortaMx.english (default), OharaYTEmbed.english (default).
Style sheets: 0: .
Files included: 45 - 1228KB. (show)
Queries used: 37.

[Show Queries]