Jump to content


Photo

B file erros


  • Please log in to reply
33 replies to this topic

#21 -jcompton-

-jcompton-
  • Guest

Posted 26 March 2004 - 08:53 PM

Yes, use IMOEN2J for any dialogue you create for Imoen2 in SOA.

#22 Sillara

Sillara

    He made me love him without looking at me.

  • Member
  • 537 posts

Posted 05 April 2004 - 01:52 PM

Oh dear. :unsure: I have returned with another B file error, but this one is of a different type. Weidu cannot FIND my B file!!!! :huh: Weidu says:

ERROR locating resource:
Resource [BFLAN.DLG] not found in KEY file:
[./chitin.key]
ERROR: problem processing D files: Failure("resource [BFLAN.DLG] not found")

What does that mean? I DO have a BFLAN.d in my dialogues folder. There is no special line in the .tp2 that tells it to look for a BFLAN.d, so I put one in. It did not help, so I took it back out. What do I need to do to convince Weidu that I DO have a BFLAN.d? :unsure:

Any help is greatly appreciated!
Sillara, the confused
Check out my RPG forum!

#23 Grim Squeaker

Grim Squeaker

    Fallen

  • Member
  • 1018 posts

Posted 05 April 2004 - 01:55 PM

In your .tp2 you have a line that is, right?:

COMPILE ~Tsujatha\Dialogue\BFLAN.d~

Are you trying to install the mod or are you just trying to manually compile BTSUJAT.d?
"You alone can make my song take flight..."

#24 Kismet

Kismet

    Mild Thang

  • Member
  • 348 posts

Posted 05 April 2004 - 01:58 PM

Put all your all your dialogs that need compiling on one line.

COMPILE ~dialogA.d~ ~dialogB.d~

rather than

COMPILE ~dialogA.d~
COMPILE ~dialogB.d~

#25 Sillara

Sillara

    He made me love him without looking at me.

  • Member
  • 537 posts

Posted 06 April 2004 - 05:23 PM

Well, if I put both B files (BTSUJAT and BFLAN) on one line, then Weidu could find it. I was trying to install the mod. (It installs fine if I remove any reference to BFLAN, so I know that there are no other problems that could be blocking the installation.) But then I hit another snag. This is my first bit of code in the file.


BEGIN BFLAN

IF ~See("Player1")
!StateCheck("Player1",STATE_SLEEPING)
Global("TsujathaFlanBrel","GLOBAL",1)
Global("JavinRescued","GLOBAL",0)~
THEN BEGIN TSJ_HurryUp
SAY ~Well, where is Javin? Do not delay so!~
IF ~~ THEN EXIT


If I try to put an END after that, Weidu can no longer FIND the BFLAN!!! But I have trouble with my next dialogue if I don't do something!


CHAIN
IF ~See("Tsujatha")
!StateCheck("Tsujatha",STATE_SLEEPING)
Global("TsujathaFlanBrel","GLOBAL",1)
Global("JavinRescued","GLOBAL",1)~
THEN BEGIN TSJ_BetraySorkyst
SAY ~Ah. Success. And how, might I ask, did you manage to secure his release?~
++ ~I bribed the official.~ GOTO BetraySorkyst1a
++ ~I killed the guard and pillaged his body for the key.~ GOTO BetraySorkyst2a
++ ~It does not matter. I have been successful.~ GOTO BetraySorkyst3a
END

CHAIN BFLAN BetraySorkyst1a
~With manipulation skills like that, you'd be a great ally of the Shadow Thieves.~
== BTSUJAT
~Enough! Tell me where Sorkyst is.~
= ~(Magical energy leaps and crackles across Tsujatha's fingertips as his impatience builds.)~
== BFLAN
~Yes, of course. My former master, Sorkyst, instructed me to tell his men to meet him at a place called the Small Teeth Pass.~
= ~I cannot tell you where they might be. I do not know.~
== BTSUJAT
~Your help is greatly appreciated.~
= ~Let me repay the kindness by helping you into the next life!~
END
++ ~No, Tsujatha! You have entered into a contract with this man. You cannot take his life now. It would be dishonorable.~ GOTO BetraySorkyst1b
++ ~(Watch and do nothing.)~ GOTO BetraySorkyst1c

CHAIN BTSUJAT BetraySorkyst1b
~You advise me well, <CHARNAME>. A heart akin to a Tamari's beats in your breast.~
= ~(Tsujatha turns away, deliberately avoiding your eyes.)~
EXIT

CHAIN BTSUJAT BetraySorkyst1c
~(Tsujatha smiles grimly.)~
DO ~ClearAllActions() StartCutSceneMode() StartCutScene("TSJ_KILLFLAN")~
EXIT

CHAIN BFLAN BetraySorkyst2a
~I suspected as much. After all, the Melalor travels with you.~
== BTSUJAT
~Enough! Tell me where Sorkyst is.~
= ~(Magical energy leaps and crackles across Tsujatha's fingertips as his impatience builds.)~
== BFLAN
~Yes, of course. My former master, Sorkyst, instructed me to tell his men to meet him at a place called the Small Teeth Pass.~
= ~I cannot tell you where they might be. I do not know.~
== BTSUJAT
~Your help is greatly appreciated.~
= ~Let me repay the kindness by helping you into the next life!~
END
++ ~No, Tsujatha! You have entered into a contract with this man. You cannot take his life now. It would be dishonorable.~ GOTO BetraySorkyst1b
++ ~(Watch and do nothing.)~ GOTO BetraySorkyst1c


And so forth. I never even get this far in the compilation because it gives me errors with the CHAIN. If I change it from a CHAIN to a dialogue (which I don't know if I can even do because of Tsujatha's interactions later), I STILL get problems with the compilation.

What is wrong? :( I am confused.

Sillara

Thank you for the earlier help. I was not able to access the forum yesterday, or I would have responded earlier.
Check out my RPG forum!

#26 Kismet

Kismet

    Mild Thang

  • Member
  • 348 posts

Posted 06 April 2004 - 06:13 PM

You definitely need an END at the end of a state. Also, Player1 shouldn't be in quotes.

CHAIN
IF ~See("Tsujatha")
!StateCheck("Tsujatha",STATE_SLEEPING)
Global("TsujathaFlanBrel","GLOBAL",1)
Global("JavinRescued","GLOBAL",1)~
THEN BEGIN TSJ_BetraySorkyst
SAY ~Ah. Success. And how, might I ask, did you manage to secure his release?~
++ ~I bribed the official.~ GOTO BetraySorkyst1a
++ ~I killed the guard and pillaged his body for the key.~ GOTO BetraySorkyst2a
++ ~It does not matter. I have been successful.~ GOTO BetraySorkyst3a
END


For a chain, you need a dialog file name in there (i.e. THEN BEGIN Dialogfile TSJ_BetraySorkyst).

You wouldn't use SAY, just the line enclosed in the tildes.

The END should go before the PC replies.

#27 Sillara

Sillara

    He made me love him without looking at me.

  • Member
  • 537 posts

Posted 06 April 2004 - 11:37 PM

I apologize about the sloppy CHAIN. I had tried to make a normal dialogue, as my CHAIN seemed to have problems. Then I switched it back. It is now a proper CHAIN, but Weidu refuses to acknowledge it. It chokes on the word CHAIN



BEGIN BFLAN

IF ~See("Player1")
!StateCheck("Player1",STATE_SLEEPING)
Global("TsujathaFlanBrel","GLOBAL",1)
Global("JavinRescued","GLOBAL",0)~
THEN BEGIN TSJ_HurryUp
SAY ~Well, where is Javin? Do not delay so!~
IF ~~ THEN EXIT


CHAIN
IF ~See("Player1")
!StateCheck("Player1",STATE_SLEEPING)
Global("TsujathaFlanBrel","GLOBAL",1)
Global("JavinRescued","GLOBAL",1)~
THEN BEGIN BFLAN TSJ_BetraySorkyst
~Ah. Success. And how, might I ask, did you manage to secure his release?~
END
++ ~I bribed the official.~ GOTO BetraySorkyst1a
++ ~I killed the guard and pillaged his body for the key.~ GOTO BetraySorkyst2a
++ ~It does not matter. I have been successful.~ GOTO BetraySorkyst3a


And it goes from there. But if I try to put an END after IF ~~ THEN EXIT in the first dialogue, Weidu refuses to accept that BFLAN exists at all!!! It gives me the same, earlier "cannot find file" business that I mentioned in my earlier post. Sigh. Putting the B files on the same line in the .tp2 made Weidu see it, but if I put that END in there, it's gone again. What should I do?

Sillara
Check out my RPG forum!

#28 Keryvian

Keryvian
  • Member
  • 15 posts

Posted 06 April 2004 - 11:51 PM

IF ~See("Player1")

I don't know about the rest of it, but Player1 should not be in quotes. It should be

IF ~See (Player1)

This applies to both cases in the code you listed.

#29 Kismet

Kismet

    Mild Thang

  • Member
  • 348 posts

Posted 07 April 2004 - 04:11 AM

What error are you getting exactly (copy and paste it)? You definitely need an END after that IF ~~ THEN EXIT line.

#30 Sillara

Sillara

    He made me love him without looking at me.

  • Member
  • 537 posts

Posted 07 April 2004 - 05:48 AM

Mild SPOILER



I fixed the quotes. They were just in here where I done some copying. This is the error I get without the END.


[Tsujatha\Dialogue\BFLAN.d] PARSE ERROR at line 11 column 1-5
Near Text: CHAIN
syntax error

[Tsujatha\Dialogue\BFLAN.d] ERROR at line 11 column 1-5
Near Text: CHAIN
Parsing.Parse_error
ERROR: parsing [Tsujatha\Dialogue\BFLAN.d]: Parsing.Parse_error

ERROR Installing [Tsujatha (BG2:SoA NPC) created by Sillara of the Tamari], rolling back to previous state

If I put the END in, I get this error.


ERROR locating resource:
Resource [BLFAN.DLG] not found in KEY file:
[./chitin.key]
ERROR: problem processing D files: Failure("resource [BLFAN.DLG] not found")

ERROR Installing [Tsujatha (BG2:SoA NPC) created by Sillara of the Tamari], rolling back to previous state



The file looks like this.

BEGIN BFLAN

IF ~See(Player1)
!StateCheck(Player1,STATE_SLEEPING)
Global("TsujathaFlanBrel","GLOBAL",1)
Global("JavinRescued","GLOBAL",0)~
THEN BEGIN TSJ_HurryUp
SAY ~Well, where is Javin? Do not delay so!~
IF ~~ THEN EXIT
END


CHAIN
IF ~See(Player1)
!StateCheck(Player1,STATE_SLEEPING)
Global("TsujathaFlanBrel","GLOBAL",1)
Global("JavinRescued","GLOBAL",1)~
THEN BFLAN TSJ_BetraySorkyst
~Ah. Success. And how, might I ask, did you manage to secure his release?~
END
++ ~I bribed the official.~ GOTO BetraySorkyst1a
++ ~I killed the guard and pillaged his body for the key.~ GOTO BetraySorkyst2a
++ ~It does not matter. I have been successful.~ GOTO BetraySorkyst3a

CHAIN BFLAN BetraySorkyst1a
~With manipulation skills like that, you'd be a great ally of the Shadow Thieves.~
== BTSUJAT
~Enough! Tell me where Sorkyst is.~
= ~(Magical energy leaps and crackles across Tsujatha's fingertips as his impatience builds.)~
== BFLAN
~Yes, of course. My former master, Sorkyst, instructed me to tell his men to meet him at a place called the Small Teeth Pass.~
= ~I cannot tell you where they might be. I do not know.~
== BTSUJAT
~Your help is greatly appreciated.~
= ~Let me repay the kindness by helping you into the next life!~
END
++ ~No, Tsujatha! You have entered into a contract with this man. You cannot take his life now. It would be dishonorable.~ GOTO BetraySorkyst1b
++ ~(Watch and do nothing.)~ GOTO BetraySorkyst1c


It goes on after that, but I never even get that far. Does anyone know what the problem is?

Thank you so much!

Sillara
Check out my RPG forum!

#31 -Domi_S-

-Domi_S-
  • Guest

Posted 07 April 2004 - 07:41 AM

I might be wrong, but the source of error can be in how the dialogue BFLAN is assigned to the NPC who talks.

B-files, as far as I understand (and I might be wrong) are valid to the chats between the party members only and have to be appended to INERDIA.2DA.

The dialogue for a non-joinable NPC needs to be assigned to its CRE as an override dialogue, either via tp2 WRITE ASCII option or by editing CRE.

#32 Kismet

Kismet

    Mild Thang

  • Member
  • 348 posts

Posted 07 April 2004 - 09:13 AM

How a .dlg is assigned (or not assigned) wouldn't have any bearing on whether or not WeiDU compiles the .d file.

What does your .tp2 file look like, Sillara?

#33 CamDawg

CamDawg

    ALL GLORY TO THE HYPNOTOAD

  • Modder
  • 1505 posts

Posted 07 April 2004 - 09:36 AM

I think Kismet and I are thinking along the same lines. If a .d file is compiled with any reference to BFLAN before the .d file that contains BEGIN BFLAN, WeiDU will assume that BFLAN is in the game--when it can't find it, it will give the "can't locate in chitin.key" error.

Why is this Hypnotoad video so popu... ALL GLORY TO THE HYPNOTOAD.
____
The Gibberlings Three - Home of IE Mods

The BG2 Fixpack - All the fixes of Baldurdash, plus a few hundred more. Now available, with more fixes being added in every release.


#34 CamDawg

CamDawg

    ALL GLORY TO THE HYPNOTOAD

  • Modder
  • 1505 posts

Posted 07 April 2004 - 09:44 AM

Actually, it may be something much simpler. The error is likely caused by some transposed letters. Somewhere in your .d file I think you have a BLFAN rather than BFLAN.

Why is this Hypnotoad video so popu... ALL GLORY TO THE HYPNOTOAD.
____
The Gibberlings Three - Home of IE Mods

The BG2 Fixpack - All the fixes of Baldurdash, plus a few hundred more. Now available, with more fixes being added in every release.