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: CharacterCreate.lua Problem  (Read 1367 times)

Skt16

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 5
    • View Profile
CharacterCreate.lua Problem
« 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:


This is what i edited on SharedDefines.h: http://pastebin.com/ee2XwUr7
This is the XML: http://pastebin.com/C0hqX8kH
And this is the Lua: http://pastebin.com/cXWnrXDc

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!.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Grymskvll

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 65
    • View Profile
Re: CharacterCreate.lua Problem
« Reply #1 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Skt16

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 5
    • View Profile
Re: CharacterCreate.lua Problem
« Reply #2 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!
« Last Edit: January 01, 1970, 01:00:00 am by Admin »