Problem with conversations

Topics regarding Scripting with Reality Factory
Post Reply
LHoesch

Problem with conversations

Post by LHoesch »

Hi,
I have a problem with a conversation.When I stand before a pawn and start the conversation,the game shutdown.
The Logfile look like this:

Preparing to Launch Game...
Conversation Script Error for Pawn1 in Order Hello
CGenesisEngine::BeginFrame failed
Nout
Posts: 136
Joined: Tue Jul 05, 2005 5:14 pm

Post by Nout »

As the log says, you have an error in the script file you are using to define the conversation. Correct the error, and your conversation will most likely work fine.

Typical errors:
- you use a not existing bitmap
- you forget to add quotes around the bitmap name
- you forget to define the bitmap extension
- you forget a semicolumn
etc...

Best post the script (just copy paste), so we can try to help you find the bug
Guest

Post by Guest »

Its made with TreeBuilder.

{

Hello[ ()
{
Speak("P-Hello","");
Reply(1,"R-Hello");
Reply(2,"T-Goodbye");
switch(Conversation(50))
{
case 1
{
NewConversation("Second",true);
}
case 2
{
NewConversation("",false);
}
}
} ]

Second[ ()
{
Speak("P-Nice","");
Reply(1,"T-Goodbye");
switch(Conversation(50))
{
case 1
{
NewConversation("Hello",false);
}
}
} ]

}
Jay
RF Dev Team
Posts: 1232
Joined: Fri Jul 08, 2005 1:56 pm
Location: Germany

Post by Jay »

Do you have a [conversation] block in the pawn.ini?
Everyone can see the difficult, but only the wise can see the simple.
-----
LHoesch

Post by LHoesch »

Yes,I have!
Nout
Posts: 136
Joined: Tue Jul 05, 2005 5:14 pm

Post by Nout »

Try this

{

Hello[ ()
{
Speak("P-Hello","");
Reply(1,"R-Hello");
Reply(2,"T-Goodbye");
switch(Conversation(50))
{
case 1
{
NewConversation("Second",true);
}
case 2
{
NewConversation("Hello",false);
}
}
} ]

Second[ ()
{
Speak("P-Nice","");
Reply(1,"T-Goodbye");
Conversation(50);
NewConversation("Hello",false);
} ]

}
Guest

Post by Guest »

Very thanks!!!!
But is functionated just a time before.
THANKS!!!!!
Post Reply