Need help with a compile problem, adding new races to the core, Trinitycore menu

Shout-Out

User Tag List

Results 1 to 2 of 2
  1. #1
    Hanpuch's Avatar Member
    Reputation
    1
    Join Date
    Oct 2008
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help with a compile problem, adding new races to the core, Trinitycore

    Hello MMowned Community.
    I am in need of help, I have already worked out how to add new races to the wow client, and it worked succesfully, the only problem is,
    the current core of trinity does not support new races, so I checked the code a bit and found something in SharedDefines.h
    But when I try to modify these lines, i get lots of copile errors, I don't know enough about c++ and trinitycore itself to fix them.
    Here is the Code:
    Code:
    enum Races
    {
        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         17
    
    #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_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)))
    So what I did is, changing the Races FEL_ORC, NAGA, GOBLIN, VRYKUL to code that means removing them from comments(//)
    Next up I changed:
    Code:
    #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)) )
    to:
    Code:
    #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_VRYKUL-1)) )
    These are the errors I get:
    Code:
    3>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(68) : error C2059: syntax error : '}'
    2>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(68) : error C2059: syntax error : '}'
    3>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(68) : error C2143: syntax error : missing ';' before '}'
    2>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(68) : error C2143: syntax error : missing ';' before '}'
    2>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(68) : error C2059: syntax error : '}'
    3>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(68) : error C2059: syntax error : '}'
    3>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(71) : error C2143: syntax error : missing ';' before '}'
    2>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(71) : error C2143: syntax error : missing ';' before '}'
    3>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(71) : error C2059: syntax error : '}'
    2>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(71) : error C2059: syntax error : '}'
    2>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(77) : error C2143: syntax error : missing ';' before '}'
    3>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(77) : error C2143: syntax error : missing ';' before '}'
    2>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(77) : error C2059: syntax error : '}'
    3>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(77) : error C2059: syntax error : '}'
    3>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(87) : error C2059: syntax error : 'constant'
    2>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(87) : error C2059: syntax error : 'constant'
    3>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(87) : error C2059: syntax error : ')'
    2>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(87) : error C2059: syntax error : ')'
    3>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(97) : error C2143: syntax error : missing ';' before '{'
    2>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(97) : error C2143: syntax error : missing ';' before '{'
    3>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(97) : error C2447: '{' : missing function header (old-style formal list?)
    3>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(2289) : error C2065: 'CLASS_WARLOCK' : undeclared identifier
    2>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(97) : error C2447: '{' : missing function header (old-style formal list?)
    3>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(2290) : error C2065: 'CLASS_WARRIOR' : undeclared identifier
    2>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(2289) : error C2065: 'CLASS_WARLOCK' : undeclared identifier
    3>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(2291) : error C2065: 'CLASS_SHAMAN' : undeclared identifier
    3>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(2292) : error C2065: 'CLASS_PALADIN' : undeclared identifier
    2>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(2290) : error C2065: 'CLASS_WARRIOR' : undeclared identifier
    2>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(2291) : error C2065: 'CLASS_SHAMAN' : undeclared identifier
    3>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(2293) : error C2065: 'CLASS_MAGE' : undeclared identifier
    2>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(2292) : error C2065: 'CLASS_PALADIN' : undeclared identifier
    3>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(2294) : error C2065: 'CLASS_ROGUE' : undeclared identifier
    2>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(2293) : error C2065: 'CLASS_MAGE' : undeclared identifier
    2>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(2294) : error C2065: 'CLASS_ROGUE' : undeclared identifier
    3>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(2295) : error C2065: 'CLASS_HUNTER' : undeclared identifier
    2>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(2295) : error C2065: 'CLASS_HUNTER' : undeclared identifier
    3>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(2296) : error C2065: 'CLASS_PRIEST' : undeclared identifier
    3>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(2297) : error C2065: 'CLASS_DRUID' : undeclared identifier
    2>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(2296) : error C2065: 'CLASS_PRIEST' : undeclared identifier
    2>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(2297) : error C2065: 'CLASS_DRUID' : undeclared identifier
    3>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(2298) : error C2065: 'CLASS_DEATH_KNIGHT' : undeclared identifier
    2>C:\Users\MEDION\Desktop\trinitycore\src\server\game\Miscellaneous\SharedDefines.h(2298) : error C2065: 'CLASS_DEATH_KNIGHT' : undeclared identifier
    I hope anyone of you who has some time and who is willing to help me, knows how to fix this, I would be really happy, and ofc reward you with some +reps
    Greetings,
    Crusher

    Need help with a compile problem, adding new races to the core, Trinitycore
  2. #2
    Terrorblade's Avatar Contributor I spent 5k CC and all I got was this user title
    CoreCoins Purchaser
    Reputation
    153
    Join Date
    Oct 2010
    Posts
    312
    Thanks G/R
    6/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your race playable should be
    Code:
    #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_FEL_ORC-1))  |(1<<(RACE_NAGA-1))  |(1<<(RACE_VRYKUL-1)))
    Stuff & Things

Similar Threads

  1. [Help] New to LUA, Need help with script.
    By nickelo in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 03-14-2008, 11:23 PM
  2. Need help with Glider, no common problem.
    By [SpNiz] in forum World of Warcraft General
    Replies: 6
    Last Post: 01-20-2008, 04:02 PM
  3. Need Serious Help with account trade problem
    By threadpilot in forum World of Warcraft General
    Replies: 3
    Last Post: 11-27-2007, 07:38 AM
  4. Need help with Chrispee's new repack
    By endlessbounty in forum WoW EMU Guides & Tutorials
    Replies: 1
    Last Post: 11-12-2007, 02:08 PM
All times are GMT -5. The time now is 08:20 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search