This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [TOOL][WOTLK] Item DB<->DBC  (Read 4019 times)

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
[TOOL][WOTLK] Item DB<->DBC
« on: November 24, 2016, 08:15:14 pm »


ClientItem is a tool which gets all items from server's item_template table and generates a new item.dbc.csv file and items.csv file. Item.dbc.csv can be then converted into item.dbc which is completely up to date with a database, so you won't have to ever again edit this DBC directly, you can just always generate a new one. Items.csv is to be placed into your WMV's enUS (or similiar) folder, and it will update WMV's local item database as well. WMV can't handle unicode characters, so content of items.csv is unaccented on purpouse. To use simply:

- If you've never done so before, consider running ItemDBCToDB first. Explanation is in that tool's description.
- Run ClientItem.
- Fill your credentials and click on Get data.
- Convert generated item.dbc.csv into DBC by using included DBCtoCSV converter DBCUtil and place it into your MPQ and server's dbc folder.
- Place items.csv into your WMV's enUS (or similiar) folder.
- Done.



ItemDBCToDB is here to get list of all items in item.dbc which are missing in your server's item_template and to insert their generated versions into that item_template. This can be useful if you want to give players possibility to use some items which were made for NPCs, but never for players (for example weapon and shield of gnome king, weapons of NE sentinels...). If you don't use this tool at least once before using ClientItem, you'll LOOSE all these NPC items which aren't present in item_template. This will lead into loosing all items held by NPCs which aren't in item_template, and into server error log spam. So consider running this tool once before ever using ClientItem.

- Get your up to date item.dbc. Create its CSV version.
- Run ItemDBCToDB. Select your item.dbc.csv, fill your credentials and click on Insert data.
- Done.

C# src is included. I'm opened to suggestions and feedback, however, I'm quite busy so I'll probably just fix critical bugs if you happen to find any.

Download HERE:
https://www.dropbox.com/s/z87tfudql9xq4 ... m.rar?dl=0
« Last Edit: December 26, 2016, 09:30:52 pm by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [TOOL][WOTLK] ClientItem
« Reply #1 on: November 24, 2016, 09:39:22 pm »
Released C# src. A little cleanup of src. Added ItemDBCToDB tool and DBCUtil for DBC to CSV and back conversions.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

Piccolodmq

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 200
    • View Profile
Re: [TOOL][WOTLK] Item DB<->DBC
« Reply #2 on: May 03, 2017, 12:26:15 am »
Hi there Amaroth.   regarding this tool.    I got everything working, with custom wod items, (got the DB info, and pacthes in clients, but still getting the red ? error, and can´t wear, the items.  So something else must be wrong.

But great tool!
« Last Edit: May 03, 2017, 04:53:04 am by Piccolodmq »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [TOOL][WOTLK] Item DB<->DBC
« Reply #3 on: May 03, 2017, 11:20:25 am »
In that case, have you put updated Item.dbc into your custom MPQ? It sounds to me like you did not.
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

moonpaladin

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 11
    • View Profile
Re: [TOOL][WOTLK] Item DB<->DBC
« Reply #4 on: October 11, 2017, 09:57:44 pm »
Hi, I followed all the steps but by adding the item.dbc to my patch, I do not see some npcs weapons, like the weapons of the orgrimmar guards, etc.

Thanks in advance.

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [TOOL][WOTLK] Item DB<->DBC
« Reply #5 on: October 12, 2017, 05:44:28 pm »
You were probably not really following all steps:
"If you've never done so before, consider running ItemDBCToDB first. Explanation is in that tool's description."

And that explanation is here:
"ItemDBCToDB is here to get list of all items in item.dbc which are missing in your server's item_template and to insert their generated versions into that item_template. This can be useful if you want to give players possibility to use some items which were made for NPCs, but never for players (for example weapon and shield of gnome king, weapons of NE sentinels...). If you don't use this tool at least once before using ClientItem, you'll LOOSE all these NPC items which aren't present in item_template. This will lead into loosing all items held by NPCs which aren't in item_template, and into server error log spam. So consider running this tool once before ever using ClientItem."

I made video about usage of this pair of tools, and this fact is mentioned there, too.:



So:
- Use ItemDBCToDB to get all NPC-only items into item_template, making them accessible AND preventing them from being lost in next step.
- Use Client Item to get all item.dbc which is up to date and contains everythig: NPC-only items, original player-accessible items and your new custom items as well.
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

moonpaladin

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 11
    • View Profile
Re: [TOOL][WOTLK] Item DB<->DBC
« Reply #6 on: October 13, 2017, 09:22:35 am »
Thanks alot Amaroth, it works perfect.