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] Problem Core with custom races  (Read 2196 times)

azraeldestiny

  • Registred Member
  • MWCS Enthusiast
  • *****
  • Posts: 1
    • View Profile
[Question] Problem Core with custom races
« on: April 27, 2014, 03:55:49 pm »
Hi all, I registered on the website for one month that I have been busy riding my wow server and I can not make it work with the new races.

The problem is when the new core with new races enter the database does not recognize the new fields.

Just edit the shareddefines.h as I've seen in all the tutorials in this web and others but still do not know why not recognize fields.

I skipped some file to edit? that no longer do

Breeds that are attempt to enable the Vrykul and nagas


// Race value is index in ChrRaces.dbc
enum Races
{
    RACE_NONE               = 0,
    RACE_HUMAN              = 1,
    RACE_ORC                = 2,
    RACE_DWARF              = 3,
    RACE_NIGHTELF           = 4,
    RACE_UNDEAD_PLAYER      = 5,
    RACE_TAUREN             = 6,
    RACE_GNOME              = 7,
    RACE_TROLL              = 8,
    //RACE_GOBLIN             = 9,
    RACE_BLOODELF           = 10,
    RACE_DRAENEI            = 11,
    //RACE_FEL_ORC            = 12,
    RACE_NAGA               = 13,
    //RACE_BROKEN             = 14,
    //RACE_SKELETON           = 15,
    RACE_VRYKUL             = 16
    //RACE_TUSKARR            = 17,
    //RACE_FOREST_TROLL       = 18,
    //RACE_TAUNKA             = 19,
    //RACE_NORTHREND_SKELETON = 20,
    //RACE_ICE_TROLL          = 21
};

// max+1 for player race
#define MAX_RACES         14

#define RACEMASK_ALL_PLAYABLE
    ((1<<(RACE_HUMAN-1))    |(1<<(RACE_ORC-1))          |(1<<(RACE_DWARF-1))   |
    (1<<(RACE_NIGHTELF-1)) |(1<<(RACE_UNDEAD_PLAYER-1))|(1<<(RACE_TAUREN-1))  |
    (1<<(RACE_GNOME-1))    |(1<<(RACE_TROLL-1))   |(1<<(RACE_BLOODELF-1)) |
   (1<<(RACE_DRAENEI-1))    |(1<<(RACE_NAGA-1)) |(1<<(RACE_VRYKUL-1)))

#define RACEMASK_ALLIANCE
    ((1<<(RACE_HUMAN-1)) | (1<<(RACE_DWARF-1)) | (1<<(RACE_NIGHTELF-1)) |
     (1<<(RACE_GNOME-1)) | (1<<(RACE_DRAENEI-1)))

------------------------------------------------------------------------------------------------------

The core compiles perfectly does not give me any error in visual studio but when the core charge and this charge fields of database rises the following error me  :x .

Wrong race 13 in 'playercreateinfo' table, ignoring.
Wrong race 16 in 'playercreateinfo' table, ignoring.

Can anyone tell me that failure? I am so desperate to try to find the solution -. -  :(
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Chikittin

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 18
    • View Profile
Re: [Question] Problem Core with custom races
« Reply #1 on: October 31, 2014, 05:49:07 pm »
You've found the solution?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

soliant

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 5
    • View Profile
Re: [Question] Problem Core with custom races
« Reply #2 on: November 30, 2016, 11:26:58 pm »
Someone find where is the problem ?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

fandramen

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 47
    • View Profile
Re: [Question] Problem Core with custom races
« Reply #3 on: December 01, 2016, 12:11:04 am »
Quote from: "soliant"
Someone find where is the problem ?
You have to put the dbc inside the server files ;)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

illaoi

  • Registred Member
  • MS Paint Freak
  • *****
  • Posts: 3
    • View Profile
Re: [Question] Problem Core with custom races
« Reply #4 on: December 09, 2016, 06:00:42 pm »
Change  #define MAX_RACES 14 to #define MAX_RACES 17
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

soliant

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 5
    • View Profile
Re: [Question] Problem Core with custom races
« Reply #5 on: December 12, 2016, 08:39:29 am »
For me I pit dbc on the server side and define mav races=17 but not work.

Probably we can't with mangos core...
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

fandramen

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 47
    • View Profile
Re: [Question] Problem Core with custom races
« Reply #6 on: December 12, 2016, 10:54:57 am »
Quote from: "soliant"
For me I pit dbc on the server side and define mav races=17 but not work.

Probably we can't with mangos core...

cause you have putted the edited dbc's inside ._. i hive you the answer you have missed me ._.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

soliant

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 5
    • View Profile
Re: [Question] Problem Core with custom races
« Reply #7 on: December 12, 2016, 09:12:55 pm »
Sorry I haven't see your response. I test your solution this week.

Change DB and Defined.h server side
             DBC only client side with charactercreate. lua and xml etc .... but no DBC server side....

Right ?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

fandramen

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 47
    • View Profile
Re: [Question] Problem Core with custom races
« Reply #8 on: December 13, 2016, 11:05:01 am »
Quote from: "soliant"
Sorry I haven't see your response. I test your solution this week.

Change DB and Defined.h server side
             DBC only client side with charactercreate. lua and xml etc .... but no DBC server side....

Right ?

your edited DBC of the clientside go into the serverside too...
« Last Edit: January 01, 1970, 01:00:00 am by Admin »