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
Problem with conversations
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
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
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);
}
}
} ]
}
{
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);
}
}
} ]
}
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);
} ]
}
{
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);
} ]
}