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: [C++] ? [DBC] ? Trying to select character sheet but can't  (Read 1623 times)

Serifaz

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 293
    • View Profile
[C++] ? [DBC] ? Trying to select character sheet but can't
« on: August 23, 2012, 08:18:37 pm »
Hey guys Im trying to figure out why it is when I select the character sheet on my custom class.
it crashes the client. I can see the talents achievements, and everything but just can't view my char sheet
any ideas? Ive done a lot of looking around in the dbcs and I don't think its a core issue but I may be wrong.

[EDIT]: I noticed in another post that the gt*.mpq's need edited, but I have no idea how to edit them, and wowdev has nothing on the matter. is there anyone that can tell me how to implement a 13th class in the dbcs needed?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

detonatorss

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 233
    • View Profile
Re: [C++] ? [DBC] ? Trying to select character sheet but ca
« Reply #1 on: October 17, 2012, 12:40:08 pm »
now the gt and the other dbc files are completed you have to do this

for any class you have to think that have 100 entries in the gt dbc's

but you only have to select 99, for example i've made an elementalist class and works perfect.7
for example is an elemntalist, you have to see the id of the class and calculate this

Example of xxGenesisxx

Step 3. Fixing the client crash when checking stats bug!

Ok for all of these, we are going to be doing some cloning of columns in the gt* dbc files. It is highly advised you do this in CSVED.EXE & DBCUtil.exe and that's what my guide is going to be using.

You get CSVED from here: http://csved.sjfrancke.nl/

And DBCUtil from here: http://code.google.com/p/cntc2/download ... r&can=2&q=

I would to thank Khira for their original guide that helped me figure this out. However it wasn't the most straightforward on how to do it, so I thought I'd rewrite it a bit easier here. I would link the guide, but I have no idea where it is, it was in spanish and I had sent to me via someone quoting it.

So let's start! Firstly I want you to make a folder on your desktop and name it what ever the hell you want. Then go to your server and copy all the gt* .dbc files into your new folder. We are doing this just to keep it neat and as backup. Now in your new folder go ahead and delete "gtBarberShopCostBase.dbc", "gtNPCManaCostScaler.dbc" and "gtCombatRatings.dbc" as we won't be touching these.

Now that you've done that, go to where you extracted DBCUtil, go into that folder, create a shortcut to DBCUtil.exe and copy that shortcut into your desktop folder, highlight all your DBC's and and drag them over the DBCUtil and let go of your mouse button, it will begin converting them to csv.files. Once done you should have a 1 csv for each DBC. Now to clone entries. WARNING! DO NOT USE MICROSOFT EXCEL FOR THIS STEP!

First open up CSVED.exe. Now go to File->Open ... and navigate to your desktop folder and open up "gtChanceToMeleeCrit.dbc.csv".

gtChanceToMeleeCrit.dbc.csv
This has 1101 entries, that's 100 per class (including the dummy class) + 1, the plus 1 is just stating all these files are floating (don't ask, not important). Now open upen up ChrClasses.dbc in Taliss. Get the ID of the class your custom class is most like stat wise. So for me my class is like a Mage, so the ID I want is 8. So since it's ID of 8, I have to right-click on any entry in CSVED.EXE and select "Go to line". We need to go to line 702. Why 702 for ID of 8? Figure it out like this:

Obviously
8*100 = 800
But this starts at 0 not 100, so
800-100 = 700
We have to include the line that stats it's all floating, so
700+1 = 701
And finally, I have no idea why but, we need to add another 1. xD
701+1=702


Now because this program is wierd, click on the entry underneath the highlighted one, then click back on the first entry, this is just to make sure it's selected properly. Right click on the entry it sent you to, that you have highlighted, then select "Go to line" again. This time add 99 lines. So for me I need 801. Now shift click on that entry. All lines between here and there should be highlighted. Right-Click on one and select "Copy Selected Records". Then scroll to the bottom of the page.

Click the very last entry, then right click and select "Add Record", type in any number, we will be deleting this anyway, it's just to keep everything in line, this is a flaw in the program. It has an option to paste below cursor, point but it doesn't always work like that, and we don't want to push the last line to the bottom and throw off the stat calc. Once you've typed in any number, hit Ready. I typed in 999999 so I can tell which it is.

Now select your added line, right-click and select "Paste records below cursor pos". Now find that entry you added and delete it. Look up the top and it should say 1201 recors. If so, you've done this correctly. If not close without saving and try again. If it does say 1201, go to file and select Save As, then save over your csv file.

Repeat these exact steps for these files:

gtChanceToSpellCrit.dbc
gtOCTRegenHP.dbc
gtOCTRegenMP.dbc
gtRegenHPPerSpt.dbc
gtRegenMPPerSpt.dbc

Now do the exact same for these files, but you only need to add 1 entry, so you should have 13 records at the end.

gtChanceToMeleeCritBase.dbc
gtChanceToSpellCritBase.dbc

Now we open up "gtOCTClassCombatRatingScalar.dbc.csv"

Gonna have to do some basic math here because instead of 100, 1 or 10 entries per class it's 32. So to find yours just do this:

ID*32, so for me
8*32=256
Plus the float file
256+1=257
And that's the answer


You should end up with the column 1 saying the number 1 below your line number, that's good, it means we can ignore the flot line now. Again click off it then back on it. We need to go down another 32 lines. So do the math and go to the line.

257+32=289


Now just do the same as all the others, copy selected records, go to bottom, add new row, paste below cursor, delete created row. Now we've done that we have to edit column 1, just simply go to the top of you copied files and continue the numbers on. So mine says 352, 256, 257, 258. I need it to say 352, 353, 354, 355 etc. Once that's done, check you have 386 records. Save As and close CSVED.exe.

Now delete all the .dbc files in the folder. Then drag and drop all your .dbc.csv files onto DBCUtil shortcut again, this time it should spit out your new working dbc's. Copy them and place them into your patch and your server, then you're done for this step!

this is not made by me is from xxgenesisxx
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Desktop


Laptop

XxXGenesisXxX

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 204
    • View Profile
Re: [C++] ? [DBC] ? Trying to select character sheet but ca
« Reply #2 on: October 17, 2012, 02:30:30 pm »
Already sent that to him via message just after making that section. People need to change the tags of these things to "solved" when they are done.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [C++] ? [DBC] ? Trying to select character sheet but ca
« Reply #3 on: October 18, 2012, 02:59:39 pm »
YES read my Signature :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954