MantisBT - Zandronum |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0001420 | Zandronum | [All Projects] Suggestion | public | 2013-07-21 00:59 | 2025-08-31 17:27 |
|
Reporter | Dusk | |
Assigned To | Dusk | |
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | resolved | Resolution | fixed | |
Platform | | OS | | OS Version | |
Product Version | | |
Target Version | 3.2 | Fixed in Version | | |
|
Summary | 0001420: Custom vote definitions, aka VOTEINFO |
Description | 'http://wiki.zandronum.com/VOTEDEF [^]' |
Steps To Reproduce | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | 0000700 | closed | | Random Captains function (callvote randomcaptains) | parent of | 0000918 | closed | Torr Samaho | callvote kickfromgame | parent of | 0002345 | resolved | DrinkyBird | Callvote Nextmap |
|
Attached Files | votedef.diff (79,646) 2014-11-01 02:32 /tracker/file_download.php?file_id=1320&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2013-07-21 00:59 | Dusk | New Issue | |
2013-07-21 00:59 | Dusk | Status | new => assigned |
2013-07-21 00:59 | Dusk | Assigned To | => Dusk |
2013-07-21 00:59 | Dusk | Relationship added | related to 0000700 |
2013-07-21 01:00 | Dusk | Relationship added | parent of 0000918 |
2013-07-21 01:02 | Dusk | Description Updated | bug_revision_view_page.php?rev_id=3740#r3740 |
2013-07-21 01:03 | Dusk | Description Updated | bug_revision_view_page.php?rev_id=3741#r3741 |
2013-07-21 01:07 | Dusk | Description Updated | bug_revision_view_page.php?rev_id=3742#r3742 |
2013-07-21 15:50 | Dusk | Note Added: 0006728 | |
2013-07-21 15:58 | Dusk | Note Edited: 0006728 | bug_revision_view_page.php?bugnote_id=6728#r3744 |
2013-07-21 17:09 | Dusk | Note Added: 0006729 | |
2013-08-01 05:59 | Watermelon | Note Added: 0006873 | |
2013-08-01 11:37 | Monsterovich | Note Added: 0006874 | |
2013-08-01 14:14 | Dusk | Note Added: 0006879 | |
2013-08-01 14:15 | Dusk | Note Edited: 0006879 | bug_revision_view_page.php?bugnote_id=6879#r3841 |
2013-08-01 16:04 | Dusk | Summary | Custom vote definitions, aka VOTEDEFS => Custom vote definitions, aka VOTEDEF |
2013-08-01 16:04 | Dusk | Description Updated | bug_revision_view_page.php?rev_id=3848#r3848 |
2013-08-01 18:35 | Dusk | Description Updated | bug_revision_view_page.php?rev_id=3853#r3853 |
2013-08-01 18:36 | Dusk | Note Added: 0006889 | |
2013-08-01 18:36 | Dusk | Status | assigned => feedback |
2013-08-01 19:56 | Dusk | Note Edited: 0006889 | bug_revision_view_page.php?bugnote_id=6889#r3855 |
2013-08-01 19:56 | Dusk | Status | feedback => assigned |
2013-08-01 22:47 | Dusk | Status | assigned => feedback |
2013-08-01 22:48 | Dusk | Note Edited: 0006889 | bug_revision_view_page.php?bugnote_id=6889#r3856 |
2013-08-01 23:27 | Dusk | Note Edited: 0006889 | bug_revision_view_page.php?bugnote_id=6889#r3857 |
2014-11-01 02:30 | Dusk | Description Updated | bug_revision_view_page.php?rev_id=5901#r5901 |
2014-11-01 02:32 | Dusk | File Added: votedef.diff | |
2014-11-01 02:34 | Dusk | Note Added: 0010755 | |
2014-11-01 02:34 | Dusk | Status | feedback => assigned |
2014-11-01 02:34 | Dusk | Status | assigned => needs review |
2014-11-02 08:01 | Torr Samaho | Note Added: 0010790 | |
2015-07-15 15:00 | Dusk | Relationship added | parent of 0002345 |
2015-07-15 21:47 | Dusk | Note Added: 0012949 | |
2015-07-15 21:47 | Dusk | Status | needs review => needs testing |
2015-07-15 21:47 | Dusk | Note Edited: 0012949 | bug_revision_view_page.php?bugnote_id=12949#r7690 |
2015-07-15 21:48 | Dusk | Note Edited: 0012949 | bug_revision_view_page.php?bugnote_id=12949#r7691 |
2017-04-18 20:25 | Wirtualnosc | Note Added: 0017205 | |
2017-04-18 20:35 | Wirtualnosc | Note Edited: 0017205 | bug_revision_view_page.php?bugnote_id=17205#r10344 |
2017-04-26 06:12 | Torr Samaho | Note Added: 0017337 | |
2017-04-26 06:14 | Torr Samaho | Note Edited: 0017337 | bug_revision_view_page.php?bugnote_id=17337#r10407 |
2017-04-26 06:14 | Torr Samaho | Note Revision Dropped: 17337: 0010406 | |
2023-12-30 14:22 | Kaminsky | Note Added: 0022940 | |
2023-12-30 14:22 | Kaminsky | Target Version | => 3.2 |
2023-12-30 14:22 | Kaminsky | Summary | Custom vote definitions, aka VOTEDEF => Custom vote definitions, aka VOTEINFO |
2024-01-24 09:42 | Fused | Note Added: 0023000 | |
2024-01-24 09:43 | Fused | Note Edited: 0023000 | bug_revision_view_page.php?bugnote_id=23000#r14047 |
2024-01-24 09:44 | Fused | Note Edited: 0023000 | bug_revision_view_page.php?bugnote_id=23000#r14048 |
2024-01-24 09:46 | Fused | Note Edited: 0023000 | bug_revision_view_page.php?bugnote_id=23000#r14049 |
2024-01-24 09:50 | Fused | Note Edited: 0023000 | bug_revision_view_page.php?bugnote_id=23000#r14050 |
2024-01-27 16:39 | Trillster | Note Added: 0023012 | |
2024-03-01 03:08 | Ru5tK1ng | Note Added: 0023142 | |
2024-03-01 03:08 | Ru5tK1ng | Status | needs testing => feedback |
2024-08-30 03:51 | Trillster | Note Added: 0023990 | |
2024-08-30 03:53 | Kaminsky | Status | feedback => needs review |
2025-02-24 04:45 | Trillster | Note Added: 0024214 | |
2025-02-24 11:39 | Kaminsky | Status | needs review => needs testing |
2025-08-31 17:27 | Ru5tK1ng | Note Added: 0024565 | |
2025-08-31 17:27 | Ru5tK1ng | Status | needs testing => resolved |
2025-08-31 17:27 | Ru5tK1ng | Resolution | open => fixed |
Notes |
|
(0006728)
|
Dusk
|
2013-07-21 15:50
(edited on: 2013-07-21 15:58) |
|
I wrote up a draft documentation page:'http://wiki.zandronum.com/VOTEDEFS [^]'
I'm not totally convinced that going for console commands is a good idea here for obvious reasons even though that's what the current vote types base on. On the other hand the votes can be seen as the public voting for console commands being executed on the server.. and there isn't really any good alternative. ACS could do for mods' purposes but I don't know how to implement kick votes in that...
Maybe there could be native vote types (the current loadout + kickfromgame) and then ACS-based vote effects for mods to use?
EDIT: The more I think of it, the more I'm convinced that this is the best way to do it. Let's see here...
|
|
|
(0006729)
|
Dusk
|
2013-07-21 17:09
|
|
OK I got the ACS-based stuff to work, draft updated. |
|
|
|
Truly awesome
Is there supposed to be two lines of
type->flags = 0;
Is it operational? |
|
|
|
Good. :)
Can you delete "Flags { ... }" section. Decorate like style is best.
Add argument type: string. |
|
|
(0006879)
|
Dusk
|
2013-08-01 14:14
(edited on: 2013-08-01 14:15) |
|
Quote from "Watermelon"
Is there supposed to be two lines of
type->flags = 0;
Probably not.
Quote from "Watermelon" Is it operational?
Yeah, for the most part. It still needs work though.
Quote from "Monsterovich" Can you delete "Flags { ... }" section. Decorate like style is best.
I have the Flags{} syntax so as to reserve the option to remove it later. Who knows how this will evolve later on.
Quote from "Monsterovich" Add argument type: string.
I don't know how would a string argument work in ACS - dynamic strings seem to have problems (0001307).
|
|
|
(0006889)
|
Dusk
|
2013-08-01 18:36
(edited on: 2013-08-01 23:27) |
|
Links at description updated, I think this is somewhat ready now.
EDIT: I just realized that I need to update the 'call a vote' menu too...
EDIT 2: OK, I got the menu working now too.
EDIT 3: Value range is now required for int and float types, made no-arg votes handled better.
|
|
|
(0010755)
|
Dusk
|
2014-11-01 02:34
|
|
|
|
|
Looks promising at first glance, but we'll need to figure out a way to review patches of this size. Carefully going through such a patch line by line seems to be infeasible to me. Let's discuss this in the next dev meeting. |
|
|
(0012949)
|
Dusk
|
2015-07-15 21:47
(edited on: 2015-07-15 21:48) |
|
|
|
(0017205)
|
Wirtualnosc
|
2017-04-18 20:25
(edited on: 2017-04-18 20:35) |
|
Is there a chance this will get implemented into 3.0 or do we have to wait a bit longer for this feature? :( Considering this is quite old now and is mostly finished, it would be really nice to see it working in the upcoming versions. I have tested this with my mod and I don't see any problems with it, as well as existing votes.
|
|
|
(0017337)
|
Torr Samaho
|
2017-04-26 06:12
(edited on: 2017-04-26 06:14) |
|
|
|
|
|
|
(0023000)
|
Fused
|
2024-01-24 09:42
(edited on: 2024-01-24 09:50) |
|
I have been using this feature using its initial implementation and here's my opinion.
Compared to the initial pitch (https://wiki.zandronum.com/VOTEDEF) the final implementation (https://wiki.zandronum.com/VOTEINFO) really needs some work in general. The amount of control that exists on creating custom votes is very bare bones. I understand this was done initially because most of it can be done with ACS when the vote passes, but there are a lot of flags and options in the initial idea that limit calling votes in the first place. The fact that I can now call a vote without these restrictions, and only be notified after the vote passes is bad user experience.
I suggest a new option is added to fix this, something like the existing Action parameter but instead this option specifies a script that is called to validate a vote when it is called. If the script results in `true`, the vote may be called. This gives full control over what restricts a vote, and even makes the ForbidCvar option obsolete.
|
|
|
|
In addition to the notes from Fused, I think this feature could be made more failure-proof by allowing VOTEINFO VoteType blocks to specify a display name and internal name for a user-defined menu that would automatically be added to the ZA_CallVote menu.
The current alternative is for mods with custom vote types to manually overwrite ZA_CallVote, but this can easily cause menu conflicts between mods that add new vote types. |
|
|
|
Setting status to Feedback while it is being determined if more changes will be made. |
|
|
|
|
|
|
|
|
|
This was merged in. Reopen if necessary. |
|