MantisBT - Zandronum
View Issue Details
0004470Zandronum[All Projects] Suggestionpublic2025-03-20 16:122025-03-20 16:22
IlyStr 
 
normalfeatureN/A
newopen 
ASRock B550, AMD Ryzen 5 56 x64Windows 10 LTSC Enterprise21H2 (19044.357)
 
 
0004470: Adding a method to get a Za build
Of course almost no one will modify GZDoom ACS, because there is ZScript, but the probability that such methods as “LumpOpen”, “SystemTime”, etc., which are not functions specific only to the netcode of Zandronum (I mean for example LumpOpen can be in GZDoom ACS, unlike “BanFromGame” or “GetPlayerAccountName” which are very closely related code that is specific only to Za) will be added is still exist.

So I suggest adding a method that returns the Zandronum build.
``Object(Int, Fixed or String) GetZandronumClient(Int Mode)``
``Mode`` - Enum, prefix is ``ZCM`` or ``ZCCM`` (Zandronum Client check Mode)
``ZCM_Port`` [0] - Will return boolean value, if launched port is zandronum
``ZCM_Version`` [1] - Will return version as fixed value, example: 3.2
``ZCM_Date`` [2] - Will return date in UNIX format, like "SystemTime"
``ZCM_CommitDate`` [3] - Date of last commit, in same format as ZCM_Date (Optional)
``ZCM_DateString`` [4] - Date as a string, for example 241030-1744
``ZCM_String`` [5] - Build as a string, for example 3.2-Alpha-241030-1744
``ZCM_GZDoomBase_Version`` [-1] - GZDoom base version as fixed value, 2.8 for example (Optional)
``ZCM_GZDoomBase_String`` [-2] - Returns GZDoom base as a string, 2.8Pre-441-G458E1B1 (Optional)
``ZCM_FullString`` [6] - Build with GZDoom base as a string, for example 3.2-Alpha-(2.8Pre-441-G458E1B1)-241030-1744
No tags attached.
Issue History
2025-03-20 16:12IlyStrNew Issue
2025-03-20 16:20IlyStrNote Added: 0024274
2025-03-20 16:22DrinkyBirdProduct Version4.0-beta =>

Notes
(0024274)
IlyStr   
2025-03-20 16:20   
Due to a translator's error, it doesn't say what it is for.

Namely to check if the running port is a zandronum or not(and also to check the minimum version for modification), because this function surely should not be added to other ports.