Jump to content


Photo

CTD upon Rest()


  • Please log in to reply
6 replies to this topic

#1 Vlad

Vlad
  • Member
  • 575 posts

Posted 08 September 2018 - 02:15 AM

This is an old annoying bug which sometimes you may catch at the advanced levels. More heavily modded game, higher the level of the party, greater the probability that the game will crash when you hit the Rest button. Sometimes I can finish the whole game without a single crash, but sometimes it starts right after Spellhold and becomes worse and worse. Some areas are more susceptible to the CTD than others. For example, the Pocket Plane is really sensitive to that.

 

After few years of experiencing this occasional bug, I have decided to find out what's going on here. After many trials and errors with removing different characters, items, scripts, bringing back other characters, playing different scripts, memorising different spells, removing spells and effects and so on, I found that if you: 1) don't save in the area before the rest, and then 2) completely heal your party before the rest in this area, the crash doesn't happen.

 

It seems there is a bug in the engine relating to healing the party members of high levels on rest.

 

Any ideas about that?

 

In most of the areas where I want that the party could rest, I placed the related character healing the party and allowing it to rest without crash.


Edited by Vlad, 08 September 2018 - 02:16 AM.


#2 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 4628 posts

Posted 08 September 2018 - 03:29 AM

Maybe one of your healing spells is "corrupted". By that I mean that the rest script casts it while it might not be a healing spell, while it's counted to be such and the game fails to figure things out ... and so the crash happens.

Do you happen to use the "rest until fully healed" option in the game ?


Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#3 Miloch

Miloch

    Barbarian

  • Modder
  • 6514 posts

Posted 08 September 2018 - 07:46 PM

I seem to recall some discussion about this, but I don't know how long ago or where. I might suspect there could be some bug between scripts (especially potentially malformed mod scripts) that use PartyRested() in conjunction with, for example, HPLT(). The idea is that the latter trigger is going to change upon resting, and perhaps, kaboom, the game crashes.

 

Is there anything in baldur.err after such a crash if you can enable it in your game?


Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#4 Vlad

Vlad
  • Member
  • 575 posts

Posted 09 September 2018 - 04:31 AM

By that I mean that the rest script casts it while it might not be a healing spell, while it's counted to be such and the game fails to figure things out ... and so the crash happens.

 

I'm not sure it's even possible. Why would any custom spell be considered a healing spell? I've tried to remove the custom spells and high abilities one by one, but to no avail.

 

Do you happen to use the "rest until fully healed" option in the game ?

 

No.

 

Miloch, scripts are not responsible. I've blanked all the scripts, but the CTD upon rest still happens.

 

Is there anything in baldur.err after such a crash if you can enable it in your game?

 

It's a blank (zero byte) file.

 

These CTDs are random and not in all areas. Sometimes it's hard to reproduce them in the same area. I've solved the problem artificially, but if it still happens in the installation of VC + NeJ3, I'd like to have a report.


Edited by Vlad, 09 September 2018 - 04:35 AM.


#5 Vlad

Vlad
  • Member
  • 575 posts

Posted 28 September 2018 - 06:05 AM

With TobEx installed, it is possible to trace the error. The TobEx says:

 

 

An Assertion failed in CGameEffect.cpp at line number 1536

 

 

Any ideas?

 

It seems the same problem as here:

 

 

http://www.shsforums...-party-members/


Edited by Vlad, 28 September 2018 - 06:16 AM.


#6 subtledoctor

subtledoctor
  • Member
  • 612 posts

Posted 02 October 2018 - 03:49 PM

Do you perchance have some kind of spell or effect that constsntly refreshes/re-casts itself?

#7 Vlad

Vlad
  • Member
  • 575 posts

Posted 03 October 2018 - 12:40 PM

Not that I am aware of. But thanks anyway.