Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: Degen on August 08, 2016, 05:26:20 pm

Title: [QUESTION] [Trinity 3.3.5] More than 3 talent trees
Post by: Degen on August 08, 2016, 05:26:20 pm
Lately I've been trying to increase the number of talent trees for all classes from 3 to 4. I found "#define MAX_TALENT_TABS 3" in DBCStructure.h and changed it to 4 but that wasn't enough. (I didn't expect it to be easy)

Right now I'm looking at a few places n Player.cpp and DBCStores.cpp where talent tabs are built, but I can't figure out how it all works. If someone has an idea of how to do this, or is more familiar with c++ and just wants to lend a hand I would be very appreciative! I'll keep trying for now and will update if I figure it out.
Title: Re: [QUESTION] [Trinity 3.3.5] More than 3 talent trees
Post by: Grymskvll on August 09, 2016, 03:39:10 am
Did you mess with TalentTab.dbc, Talent.dbc, SkillLine.dbc, SkillLineAbility.dbc and SkillRaceClassInfo.dbc yet?

You probably also need to add entries in the world.playercreateinfo_skills mysql database, so that newly created characters learn the SkillLine for that talent tree upon creation.
Title: Re: [QUESTION] [Trinity 3.3.5] More than 3 talent trees
Post by: Amaroth on August 09, 2016, 11:45:57 am
And often overseen SkillRaceClassInfo.dbc.

Keep in mind that talent tab is in fact a skill. You need to create and for that class enable one.
Title: Re: [QUESTION] [Trinity 3.3.5] More than 3 talent trees
Post by: Degen on August 10, 2016, 12:55:59 am
I didn't even consider database or dbc edits. I know i'll use them to build the new talent trees, but my goal right now is getting 4 talent tabs working. I'll see what I can do, thanks for the suggestions.
Title: Re: [QUESTION] [Trinity 3.3.5] More than 3 talent trees
Post by: Amaroth on August 10, 2016, 10:34:40 am
Well, its possible you already made them possible for characters to work, but you haven't just created any yet :D.
Title: Re: [QUESTION] [Trinity 3.3.5] More than 3 talent trees
Post by: Degen on August 10, 2016, 10:09:32 pm
So I tried a few things. I added a new row in TalentTab.dbc for a Warrior - Holy talent tree (pointing to Paladin's Holy tree as a placeholder for now) and I added the Holy skill to warriors in playercreateinfo_skills.

http://i.imgur.com/x2EoLhE.jpg (http://i.imgur.com/x2EoLhE.jpg" onclick="window.open(this.href);return false;)
There were a few problems..

Edit: Editing SkillRaceClassInfo.dbc lets Warriors learn the Holy skill. The talent tab won't show up though, and adding a line to TalentTab.dbc breaks the window.
Title: Re: [QUESTION] [Trinity 3.3.5] More than 3 talent trees
Post by: noc on August 10, 2016, 10:42:32 pm
You'll have to modify TalentFrameBase.lua and Blizzard_TalentUI.lua
Title: Re: [QUESTION] [Trinity 3.3.5] More than 3 talent trees
Post by: Degen on August 10, 2016, 10:56:46 pm
Quote from: "noc"
You'll have to modify TalentFrameBase.lua and Blizzard_TalentUI.lua

Where is the TalentFrameBase.lua file located? (I'm using Trinity core 3.3.5) Is the default talents UI just not expecting more than 3 tabs?
Title: Re: [QUESTION] [Trinity 3.3.5] More than 3 talent trees
Post by: noc on August 11, 2016, 10:46:26 am
Basic yes 3 no more tabs and 1 for glyphs and one for the pets .
Blizzard_TalentUI you will find in " Interface  AddOns  Blizzard_TalentUI " and TalentFrameBase in " Interface  FrameXML "
Title: Re: [QUESTION] [Trinity 3.3.5] More than 3 talent trees
Post by: Amaroth on August 11, 2016, 12:14:14 pm
And in case you still don't know where to find those files even when you know where they are located, open MPQs in your Data and Locale folder in Merged mode (in MPQEditor File>Open MPQs With Options).