Jump to content

Getting assertion fail "File: ObjCreatureAI.cpp Line: 19722" when fighting mages


Recommended Posts

Hi, I don't know if it's caused by SCS but that's what it seems to me, any ideas of what this error is or how to fix it?

"ASSERTION FAILED! Return Address: 0x940CB5 File: ObjCreatureAI.cpp Line: 19722 Expression: FALSE Message: (null)"

Happens on Sion and Lavok every time except when I manage to explode Sion with a backstab. Weidu log:

Spoiler

// Log of Currently Installed WeiDU Mods
// The top of the file is the 'oldest' mod
// ~TP2_File~ #language_number #component_number // [Subcomponent Name -> ] Component Name [ : Version]
~TOBEX/TOBEX.TP2~ #0 #100 // TobEx - Core: v28
~TOBEX/TOBEX.TP2~ #0 #103 // Blindness As Spell Description: v28
~TOBEX/TOBEX.TP2~ #0 #104 // Disable Stoneskin Grey Colour [C]: v28
~TOBEX/TOBEX.TP2~ #0 #105 // No Spell Interruption On Zero Damage: v28
~TOBEX/TOBEX.TP2~ #0 #110 // Disable Force Inventory Pause: v28
~TOBEX/TOBEX.TP2~ #0 #111 // Disable Silence On Charm: v28
~TOBEX/TOBEX.TP2~ #0 #113 // Remain Hidden On Pickpocket Success [C]: v28
~TOBEX/TOBEX.TP2~ #0 #116 // Enable Animation Attack Sounds: v28
~TOBEX/TOBEX.TP2~ #0 #120 // Drop Inventory on Disintegrate: v28
~TOBEX/TOBEX.TP2~ #0 #121 // Drop Inventory on Frozen Death: v28
~TOBEX/TOBEX.TP2~ #0 #122 // Drop Inventory on Stone Death: v28
~TOBEX/TOBEX.TP2~ #0 #123 // Enable Auto-Pause On All Screens: v28
~TOBEX/TOBEX.TP2~ #0 #124 // Make All Attack Animations Genuine Attacks: v28
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #0 // BG2 Fixpack - Core Fixes: v13
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #3 // BETA Core Fixes (please check the readme!): v13
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #100 // Party Gets XP for Sending Keldorn to Reconcile With Maria: v13
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #101 // Improved Spell Animations: v13
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #103 // Mixed-Use Dagger Fixes: v13
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #110 // Additional Script Fixes: v13
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #111 // Bard Song Fixes: v13
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #113 // Additional Alignment Fixes: v13
~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ #0 #115 // Paws from Shapeshifting Can Not Be Dispelled: v13
~TOBEX_AFTERLIFE/TOBEX_AFTERLIFE.TP2~ #0 #200 // TobEx AfterLife: v29.13
~BG2IMPROVEDGUI/BG2IMPROVEDGUI.TP2~ #0 #200 // Colorize icon of not memorized scrolls: 5.6
~BG2IMPROVEDGUI/BG2IMPROVEDGUI.TP2~ #0 #300 // Hide 'Write magic' button for already known spells and for opposition schools: 5.6
~BG2IMPROVEDGUI/BG2IMPROVEDGUI.TP2~ #0 #500 // THAC0 and Damage info on Inventory screen -> Default background picture: 5.6
~BG2IMPROVEDGUI/BG2IMPROVEDGUI.TP2~ #0 #530 // Weapon Damage info on Record screen: 5.6
~BG2IMPROVEDGUI/BG2IMPROVEDGUI.TP2~ #0 #700 // Show Total Roll on Character Generation screen: 5.6
~BG2IMPROVEDGUI/BG2IMPROVEDGUI.TP2~ #0 #820 // Journal with folding quests -> Original text area: 5.6
~BG2IMPROVEDGUI/BG2IMPROVEDGUI.TP2~ #0 #1000 // Smart Hand Off Slot: 5.6
~BG2IMPROVEDGUI/BG2IMPROVEDGUI.TP2~ #0 #1125 // Show Character's active effects on right mouse click -> Casted spells + show remaining time only for spells casted by Party (recommended): 5.6
~BG2IMPROVEDGUI/BG2IMPROVEDGUI.TP2~ #0 #1400 // Do not clear Drained Spell Slots: 5.6
~BG2IMPROVEDGUI/BG2IMPROVEDGUI.TP2~ #0 #1550 // Show Hit Points/Action on Portrait -> Hit Points + Action ('tab' pressed): 5.6
~BG2IMPROVEDGUI/BG2IMPROVEDGUI.TP2~ #0 #2200 // Fast LOAD/SAVE Screen: 5.6
~BG2IMPROVEDGUI/BG2IMPROVEDGUI.TP2~ #0 #2600 // Improved Store/Bag Interface: 5.6
~BG2IMPROVEDGUI/BG2IMPROVEDGUI.TP2~ #0 #2900 // Spell Sequencer Panel: 5.6
~BG2IMPROVEDGUI/BG2IMPROVEDGUI.TP2~ #0 #3000 // Innate/Ability/Spell Description Screen on Right Click (includes Icon/Item Abilities/Tooltip fixes and Innate/Ability text update by Prozh): 5.6
~BG2IMPROVEDGUI/BG2IMPROVEDGUI.TP2~ #0 #3100 // Disable Portrait Icons Added by Class Abilities/Equipped Items: 5.6
~BG2IMPROVEDGUI/BG2IMPROVEDGUI.TP2~ #0 #3400 // New Spell Selection Overlay Menu: 5.6
~BG2IMPROVEDGUI/BG2IMPROVEDGUI.TP2~ #0 #3700 // Auto Switch Spell Book between Priest and Mage: 5.6
~BG2IMPROVEDGUI/BG2IMPROVEDGUI.TP2~ #0 #3810 // Additional Character Information on Record Screen (intoxication, fatigue, luck, casting speed, thac0 specialization bonus) -> Show always: 5.6
~BG2IMPROVEDGUI/BG2IMPROVEDGUI.TP2~ #0 #4100 // Additional Icons on Portrait (improved invisibility, blur/mirror image, morale break): 5.6
~IMOEN_FOREVER/IMOEN_FOREVER.TP2~ #0 #0 // Imoen 4 Ever in BGII: Imoen Returns after Talking to Gaelan in Chapter 2: v10
~IMOEN_FOREVER/IMOEN_FOREVER.TP2~ #0 #1 // Imoen 4 Ever in BGII: Give Imoen Dialogue Content in SoA: v10
~IMOEN_FOREVER/IMOEN_FOREVER.TP2~ #0 #2 // Imoen 4 Ever in BGII: Yoshimo Comes to Brynnlaw: v10
~ASCENSION/ASCENSION.TP2~ #0 #0 // Rewritten Final Chapter of Throne of Bhaal: 2.0.23
~ASCENSION/ASCENSION.TP2~ #0 #10 // Balthazar can be redeemed: 2.0.23
~ASCENSION/ASCENSION.TP2~ #0 #20 // Improved Sarevok-Player Interactions: 2.0.23
~ASCENSION/ASCENSION.TP2~ #0 #30 // Improved Imoen-Player Interactions in Throne of Bhaal: 2.0.23
~ASCENSION/ASCENSION.TP2~ #0 #40 // Restored Bhaalspawn Powers: 2.0.23
~WHEELS/SETUP-WHEELS.TP2~ #0 #0 // The Wheels of Prophecy: v8.5
~UB/SETUP-UB.TP2~ #0 #4 // Gorje Hilldark and the Extended Illithium Quest: v28
~UB/SETUP-UB.TP2~ #0 #6 // Restored Crooked Crane Inn: v28
~UB/SETUP-UB.TP2~ #0 #15 // NPC Portrait Restorations: v28
~UB/SETUP-UB.TP2~ #0 #18 // Restored Minor Dialogs: v28
~UB/SETUP-UB.TP2~ #0 #20 // Extended ToB Item Descriptions: v28
~UB/SETUP-UB.TP2~ #0 #21 // Throne of Bhaal Minor Restorations: v28
~UB/SETUP-UB.TP2~ #0 #24 // Sarevok's Remorse: v28
~IMOENFRIENDSHIP/IMOENFRIENDSHIP.TP2~ #0 #0 // Imoen Friendship: v3.6
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #50 // Avatar Morphing Script: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #60 // Weapon Animation Tweaks: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #130 // Force All Dialogue to Pause Game: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #140 // Fix Boo's Squeak: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #180 // Unique Containers [Miloch] -> Fixes only: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #3151 // Remove Annoying Visual Effects from Equipped Items -> Remove all of the above: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #2010 // Separate Resist Fire/Cold Icon into Separate Icons [Angel]: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #1010 // More Interjections: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #1070 // Improved Multi-Player Kick-Out Dialogues: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #1080 // Add Bags of Holding: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #1170 // Bonus Merchants [Baldurdash]: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #1220 // Allow Cromwell to Upgrade Watcher's Keep Items: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #1230 // Allow Cespenar to Use Cromwell Recipes: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #2090 // Change Experience Point Cap -> Remove experience cap: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #2170 // Cast Spells from Scrolls (and Other Items) at Character Level: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #2210 // Change Grandmastery Bonuses -> True grandmastery [Baldurdash]: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #2300 // Triple-Class HLA Tables: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #2330 // Remove Delay for Magical Traps [Ardanis/GeN1e]: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #2520 // Allow Mages to Use Bucklers and Thieves to Use Small Shields [Angel]: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #2999 // Max HP at Level One: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #3000 // Higher HP on Level Up -> Maximum: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #3012 // Maximum HP Creatures [the bigg] -> For party-joinable NPCs only: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #3030 // Easy Spell Learning -> 100% learn spells: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #3060 // Remove "You Must Gather Your Party..." Sound [Weimer]: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #3083 // Increase Ammo Stack Size -> Stacks of 120: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #3121 // Happy Patch - Alter How Party NPCs Complain About Reputation -> NPCs can be angry about reputation but never leave [Salk]: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #3124 // Stop Haer'Dalis-Aerie Romance from Starting: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #3160 // Keep Drizzt's Loot, Disable Malchor Harpell [Weimer]: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #3175 // Disable Romances: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #3310 // Start New Games with Party AI Turned Off: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #3330 // Make Party Members Less Likely to Die Irreversibly: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #4020 // ToB-Style NPCs: v16
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #4050 // Change Jaheira to Neutral Good Alignment: v16
~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #3551 // Increase the power of Cure Wounds and Cause Wounds spells to the level found in 3rd Edition D&D -> Spells heal or inflict the maximum amount of damage in this range: 34.3
~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #4000 // Faster Bears: 34.3
~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #5000 // Ease-of-use party AI: 34.3
~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #5900 // Initialise AI components (required for all tactical and AI components): 34.3
~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6000 // Smarter general AI: 34.3
~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6010 // Better calls for help: 34.3
~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6030 // Smarter Mages: 34.3
~STRATAGEMS/SETUP-STRATAGEMS.TP2~ #0 #6040 // Smarter Priests: 34.3
~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #101 // Prevent skeletal and incorporeal undead from being affected by Illithids' Devour Brain attack: v4.53
~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #117 // Allow Mages to scribe memorized spells onto scrolls -> Scrolls can only be scribed at inns and strongholds: v4.53
~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #200 // Allow Breach to take down Stoneskin effects applied by items: v4.53
~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #201 // Instant casting for warrior innates: v4.53
~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #241 // Revised Bhaalpowers -> Only standardize the Bhaalpowers' casting time: v4.53
~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #211 // Make Death Ward protect against Vorpal Hits: v4.53
~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #210 // Restore the Dispel Magic vulnerability to Nishruu and Hakeashars: v4.53
~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #220 // Simple Thief script: v4.53
~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #230 // Simple Bard script: v4.53
~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #239 // Simple Cleric/Paladin script: v4.53
~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #500 // Slightly expanded storage capacity for containers -> Use the recommended storage capacity value (999): v4.53
~ATWEAKS/SETUP-ATWEAKS.TP2~ #0 #999 // BG2-style icons for aTweaks content: v4.53
~EET_TWEAKS/EET_TWEAKS.TP2~ #0 #3000 // Disable hostile reaction after charm: 1.12
~KLATU/SETUP-KLATU.TP2~ #0 #1020 // Prepared Wishes: 1.7
~KLATU/SETUP-KLATU.TP2~ #0 #1050 // Appropriate XP Rewards for Cowled Enforcers: 1.7
~KLATU/SETUP-KLATU.TP2~ #0 #2050 // Prevent Wish Spells from Interrupting Caster: 1.7
~KLATU/SETUP-KLATU.TP2~ #0 #2110 // Treat all Innate Abilities as Non-Magical (Unaffected by Wild/Dead Magic and Silence): 1.7
~KLATU/SETUP-KLATU.TP2~ #0 #2130 // Treat all Bardsong Effects as Non-Magical (Unaffected by Wild/Dead Magic): 1.7
~KLATU/SETUP-KLATU.TP2~ #0 #2140 // Allow Arcane Spellcasting in Armor: 1.7
~KLATU/SETUP-KLATU.TP2~ #0 #2150 // Allow Thievery in Armor: 1.7
~KLATU/SETUP-KLATU.TP2~ #0 #2160 // Remove Delay from Improved Haste Spells: 1.7
~KLATU/SETUP-KLATU.TP2~ #0 #2190 // Modal Buff AI Script: 1.7
~CDTWEAKS/SETUP-CDTWEAKS.TP2~ #0 #3072 // Change Effect of Reputation on Store Prices -> Reputation has no effect, stores price fixed at 80% [Luiz]: v16
~EDWIN_NALIA/SETUP-EDWIN_NALIA.TP2~ #0 #60 // Make the Edwin s amulet droppable
~EDWIN_NALIA/SETUP-EDWIN_NALIA.TP2~ #0 #65 // Make Nalia s ring droppable

Link to comment

This particular one hasn't happened to me but it looks like you're running the original engine with ToBEx? And EET Tweaks? I don't think the current version of SCS is stable with ToBEx on non-EE games and really isn't being actively supported and updated, and I've no idea whether any EET Tweak components which were mostly designed for a different engine work alongside it.

Can you check Sion's script? Does his initial Chain Contingency contain a summoning spell? Certain animations are borked and reliably cause a crash to desktop.

Link to comment

Sion's Chain Contingency fires Improved Mantle, I:Abjuraton and a Horrid Wilthing, and the game continues ok, it crashes sometime after that as I continue playing if Sion stays alive. I checked his spells and he has Summon Dark Planetar, which I've never seen in the battle, so it's possible that the game crashes when he wants to summon it. I summoned a dark planetar on a player character and it worked fine.

I assumed the only EET Tweaks option that I use wouldn't break things, as it says it's compatible with "BG2" (as Graion has linked to) but maybe it does.

Link to comment

Turns out Time Stop causes the crash. It worked when I charmed Sion and cast Summon Dark Planetar but when I tried to cast Time Stop I got the assertion fail. Same thing happens if I try to cast Time Stop with the main character. The spell doesn't start to cast, as soon as I click on the spell icon in the spell menu the game crashes.

Looking at the weidu log, any ideas what is likely to be causing it? Maybe it isn't SCS, I assumed it was when I saw ObjCreatureAI.cpp. I just had a look at the BG2 Fixpack docs to check BETA Core Fixes and don't see anything Time Stop related.

Link to comment
6 hours ago, cdx said:

Turns out Time Stop causes the crash. It worked when I charmed Sion and cast Summon Dark Planetar but when I tried to cast Time Stop I got the assertion fail. Same thing happens if I try to cast Time Stop with the main character. The spell doesn't start to cast, as soon as I click on the spell icon in the spell menu the game crashes.

Time Stop actually does summon an invisible creature to act as a timer (on original BG2 SCS with ToBEx, haven't checked the EE version) but only if cast successfully. If the crash occurs the instant casting is attempted the problem is something completely different.

Can you extract SPWI909.spl from your installation's override folder and PM it to me? I'll see if I can figure out what's happening when I have time later today.

Link to comment
9 hours ago, cdx said:

Sion's Chain Contingency fires Improved Mantle, I:Abjuraton and a Horrid Wilthing, and the game continues ok, it crashes sometime after that as I continue playing if Sion stays alive. I checked his spells and he has Summon Dark Planetar, which I've never seen in the battle, so it's possible that the game crashes when he wants to summon it. I summoned a dark planetar on a player character and it worked fine.

I assumed the only EET Tweaks option that I use wouldn't break things, as it says it's compatible with "BG2" (as Graion has linked to) but maybe it does.

What graphical settings do you have setuped in the game ? This sounds like you are using the wrong graphic setting in one of the .ini files settings. 3d setting something possibly. Don't remember much of this, but the error feels familiar.
The summoned creature has a bad animation circle that crashes the game.

Edited by Jarno Mikkola
Link to comment

Thank you for the tips, it turns out it was another mod. I did a new identical install to see at what point it starts crashing and after some trial and error it got fixed by removing "~KLATU/SETUP-KLATU.TP2~ #0 #2050 // Prevent Wish Spells from Interrupting Caster: 1.7".

No idea how it was causing Time Stop to break but without it things seem to be working. Sion fires off a Time Stop during the battle, which he didn't do previously, and the game keeps going.

Link to comment
On 2/20/2023 at 11:29 AM, Endarire said:

What game version are you using - EETEE 2.6?  ToBEx?  Other?

Thankee!

ToBEx v28 installed first, then TobEx AfterLife: v29.13 installed over it for BG2IMPROVEDGUI. The weidu.log is in the first post for more details. The prolem is no more though, with the removal of one of the Klatu tweaks.

Link to comment
1 hour ago, Endarire said:

Which klatu tweak did you remove that was harmful to you?

A few posts above your post, it says: "~KLATU/SETUP-KLATU.TP2~ #0 #2050 // Prevent Wish Spells from Interrupting Caster: 1.7"."

Edited by Jarno Mikkola
Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...