Comment by JEBs: Diablo high-level MOD patch, which makes it possible to create or join games with a level > 255 (max. tested lvl = 750).
This commit is contained in:
parent
0c90b4e111
commit
604b2f0e5b
6 changed files with 42 additions and 1 deletions
|
@ -14,6 +14,12 @@ NOTE: If updating through several versions (example if updating from 1.7.1 to
|
|||
version in between and including the last one (ex. you have to go through
|
||||
1.7.1 to 1.7.2 update info, then 1.7.2 to 1.7.3, and so on until 1.7.4 to 1.7.5)
|
||||
|
||||
Updating from 1.99.0-CVS
|
||||
=========================
|
||||
Configuration files changed:
|
||||
- conf/d2cs.conf : added optional: "game_maxlevel" config option which
|
||||
which needs to be given in the case of Diablo MODs with a level > 255
|
||||
|
||||
Updating from 1.7.9 to 1.7.10
|
||||
===============================
|
||||
Configuration files changed:
|
||||
|
|
|
@ -198,6 +198,12 @@ d2gs_password = ""
|
|||
# Maxinum number of second that a game will be shown on list( zero = infinite )
|
||||
game_maxlifetime = 0
|
||||
|
||||
# Maximum level allowed in this (realm) game.
|
||||
# Normal games have a max level 99, while the internal field size limit is 255.
|
||||
# Extreme game MODs may have higher values, but be warned:
|
||||
# !!! Use them at your own risk !!!
|
||||
# game_maxlevel = 255
|
||||
|
||||
# A game will be automatically destroied after how long time idle
|
||||
max_game_idletime = 0
|
||||
|
||||
|
|
|
@ -197,6 +197,12 @@ d2gs_password = ""
|
|||
# Maxinum number of second that a game will be shown on list( zero = infinite )
|
||||
game_maxlifetime = 0
|
||||
|
||||
# Maximum level allowed in this (realm) game.
|
||||
# Normal games have a max level 99, while the internal field size limit is 255.
|
||||
# Extreme game MODs may have higher values, but be warned:
|
||||
# !!! Use them at your own risk !!!
|
||||
# game_maxlevel = 255
|
||||
|
||||
# A game will be automatically destroied after how long time idle
|
||||
max_game_idletime = 0
|
||||
|
||||
|
|
|
@ -366,7 +366,8 @@ extern unsigned int game_get_maxlevel(t_game const * game)
|
|||
|
||||
ASSERT(game,0);
|
||||
maxlevel=game->charlevel+game->leveldiff;
|
||||
if (maxlevel>0xff) maxlevel=0xff;
|
||||
if (maxlevel>prefs_get_game_maxlevel())
|
||||
maxlevel=prefs_get_game_maxlevel();
|
||||
return maxlevel;
|
||||
}
|
||||
|
||||
|
|
|
@ -66,6 +66,7 @@ static struct
|
|||
unsigned int gamelist_showall;
|
||||
unsigned int hide_pass_games;
|
||||
unsigned int game_maxlifetime;
|
||||
unsigned int game_maxlevel;
|
||||
unsigned int allow_gamelimit;
|
||||
unsigned int allow_newchar;
|
||||
unsigned int idletime;
|
||||
|
@ -158,6 +159,9 @@ static int conf_setdef_hide_pass_games(void);
|
|||
static int conf_set_game_maxlifetime(const char* valstr);
|
||||
static int conf_setdef_game_maxlifetime(void);
|
||||
|
||||
static int conf_set_game_maxlevel(const char* valstr);
|
||||
static int conf_setdef_game_maxlevel(void);
|
||||
|
||||
static int conf_set_allow_gamelimit(const char* valstr);
|
||||
static int conf_setdef_allow_gamelimit(void);
|
||||
|
||||
|
@ -262,6 +266,7 @@ static t_conf_entry prefs_conf_table[]={
|
|||
{ "gamelist_showall", conf_set_gamelist_showall, NULL, conf_setdef_gamelist_showall},
|
||||
{ "hide_pass_games", conf_set_hide_pass_games, NULL, conf_setdef_hide_pass_games},
|
||||
{ "game_maxlifetime", conf_set_game_maxlifetime, NULL, conf_setdef_game_maxlifetime},
|
||||
{ "game_maxlevel", conf_set_game_maxlevel, NULL, conf_setdef_game_maxlevel},
|
||||
{ "allow_gamelimit", conf_set_allow_gamelimit, NULL, conf_setdef_allow_gamelimit},
|
||||
{ "allow_newchar", conf_set_allow_newchar, NULL, conf_setdef_allow_newchar},
|
||||
{ "idletime", conf_set_idletime, NULL, conf_setdef_idletime},
|
||||
|
@ -768,6 +773,22 @@ static int conf_setdef_game_maxlifetime(void)
|
|||
}
|
||||
|
||||
|
||||
extern unsigned int prefs_get_game_maxlevel(void)
|
||||
{
|
||||
return prefs_conf.game_maxlevel;
|
||||
}
|
||||
|
||||
static int conf_set_game_maxlevel(const char* valstr)
|
||||
{
|
||||
return conf_set_int(&prefs_conf.game_maxlevel,valstr,0);
|
||||
}
|
||||
|
||||
static int conf_setdef_game_maxlevel(void)
|
||||
{
|
||||
return conf_set_int(&prefs_conf.game_maxlevel,NULL,0xff);
|
||||
}
|
||||
|
||||
|
||||
extern char const * prefs_get_ladder_dir(void)
|
||||
{
|
||||
return prefs_conf.ladderdir;
|
||||
|
|
|
@ -58,6 +58,7 @@ extern unsigned int prefs_get_d2gs_version(void);
|
|||
extern unsigned int prefs_get_ladderlist_count(void);
|
||||
extern unsigned int prefs_get_d2ladder_refresh_interval(void);
|
||||
extern unsigned int prefs_get_game_maxlifetime(void);
|
||||
extern unsigned int prefs_get_game_maxlevel(void);
|
||||
extern char const * prefs_get_ladder_dir(void);
|
||||
extern char const * d2cs_prefs_get_loglevels(void);
|
||||
extern unsigned int prefs_allow_gamelist_showall(void);
|
||||
|
|
Loading…
Reference in a new issue