mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-19 02:50:08 +01:00
Version Bump to 510.1347 (#438)
Updates the TravisCI config to use the latest stable BYOND release. Adds client version control taken from /TG/station. Updates the recommended version for hosting.
This commit is contained in:
@@ -216,6 +216,12 @@ var/list/gamemode_cache = list()
|
||||
|
||||
var/list/age_restrictions = list() // Holds all of the age restrictions for jobs and antag roles in a single associated list
|
||||
|
||||
//Client version control
|
||||
var/client_error_version = 0
|
||||
var/client_error_message = ""
|
||||
var/client_warn_version = 0
|
||||
var/client_warn_message = ""
|
||||
|
||||
/datum/configuration/New()
|
||||
var/list/L = typesof(/datum/game_mode) - /datum/game_mode
|
||||
for (var/T in L)
|
||||
@@ -694,6 +700,18 @@ var/list/gamemode_cache = list()
|
||||
if("sql_saves")
|
||||
config.sql_saves = 1
|
||||
|
||||
if("client_error_version")
|
||||
config.client_error_version = text2num(value)
|
||||
|
||||
if("client_error_message")
|
||||
config.client_error_message = value
|
||||
|
||||
if("client_warn_version")
|
||||
config.client_warn_version = text2num(value)
|
||||
|
||||
if("client_warn_message")
|
||||
config.client_warn_message = value
|
||||
|
||||
else
|
||||
log_misc("Unknown setting in configuration: '[name]'")
|
||||
|
||||
|
||||
@@ -212,6 +212,24 @@
|
||||
|
||||
. = ..() //calls mob.Login()
|
||||
|
||||
if (byond_version < config.client_error_version)
|
||||
src << "<span class='danger'><b>Your version of BYOND is too old!</b></span>"
|
||||
src << config.client_error_message
|
||||
src << "Your version: [byond_version]."
|
||||
src << "Required version: [config.client_error_version] or later."
|
||||
src << "Visit http://www.byond.com/download/ to get the latest version of BYOND."
|
||||
if (holder)
|
||||
src << "Admins get a free pass. However, <b>please</b> update your BYOND as soon as possible. Certain things may cause crashes if you play with your present version."
|
||||
else
|
||||
del(src)
|
||||
return 0
|
||||
else if (byond_version < config.client_warn_version)
|
||||
src << "<span class='danger'><b>Your version of BYOND may be out of date!</b></span>"
|
||||
src << config.client_warn_message
|
||||
src << "Your version: [byond_version]."
|
||||
src << "Required version to remove this message: [config.client_warn_version] or later."
|
||||
src << "Visit http://www.byond.com/download/ to get the latest version of BYOND."
|
||||
|
||||
if(custom_event_msg && custom_event_msg != "")
|
||||
src << "<h1 class='alert'>Custom Event</h1>"
|
||||
src << "<h2 class='alert'>A custom event is taking place. OOC Info:</h2>"
|
||||
|
||||
+2
-2
@@ -20,7 +20,7 @@ var/global/datum/global_init/init = new ()
|
||||
|
||||
|
||||
|
||||
#define RECOMMENDED_VERSION 501
|
||||
#define RECOMMENDED_VERSION 510
|
||||
/world/New()
|
||||
//logs
|
||||
var/date_string = time2text(world.realtime, "YYYY/MM-Month/DD-Day")
|
||||
@@ -30,7 +30,7 @@ var/global/datum/global_init/init = new ()
|
||||
changelog_hash = md5('html/changelog.html') //used for telling if the changelog has changed recently
|
||||
|
||||
if(byond_version < RECOMMENDED_VERSION)
|
||||
world.log << "Your server's byond version does not meet the recommended requirements for this server. Please update BYOND"
|
||||
world.log << "Your server's byond version does not meet the recommended requirements for this server. Please update BYOND to [RECOMMENDED_VERSION]."
|
||||
|
||||
config.post_load()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user