Jump to content


Photo

Crash when enterring The King Crypt


  • Please log in to reply
6 replies to this topic

#1 Fouinto

Fouinto
  • Member
  • 458 posts

Posted 05 April 2010 - 01:10 AM

Hi,

I've installed BWP 8.2 (or 8.3 I don't remember) tactics with a lot of mods removed (everything about NPC)

I've encountered a CtD and I didn't find someone having reported it : crash when entering AR0806.are (The King Crypt in the graveyard), even with CLUAConsole:MoveToArea("ar0806")

When trying to CLUA the creatures, the game crash when CLUAConsole:CreateCreature("BHCRYPT") It's the well known "King of the Crypt"

change-log BHCRYPT.CRE :

Mods affecting BHCRYPT.CRE:
00000: /* from game biffs */ ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ 0 0 // BG2 Fixpack - Core Fixes
00001: /* from game biffs */ ~KONTWK/SETUP-KONTWK.TP2~ 0 11 // Rod of Refuge
00002: ~SETUP-BPV179.TP2~ 0 0 // Big Picture AI/Enhancement Mod, version 179 weidu (beta)
00003: ~SETUP-BPV179.TP2~ 0 6 // Kensai Ryu's Improved Crypt King
00004: ~SCSII/SETUP-SCSII.TP2~ 0 6151 // Mages only cast short-duration spells instantly at start of combat if they are created in sight of the PC
00005: ~FULLPLATE/SETUP-FULLPLATE.TP2~ 0 1 // Full Plate And Packing Steel: Between You And Harm (alternate armour system)
00006: ~SETUP-XPMOD.TP2~ 0 1 // Reduce to 50%

I would be happy to tell you more, but I don't know what to do next :doh:

I've opened the cre file with NI, but I can't (don't know howto) remove his items to try deeper...

Attached Files



#2 Jarno Mikkola

Jarno Mikkola

    The Imp in his pink raincoat.

  • Member
  • 10911 posts

Posted 05 April 2010 - 01:28 AM

I've opened the cre file with NI, but I can't (don't know howto) remove his items to try deeper...

Export the the .cre file by selecting it in the tree from the CRE folder and right click on top of it, Export and then selecting a place to save it in(or it can be done without Exporting, but you'll be modifying the game resources/bad things can happen). Then open the file with DLTCEP or ShadowKeeper, clear out their inventory, put the file in the override folder and load the game and console it in.

The DLTCEP is quite intuitive(if it's already installed), I would recommend using it as it is less likely to cause bugs than Near Infinity in this and other cases.
Just load the exported .cre file, go to 'Items & Spells' and then select the item slot that doesn't have <empty> , and remove the 'Itemname'-s ... and select another item slot etc.

Edited by Jarno Mikkola, 05 April 2010 - 01:42 AM.

Deactivated account. The user today is known as The Imp.


#3 Fouinto

Fouinto
  • Member
  • 458 posts

Posted 05 April 2010 - 01:43 AM

Export the the .cre file by selecting it in the tree from the CRE folder and right click on top of it, Export and then selecting a place to save it in(or it can be done without Exporting, but you'll be modifying the game resources/bad things can happen). Then open the file with DLTCEP or ShadowKeeper, clear out their inventory, put the file in the override folder and load the game and console it in.

I did what just said with ShadowKeeper to remove all items and all memorized spells and it still crash.

The DLTCEP is quite intuitive, I would recommend using it as it is less likely to cause bugs.
Just load the exported .cre file, go to 'Items & Spells' and then select the item slot that doesn't have <empty> , and remove the 'Itemname'... and select another item slot etc.

OK then , I will try with DLTCEP if it's better.
Thank you

#4 Fouinto

Fouinto
  • Member
  • 458 posts

Posted 05 April 2010 - 03:45 AM

OK then , I will try with DLTCEP if it's better.
Thank you

I had never tried this tools, but in this case, it's better :cheers:

I load the .cre file, click on "Check the Creature" and then, DLTCEP complain "DLTCEP : Embedded effect (Unknown(3747892)) #3" see below.
If I remove this effect "4 Unknown(3747892) SPWI713 (0x323234 0x10003) SPWI506", then, I can CLUA the creature without crash :cheers:
Thank you for your help :Bow:

Attached files :
- BHCRYPT-crappy.CRE the creature that makes my game CTD
- DLTCEP.PNG : screen-shot showing the error seen by DLTCEP
- bhcrypt.cre the creature corrected

Hope this helps someone else.

Attached Images

  • DLTCEP.png

Attached Files



#5 Jarno Mikkola

Jarno Mikkola

    The Imp in his pink raincoat.

  • Member
  • 10911 posts

Posted 05 April 2010 - 03:54 AM

Hope this helps someone else.

Erhm, open the backups the --change-log'ging makes of the BHCRYPT.CRE and see which one of them doesn't have the above effect.

Deactivated account. The user today is known as The Imp.


#6 Fouinto

Fouinto
  • Member
  • 458 posts

Posted 05 April 2010 - 04:28 AM

Hope this helps someone else.

Erhm, open the backups the --change-log'ging makes of the BHCRYPT.CRE and see which one of them doesn't have the above effect.

OK then, I suppose that the number in front each lines of change-log is related to the number of the creature created by change-log...

So, Here is the change-log :
Mods affecting BHCRYPT.CRE:
00000: /* from game biffs */ ~BG2FIXPACK/SETUP-BG2FIXPACK.TP2~ 0 0 // BG2 Fixpack - Core Fixes
00001: /* from game biffs */ ~KONTWK/SETUP-KONTWK.TP2~ 0 11 // Rod of Refuge
00002: ~SETUP-BPV179.TP2~ 0 0 // Big Picture AI/Enhancement Mod, version 179 weidu (beta)
00003: ~SETUP-BPV179.TP2~ 0 6 // Kensai Ryu's Improved Crypt King
00004: ~SCSII/SETUP-SCSII.TP2~ 0 6151 // Mages only cast short-duration spells instantly at start of combat if they are created in sight of the PC
00005: ~FULLPLATE/SETUP-FULLPLATE.TP2~ 0 1 // Full Plate And Packing Steel: Between You And Harm (alternate armour system)
00006: ~SETUP-XPMOD.TP2~ 0 1 // Reduce to 50%


Here are the results of opening them in DLTCEP and "checking" theses creatures :
I open BHCRYPT.00002.cre then I check : OK
I open BHCRYPT.00003.cre then I check : OK
I open BHCRYPT.00004.cre DLTCEP says "Creature will be reordered (harmless inconsistency)." then I check : DLTCEP says "Bad general script reference: 'BPLEAD1' !"
I open BHCRYPT.00005.cre then I check : DLTCEP says "Embedded effect (Unknown(3747892)) #0"
I open BHCRYPT.00006.cre then I check : DLTCEP says "Embedded effect (Unknown(3747892)) #3"

So it seems to me that :
- "BP - Kensai Ryu's Improved Crypt King" introduce an "harmfull" error (BPLEAD1 not found). According to NI, I can't find BPLEAD1.BCS Note : this error is still there in the next cre file and in the one I've posted above but, believe me, this creature is still able to defend itself :crying: ...
- "SCSII - Mages only cast short-duration spells instantly..." introduce an error that lead to the CTD.

If you (or someone else) can confirm that what I say is right, I can post this error to G3 forum (if I remember well, SCSII forum is there).

Thank you very much for your help :)

#7 Lollorian

Lollorian

    smiley addict

  • Member
  • 4150 posts

Posted 05 April 2010 - 04:48 AM

- "BP - Kensai Ryu's Improved Crypt King" introduce an "harmfull" error (BPLEAD1 not found). According to NI, I can't find BPLEAD1.BCS Note : this error is still there in the next cre file and in the one I've posted above but, believe me, this creature is still able to defend itself :crying: ...

This looks like a typo at first glance :unsure:

BPv179 assigns general scripts called BPLEADER to many of its cre's, and the only reference to BPLEAD1 is this cre in the Improved Brypt lord component - BHCRYPT.cre ;) Maybe this should be reported to the BP forums for double-checking :)

- "SCSII - Mages only cast short-duration spells instantly..." introduce an error that lead to the CTD.

Afaict, this is now under the SCS AI components and the BWP warns you to use either BP or SCS, so most probably, another BP-SCS conflict?? :P (still SCS forums is the way to go :D)

"I am the smiley addict, yellow and round, this is my grin :D when I'm usually around :P.
When there's trouble brewing, see me post, cuz it's usually a wall o' yellow and your eyes are toast!!!"

BWP GUIDE - BWP FIXES - impFAQ - NPC LIST - KIT LIST - AREA LIST

GitHub Links : BWP Fixpack | Lolfixer | BWP Trimpack | RezMod