22:20:24,149 - [MAIN] - ERROR - DOL.Database.ObjectDatabase - Error while adding data object: DataObject: CraftedItem, ObjectID{5b356f46-36f7-4207-a821-cd47ed716465}
MySql.Data.MySqlClient.MySqlException (0x80004005): Duplicate entry '16565' for key 'PRIMARY'
at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int32& insertedId)
at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int32& insertedId)
at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
at DOL.Database.Connection.DataConnection.ExecuteNonQuery(String sqlcommand)
at DOL.Database.Handlers.MySQLObjectDatabase.AddObjectImpl(DataObject dataObject)
DBCraftedXItem sealx;
sealx = GameServer.Database.FindObjectByKey<DBCraftedXItem>("lambent_dreaded_seal");
if (sealx == null)
{
sealx = new DBCraftedXItem();
sealx.AllowAdd = true;
sealx.CraftedItemId_nb = "lambent_dreaded_seal";
sealx.IngredientId_nb = "glowing_dreaded_seal";
sealx.Count = 10;
GameServer.Database.AddObject(sealx);
if (log.IsDebugEnabled)
log.Debug("Added " + sealx.CraftedItemId_nb);
}
sealx = GameServer.Database.FindObjectByKey<DBCraftedXItem>("lambent_dreaded_seal");
if (sealx == null)
sealx = GameServer.Database.FindObjectByKey<DBCraftedXItem>("lambent_dreaded_seal2");
if (sealx == null)
{
sealx = new DBCraftedXItem();
sealx.AllowAdd = true;
//sealx.CraftedXItem_ID = "lambent_dreaded_seal2"; // this part is not in CraftedXItems
sealx.CraftedItemId_nb = "lambent_dreaded_seal2";
sealx.IngredientId_nb = "sanguine_dreaded_seal";
sealx.Count = 10;
GameServer.Database.AddObject(sealx);
if (log.IsDebugEnabled)
log.Debug("Added Crafted X Item " + sealx.CraftedItemId_nb);
/// <summary>
/// Crafting id of item to craft
/// </summary>
[DataElement(AllowDbNull = false)]
public string CraftedXItem_ID
{
get
{
return m_craftedXItem_ID;
}
set
{
Dirty = true;
m_craftedXItem_ID = value;
}
}
09:45:20,591 - [MAIN] - FATAL - DOL.GS.GameServer - GameServer initialization failed!
System.Data.DuplicateNameException: A column named 'CraftedXItem_ID' already belongs to this DataTable.
at System.Data.DataColumnCollection.RegisterColumnName(String name, DataColumn column, DataTable table)
at System.Data.DataColumnCollection.BaseAdd(DataColumn column)
at System.Data.DataColumnCollection.AddAt(Int32 index, DataColumn column)
at DOL.Database.ObjectDatabase.RegisterDataObject(Type objType)
at DOL.GS.GameServer.InitDB()
at DOL.GS.GameServer..ctor(GameServerConfiguration config)
Users browsing this forum: Bing [Bot] and 1 guest