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: [SOLVED]  Custom Class Crash  (Read 2761 times)

XxXGenesisXxX

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 204
    • View Profile
[SOLVED]  Custom Class Crash
« 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...
« Last Edit: May 30, 2012, 12:26:20 am by Admin »

XxXGenesisXxX

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 204
    • View Profile
Re: [QUESTION] Custom Class Crash
« Reply #1 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:


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.
« Last Edit: November 04, 2012, 04:35:36 pm by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Custom Class Crash
« Reply #2 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

XxXGenesisXxX

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 204
    • View Profile
Re: [QUESTION] Custom Class Crash
« Reply #3 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Custom Class Crash
« Reply #4 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

XxXGenesisXxX

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 204
    • View Profile
Re: [QUESTION] Custom Class Crash
« Reply #5 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Jivy

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 11
    • View Profile
Re: [QUESTION] Custom Class Crash
« Reply #6 on: May 25, 2012, 01:17:33 pm »
Hi,

You need to edit the gt*.dbc files.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

XxXGenesisXxX

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 204
    • View Profile
Re: [QUESTION] Custom Class Crash
« Reply #7 on: May 25, 2012, 05:28:55 pm »
Any idea where I can get info on the gt* dbc files?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Jivy

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 11
    • View Profile
Re: [QUESTION] Custom Class Crash
« Reply #8 on: May 25, 2012, 06:47:22 pm »
"All" is explain here : viewtopic.php?p=11114#p11114
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

XxXGenesisXxX

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 204
    • View Profile
Re: [QUESTION] Custom Class Crash
« Reply #9 on: May 25, 2012, 10:34:44 pm »
Thank your very much :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »