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: TC Error new Custom Race.  (Read 1325 times)

Vision

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 22
    • View Profile
TC Error new Custom Race.
« on: October 16, 2014, 09:45:33 am »
Hey guys,

i become this error...

 79%] Built target scripts
/home/server_335/core/src/server/game/Achievements/AchievementMgr.cpp: In member                         function ‘bool AchievementCriteriaData::IsValid(const AchievementCriteriaEntry*                        )’:
/home/server_335/core/src/server/game/Achievements/AchievementMgr.cpp:110:70: er                        ror: ‘RACE_RACE_GOBLIN’ was not declared in this scope
compilation terminated due to -Wfatal-errors.

Newest TC Core Version.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

phantomx

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 615
    • View Profile
Re: TC Error new Custom Race.
« Reply #1 on: October 16, 2014, 09:59:07 am »
Did you not enable the race?

Race_Race_Goblin...??????
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
[wimg]http://i.imgur.com/6fxUQL1.gif[/wimg]

Vision

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 22
    • View Profile
Re: TC Error new Custom Race.
« Reply #2 on: October 16, 2014, 10:03:34 am »
// 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, // H
    //RACE_NAGA               = 13,
    RACE_BROKEN             = 14, // Worgen A
    //RACE_SKELETON           = 15,
    RACE_VRYKUL             = 16, // Pandaren A/H
    //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         20

#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_BROKEN-1))       |(1<<(RACE_RACE_GOBLIN-1))|
    (1<<(RACE_FEL_ORC-1)) |(1<<(RACE_VRYKUL-1))      |(1<<(RACE_RACE_TAUNKA-1)))
   
   

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

#define RACEMASK_HORDE RACEMASK_ALL_PLAYABLE & ~RACEMASK_ALLIANCE

// Class value is index in ChrClasses.dbc
enum Classes
{
    CLASS_NONE          = 0,
    CLASS_WARRIOR       = 1,
    CLASS_PALADIN       = 2,
    CLASS_HUNTER        = 3,
    CLASS_ROGUE         = 4,
    CLASS_PRIEST        = 5,
    CLASS_DEATH_KNIGHT  = 6,
    CLASS_SHAMAN        = 7,
    CLASS_MAGE          = 8,
    CLASS_WARLOCK       = 9,
    CLASS_DEMON_HUNTER           = 10,
    CLASS_DRUID         = 11
};

// max+1 for player class
#define MAX_CLASSES       13

#define CLASSMASK_ALL_PLAYABLE
    ((1<<(CLASS_WARRIOR-1))|(1<<(CLASS_PALADIN-1))|(1<<(CLASS_HUNTER-1))|
    (1<<(CLASS_ROGUE-1))  |(1<<(CLASS_PRIEST-1)) |(1<<(CLASS_SHAMAN-1))|
    (1<<(CLASS_MAGE-1))   |(1<<(CLASS_WARLOCK-1))|(1<<(CLASS_DRUID-1)) |
    (1<<(CLASS_DEATH_KNIGHT-1))|(1<<(CLASS_DEMON_HUNTER-1)))
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

phantomx

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 615
    • View Profile
Re: TC Error new Custom Race.
« Reply #3 on: October 16, 2014, 10:09:23 am »
I still don't understand why you have it set as Race_Race....

Code: [Select]
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         22

#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_GOBLIN-1))|
    (1<<(RACE_BLOODELF-1))|(1<<(RACE_DRAENEI-1))      |(1<<(RACE_FEL_ORC-1))|
    (1<<(RACE_NAGA-1))    |(1<<(RACE_BROKEN-1))       |(1<<(RACE_SKELETON-1))|
(1<<(RACE_VRYKUL-1))  |(1<<(RACE_TUSKARR-1))      |(1<<(RACE_FOREST_TROLL-1))|
    (1<<(RACE_TAUNKA-1))  |(1<<(RACE_NORTHREND_SKELETON-1)) |(1<<(RACE_ICE_TROLL-1)) )
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
[wimg]http://i.imgur.com/6fxUQL1.gif[/wimg]

Vision

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 22
    • View Profile
Re: TC Error new Custom Race.
« Reply #4 on: October 16, 2014, 10:22:21 am »
haha okay yea i see it ..Thanks :)  Solved! :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »