--- deliantra/server/ext/login.ext 2007/04/04 02:20:27 1.36 +++ deliantra/server/ext/login.ext 2007/04/16 06:23:41 1.39 @@ -17,7 +17,7 @@ my ($ns, $flags, $text) = @_; my $current = $Coro::current; - $ns->query ($flags, $text, sub { $current->ready; $current = $_[0]; }); + $ns->query ($flags, $text, sub { $current->ready; $current = $_[0] }); Coro::schedule while ref $current; $current @@ -171,6 +171,9 @@ } elsif ($k eq "extendedTextInfos") { $ns->has_readable_type ($v); + } elsif ($k eq "smoothing") { # cfplus-style smoothing + $ns->smoothing ($v); + } elsif ($k eq "fxix") { $ns->fxix ($v); @@ -356,6 +359,19 @@ ); next; } + } else { + # unable to load the playerfile: + # check wether the player dir exists, which means the file is corrupted or + # something very similar. + if (!aio_stat cf::player::playerdir $user) { + $ns->send_drawinfo ( + "Unable to retrieve this player. It might be a locked or broken account. " + . "If this is your account, ask a dungeon master for assistance. " + . "Otherwise choose a different login name.", + cf::NDI_RED + ); + next; + } } # the rest of this function is character creation @@ -525,7 +541,7 @@ eval { if ($pl->{last_save} + $SAVE_TIMEOUT <= $cf::RUNTIME) { - $cf::WAIT_FOR_TICK_ONE->wait; + cf::wait_for_tick_begin; $pl->save; unless ($pl->active) {