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] Custom Race  (Read 1869 times)

Deuzz

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 21
    • View Profile
[QUESTION] Custom Race
« on: August 01, 2015, 06:51:58 pm »
Hey,
I have a Problem with custom races.
A friend added 4 races into the Server for me and I want to add some more using a tutorial from emudevs.
After I edited the Client and Server files (yes, I edited the SharedDefinition.h) and added them to the patch, I always get an error after going to the character selection.
This is the error which I always get: http://puu.sh/jlvuF/b9a79bde40.jpg

And now I don't know what I've made wrong ;~;
This is the Code part from the CharacterCreate.lua around line 188-193.
Quote
   for i=1, select("#", ...), 3 do
      coords = RACE_ICON_TCOORDS[strupper(select(i+1, ...).."_"..gender)];
      _G["CharacterCreateRaceButton"..index.."NormalTexture"]:SetTexCoord(coords[1], coords[2], coords[3], coords[4]);
      _G["CharacterCreateRaceButton"..index.."PushedTexture"]:SetTexCoord(coords[1], coords[2], coords[3], coords[4]);
      button = _G["CharacterCreateRaceButton"..index];
      button:Show();
Please help me :c

Kind regards
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

spiderwaseem

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 154
    • View Profile
    • http://anarchy-wow.com/
Re: [QUESTION] Custom Race
« Reply #1 on: August 02, 2015, 11:38:29 am »
From my past and current trials of creating races, I noticed that the lua errors you get in game isn't always what is causing an error. It's something that you edited that caused the function or other lua code to not work properly.

So with the information provided from the original post, I don't believe we can help you much.
You would need to post all of the files that you've edited (pastebin preferred) and link the emudevs guide you've followed.


Thank You!
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Deuzz

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 21
    • View Profile
Re: [QUESTION] Custom Race
« Reply #2 on: August 02, 2015, 02:42:38 pm »
Okay, I made some changes and now I see this:
http://puu.sh/jmsLl/73f7982b41.jpg

CharacterCreate.lua: http://pastebin.com/5gnANugs
CharacterCreate.xml: http://pastebin.com/SNn9X0u8

GlueParent.lua: http://pastebin.com/r4cs8USA
GlueString.lua: http://pastebin.com/t9FjAbQN (Only the part I added there)

Goblin and Naga are working but Tuskarr and Taunka not :/

Edit// Forgot to add the guide link http://emudevs.com/showthread.php/121-H ... stom-Races!
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Deuzz

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 21
    • View Profile
Re: [QUESTION] Custom Race
« Reply #3 on: August 09, 2015, 05:03:26 pm »
anyone? :c
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Chase

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 116
    • View Profile
Re: [QUESTION] Custom Race
« Reply #4 on: August 09, 2015, 06:04:11 pm »
That means that the coordinates for the image are not set or wrong.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

XxXGenesisXxX

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 204
    • View Profile
Re: [QUESTION] Custom Race
« Reply #5 on: August 12, 2015, 05:16:13 pm »
It's not the coords that are the problem, it's the number of races. The coords grab the number of races, then grab the icon coordinates, then set the icon textures accordingly. Problem is, you have 16 coordinates but max races set to 14.

Coordinates that you have 16 different races of:
Code: [Select]
["HUMAN_MALE"]          = {0, 0.125, 0, 0.25},
Max races you have set:
Code: [Select]
MAX_RACES = 14;
Change the number of max races and let us know how it goes.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Deuzz

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 21
    • View Profile
Re: [QUESTION] Custom Race
« Reply #6 on: August 13, 2015, 09:45:29 am »
Okay, changed max races to 16 but the 2 race Buttons disappeared completely now :/
« Last Edit: January 01, 1970, 01:00:00 am by Admin »