Zandronum Chat on our Discord Server Get the latest version: 3.2
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004236Zandronum[All Projects] Suggestionpublic2024-04-21 18:062024-04-29 14:57
ReporterNecrodoom 
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutiondenied 
PlatformMicrosoftOSWindowsOS VersionXP/Vista/7
Product Version3.1 
Target VersionFixed in Version 
Summary0004236: ACS function to create temporary CVars
DescriptionAdd 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.
Steps To ReproduceN/A
Additional InformationTicket 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
Attached Filesjpg file icon tick.jpg [^] (143,337 bytes) 2024-04-21 18:06

- Relationships
child of 0001070newDusk Phasing out the dangerous ConsoleCommand for various additional/improved ACS commands 

-  Notes
User avatar (0023634)
Necrodoom (reporter)
2024-04-21 20:23

Zeberpal found a solution for 1) and 2) without ConsoleCommand, so they only need a solution for 3)
User avatar (0023636)
Kaminsky (developer)
2024-04-22 00:46

Thanks, I updated the ticket's details to focus only on that third bullet.
User avatar (0023648)
Kaminsky (developer)
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.

Issue Community Support
This issue is already marked as resolved.
If you feel that is not the case, please reopen it and explain why.
Supporters: No one explicitly supports this issue yet.
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2024-04-21 18:06 Necrodoom New Issue
2024-04-21 18:06 Necrodoom File Added: tick.jpg
2024-04-21 20:23 Necrodoom Note Added: 0023634
2024-04-22 00:46 Kaminsky Note Added: 0023636
2024-04-22 00:46 Kaminsky Summary ConsoleCommand replacement functions for map, joinGame and temporary CVARs => ACS function to create temporary CVars
2024-04-22 00:46 Kaminsky Description Updated View Revisions
2024-04-22 01:09 Kaminsky Relationship added child of 0001070
2024-04-29 14:57 Kaminsky Note Added: 0023648
2024-04-29 14:57 Kaminsky Status new => closed
2024-04-29 14:57 Kaminsky Resolution open => denied






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2025 MantisBT Team
Powered by Mantis Bugtracker