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: [QUESTION] Error when adding custom race  (Read 4422 times)

Moridhin

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 46
    • View Profile
[QUESTION] Error when adding custom race
« on: September 19, 2012, 07:49:30 pm »
Ok so i followed guide on adding custom race,and when i finish client-side modding i get this error.

I am really confused :?: ,MAYBE i did something wrong,but then again when i create custom MPQ archive without changing lua and xml files i still get this error!
Don't know what to do. :(
And yes i have cracked wow.exe(to bypass lua error),i also uploaded my mpq file if anyone wants to check if everything is properly edited.
So,any help would be greatly appreciated.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Error when adding custom race
« Reply #1 on: September 19, 2012, 08:24:41 pm »
There are tables for the background models and ambient sound.
You forgot to expand them to have data for your race.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Moridhin

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 46
    • View Profile
Re: [QUESTION] Error when adding custom race
« Reply #2 on: September 19, 2012, 08:35:27 pm »
Which tables are that,i edited ChrRaces.dbc and CharBaseInfo.dbc?
What more should i edit?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Error when adding custom race
« Reply #3 on: September 19, 2012, 08:41:10 pm »
As the interface is breaking, obviously interface files.
Interface/GlueXML/. Some lua. The name of the array is in your screenshot. Just search in the files. global? glueparent? I don't remember.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Moridhin

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 46
    • View Profile
Re: [QUESTION] Error when adding custom race
« Reply #4 on: September 19, 2012, 09:57:39 pm »
Its error related to GlueParent.lua but still idk how to fix it,because as i said even if i do not modify it,i still get this error when making custom patch.
Not sure what to do
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

detonatorss

  • Registred Member
  • Model Change Addict
  • *****
  • Posts: 233
    • View Profile
Re: [QUESTION] Error when adding custom race
« Reply #5 on: September 19, 2012, 11:35:06 pm »
you have to put a folder in that path:

InterfaceGluesModelsUI_NAMEOFTHERACE

and you rename another UI of any race and put it here nothing more to do
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Desktop


Laptop

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Error when adding custom race
« Reply #6 on: September 19, 2012, 11:50:29 pm »
Quote from: "Moridhin"
Its error related to GlueParent.lua but still idk how to fix it,because as i said even if i do not modify it,i still get this
the problem is not modifying it, not modifying it in a wrong way.

Just look at the line, the error tells you.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Moridhin

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 46
    • View Profile
Re: [QUESTION] Error when adding custom race
« Reply #7 on: September 20, 2012, 01:19:46 pm »
Still can't get it to work,can someone upload glueparent.lua,as example what should i do.
Thanks.
---------EDIT
Ok so i succeed in fixing that error,but then i got this:

i fix that just like GlueParent.lua,and then when i can finally enter character creation screen i get this:


What should do know??
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [QUESTION] Error when adding custom race
« Reply #8 on: September 20, 2012, 02:43:54 pm »
Quote from: "Moridhin"
Still can't get it to work,can someone upload glueparent.lua,as example what should i do.
Thanks.
---------EDIT
Ok so i succeed in fixing that error,but then i got this:

i fix that just like GlueParent.lua,and then when i can finally enter character creation screen i get this:


What should do know??
It means that the coords given on the Race Button doesn't make sense for him. I'd say if you changed races, you have to change the file containing the races accordingly
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Moridhin

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 46
    • View Profile
Re: [QUESTION] Error when adding custom race
« Reply #9 on: September 20, 2012, 03:48:22 pm »
Well i saw in that tutorial about adding races some guy had same problems like me,so i am wondering how he fixed it,how can i fix this error.Should something be done with CharacterCreate.xml?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Error when adding custom race
« Reply #10 on: September 20, 2012, 04:06:31 pm »
In CharacterCreate.lua, look at line 182. There is a variable name. Search the variable name. Add an entry for your race.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Moridhin

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 46
    • View Profile
Re: [QUESTION] Error when adding custom race
« Reply #11 on: September 20, 2012, 04:35:03 pm »
Ok so this is the line 182:
Code: [Select]
_G["CharacterCreateClassButton"..index.."NormalTexture"]:SetTexCoord(coords[1], coords[2], coords[3], coords[4]);What should i exactly do here,sorry not really good at this.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Error when adding custom race
« Reply #12 on: September 20, 2012, 04:44:20 pm »
Quote from: "Moridhin"
Ok so this is the line 182:
Code: [Select]
_G["CharacterCreateClassButton"..index.."NormalTexture"]:SetTexCoord(coords[1], coords[2], coords[3], coords[4]);What should i exactly do here,sorry not really good at this.
The error states that coords is a nil value. Look at the lines above, where coords is set and how it is set.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Moridhin

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 46
    • View Profile
Re: [QUESTION] Error when adding custom race
« Reply #13 on: September 20, 2012, 04:51:42 pm »
This is two above lines:
Code: [Select]
for i=1, select("#", ...), 3 do
coords = RACE_ICON_TCOORDS[strupper(select(i+1, ...).."_"..gender)];
It is a function:"CharacterCreateEnumerateRaces".
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] Error when adding custom race
« Reply #14 on: September 20, 2012, 05:00:04 pm »
Quote from: "Moridhin"
This is two above lines:
Code: [Select]
for i=1, select("#", ...), 3 do
coords = RACE_ICON_TCOORDS[strupper(select(i+1, ...).."_"..gender)];
It is a function:"CharacterCreateEnumerateRaces".
So you want to search for RACE_ICON_TCOORDS now, as that seems to be a nil value for your race.
It might be in a different file.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »