public static void Initialize(bool autoRetry = true) { Authentication.Exists(true); if (Authentication.GetListofAccountsByAccessLevel(ACE.Entity.Enum.AccessLevel.Admin).Count == 0) { log.Warn("Database does not contain any admin accounts. The next account to be created will automatically be promoted to an Admin account."); AutoPromoteNextAccountToAdmin = true; } else { AutoPromoteNextAccountToAdmin = false; } World.Exists(true); var playerWeenieLoadTest = World.GetCachedWeenie("human"); if (playerWeenieLoadTest == null) { log.Fatal("Database does not contain the weenie for human (1). Characters cannot be created or logged into until the missing weenie is restored."); } var shardDb = new ShardDatabase(); serializedShardDb = new SerializedShardDatabase(shardDb); Shard = serializedShardDb; shardDb.Exists(true); }
public static void Initialize(bool autoRetry = true) { Authentication.Exists(true); World.Exists(true); var shardDb = new ShardDatabase(); serializedShardDb = new SerializedShardDatabase(shardDb); Shard = serializedShardDb; shardDb.Exists(true); var playerWeenieLoadTest = World.GetCachedWeenie("human"); if (playerWeenieLoadTest == null) { log.Fatal($"Database does not contain the weenie for human (1). Characters cannot be created or logged into until the missing weenie is restored."); } }