What's the fastest way to clean this up?

For any problems with Dawn of Light website or game server, please direct questions and problems here.

Moderator: Support Team

What's the fastest way to clean this up?

Postby psychoninja911 » Fri Jun 30, 2017 4:42 pm

I think I know what this is... Basically the Template is missing items?
Is there a quick way to clean this up? I'm not too worried about NPC's missing armor. Can I go through and just delete the templates? Or is that a bad idea?

Or should I just ignore this?

I figured if I fix it, the server would take less resources? Maybe even start up quicker?
Let me know whatcha think.


Image
psychoninja911
DOL Novice
 
Posts: 51
Joined: Fri Oct 07, 2011 6:46 pm

Re: What's the fastest way to clean this up?

Postby ontheDOL » Fri Jun 30, 2017 8:45 pm

without seeming the rest of the error, id guess its a missmatch between model number and the itemSlot number

I dont think its gonna affect performance or speed of boot up, but personally i like to have no errors/warnings when i boot up server.
- Unty -
Model Showroom and DOL guides
http://losojos-001-site1.btempurl.com
User avatar
ontheDOL
Developer
 
Posts: 311
Joined: Fri May 20, 2016 4:21 am
Location: Australian abroad

Re: What's the fastest way to clean this up?

Postby Loki » Fri Jun 30, 2017 10:54 pm

Post your Error.log
“ If debugging is the process of removing software bugs, then programming must be the process of putting them in. ”

Join https://discord.gg/r3T2U7S Official DOL Discord Chat
User avatar
Loki
Developer
 
Posts: 468
Joined: Fri Jun 23, 2006 2:14 am
Location: uk

Re: What's the fastest way to clean this up?

Postby PlanarChaosRvrtwo » Fri Jun 30, 2017 11:18 pm

The error is simple jaystar:
Some mob equiptemplates exist twice for same slot so it cant add an item couse slot is allready filled.
DOL dint only gaved me the data to start my server,
it also gaved me 16 amazing years with nice peeps,
and now its on me to return the favor.
User avatar
PlanarChaosRvrtwo
Database Team
 
Posts: 517
Joined: Thu Jul 07, 2016 6:21 am

Re: What's the fastest way to clean this up?

Postby PlanarChaosRvrtwo » Fri Jun 30, 2017 11:22 pm

Best way would be to solve:
Sql command to find duplicates (not that easy couse diffrent ids but same slot in same template)
So find same template with same slot should solve it.
DOL dint only gaved me the data to start my server,
it also gaved me 16 amazing years with nice peeps,
and now its on me to return the favor.
User avatar
PlanarChaosRvrtwo
Database Team
 
Posts: 517
Joined: Thu Jul 07, 2016 6:21 am

Re: What's the fastest way to clean this up?

Postby Leodagan » Sat Jul 01, 2017 6:48 am

This would probably need a "GROUP BY" query using every fields that represent the "Unique constraint"

Then "JOIN" the result back to the original table to list correctly all the records in each "group match" ;)


Edit :
Code: Select all
SELECT * FROM
(SELECT `TemplateID`, `Slot` FROM `npcequipment`
GROUP BY `TemplateID`, `Slot` HAVING count(slot) > 1)
as `duplicates`

JOIN `npcequipment` ON
(`duplicates`.`TemplateID` = `npcequipment`.`TemplateID` AND `duplicates`.`Slot` = `npcequipment`.`Slot`)

ORDER BY `duplicates`.`TemplateID`, `duplicates`.`Slot`, `npcequipment`.`NPCEquipment_ID`
Here, It was a nice exercise before my morning coffee ;)
User avatar
Leodagan
Developer
 
Posts: 1350
Joined: Tue May 01, 2012 9:30 am
Website: https://daoc.freyad.net
Location: Lyon


Return to “%s” Support

Who is online

Users browsing this forum: No registered users and 1 guest