Jump to content


Photo

Assertion failed: Ch 6 Candlekeep CTD


  • Please log in to reply
23 replies to this topic

#1 MoonDragon303

MoonDragon303
  • Member
  • 10 posts

Posted 17 April 2012 - 03:23 PM

Hey everyone,

I recently started a fresh install of a BGT game, and have run into a game breaking error upon my return to Candlekeep in chapter 6. The error occurs right after my party's conversation with Ulraunt while being detained in the barracks. The journal updates, but crashes before Tethtoril arrives.

The error log displays this: Assertion Failed! File: ChVidImage. cppLine: 1921
Exp: FalseMsg: .BAM is corrupted (GetFrame () failed) Run Debugger?

From what I can tell, my problem is similar to the one experienced in this thread: http://www.shsforums...idimage3-error/
However, the issue was never resolved. I'm hoping that there is someway around this, and if not, if there is a way to avoid it on my next clean install.

I think it's noteworthy to mention that I installed all of these mods manually, since my Windows 7 OS refused to allow the BIG world install work properly. I followed the pdf instructions for the install almost to the letter, but it's possible that I made a critical mistake at some point.

My weidu log:
Spoiler


I'd appreciate any help that you guys can offer!

#2 Suslik

Suslik

    Investigator

  • Member
  • 500 posts

Posted 17 April 2012 - 04:07 PM

I think I have encountered this error probably in BWP 9.4 standard. And I definitely did fix it somehow. Unfortunately I do not remember the details. You are imprisoned in a cell and are waiting for a mage-looking fellow to return, right?

Have you tried to do it again? I mean I would have remembered if I struggled with this problem a lot, but I think I have fixed in some really easy manner like loading again.

Also please show your --change-log of Tethoril cre.

[offtop]I think it's noteworthy to mention that I installed all of these mods manually, since my Windows 7 OS refused to allow the BIG world install work properly.[/offtop]
Mother of god!

Edited by Suslik, 17 April 2012 - 04:19 PM.


#3 MoonDragon303

MoonDragon303
  • Member
  • 10 posts

Posted 17 April 2012 - 05:14 PM

I hope the solution is as simple as you expect! I have tried reloading it several times, even in variations where I would use the CLUAconsole to create Ulraunt and Tethtoril. Nothing has worked so far. I also cleared out my cache, temp, and tempsave folders to see if that would work, but alas it didn't either.

I attempted to learn how to use the --change-log tool, but I am clueless as to how I actually do it. It won't further harm my installation, will it?

PS: Your comment to my manual installation is really funny! It wasn't that hard though; in fact it was about 7 hrs vs. 13 on BiG world install.

#4 Sasha Al'Therin

Sasha Al'Therin
  • Modder
  • 615 posts

Posted 17 April 2012 - 07:27 PM

the change-log tool will not harm your game.

to make it work all you do is open the change-log.bat file with notepad, read and follow the instructions.

all the tool does is runs weidu and instructs it to examine the specified file against the list of mods installed to determine which ones if any actually made changes. The problem is that you need to know which file to run the tool on. Since it happens when Tethtoril appears, it is either his creature file, and item he is carrying, a spell he has memorized or if he is actually casting a spell an effect or sound file related to that. You could use Near Infinity or DLTCEP to look at Tethtoril's creature file and get a list of what items and spells he has. That would at least give you a starting point for seeing what mods affect which files.

I recently started a fresh install of a BGT game, and have run into a game breaking error upon my return to Candlekeep in chapter 6. The error occurs right after my party's conversation with Ulraunt while being detained in the barracks. The journal updates, but crashes before Tethtoril arrives.

Tethtoril isn't spawned at all? Does Ulraunt leave or is he still present when the crash happens? If he is still present, I'd recommend doing a change log on ulraun.dlg and/or looking to see what transition actions are for state 6 transition 0 (as weidu counts) in NI it would be state 7 and transition 1.

Unless it's been modded Ulraunt should talk, give a journal update, cutscene mode should start (i.e. control interface 'greyed out'), Ulraunt walks away and destroys himself. Then Tethtoril appears after the wait time of 20 is up which is long enough for all the other stuff to take place so he should show up shortly after Ulraunt leaves.

If nothing is wrong with Ulraunt's part and the dialog actions there are fine, then the point when Tethtoril is created offscreen becomes the most likely candidate and his creature file tethto2.cre should be examined, followed by his items etc...

I just checked my own BGT install. The BG2 fixpack apparently found items that were not properly assigned so they assign them in the correct slots. Why they would be 'fixing' a BG1 creature that was left behind in the BG2 stuff is beyond me.

ooo that just might be it Tethtoril's animation is monk and he is being equipped with a mace and a shield. It is not the same animation as that of the player characters. It is possible that that particular animation does not have capability to equip either weapon, shield, or armor. Nope I just tried it in my own game and that didn't cause a crash...

Edited by Sasha Al'Therin, 17 April 2012 - 07:39 PM.

My working mods:
an AI Party Script for BG2 game engine DOWNLOAD LINK ONLY!
Interactive Tweaks for BG series with some IWD support. DOWNLOAD LINK ONLY!
Rest For 8 Hours an IWD mod
-------------------------------------------
My contributions: BG1Fixpack, BG1Tweaks
On Hold: Solestia an NPC for SOA
-------------------------------------------
My website: http://sasha-altheri...s.com/index.htm


#5 MoonDragon303

MoonDragon303
  • Member
  • 10 posts

Posted 18 April 2012 - 11:17 AM

Ok, I’ve located the change-log.bat, but I don’t know what entries to make into the “########.### and ********.***.”

The convo with Ulraunt proceeds perfectly, as does the journal update and the cutscene mode. It’s only after the wait time of 20 that it crashes; as if Tethtoril was about to appear, but something went wrong with his spawn.

I’ve never used the change-log tool before, so how would I know which items, spells, etc to look at for Tethtoril?

#6 Sasha Al'Therin

Sasha Al'Therin
  • Modder
  • 615 posts

Posted 18 April 2012 - 11:27 AM

I’ve never used the change-log tool before, so how would I know which items, spells, etc to look at for Tethtoril?

Running BGT?
the creature file which should be spawned is tethto2.cre

therefore the first line in the list of commands should be
WeiDU.exe --log nul --change-log tethto2.cre >change-log/change-log.txt --out change-log
You'll find the file with the list of mods that affected his creature file in a file called change-log.txt in a directory called change-log all within the game directory.

All this will do is tell you what mods affected the file, not what changes they made.

If you wish to also change-log the items & spells you'll need to use a tool like Near Infinity, DLTCEP, Infinity Explorer etc to look at his creature file (tethto2.cre) and see what files are assigned to him.

My working mods:
an AI Party Script for BG2 game engine DOWNLOAD LINK ONLY!
Interactive Tweaks for BG series with some IWD support. DOWNLOAD LINK ONLY!
Rest For 8 Hours an IWD mod
-------------------------------------------
My contributions: BG1Fixpack, BG1Tweaks
On Hold: Solestia an NPC for SOA
-------------------------------------------
My website: http://sasha-altheri...s.com/index.htm


#7 MoonDragon303

MoonDragon303
  • Member
  • 10 posts

Posted 18 April 2012 - 05:27 PM

Thanks for walking me through that! The change-log notepad text read:

Spoiler


I'm looking at the CRE files using Near Infinity and so far I can see that there are 4 diff strings of tethtoril creatures: TETHTO.CRE, TETHTO2.CRE, TETHTO3.CRE, and TETHTORI.CRE. Is there anything I should specifically check on for him?

Edited by MoonDragon303, 18 April 2012 - 06:01 PM.


#8 Sasha Al'Therin

Sasha Al'Therin
  • Modder
  • 615 posts

Posted 18 April 2012 - 06:04 PM

Normally, the process would be to uninstall each mod in order of what affects the file to see when the problem goes away. that however with a big install of mods is impractical. One thing you could do is the following:
  • go into the override folder and find tethto2.cre, rename it to something like tethto2BAK.cre you biffed so it should be inside a bif, skip to the next point then.
  • go to the backup folder of last mod look in the sub folders they are numbered to match the component number and look for tetho2.cre, copy that to your override (COPY not MOVE)
  • try your game and see if it still crashes
  • repeat the procedure with the next mod
  • do that till you get a version of his file that doesn't crash.
If you get all the way to his original file (the one stored in the backup of BG2 Fixpack) before the game stops crashing, then we have to determine if anything was done to any items or spells that he may have on file.

I know BG2 Fixpack enabled some items and it looks like BGTTWEAK may have modified those items further. Not exactly sure what P5TWEAKS does and I'm doubtful that a portrait mod could cause the crash unless it was right as the dialog would have started, but you don't see Tethtoril at all so its not that...

My working mods:
an AI Party Script for BG2 game engine DOWNLOAD LINK ONLY!
Interactive Tweaks for BG series with some IWD support. DOWNLOAD LINK ONLY!
Rest For 8 Hours an IWD mod
-------------------------------------------
My contributions: BG1Fixpack, BG1Tweaks
On Hold: Solestia an NPC for SOA
-------------------------------------------
My website: http://sasha-altheri...s.com/index.htm


#9 Suslik

Suslik

    Investigator

  • Member
  • 500 posts

Posted 18 April 2012 - 06:38 PM

Yep, try to restore all of those backups, one by one. For example, take file TETHTO2.0001,cre, put it to "override" folder and rename to TETHTO2.cre(remove 0001 part). If it will not CDT anymore, try restoring older backups to find out which exact mod is responsible for the crash. If that does not help, try following things:
- check the script running in that area. press "l" button while one that location, you'll see its area code, something like ARXXXX. Then open your Near Infinity and find script attached to that area - ARXXXX.bcs. If you have problems understanding it, just post it here.
- check Tethtoril's dialog. In order to do it, open TETHT02.cre with Near Infinity and click on his dialog(probably something like TETHT02.dlg). If it looks wrong, you can try and replace it from a some of the backups, --change-log'ing it.
- I hope you'll not get to this point, since it will probably will be solved, but if you do, you'll have to check all TETHT02.cre's items, spells and scripts if they all look okay-ish.

It may look a little complicated and overwhelming at first, but don't worry, you'll get used to it soon.

And for the sake of charity and good, will DO NOT try to uninstall/reinstall anything which was installed before generalized biffing. It fails a little more often than always and screws the whole install. The only thing you can do is to put files you want to replace into override folder manually.

Sasha Al'Therin, are you sure that TETH02.cre is the right one?

Edited by Suslik, 18 April 2012 - 06:43 PM.


#10 Sasha Al'Therin

Sasha Al'Therin
  • Modder
  • 615 posts

Posted 18 April 2012 - 07:11 PM

Sasha Al'Therin, are you sure that TETH02.cre is the right one?

It is not teth02.cre it is tetho2.cre using lower case letters helps to distinguish between an uppercase O and the number 0 ^^

tethto.cre is the initial version that the player meets in the prolog (ar0015.are in BGT)

tethto2.cre is the version the player meets in ar6514.are and is told about Gorion's belongs for the player and is created in the jailhouse. He is also created in ar2631.bcs (a carry over from BG in the BG2 resources) and in ar6531.bcs (BGT's script for the area) -- do note the scripts are different, don't see a reason why they needed to be combined into a single block but there is also no reason why it wouldn't work in a single block.

tethto3.cre is the doppleganger version met down in the catacombs beneath candlekeep

tethtori.cre does not exist in my install and as such must be mod added.

So in a normal install, I'm sure that tetho2.cre is the proper one. However since I missed the edit where the list of cre files were added and there is an unknown version of his creature file (I was typing up my reply) , I'm going to have to ask that the script ar6531.bcs be either decompiled via weidu or looked at with Near Infinity or another editor to see which is actually created in the script.

My working mods:
an AI Party Script for BG2 game engine DOWNLOAD LINK ONLY!
Interactive Tweaks for BG series with some IWD support. DOWNLOAD LINK ONLY!
Rest For 8 Hours an IWD mod
-------------------------------------------
My contributions: BG1Fixpack, BG1Tweaks
On Hold: Solestia an NPC for SOA
-------------------------------------------
My website: http://sasha-altheri...s.com/index.htm


#11 MoonDragon303

MoonDragon303
  • Member
  • 10 posts

Posted 18 April 2012 - 08:06 PM

1) I tried restoring all the backups I could find, including: generalized biffing, NSC portraits, p5tweaks, and the change log. I couldn't find any backups of his cre file in BGTtweak or BG2 fixpack. The CTD still occured in the same manner for all of the aforementioned files.

2) The dialogue looks fine, at least as far as I remember it! The global variables that are supposed to trigger the dialogue are all active.

3) The items that he has equipped are the following:
CHAN02.ITM (Chainmail +1)
SHLD04.ITM (Medium Shield +1)
BLUN05.ITM (Masterwork Mace)
SCRL75.ITM (Identify)

He only has one known spell: SPPR503.SPL (Flame Strike)

I tried to locate the area code in-game, but since the CTD occurs in cut scene mode, I was unable to use the area # function. I searched for the code using Near Infinity that you provided, Sasha, but it turned up "no hits." Could you explain to me how I need to locate it?

NOTE: I'm pretty confident that TETHTORI.cre is from The Darkest Day mod, since there are a few TETHTORI files that are within TDD folder.

Edited by MoonDragon303, 18 April 2012 - 08:09 PM.


#12 Suslik

Suslik

    Investigator

  • Member
  • 500 posts

Posted 18 April 2012 - 08:24 PM

I couldn't find any backups of his cre file in BGTtweak or BG2 fixpack.

No need to search for backup folders. Just rename your tethto2.00001.cre file in your change log directory to a normal tethto2.cre and put it to override. This is usually the easiest method to overcome minor bugs/determine which mod causes them.

Could you explain to me how I need to locate it?

Just open Near Infinity and open "BCS" subfolder from the left menu. It contains all game scripts. Then locate the one corresponding to the are code.

I tried to locate the area code in-game, but since the CTD occurs in cut scene mode, I was unable to use the area # function.

Can you pause the game before the cutscene while in this area? "L" hotkey works even when paused.

You can also try and check which animation he has. Go to tetho2.cre, then to "Edit" and tell me what you see in "Animation" entry.

CHAN02.ITM (Chainmail +1)
SHLD04.ITM (Medium Shield +1)
BLUN05.ITM (Masterwork Mace)
SCRL75.ITM (Identify)

He's armed and dangerous. Though these are pretty standard items and unlikely to cause such trouble.

Edited by Suslik, 18 April 2012 - 08:38 PM.


#13 Sasha Al'Therin

Sasha Al'Therin
  • Modder
  • 615 posts

Posted 19 April 2012 - 05:09 AM

Now that you got Near Infinity and have some sort of idea how to use it.
  • Open it up & point to your BGT directory
  • navigate the ARE directory till you find AR6531.ARE, open it -- AR6531 is the area reference for the jailhouse on the return trip to Candlekeep
  • in the window that opens there should be a line called Area Script with a file next to it.
  • if the file is not greyed out then it exists, click on it and a new window opens with the content.
  • copy/paste the contents inside the code tag and all that inside the spoiler tag else copy this and use it.
[spoiler][quote]replace quote with code and paste the contents where this line of text is at[/quote][/spoiler]

If the script file has a line with the following: CreateCreature("tethto2",
then we've been looking at the correct creature file. If there is some other version of tethtoril being created there...

My working mods:
an AI Party Script for BG2 game engine DOWNLOAD LINK ONLY!
Interactive Tweaks for BG series with some IWD support. DOWNLOAD LINK ONLY!
Rest For 8 Hours an IWD mod
-------------------------------------------
My contributions: BG1Fixpack, BG1Tweaks
On Hold: Solestia an NPC for SOA
-------------------------------------------
My website: http://sasha-altheri...s.com/index.htm


#14 MoonDragon303

MoonDragon303
  • Member
  • 10 posts

Posted 19 April 2012 - 09:29 AM

I think I did this properly, but for some reason the "spoiler" and "quote" tags weren't working for me. I hope that's not a big issue...

IF
OnCreation()
THEN
RESPONSE #100
StartCutSceneMode()
Wait(10)
CreateCreature("ULRAUN",[373.428],0) // Ulraunt
ActionOverride("Ulraunt",MoveToPoint([407.268]))
ActionOverride("Ulraunt",Dialogue([PC]))
Wait(20)
CreateCreature("TETHTO2",[373.428],0) // Tethtoril
ActionOverride("Tethtoril2",MoveToPoint([407.268]))
EndCutSceneMode()
ActionOverride("Tethtoril2",Dialogue([PC]))
END


His animation model is MONK - 25602

Edited by MoonDragon303, 19 April 2012 - 09:39 AM.


#15 Sasha Al'Therin

Sasha Al'Therin
  • Modder
  • 615 posts

Posted 19 April 2012 - 10:09 AM

I think I did this properly, but for some reason the "spoiler" and "quote" tags weren't working for me. I hope that's not a big issue...

not a big deal. only reason I suggested to do that was cause I didn't know how long your script could be.

Since Ulraunt is being created and dialogs fine with the player and Tethtoril is not being created. We were correct in looking at tethto2.cre

There are a couple of possibilities that need to be explored. Some of which have already been mentioned & possibly tried.

run change-log on tethto2.cre
run change-log on each item/spell that he has
go backwards file version by file version of each change made to the files.

I was not aware that change-log put an actual copy of the file within the change-log directory. This will make things easier.

Example from my install:
Spoiler


Since you've stated that you have already tried the various versions of tethto2.cre at your disposal, I will recommend that you focus your efforts on one particular item (for now) that being blun05.itm Why? you have a different name listed from the base game version. That says to me at least a name change took place but other things could have happened as well. At the very least, you could try deleting the weapon from Tethtoril's inventory and see if that solves the crash.

You have the same animation on your Tethtroil's creature file as I have on mine. I was able to clua him in without any crashing and he was wielding items as he was assigned by the BG2 Fixpack. Unless you've something that changes the actual animation of that slot, I doubt that would be the problem.

My working mods:
an AI Party Script for BG2 game engine DOWNLOAD LINK ONLY!
Interactive Tweaks for BG series with some IWD support. DOWNLOAD LINK ONLY!
Rest For 8 Hours an IWD mod
-------------------------------------------
My contributions: BG1Fixpack, BG1Tweaks
On Hold: Solestia an NPC for SOA
-------------------------------------------
My website: http://sasha-altheri...s.com/index.htm


#16 Suslik

Suslik

    Investigator

  • Member
  • 500 posts

Posted 19 April 2012 - 10:20 AM

Maybe his sounds or portrait are messed? Apart from removing everything from his inventory I'm starting to run out of ideas.

Take a look at my setup:
Spoiler

I have all mods that you do(except for "00002: ~P5TWEAKS/SETUP-P5TWEAKS.TP2~ 0 30 // Drop Items on Imprisonment: v5.1" which I hope is minor) and I can CLUA him to me and talk to him just fine. Weird.

Edited by Suslik, 19 April 2012 - 10:25 AM.


#17 Sasha Al'Therin

Sasha Al'Therin
  • Modder
  • 615 posts

Posted 19 April 2012 - 12:16 PM

(except for "00002: ~P5TWEAKS/SETUP-P5TWEAKS.TP2~ 0 30 // Drop Items on Imprisonment: v5.1" which I hope is minor)

I looked at that and all it does is install protections to certain spells/effects on specific creatures meeting certain criteria. Tethtoril is not one of them. However, it does run a cre validity and cre reindex which tethtoril does get caught and 'corrected' I installed that component and it didn't affect me being able to clua him in.

This leads me to believe that it very well could be a change to blun05.itm (or something else). Since the op's copy has a different name, there very well could have been other adjustments made. perhaps something about it could have been corrupted and since Tethtoril is spawned wielding it, boom, crash... The portrait and sounds could be a cause but according to OP Tethtoril never shows up and he'd have to be there to try and run a sound or show his portrait in dialog.

And the error message reported says specifically that it's a BAM problem. which means something visual like animations, icons, graphic effects, etc...

EDIT: ran across this quote over at G3. wouldn't hurt to try it and see what is further reported.

In case the BG2 game crashes, open up the 'baldur.ini' in your game folder, and under the [Program Options] section in the file, make a new line and type in 'Logging On=1' (without the '' quotes, unless the line is already there)... Save the file and exit. Now go back into the game and try to reproduce the crash. Then look in your game folder again for the Baldur.err file and open it with the Notepad to analyze its contents, or let us do it.


Edited by Sasha Al'Therin, 19 April 2012 - 12:31 PM.

My working mods:
an AI Party Script for BG2 game engine DOWNLOAD LINK ONLY!
Interactive Tweaks for BG series with some IWD support. DOWNLOAD LINK ONLY!
Rest For 8 Hours an IWD mod
-------------------------------------------
My contributions: BG1Fixpack, BG1Tweaks
On Hold: Solestia an NPC for SOA
-------------------------------------------
My website: http://sasha-altheri...s.com/index.htm


#18 MoonDragon303

MoonDragon303
  • Member
  • 10 posts

Posted 19 April 2012 - 01:47 PM

I change-logged all the items and spells he has equipped, copied all of the orginial files into the override, and ran the game. The CTD still occured. I'm trying to remove all his items using Near Infinity, but I can't figure out how to do it. Could either of you let me know how?

I'm almost positive that it has something to do with Tethto2 in particular, and not the area. I CLUAed him in an area that I know functions properly, and it crashed the moment he should have spawned. I can create the other 3 Tethtoril's without any issue, which is pretty strange. Tethto3 and Tethtori have "nothing to say to me," but I'm not sure if that's significant or not.

NOTE: I had the idea to compare the items of all of the Tethtorils and found that TETHTORI is also wielding the BLUN05. The interesting thing is that Tethto2 is unique in that he's the only one wearing CHAN02 and SHLD04.

Edited by MoonDragon303, 19 April 2012 - 01:52 PM.


#19 Suslik

Suslik

    Investigator

  • Member
  • 500 posts

Posted 19 April 2012 - 02:15 PM

I suppose it might have something to do with his animation. Though I do not how to check it myself, try to investigate in that direction.

I'm trying to remove all his items using Near Infinity, but I can't figure out how to do it

Open his .cre file, then "Edit" tab.

Edited by Suslik, 19 April 2012 - 02:18 PM.


#20 Sasha Al'Therin

Sasha Al'Therin
  • Modder
  • 615 posts

Posted 19 April 2012 - 03:39 PM

Lets make a test.
  • Open NI & find tethto2.cre
  • Click on Edit and look for the line labeled Animation
  • click on it and a selection window should appear at the bottom of the screen
  • choose MONK_MALE_HUMAN - 25856
  • click update value then save
  • try loading him into game.
If it works then it is a problem with his character animation, tho that would be bad as there are several Cowled Wizards in Athkatla that use the same animation. You could instead look for one of those creature references and clua it in to see if they load up.

If it does turn out to be the character animation, I've no clue how to fix it other than to give him a different animation that will work so you can get thru the game.

My working mods:
an AI Party Script for BG2 game engine DOWNLOAD LINK ONLY!
Interactive Tweaks for BG series with some IWD support. DOWNLOAD LINK ONLY!
Rest For 8 Hours an IWD mod
-------------------------------------------
My contributions: BG1Fixpack, BG1Tweaks
On Hold: Solestia an NPC for SOA
-------------------------------------------
My website: http://sasha-altheri...s.com/index.htm