MantisBT - Zandronum |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0004236 | Zandronum | [All Projects] Suggestion | public | 2024-04-21 18:06 | 2024-04-29 14:57 |
|
Reporter | Necrodoom | |
Assigned To | | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | denied | |
Platform | Microsoft | OS | Windows | OS Version | XP/Vista/7 |
Product Version | 3.1 | |
Target Version | | Fixed in Version | | |
|
Summary | 0004236: ACS function to create temporary CVars |
Description | 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. |
Steps To Reproduce | N/A |
Additional Information | 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 |
Tags | No tags attached. |
Relationships | child of | 0001070 | new | Dusk | Phasing out the dangerous ConsoleCommand for various additional/improved ACS commands |
|
Attached Files | tick.jpg (143,337) 2024-04-21 18:06 /tracker/file_download.php?file_id=2970&type=bug

|
|
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 | bug_revision_view_page.php?rev_id=14175#r14175 |
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 |
Notes |
|
|
Zeberpal found a solution for 1) and 2) without ConsoleCommand, so they only need a solution for 3) |
|
|
|
Thanks, I updated the ticket's details to focus only on that third bullet. |
|
|
|
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. |
|