Core/BattleGrounds: Changed upper case character in tables character_Battleground_data and Battleground_template to lower case to solve startup issues (#17)
This commit is contained in:
@@ -399,7 +399,7 @@ namespace Game.BattleGrounds
|
||||
_BattlegroundTemplates.Clear();
|
||||
|
||||
// 0 1 2 3 4 5 6 7 8 9
|
||||
SQLResult result = DB.World.Query("SELECT ID, MinPlayersPerTeam, MaxPlayersPerTeam, MinLvl, MaxLvl, AllianceStartLoc, HordeStartLoc, StartMaxDist, Weight, ScriptName FROM Battleground_template");
|
||||
SQLResult result = DB.World.Query("SELECT ID, MinPlayersPerTeam, MaxPlayersPerTeam, MinLvl, MaxLvl, AllianceStartLoc, HordeStartLoc, StartMaxDist, Weight, ScriptName FROM battleground_template");
|
||||
if (result.IsEmpty())
|
||||
{
|
||||
Log.outError(LogFilter.ServerLoading, "Loaded 0 Battlegrounds. DB table `Battleground_template` is empty.");
|
||||
|
||||
@@ -821,10 +821,10 @@ namespace Game
|
||||
uint oldMSTime = Time.GetMSTime();
|
||||
|
||||
// 0 1
|
||||
SQLResult result = DB.World.Query("SELECT eventEntry, bgflag FROM game_event_Battleground_holiday");
|
||||
SQLResult result = DB.World.Query("SELECT eventEntry, bgflag FROM game_event_battleground_holiday");
|
||||
|
||||
if (result.IsEmpty())
|
||||
Log.outInfo(LogFilter.ServerLoading, "Loaded 0 Battlegroundholidays in game events. DB table `game_event_Battleground_holiday` is empty.");
|
||||
Log.outInfo(LogFilter.ServerLoading, "Loaded 0 Battlegroundholidays in game events. DB table `game_event_battleground_holiday` is empty.");
|
||||
else
|
||||
{
|
||||
uint count = 0;
|
||||
@@ -834,7 +834,7 @@ namespace Game
|
||||
|
||||
if (event_id >= mGameEvent.Length)
|
||||
{
|
||||
Log.outError(LogFilter.Sql, "`game_event_Battleground_holiday` game event id ({0}) not exist in `game_event`", event_id);
|
||||
Log.outError(LogFilter.Sql, "`game_event_battleground_holiday` game event id ({0}) not exist in `game_event`", event_id);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -1039,7 +1039,7 @@ namespace Game
|
||||
|
||||
scriptNamesStorage.Add("");
|
||||
SQLResult result = DB.World.Query(
|
||||
"SELECT DISTINCT(ScriptName) FROM Battleground_template WHERE ScriptName <> '' " +
|
||||
"SELECT DISTINCT(ScriptName) FROM battleground_template WHERE ScriptName <> '' " +
|
||||
"UNION SELECT DISTINCT(ScriptName) FROM conversation_template WHERE ScriptName <> '' " +
|
||||
"UNION SELECT DISTINCT(ScriptName) FROM creature WHERE ScriptName <> '' " +
|
||||
"UNION SELECT DISTINCT(ScriptName) FROM creature_template WHERE ScriptName <> '' " +
|
||||
|
||||
@@ -152,7 +152,7 @@ namespace WorldServer
|
||||
DB.Characters.Execute("UPDATE characters SET online = 0 WHERE online <> 0");
|
||||
|
||||
// Battlegroundinstance ids reset at server restart
|
||||
DB.Characters.Execute("UPDATE character_Battleground_data SET instanceId = 0");
|
||||
DB.Characters.Execute("UPDATE character_battleground_data SET instanceId = 0");
|
||||
}
|
||||
|
||||
static void WorldUpdateLoop()
|
||||
|
||||
Reference in New Issue
Block a user