Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Resources and Tools => Topic started by: akriso on April 29, 2014, 01:51:32 pm

Title: [QUESTION] dbc tool
Post by: akriso on April 29, 2014, 01:51:32 pm
how i can delete 1 column from .dbc file?  - CSVed breaks my dbc file...
Title: Re: [QUESTION] dbc tool
Post by: ferreon on April 29, 2014, 02:44:22 pm
For me taliis works properly and do not crash the file.

http://gyazo.com/c8ecfb80bf3562c003a34ec04cc3c32a (http://gyazo.com/c8ecfb80bf3562c003a34ec04cc3c32a" onclick="window.open(this.href);return false;)
Title: Re: [QUESTION] dbc tool
Post by: akriso on April 29, 2014, 02:54:05 pm
i need delete column ( not row )
Title: Re: [QUESTION] dbc tool
Post by: stoneharry on April 29, 2014, 03:07:41 pm
Convert to CSV format, delete the column, make sure each row still ends with a comma and that there are no new lines at the end of the file. Then it should convert back without issues.
Title: Re: [QUESTION] dbc tool
Post by: akriso on April 29, 2014, 03:13:28 pm
Quote from: "stoneharry"
Convert to CSV format, delete the column, make sure each row still ends with a comma and that there are no new lines at the end of the file. Then it should convert back without issues.

dbc broken after this... ItemDisplayInfo.dbc
Title: Re: [QUESTION] dbc tool
Post by: stoneharry on April 29, 2014, 04:16:01 pm
Quote from: "akriso"
Quote from: "stoneharry"
Convert to CSV format, delete the column, make sure each row still ends with a comma and that there are no new lines at the end of the file. Then it should convert back without issues.

dbc broken after this... ItemDisplayInfo.dbc

Define broken. What is broken? Open it in 010 editor - does the header and such exist with valid data?

WoW won't be able to load it because you deleted a column...
Title: Re: [QUESTION] dbc tool
Post by: akriso on April 29, 2014, 04:21:32 pm
i would convert dbc 1 dbc from mop to 434 - mop have 27 columns / cata have 26 columns ( need only delete latest column ).
Title: Re: [QUESTION] dbc tool
Post by: akriso on April 29, 2014, 04:23:21 pm
(http://take.ms/ja414)

Title: Re: [QUESTION] dbc tool
Post by: akriso on April 29, 2014, 04:28:41 pm
before CSVed

557,"","","","","INV_Misc_Bowl_01","",0,0,0,0x0,0,15,0,0,"","","","","","","","","",0,0,
568,"","","","","INV_Misc_MonsterScales_03","",0,0,0,0x0,0,16,0,0,"","","","","","","","","",0,0,
634,"","","","","INV_Scroll_04","",0,0,0,0x0,0,19,0,0,"","","","","","","","","",0,0,
679,"Sword_1H_Short_A_01.mdx","","Sword_1H_Short_A_01Blue","","INV_Sword_04","",0,0,0,0x0,0,8,0,0,"","","","","","","","","",0,0,
683,"","","","","INV_Pants_02","",0,0,0,0x0,0,7,0,0,"","","","","","Leather_B_01_Pant_LU","Leather_B_01_Pant_LL","","",0,0,
684,"","","","","INV_Chest_Wolf","",0,0,0,0x0,0,7,0,0,"","","","Leather_B_01_Chest_TU","Leather_B_01_Chest_TL","","","","",0,0,
685,"","","","","INV_Pants_03","",0,0,0,0x0,0,10,0,0,"","","","","","Mail_A_02_Pant_LU","Mail_A_02_Pant_LL","","",0,0,
687,"","","","","INV_Pants_03","",0,0,0,0x0,0,10,0,0,"","","","","","Mail_A_01_Pant_LU","Mail_A_01_Pant_LL","","",0,0,


after  CSVed

557,,,,,INV_Misc_Bowl_01,,0,0,0,0,0,15,0,0,,,,,,,,,0,0
568,,,,,INV_Misc_MonsterScales_03,,0,0,0,0,0,16,0,0,,,,,,,,,0,0
634,,,,,INV_Scroll_04,,0,0,0,0,0,19,0,0,,,,,,,,,0,0
679,Sword_1H_Short_A_01.mdx,,Sword_1H_Short_A_01Blue,,INV_Sword_04,,0,0,0,0,0,8,0,0,,,,,,,,,0,0
683,,,,,INV_Pants_02,,0,0,0,0,0,7,0,0,,,,,,Leather_B_01_Pant_LU,Leather_B_01_Pant_LL,,0,0
684,,,,,INV_Chest_Wolf,,0,0,0,0,0,7,0,0,,,,Leather_B_01_Chest_TU,Leather_B_01_Chest_TL,,,,0,0
685,,,,,INV_Pants_03,,0,0,0,0,0,10,0,0,,,,,,Mail_A_02_Pant_LU,Mail_A_02_Pant_LL,,0,0
687,,,,,INV_Pants_03,,0,0,0,0,0,10,0,0,,,,,,Mail_A_01_Pant_LU,Mail_A_01_Pant_LL,,0,0
691,,,,,INV_Pants_02,,0,0,0,0,0,7,0,0,,,,,,Leather_B_02_Pant_LU,Leather_B_02_Pant_LL,,0,0

how to fix this shit?
Title: Re: [QUESTION] dbc tool
Post by: MR. Farrare on April 30, 2014, 05:15:43 am
delete  colum by Microsoft exel
Title: Re: [QUESTION] dbc tool
Post by: stoneharry on April 30, 2014, 06:40:43 pm
Quote from: "akriso"
before CSVed

557,"","","","","INV_Misc_Bowl_01","",0,0,0,0x0,0,15,0,0,"","","","","","","","","",0,0,
568,"","","","","INV_Misc_MonsterScales_03","",0,0,0,0x0,0,16,0,0,"","","","","","","","","",0,0,
634,"","","","","INV_Scroll_04","",0,0,0,0x0,0,19,0,0,"","","","","","","","","",0,0,
679,"Sword_1H_Short_A_01.mdx","","Sword_1H_Short_A_01Blue","","INV_Sword_04","",0,0,0,0x0,0,8,0,0,"","","","","","","","","",0,0,
683,"","","","","INV_Pants_02","",0,0,0,0x0,0,7,0,0,"","","","","","Leather_B_01_Pant_LU","Leather_B_01_Pant_LL","","",0,0,
684,"","","","","INV_Chest_Wolf","",0,0,0,0x0,0,7,0,0,"","","","Leather_B_01_Chest_TU","Leather_B_01_Chest_TL","","","","",0,0,
685,"","","","","INV_Pants_03","",0,0,0,0x0,0,10,0,0,"","","","","","Mail_A_02_Pant_LU","Mail_A_02_Pant_LL","","",0,0,
687,"","","","","INV_Pants_03","",0,0,0,0x0,0,10,0,0,"","","","","","Mail_A_01_Pant_LU","Mail_A_01_Pant_LL","","",0,0,


after  CSVed

557,,,,,INV_Misc_Bowl_01,,0,0,0,0,0,15,0,0,,,,,,,,,0,0
568,,,,,INV_Misc_MonsterScales_03,,0,0,0,0,0,16,0,0,,,,,,,,,0,0
634,,,,,INV_Scroll_04,,0,0,0,0,0,19,0,0,,,,,,,,,0,0
679,Sword_1H_Short_A_01.mdx,,Sword_1H_Short_A_01Blue,,INV_Sword_04,,0,0,0,0,0,8,0,0,,,,,,,,,0,0
683,,,,,INV_Pants_02,,0,0,0,0,0,7,0,0,,,,,,Leather_B_01_Pant_LU,Leather_B_01_Pant_LL,,0,0
684,,,,,INV_Chest_Wolf,,0,0,0,0,0,7,0,0,,,,Leather_B_01_Chest_TU,Leather_B_01_Chest_TL,,,,0,0
685,,,,,INV_Pants_03,,0,0,0,0,0,10,0,0,,,,,,Mail_A_02_Pant_LU,Mail_A_02_Pant_LL,,0,0
687,,,,,INV_Pants_03,,0,0,0,0,0,10,0,0,,,,,,Mail_A_01_Pant_LU,Mail_A_01_Pant_LL,,0,0
691,,,,,INV_Pants_02,,0,0,0,0,0,7,0,0,,,,,,Leather_B_02_Pant_LU,Leather_B_02_Pant_LL,,0,0

how to fix this shit?

It looks like it is not interpreting strings correctly.
Title: Re: [QUESTION] dbc tool
Post by: akriso on April 30, 2014, 06:47:31 pm
yeah. maybe u can help me - delete 1 column ? i'll send my csv file to u
Title: Re: [QUESTION] dbc tool
Post by: stoneharry on April 30, 2014, 06:57:53 pm
Quote from: "akriso"
yeah. maybe u can help me - delete 1 column ? i'll send my csv file to u

The tool is not open source, perhaps write your own converter.

I have created both VB and C# frameworks for modifying DBC files. All you would need to do is define the structures then decrease the record size and number of fields per record and not write the last column back.