Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: XxXGenesisXxX on May 13, 2012, 08:49:05 pm

Title: [SOLVED]  Custom Class Crash
Post by: XxXGenesisXxX on May 13, 2012, 08:49:05 pm
Ok, so I have made a new class (Added an entirely new one, not edited an old one). Done all the C++, all the DBC, XML, lua and all the DB stuff.  And the class works, can log into it. Tool tip says my character is a level 1 "Necromancer" etc. However when I try to go into the pane that has Character, Skill and reputation, my client crashes. And I get "ERROR #132 (0x85100084) Fatal Exception". But the server itself doesn't crash or even have an error. Other classes work as per usual.

Edited DBC's:
BaseCharInfo.dbc
ChrClasses.dbc
ChrRaces.dbc
SkillLine.dbc (Which I removed to test and problem persisted anyway. So can rule it out as the problem)
Talent.dbc (Talent panel works fine)
TalentTab.dbc (As above)

I can't figure out what it could be. Any suggestions? Or ideas? Just looking for places to start to figure it out. Pretty sure it's the client, but don't know why...
Title: Re: [QUESTION] Custom Class Crash
Post by: XxXGenesisXxX on May 24, 2012, 11:38:15 pm
Pretty sure I've narrowed it down to "PaperDollFrame.lua" or "PaperDollFrame.xml" in the interface/frameXML folder. Betting on the lua file.

If I use the addon "All Stats" it crashes doing the same thing. So it's not the actual frames itself, it's the way it gathers and shows the stats. I first thought it was the stats going over a certain limit when I was having troubles with Druid's above a certain level. But even level 1's with a custom class do the same thing. Also if you use a macro or edit the SavedVariables files to hide the stats panels, it doesn't crash.

For example:
(http://www.fileden.com/files/2012/4/30/3298604/Final%20Results%203.png)

The reason I think it's from "PaperDollFrame.lua" or "PaperDollFrame.xml" is that the only things that "All Stats" calls on and changes is "PaperDollFrame.lua" and "PaperDollFrame.xml". I'll post the scripts here in case anyone can figure it out.

Edit 1:
Just tested if it matters what stats were showing. All of them crashed regardless (Base Stats, Melee Combat, Ranged Combat, Spell Combat and Defense Combat). So It's not as likely a stat specific error.
Title: Re: [QUESTION] Custom Class Crash
Post by: schlumpf on May 25, 2012, 12:14:50 am
Nobody is going to help you if you post the whole files and not what you actually changed.

You most likely want to enable display of lua errors as it will tell you the exact line.
Title: Re: [QUESTION] Custom Class Crash
Post by: XxXGenesisXxX on May 25, 2012, 12:37:05 am
I didn't edit them. They are the basic files straight out of the MPQ files. Just figured it would be easier than people having to open up their own WoW interface folders to have a look.

It's a complete client crash, don't think lua error frame will have time to show up before crashing.

I'm trying to narrow down on why it's doing it. So the way I see it, whether it's unlikely people will help or not, I've still got more chance if I have more info up. Especially if other people have the same error and might want help too.
Title: Re: [QUESTION] Custom Class Crash
Post by: schlumpf on May 25, 2012, 12:38:15 am
As LUA is sandboxed, there nearly never come crashes right from calling lua. Most of the time, it will crash inside APIs then, which hints for missing DBC entries.
Title: Re: [QUESTION] Custom Class Crash
Post by: XxXGenesisXxX on May 25, 2012, 12:41:46 am
Ok, thank you. That's the kind of information I'm after, stuff to point me in the right direction.
Title: Re: [QUESTION] Custom Class Crash
Post by: Jivy on May 25, 2012, 01:17:33 pm
Hi,

You need to edit the gt*.dbc files.
Title: Re: [QUESTION] Custom Class Crash
Post by: XxXGenesisXxX on May 25, 2012, 05:28:55 pm
Any idea where I can get info on the gt* dbc files?
Title: Re: [QUESTION] Custom Class Crash
Post by: Jivy on May 25, 2012, 06:47:22 pm
"All" is explain here : viewtopic.php?p=11114#p11114 (http://modcraft.io/viewtopic.php?p=11114#p11114" onclick="window.open(this.href);return false;)
Title: Re: [QUESTION] Custom Class Crash
Post by: XxXGenesisXxX on May 25, 2012, 10:34:44 pm
Thank your very much :)