-
Private
255 Max Level
NOTE: THIS IS NOT A REPACK.
Hey guys,
I am trying to set my trinity core so that the max level is 255.. I have done the following steps:
Open World.cpp
Find line 731
Then deleted the following information
if (m_int_configs[CONFIG_MAX_PLAYER_LEVEL] > MAX_LEVEL
{
sLog->outError("MaxPlayerLevel (%i) must be in range 1..%u. Set to %u.", m_int_configs[CONFIG_MAX_PLAYER_LEVEL], MAX_LEVEL, MAX_LEVEL);
m_int_configs[CONFIG_MAX_PLAYER_LEVEL] = MAX_LEVEL;
Now world.cpp looks like
else
m_int_configs[CONFIG_MAX_PLAYER_LEVEL] = sConfig->GetIntDefault("MaxPlayerLevel", DEFAULT_MAX_LEVEL);
}
m_int_configs[CONFIG_MIN_DUALSPEC_LEVEL] = sConfig->GetIntDefault("MinDualSpecLevel", 40);
m_int_configs[CONFIG_START_PLAYER_LEVEL] = sConfig->GetIntDefault("StartPlayerLevel", 1);
Saved, closed it
THEN
I edited dbcenums.h and now looks like
#ifndef DBCENUMS_H
#define DBCENUMS_H
// Client expected level limitation, like as used in DBC item max levels for "until max player level"
// use as default max player level, must be fit max level for used client
// also see MAX_LEVEL and STRONG_MAX_LEVEL define
#define DEFAULT_MAX_LEVEL 255
// client supported max level for player/pets/etc. Avoid overflow or client stability affected.
// also see GT_MAX_LEVEL define
#define MAX_LEVEL 255
// Server side limitation. Base at used code requirements.
// also see MAX_LEVEL and GT_MAX_LEVEL define
#define STRONG_MAX_LEVEL 255
Saved, closed it.
THEN
I opened up TrinityCore.sln
Recompiled
BUT..
After I recompile
I ALWAYS get this following error:
Error when compiling - Pastebin.com
Thanks in advance..
If you would like to help me via TeamViewer/Sykype my ID is matt45led
-
Contributor
Unfortunately, levels are stored with an 8 bit value, the max 8 bit number is of course 255. It would be a safe bet to say this is impossible without getting any errors, if not it's extremely difficult to modify levels beyond 255.
Last edited by choweyiii; 04-02-2013 at 02:47 PM.
-
Member
6>..\..\..\..\Trinity\src\server\game\Chat\ChatLink.cpp(234): error C2059: syntax error : ')'
6>..\..\..\..\Trinity\src\server\game\Chat\ChatLink.cpp(235): error C2143: syntax error : missing ';' before '{'

It is possible to go beyond 255 but it's highly unstable and will make your game crash when you access the memory for it and won't be saved to the DB.
-
Post Thanks / Like - 1 Thanks
titkata_bg (1 members gave Thanks to Natrist for this useful post)