From 8a2a558a7e4de170154bd3a0951b909039c47192 Mon Sep 17 00:00:00 2001 From: DragonTrance Date: Fri, 21 May 2021 17:47:52 -0700 Subject: [PATCH] let players know there's recent changes --- code/modules/client/preferences_savefile.dm | 4 ++-- code/modules/mob/dead/new_player/login.dm | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/code/modules/client/preferences_savefile.dm b/code/modules/client/preferences_savefile.dm index 20d7e445..ebd93b81 100644 --- a/code/modules/client/preferences_savefile.dm +++ b/code/modules/client/preferences_savefile.dm @@ -633,8 +633,8 @@ SAVEFILE UPDATING/VERSIONING - 'Simplified', or rather, more coder-friendly ~Car return 1 -#undef SAVEFILE_VERSION_MAX -#undef SAVEFILE_VERSION_MIN +//#undef SAVEFILE_VERSION_MAX +//#undef SAVEFILE_VERSION_MIN #ifdef TESTING //DEBUG diff --git a/code/modules/mob/dead/new_player/login.dm b/code/modules/mob/dead/new_player/login.dm index 88755650..c28e780a 100644 --- a/code/modules/mob/dead/new_player/login.dm +++ b/code/modules/mob/dead/new_player/login.dm @@ -32,3 +32,14 @@ else postfix = "soon" to_chat(src, "Please set up your character and select \"Ready\". The game will start [postfix].") + + if(client.prefs.path) //Hyper edit: notify of a newer preference version + var/savefile/S = new /savefile(client.prefs.path) + if(S) + S.cd = "/" + var/slot + S["default_slot"] >> slot + if(slot) + S.cd = "/character[slot]" + if(S["version"] < SAVEFILE_VERSION_MAX) + to_chat(src, "Your characters are outdated from recent updates. Please make sure if everything is within reasonable levels.")