Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: Skt16 on August 28, 2016, 04:39:25 am

Title: CharacterCreate.lua Problem
Post by: Skt16 on August 28, 2016, 04:39:25 am
Hi all , I come with the hope that you can help me with a problem driving me crazy...
I do a tutorial for make custom races to my server and i did too well, i can play my new races without problems but... When i will create a character the character menu its bugged a lot.

This is the error:
(https://s4.postimg.org/546j3l4xp/errorlua.jpg)

This is what i edited on SharedDefines.h: http://pastebin.com/ee2XwUr7 (http://pastebin.com/ee2XwUr7" onclick="window.open(this.href);return false;)
This is the XML: http://pastebin.com/C0hqX8kH (http://pastebin.com/C0hqX8kH" onclick="window.open(this.href);return false;)
And this is the Lua: http://pastebin.com/cXWnrXDc (http://pastebin.com/cXWnrXDc" onclick="window.open(this.href);return false;)

The Interface files was extracted from: World of Warcraft 3.3.5DataxxXXlocale-xxXX.MPQ
because patch-xxXX-2.MPQ make crash when i click the character create button.


What im doing bad?

I got a TrinityCore server with expansion 3.3.5a.

If I can provide more information let me know, thanks and best regards!.
Title: Re: CharacterCreate.lua Problem
Post by: Grymskvll on August 28, 2016, 04:35:04 pm
According to the error popup, this part is causing the error:
Code: [Select]
       for i=1, MAX_RACES, 1 do
            local button = getglobal("CharacterCreateRaceButton"..i);
            button:Enable();
            SetButtonDesaturated(button, false)
        end

You have
Code: [Select]
MAX_RACES = 22;
And your XML file only creates up to and including CharacterCreateRaceButton12.
Title: Re: CharacterCreate.lua Problem
Post by: Skt16 on August 28, 2016, 11:27:43 pm
Quote from: "Grymskvll"
According to the error popup, this part is causing the error:
Code: [Select]
       for i=1, MAX_RACES, 1 do
            local button = getglobal("CharacterCreateRaceButton"..i);
            button:Enable();
            SetButtonDesaturated(button, false)
        end

You have
Code: [Select]
MAX_RACES = 22;
And your XML file only creates up to and including CharacterCreateRaceButton12.


I fixed all the problems, thanks to you!