Page 1 of 1

Dialog Error

Posted: Tue Aug 25, 2015 7:22 am
by John Adams
Not sure why this is happening all of a sudden, but a player is doing "something" and causing a dialog error - the post is because the error message itself is utterly useless, if I don't know the NPC or Script that is in error.

[quote]06:51:42.887 E Char DialogManager::DoDialogOption got a request for an invalid dialog option. character='Eduk', dialog sequence=0, option number=1
06:51:53.334 E Char DialogManager::DoDialogOption got a request for an invalid dialog option. character='Eduk', dialog sequence=5, option number=0[/quote]

Suspecting this block of code in DialogManager.cpp (which is likely being changed anyway, zippy?)

Code: Select all

    // case no dialog in state sent exists:    if ((dialog == NULL) || (dialog->GetState() != DIALOG_STATE_SENT) || (dialog->GetDialogSequence() != dialog_sequence)) {        LogError(LOG_CHARACTER, 0,                  "DialogManager::DoDialogOption got a request for an invalid dialog option. character='%s', dialog sequence=%u, option number=%u",                  character->GetFirstName().c_str(), dialog_sequence, option_number);  //Note: If this actually occurs we should increase the logging info + send info to the player.        return;    }
This post is in Bugs because either it's coincidental that the player (Eduk) is camping immediately upon getting this server-side error (unbeknownst to him) or the world is kicking him. If the latter, we need to address this - if nothing more, at least add better logging to trace what the problem is.