MantisBT - Zandronum
View Issue Details
0004236Zandronum[All Projects] Suggestionpublic2024-04-21 18:062024-04-29 14:57
Necrodoom 
 
normalminorhave not tried
closeddenied 
MicrosoftWindowsXP/Vista/7
3.1 
 
0004236: ACS function to create temporary CVars
Add an ACS function like CreateTemporaryCvar(str CVar) to replace ConsoleCommand(StrParam(s:"set ", s:MyMadeUpCVarName)) acting as a superb version of global int.

Clients cannot read it and it won't disappear with map command unlike global. Very useful for certain Survival cases(with unexpected Exit event, before the game could save some data), especially the ones that use hub system(Lexicon). It also prevents from CVARINFO turning into a mess with lots and lots of definitions, especially if the mod is targeted towards 64 players.
N/A
Ticket was made as a proxy for Zeberpal due to issue with account

Original discord message:'https://discord.com/channels/297616756636254218/297616756636254218/1231658049979285646 [^]'

message also contains a demonstration video which I cannot upload into the tracker
No tags attached.
child of 0001070new Dusk Phasing out the dangerous ConsoleCommand for various additional/improved ACS commands 
jpg tick.jpg (143,337) 2024-04-21 18:06
/tracker/file_download.php?file_id=2970&type=bug
jpg
Issue History
2024-04-21 18:06NecrodoomNew Issue
2024-04-21 18:06NecrodoomFile Added: tick.jpg
2024-04-21 20:23NecrodoomNote Added: 0023634
2024-04-22 00:46KaminskyNote Added: 0023636
2024-04-22 00:46KaminskySummaryConsoleCommand replacement functions for map, joinGame and temporary CVARs => ACS function to create temporary CVars
2024-04-22 00:46KaminskyDescription Updatedbug_revision_view_page.php?rev_id=14175#r14175
2024-04-22 01:09KaminskyRelationship addedchild of 0001070
2024-04-29 14:57KaminskyNote Added: 0023648
2024-04-29 14:57KaminskyStatusnew => closed
2024-04-29 14:57KaminskyResolutionopen => denied

Notes
(0023634)
Necrodoom   
2024-04-21 20:23   
Zeberpal found a solution for 1) and 2) without ConsoleCommand, so they only need a solution for 3)
(0023636)
Kaminsky   
2024-04-22 00:46   
Thanks, I updated the ticket's details to focus only on that third bullet.
(0023648)
Kaminsky   
2024-04-29 14:57   
After giving this some thought, and also hearing what Zeberpal apparently needed this function for (i.e. saving information between games), it makes a lot more sense to use databases (something that has existed in Zandronum for over a decade now) instead of CVars. Databases were added specifically for persistent storage, which CVars (especially temporary ones) are going to be terrible at.

This function is also extremely niche and would have very little uses (since CVARINFO exists), so I wouldn't support adding it. As such, I'm going to close this ticket.