Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] so what if i am only using 10 total races. freeing up ID's (example) 11-21. Should I just recycle

[DiscordArchive] so what if i am only using 10 total races. freeing up ID's (example) 11-21. Should I just recycle

[DiscordArchive] so what if i am only using 10 total races. freeing up ID's (example) 11-21. Should I just recycle

Pages (4): 1 2 3 4 Next
rektbyfaith
Administrator
0
03-14-2022, 06:25 PM
#1
Archived author: AngryPenguinStudio • Posted: 2022-03-14T18:25:18.283000+00:00
Original source

so what if i am only using 10 total races. freeing up ID's (example) 11-21. Should I just recycle those unused IDs in place of the new races?
rektbyfaith
03-14-2022, 06:25 PM #1

Archived author: AngryPenguinStudio • Posted: 2022-03-14T18:25:18.283000+00:00
Original source

so what if i am only using 10 total races. freeing up ID's (example) 11-21. Should I just recycle those unused IDs in place of the new races?

rektbyfaith
Administrator
0
03-14-2022, 06:25 PM
#2
Archived author: Dep • Posted: 2022-03-14T18:25:22.475000+00:00
Original source

All the table loadings check if the race is out of bounds and spit errors
rektbyfaith
03-14-2022, 06:25 PM #2

Archived author: Dep • Posted: 2022-03-14T18:25:22.475000+00:00
Original source

All the table loadings check if the race is out of bounds and spit errors

rektbyfaith
Administrator
0
03-14-2022, 06:25 PM
#3
Archived author: AngryPenguinStudio • Posted: 2022-03-14T18:25:49.883000+00:00
Original source

this way im keeping from using 22+ for an INT possibly outside of the array check
rektbyfaith
03-14-2022, 06:25 PM #3

Archived author: AngryPenguinStudio • Posted: 2022-03-14T18:25:49.883000+00:00
Original source

this way im keeping from using 22+ for an INT possibly outside of the array check

rektbyfaith
Administrator
0
03-14-2022, 06:26 PM
#4
Archived author: Dep • Posted: 2022-03-14T18:26:46.725000+00:00
Original source

```cpp
// Race value is index in ChrRaces.dbc
// EnumUtils: DESCRIBE THIS
enum Races
{
RACE_NONE = 0, // SKIP
RACE_HUMAN = 1, // TITLE Human
RACE_ORC = 2, // TITLE Orc
RACE_DWARF = 3, // TITLE Dwarf
RACE_NIGHTELF = 4, // TITLE Night Elf
RACE_UNDEAD_PLAYER = 5, // TITLE Undead
RACE_TAUREN = 6, // TITLE Tauren
RACE_GNOME = 7, // TITLE Gnome
RACE_TROLL = 8, // TITLE Troll
//RACE_GOBLIN = 9,
RACE_BLOODELF = 10, // TITLE Blood Elf
RACE_DRAENEI = 11 //, TITLE Draenei
//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
```
rektbyfaith
03-14-2022, 06:26 PM #4

Archived author: Dep • Posted: 2022-03-14T18:26:46.725000+00:00
Original source

```cpp
// Race value is index in ChrRaces.dbc
// EnumUtils: DESCRIBE THIS
enum Races
{
RACE_NONE = 0, // SKIP
RACE_HUMAN = 1, // TITLE Human
RACE_ORC = 2, // TITLE Orc
RACE_DWARF = 3, // TITLE Dwarf
RACE_NIGHTELF = 4, // TITLE Night Elf
RACE_UNDEAD_PLAYER = 5, // TITLE Undead
RACE_TAUREN = 6, // TITLE Tauren
RACE_GNOME = 7, // TITLE Gnome
RACE_TROLL = 8, // TITLE Troll
//RACE_GOBLIN = 9,
RACE_BLOODELF = 10, // TITLE Blood Elf
RACE_DRAENEI = 11 //, TITLE Draenei
//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
```

rektbyfaith
Administrator
0
03-14-2022, 06:26 PM
#5
Archived author: Dep • Posted: 2022-03-14T18:26:48.582000+00:00
Original source

here this is again
rektbyfaith
03-14-2022, 06:26 PM #5

Archived author: Dep • Posted: 2022-03-14T18:26:48.582000+00:00
Original source

here this is again

rektbyfaith
Administrator
0
03-14-2022, 06:26 PM
#6
Archived author: AngryPenguinStudio • Posted: 2022-03-14T18:26:54.948000+00:00
Original source

i guess, the question is, reusing the ID's not being used would be better practice ?
rektbyfaith
03-14-2022, 06:26 PM #6

Archived author: AngryPenguinStudio • Posted: 2022-03-14T18:26:54.948000+00:00
Original source

i guess, the question is, reusing the ID's not being used would be better practice ?

rektbyfaith
Administrator
0
03-14-2022, 06:27 PM
#7
Archived author: AngryPenguinStudio • Posted: 2022-03-14T18:27:23.059000+00:00
Original source

and use #define +1 of actual available
rektbyfaith
03-14-2022, 06:27 PM #7

Archived author: AngryPenguinStudio • Posted: 2022-03-14T18:27:23.059000+00:00
Original source

and use #define +1 of actual available

rektbyfaith
Administrator
0
03-14-2022, 06:27 PM
#8
Archived author: Dep • Posted: 2022-03-14T18:27:35.438000+00:00
Original source

I might test this sending something different to the client if I don't screw the build again
rektbyfaith
03-14-2022, 06:27 PM #8

Archived author: Dep • Posted: 2022-03-14T18:27:35.438000+00:00
Original source

I might test this sending something different to the client if I don't screw the build again

rektbyfaith
Administrator
0
03-14-2022, 06:29 PM
#9
Archived author: AngryPenguinStudio • Posted: 2022-03-14T18:29:37.377000+00:00
Original source

i find it strange that the tables would assume a static max number. i mean it would be that much easier to check available, add to array, +1 ... who knnows the thought process and the process they used 20 years ago ... seems strange tho.
rektbyfaith
03-14-2022, 06:29 PM #9

Archived author: AngryPenguinStudio • Posted: 2022-03-14T18:29:37.377000+00:00
Original source

i find it strange that the tables would assume a static max number. i mean it would be that much easier to check available, add to array, +1 ... who knnows the thought process and the process they used 20 years ago ... seems strange tho.

rektbyfaith
Administrator
0
03-14-2022, 06:30 PM
#10
Archived author: <o> • Posted: 2022-03-14T18:30:26.614000+00:00
Original source

those enums are leftovers from like the earliest versions of mangos from what i remember, reading dbc data was a luxury at the time
rektbyfaith
03-14-2022, 06:30 PM #10

Archived author: <o> • Posted: 2022-03-14T18:30:26.614000+00:00
Original source

those enums are leftovers from like the earliest versions of mangos from what i remember, reading dbc data was a luxury at the time

Pages (4): 1 2 3 4 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)