Modcraft - The community dedicated to quality WoW modding!
Wrath of the Lich King Modding => Miscellaneous => Topic started by: Vision 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.
-
Did you not enable the race?
Race_Race_Goblin...??????
-
// 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)))
-
I still don't understand why you have it set as Race_Race....
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)) )
-
haha okay yea i see it ..Thanks :) Solved! :)