From df366b399b421daf4cce66b8e1db2c41a833966f Mon Sep 17 00:00:00 2001 From: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Date: Mon, 21 Apr 2025 19:10:04 +0100 Subject: [PATCH] Warning if clients are still on 515 (#29067) --- code/modules/client/client_procs.dm | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/code/modules/client/client_procs.dm b/code/modules/client/client_procs.dm index 239acbddbd3..75134901ee6 100644 --- a/code/modules/client/client_procs.dm +++ b/code/modules/client/client_procs.dm @@ -457,6 +457,7 @@ tooltips = new /datum/tooltip(src) Master.UpdateTickRate() + INVOKE_ASYNC(src, TYPE_PROC_REF(/client, nag_516)) // Tell clients about active testmerges if(world.TgsAvailable() && length(GLOB.revision_info.testmerges)) @@ -1338,6 +1339,18 @@ window_scaling = text2num(winget(src, null, "dpi")) +// This is in its own proc so we can async it out +/client/proc/nag_516() + if(byond_version >= 516) + return + + var/choice = alert(src, "Warning - You are currently on BYOND version [byond_version].[byond_build]. Soon, Paradise will start enforcing 516 as the minimum required version, and 515 will no longer work. Please update now to avoid being unable to play in the future.", "BYOND Version Warning", "Update Now", "Ignore for now") + if(choice != "Update Now") + return + + src << link("https://secure.byond.com/download/") + + #undef LIMITER_SIZE #undef CURRENT_SECOND #undef SECOND_COUNT