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 4420 times)

Moridhin

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 46
    • View Profile
Re: [QUESTION] Error when adding custom race
« Reply #15 on: September 20, 2012, 05:20:50 pm »
Ok i found RACE_ICON_TCOORDS in this file and it loos like this:
Code: [Select]
RACE_ICON_TCOORDS = {
["HUMAN_MALE"] = {0, 0.125, 0, 0.25},
["DWARF_MALE"] = {0.125, 0.25, 0, 0.25},
["GNOME_MALE"] = {0.25, 0.375, 0, 0.25},
["NIGHTELF_MALE"] = {0.375, 0.5, 0, 0.25},

["TAUREN_MALE"] = {0, 0.125, 0.25, 0.5},
["SCOURGE_MALE"] = {0.125, 0.25, 0.25, 0.5},
["TROLL_MALE"] = {0.25, 0.375, 0.25, 0.5},
["ORC_MALE"] = {0.375, 0.5, 0.25, 0.5},

["HUMAN_FEMALE"] = {0, 0.125, 0.5, 0.75},  
["DWARF_FEMALE"] = {0.125, 0.25, 0.5, 0.75},
["GNOME_FEMALE"] = {0.25, 0.375, 0.5, 0.75},
["NIGHTELF_FEMALE"] = {0.375, 0.5, 0.5, 0.75},

["TAUREN_FEMALE"] = {0, 0.125, 0.75, 1.0},  
["SCOURGE_FEMALE"] = {0.125, 0.25, 0.75, 1.0},
["TROLL_FEMALE"] = {0.25, 0.375, 0.75, 1.0},
["ORC_FEMALE"] = {0.375, 0.5, 0.75, 1.0},

["BLOODELF_MALE"] = {0.5, 0.625, 0.25, 0.5},
["BLOODELF_FEMALE"] = {0.5, 0.625, 0.75, 1.0},

["DRAENEI_MALE"] = {0.5, 0.625, 0, 0.25},
["DRAENEI_FEMALE"] = {0.5, 0.625, 0.5, 0.75},

    ["GOBLIN_MALE"]     = {0.5, 0.625, 0, 0.25},
    ["GOBLIN_FEMALE"]   = {0.5, 0.625, 0, 0.25},

    ["FELORC_MALE"]     = {0.5, 0.625, 0, 0.25},
    ["FELORC_FEMALE"]   = {0.5, 0.625, 0, 0.25},  
};
« 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 #16 on: September 20, 2012, 05:39:31 pm »
So is there an entry for both genders of 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 #17 on: September 20, 2012, 05:47:05 pm »
Sorry but i don't get what you mean by that,like raceID...?
« 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 #18 on: September 20, 2012, 06:11:38 pm »
In ChrRaces.dbc, you specify an internal identifier of your race, like HUMAN or NIGHTELF.
The table you have there has to have two entries: YOURRACE_MALE and YOURRACE_FEMALE.
If they are not included, the client won't find them when trying to display race selection icons.
« 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 #19 on: September 20, 2012, 06:32:10 pm »
Quote from: "schlumpf"
In ChrRaces.dbc, you specify an internal identifier of your race, like HUMAN or NIGHTELF.
The table you have there has to have two entries: YOURRACE_MALE and YOURRACE_FEMALE.
If they are not included, the client won't find them when trying to display race selection icons.
Sorry but that doesn't make any sense to me,there are no YOURRACE_MALE and YOURRACE_FEMALE entries in ChrRaces.dbc
I just made 2 races playable in this .dbc and add faction,also BaseLanguage and thats it.
Male and female model entries are left by default.
« 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 #20 on: September 20, 2012, 06:40:05 pm »
Quote from: "Moridhin"
I just made 2 races playable in this .dbc and add faction,also BaseLanguage and thats it.
YOURRACE refers to the name given for the two races you made playable. As I don't know which ones you use, I choose YOURRACE to indicate, what you have to insert.
"The table" refers to the table in the lua file, not the dbc in that sentence.
« 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 #21 on: September 20, 2012, 06:43:55 pm »
Ok i get you now but i already included races i made playable in the .lua file
Code: [Select]
["GOBLIN_MALE"]     = {0.5, 0.625, 0, 0.25},
    ["GOBLIN_FEMALE"]   = {0.5, 0.625, 0, 0.25},

    ["FELORC_MALE"]     = {0.5, 0.625, 0, 0.25},
    ["FELORC_FEMALE"]   = {0.5, 0.625, 0, 0.25},  
« 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 #22 on: September 20, 2012, 06:45:19 pm »
Are you sure the names match with the ones given in the DBC?
« 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 #23 on: September 20, 2012, 06:48:28 pm »
Yes they match 100%...i just checked again they match.
« 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 #24 on: September 20, 2012, 07:00:17 pm »
Given the code you have shown, I have no idea why that error would show up, then.
Are you sure, your modified file is the last one getting loaded? (i.e. in the MPQ with the highest number of locale MPQs)
« 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 #25 on: September 20, 2012, 07:02:22 pm »
DId you make sure that there is an icon where you point the file to ? I remember I had that issue once
« 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 #26 on: September 20, 2012, 07:09:00 pm »
Quote from: "Moridhin"
Are you sure, your modified file is the last one getting loaded?
Yes i make sure to use mpq with highest number.
Quote from: "Ascathos"
DId you make sure that there is an icon where you point the file to ? I remember I had that issue once
Not sure what you mean.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »