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] SharedDefines.h  (Read 1008 times)

Robby232

  • Registred Member
  • MS Paint Freak
  • *****
  • Posts: 3
    • View Profile
[QUESTION] SharedDefines.h
« on: January 09, 2014, 01:09:18 am »
Hey guys :D,
I really need help... I want to compile Trinity Core and allowe more playable races..This ones:
Alliance:
Naga,
Worgen,
Tuskarr,
Taunka.

Horde:

FelOrc,
Pandaren,
ForestTroll,
Goblin.
 
But i have just One problem... I dont know how ... :(
Every time i edit .... i cant comile it... :(

If someone do it for me ...THX VERY MUCH

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         12

#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)))

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

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

40thzombie

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 16
    • View Profile
Re: [QUESTION] SharedDefines.h
« Reply #1 on: January 09, 2014, 03:46:28 am »
Quote from: "Robby-SRB"
Hey guys :D,
I really need help... I want to compile Trinity Core and allowe more playable races..This ones:
Alliance:
Naga,
Worgen,
Tuskarr,
Taunka.

Horde:

FelOrc,
Pandaren,
ForestTroll,
Goblin.
 
But i have just One problem... I dont know how ... :(
Every time i edit .... i cant comile it... :(

If someone do it for me ...THX VERY MUCH

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         12

#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)))

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


Well its quite obvious why, first add a comma to the end of 11
Remove the // from the races you want to enable
Set #define MAX_RACES  to the last is + 1
Add a new racemask to the #define RACEMASK_ALL_PLAYABLE
but add it before the draenai because that's where it finishes
Again writing on phone so if Ive missed anything feel free to add
« Last Edit: January 01, 1970, 01:00:00 am by Admin »