Jump to content


Assertion failed


  • Please log in to reply
25 replies to this topic

#1 -Deadlok-

-Deadlok-
  • Guest

Posted 03 October 2005 - 09:29 AM

Hi everyone; I installed the following, in the given order :

BG1 + TotSC + official patch
BG2 + ToB + official patch
Baldurdash Weidu 1.5
Baldur's Gate Trilogy Weidu Beta4
SoS 1.04 + Anim patch 1.04
TDD 1.04 + Anim patch 1.04
DSotC Weidu latest version
NSotC Weidu latest version
Secret of Bonehill latest
Ascension latest
The Longer Road 1.5

After i installed TLR 1.5, when i start the game i receive an error popup saying :
"Assertion failed in ChSound.cpp at line number 4905"; i click OK, and the game exits back to desktop. Any ideas ?

Thank you.

#2 Seifer

Seifer

    The best Anti-Paladin weapon is a tin opener...!

  • Member
  • 4505 posts

Posted 03 October 2005 - 09:39 AM

This means that there are more then 99 music tracks within the game, something which is unavoidable I'm afraid so you'll need to know which mods add music. If any of them have an optional music install, take them out and see how it goes.

how come you always look so damn cool in every photo I see you in?!?


Speaking of modding, I listened to IER 3 yesterday, so you can have another quote for your signature: how come you sound so damn cool, as well as look it? It's unfair. Seriously.


Still a cyberjock, still hacking the matrix, still unsure of what that means.

TeamBG member - http://www.teambg.eu

#3 -Deadlok-

-Deadlok-
  • Guest

Posted 03 October 2005 - 10:35 AM

Thank you; i looked in the 'Music' folder, and i have 104 .MUS files. Are those the soundtrack files ? And if yes, can i delete some of them (or do something), so the game sees only 99 ? I turned off the music in game, but i don't know if the game will crash if it doesn't find the music at a certain moment.

I am really new to the BG/BG2 mods, so that's why i am asking all this stuff.

#4 Seifer

Seifer

    The best Anti-Paladin weapon is a tin opener...!

  • Member
  • 4505 posts

Posted 03 October 2005 - 10:41 AM

That's not commonly known. I'm not sure if randomly deleting them would be beneficial as it may cause a crash if the file is called later on. Do you have ToB installed?

And yeah, MUS files are the ones.

how come you always look so damn cool in every photo I see you in?!?


Speaking of modding, I listened to IER 3 yesterday, so you can have another quote for your signature: how come you sound so damn cool, as well as look it? It's unfair. Seriously.


Still a cyberjock, still hacking the matrix, still unsure of what that means.

TeamBG member - http://www.teambg.eu

#5 -Guest-

-Guest-
  • Guest

Posted 03 October 2005 - 10:47 AM

Yep, ToB and official patch are installed. (you can see in my first post what i have installed, and in what order)
Everything works fine until i install The Longer Road.

I also moved some music files, just to see if the game starts, but it still doesn't.
Also, if i uninstall The Longest Road, everything goes fine again.
Can you please tell me from what file/script/config the game engine enumerates the music tracks when the game is first started ?

#6 Seifer

Seifer

    The best Anti-Paladin weapon is a tin opener...!

  • Member
  • 4505 posts

Posted 03 October 2005 - 10:54 AM

That'll be a 2da I think although I can't remember offhand but to be honest, knowing what one it is makes little difference. I think the incompatibility comes with TDD.

I asked about ToB as if you wanted to mix and match mods to get around the music issue I've got a dlk and override to save you a complete reinstall.

how come you always look so damn cool in every photo I see you in?!?


Speaking of modding, I listened to IER 3 yesterday, so you can have another quote for your signature: how come you sound so damn cool, as well as look it? It's unfair. Seriously.


Still a cyberjock, still hacking the matrix, still unsure of what that means.

TeamBG member - http://www.teambg.eu

#7 -Deadlok-

-Deadlok-
  • Guest

Posted 03 October 2005 - 11:06 AM

Well, i guess my noobness is to be blamed :)
I didn't know there is a music tracks limit, and although i searched all around this forum, i couldn't find anyone else with the same problem.
Also, if i uninstall DSotSC, NSotSC and Bonehill, but leave The Longer Road and the other mods, i still get the error. Only if i uninstall TLR, i can play again.

#8 Seifer

Seifer

    The best Anti-Paladin weapon is a tin opener...!

  • Member
  • 4505 posts

Posted 03 October 2005 - 11:11 AM

Well, I got the assertion area when beta testing with TDD and CtB so I know it's that. And its not a common occurance so you're not to know.

Send me the TP2 files for those mods and I'll see if they add any music.

olryx2@yahoo.co.uk

how come you always look so damn cool in every photo I see you in?!?


Speaking of modding, I listened to IER 3 yesterday, so you can have another quote for your signature: how come you sound so damn cool, as well as look it? It's unfair. Seriously.


Still a cyberjock, still hacking the matrix, still unsure of what that means.

TeamBG member - http://www.teambg.eu

#9 -Deadlok-

-Deadlok-
  • Guest

Posted 03 October 2005 - 11:19 AM

I sent you an email with all the TP2 files in my BG 2 folder; some of the were probably unnecessary, but i included them anyways. Thank you!

#10 -Deadlok-

-Deadlok-
  • Guest

Posted 03 October 2005 - 11:21 AM

I just discovered something else : i cannot play OGG files on my comp, i don't have the codec. And the music/sound files in The Longer Road seem to be OGGs; can this be the problem ?

#11 Seifer

Seifer

    The best Anti-Paladin weapon is a tin opener...!

  • Member
  • 4505 posts

Posted 03 October 2005 - 11:32 AM

OGG files are decompiled into WAV then the ACM format so whilst the ogg file packaged isn't redable, its adapted form is.

And looks like Bonehill may add a few music files. Am checking the rest now.

how come you always look so damn cool in every photo I see you in?!?


Speaking of modding, I listened to IER 3 yesterday, so you can have another quote for your signature: how come you sound so damn cool, as well as look it? It's unfair. Seriously.


Still a cyberjock, still hacking the matrix, still unsure of what that means.

TeamBG member - http://www.teambg.eu

#12 -Guest-

-Guest-
  • Guest

Posted 03 October 2005 - 12:55 PM

I think i'll try a fresh install tomorow; i uninstalled/reinstalled various combinations, and it seems to me Baldurdash WeiDU 1.5 is breaking TLR or some reason. It may be the install order... I also remember King Diamond saying we should install everything else before SoS Weidu 1.04 and TDD Weidu 1.4, which i didn't. (i installed TLR last)

#13 glx

glx
  • Member
  • 138 posts

Posted 03 October 2005 - 11:18 PM

it does not matter when u install LongerRoad. the prob is that it add's music but it can't bcz of bgt. bgt fills all music slots. either you edit the longerRoad tp2 file (comment out the music part) or you finish bgt+soa and then a fresh tob+LongerRoad.

#14 Deadlok

Deadlok
  • Member
  • 79 posts

Posted 03 October 2005 - 11:24 PM

But if i edit the Longer Road TP2, and prevent the music from being installed, it won't give me an error while playing the game ? Some "file not found" error when it tries to play the music in a certain TLR moment ?

This is the music code in TLR TP2, and it seems to check if I have already 99 tracks in the songlist ; any ideas ?

//add music
<<<<<<<< .../LR/bogus/LrBogus.mus
>>>>>>>>
  
COPY ~.../LR/bogus/LrBogus.mus~ ~Music/LrBogus.mus~

ADD_MUSIC ~LrBogus~ ~Music/LrBogus.mus~

COPY_EXISTING ~SongList.2da~  ~override~
  SET ~row~ = 0
  WHILE NOT (~LrBogus~ STR_CMP ~%string%~ = 0)
    BEGIN
      SET ~row~ = (~%row%~ + 1)
      READ_2DA_ENTRY ~%row%~ 1 3 ~string~
    END

COPY_EXISTING ~SongList.2da~ ~override~
  REPLACE_TEXTUALLY ~[0-9]* LrBogus LrBogus.mus~ ~~

  SET ~MxAbys~ = 0
  SET ~MxElle~ = 0
  SET ~MxIren~ = 0
  SET ~MxTroll~ = 0
  SET ~MxHeal~ = 0
  SET ~warning~ = 0

ACTION_IF (~%row%~ < 100)
  THEN
    BEGIN
      COPY ~LR/sound/MxIren.mus~ ~music/MxIren.mus~
      ADD_MUSIC ~MxIren~	~LR/sound/MxIren.mus~
    END

ACTION_IF (~%row%~ < 99)
  THEN
    BEGIN
      COPY ~LR/sound/MxElle.mus~ ~music/MxElle.mus~
      ADD_MUSIC ~MxElle~	~LR/sound/MxElle.mus~
    END

ACTION_IF (~%row%~ < 98)
  THEN
    BEGIN
      COPY ~LR/sound/MxAbys.mus~ ~Music/MxAbys.mus~
      ADD_MUSIC ~MxAbys~	~LR/sound/MxAbys.mus~
    END

ACTION_IF (~%row%~ < 97)
  THEN
    BEGIN
      COPY ~LR/sound/MxTroll.mus~ ~music/MxTroll.mus~
      ADD_MUSIC ~MxTroll~	~LR/sound/MxTroll.mus~
    END

ACTION_IF (~%row%~ < 96) //Presuming that 99 is the largest possible entry number in SongList.2da
  THEN
    BEGIN
      COPY ~LR/sound/MxHeal.mus~ ~music/MxHeal.mus~
      SET ~warning~ = 1
      ADD_MUSIC ~MxHeal~	~LR/sound/MxHeal.mus~
    END

Edited by Deadlok, 03 October 2005 - 11:27 PM.


#15 King Diamond

King Diamond

    Give Me Your Soul...Please

  • Modder
  • 1430 posts

Posted 04 October 2005 - 12:45 AM

ACTION_IF (~%row%~ < 100)
 THEN
   BEGIN
     COPY ~LR/sound/MxIren.mus~ ~music/MxIren.mus~
     ADD_MUSIC ~MxIren~ ~LR/sound/MxIren.mus~
   END



1) That is a mistake: (~%row%~ < 100)
It should check for 99, not 100.

2) Game engine IGNORES lines numbers from 2DA. It counts them physically. So you can put all line indexes = 1 or 2, but if you'll have 101 strings there it'll be a CTD.

(last update: 02-12-2008)
----------------------------------------------
SoS, v1.13
TDD, v1.12
TS-BP, v6.10
CtB, v1.11
RoT, v2.1
----------------------------------------------
BP Animations Scheme


#16 dorotea

dorotea

    witch extraordinaire

  • Modder
  • 1927 posts

Posted 12 October 2005 - 08:25 PM

I guess it means this particular piece of script has to be edited? Tis unfortunate, really, since this was written by Neb and I never took my time to figure out how it works - it was supposed to make sure that extra' Songs will never be added. Will simply changing numbers to 99,98, 97, 96 and 95 work?

Edited by dorotea, 12 October 2005 - 08:25 PM.

Freedom cannot be equated with goodness, virtue, or perfection. Freedom has its own unique self-contained nature; freedom is freedom ? not universal goodness. Any confusion or deliberate equalization of freedom with goodness and excellence is in itself negation of freedom, and acceptance of the path of restraint and enforcement.

Nikolai Berdyaev - Christian Existentialist, Philosopher of Freedom.


The Longer Road mod
Redemption mod
Bitter Grey Ashes


#17 -Guest-

-Guest-
  • Guest

Posted 06 November 2005 - 03:29 PM

Changing the numbers doesn't work, it still gives the error. Does anybody know of a way to remove the music issue from the install?

#18 Seifer

Seifer

    The best Anti-Paladin weapon is a tin opener...!

  • Member
  • 4505 posts

Posted 06 November 2005 - 03:32 PM

Changes the numbers won't matter. If the physical volume is higher then 99 you're probably gonna crash.

how come you always look so damn cool in every photo I see you in?!?


Speaking of modding, I listened to IER 3 yesterday, so you can have another quote for your signature: how come you sound so damn cool, as well as look it? It's unfair. Seriously.


Still a cyberjock, still hacking the matrix, still unsure of what that means.

TeamBG member - http://www.teambg.eu

#19 -Guest-

-Guest-
  • Guest

Posted 06 November 2005 - 03:37 PM

I know, I even tried removing the files as well and the error is still showing up.

#20 Seifer

Seifer

    The best Anti-Paladin weapon is a tin opener...!

  • Member
  • 4505 posts

Posted 06 November 2005 - 04:26 PM

As far as the ingame mechanics are concerned, they're still there. Is there an option to not install the LR music addons?

how come you always look so damn cool in every photo I see you in?!?


Speaking of modding, I listened to IER 3 yesterday, so you can have another quote for your signature: how come you sound so damn cool, as well as look it? It's unfair. Seriously.


Still a cyberjock, still hacking the matrix, still unsure of what that means.

TeamBG member - http://www.teambg.eu