I have googled this a ton, and can't seem to find a solution. At first I was getting booted on log in, but found a post on the nwnx site about adding my player name to the DM list table in the database (I am using a MySQL database btw in case that is relevant.) So I edited that table, and added my player name in the player name field, 1 in the enabled field for true, and owner in the details field. Subsequently I am no longer getting booted (or the booted message anyways which I was experiencing before the character selection came up even) however, now after choosing a character to log in with, I get a crash to desktop 3/4th the way through the area load. I tried removing (commenting out) the lines in the mod_onlogin script (oncliententer event) related to a DM check, but to no avail. Here are the lines to the mod_onlogin script I commented out:
//if ( GetIsDM( oPC ))
//{
//string sPlayer = SQLEncodeSpecialChars( sAccount );
//string sSQL = "SELECT enabled FROM dmlist WHERE player='" + sPlayer + "'";
//SQLExecDirect( sSQL );
//if ( SQLFetch( ) == SQL_SUCCESS )
//{
//iEnabled = StringToInt( SQLGetData( 1 ));
//if ( iEnabled != 1 )
//{
//AssignCommand( GetModule( ), DelayCommand( 0.5, BootPC( oPC )));
//SendMessageToAllDMs( GetName( oPC ) + " (" + sAccount + ") (" + sPlayerCD + ") got booted because they are not a DM in good standing.");
//}
//}
//else
//{
//AssignCommand( GetModule( ), DelayCommand( 0.5, BootPC( oPC )));
//SendMessageToAllDMs( GetName( oPC ) + " (" + sAccount + ") (" + sPlayerCD + ") got booted because they are not a DM." );
//}
//AssignCommand( GetModule( ), DelayCommand( 0.1, ExecuteScript( "hide_dm", oPC )));
//SendMessageToPC( oPC, "Server: (" + sPlayerCD + ") is indeed an Aventian Gamemaster." );
//}
//else
And it compiles successfully. Any suggestions would be appreciated.
Modifié par Lazarus Magni, 24 juin 2011 - 09:44 .