MantisBT - Zandronum |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0000220 | Zandronum | [All Projects] Suggestion | public | 2010-12-02 21:13 | 2018-09-30 22:38 |
|
Reporter | Anonymous | |
Assigned To | Watermelon | |
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | fixed | |
Platform | | OS | | OS Version | |
Product Version | 98d | |
Target Version | 1.3 | Fixed in Version | | |
|
Summary | 0000220: List Possible Songs |
Description | Following this request :'http://www.skulltag.com/forum/viewtopic.php?f=155&t=26654 [^]'
By simply typing in a command (not yet named command) in the console, you can see the list of songs you can play by typing in the name of it in console.
Ability to change songs more easily by knowing the songs name almost instantly. |
Steps To Reproduce | |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2010-12-02 21:13 | Anonymous | New Issue | |
2010-12-04 18:12 | DevilHunter | Note Added: 0000653 | |
2010-12-04 22:04 | Edward-san | Note Added: 0000654 | |
2014-06-07 21:50 | Watermelon | Note Added: 0008881 | |
2014-06-07 21:50 | Watermelon | Assigned To | => Watermelon |
2014-06-07 21:50 | Watermelon | Status | new => needs review |
2014-06-07 21:50 | Watermelon | Note Edited: 0008881 | bug_revision_view_page.php?bugnote_id=8881#r4825 |
2014-06-07 22:44 | Dusk | Note Added: 0008886 | |
2014-06-08 00:24 | Watermelon | Note Added: 0008892 | |
2014-06-08 00:29 | Watermelon | Status | needs review => assigned |
2014-06-08 17:43 | Watermelon | Note Added: 0008927 | |
2014-06-08 17:43 | Watermelon | Status | assigned => needs review |
2014-06-09 01:50 | Watermelon | Note Added: 0008946 | |
2014-06-09 02:35 | Edward-san | Note Added: 0008947 | |
2014-06-09 02:36 | Edward-san | Note Edited: 0008947 | bug_revision_view_page.php?bugnote_id=8947#r4857 |
2014-06-15 22:16 | Watermelon | Status | needs review => assigned |
2014-06-22 05:36 | Watermelon | Note Added: 0009638 | |
2014-06-22 05:36 | Watermelon | Status | assigned => needs review |
2014-06-22 13:56 | Torr Samaho | Note Added: 0009655 | |
2014-06-22 13:57 | Torr Samaho | Status | needs review => feedback |
2014-06-22 14:10 | Dusk | Description Updated | bug_revision_view_page.php?rev_id=5123#r5123 |
2014-06-22 15:44 | Watermelon | Note Added: 0009666 | |
2014-06-22 15:45 | Watermelon | Note Edited: 0009666 | bug_revision_view_page.php?bugnote_id=9666#r5132 |
2014-06-22 15:47 | Watermelon | Status | feedback => needs review |
2014-06-22 16:24 | Torr Samaho | Note Added: 0009670 | |
2014-06-22 16:24 | Torr Samaho | Status | needs review => feedback |
2014-06-22 18:07 | Watermelon | Note Added: 0009677 | |
2014-06-22 18:07 | Watermelon | Status | feedback => needs review |
2014-06-22 18:10 | Torr Samaho | Note Added: 0009678 | |
2014-06-22 18:11 | Torr Samaho | Status | needs review => feedback |
2014-06-22 20:36 | Watermelon | Status | feedback => needs review |
2014-06-22 21:36 | Watermelon | Note Added: 0009682 | |
2014-06-23 19:01 | Torr Samaho | Note Added: 0009714 | |
2014-06-23 19:01 | Torr Samaho | Status | needs review => needs testing |
2014-06-23 19:01 | Torr Samaho | Target Version | => 1.3 |
2014-07-03 19:33 | Arco | Note Added: 0009828 | |
2014-07-03 19:34 | Arco | Status | needs testing => resolved |
2014-07-03 19:34 | Arco | Resolution | open => fixed |
2018-09-30 22:38 | Blzut3 | Status | resolved => closed |
Notes |
|
|
Sounds good, and yet Zdaemon did something almost like this in a way...
"Extended the changemus command to show the name of the current song when no argument is specified."
I would say this would go with the request, but then, Zdaemon would say we are copying them. |
|
|
|
|
|
|
|
|
(0008886)
|
Dusk
|
2014-06-07 22:44
|
|
What if a WAD contains multiple maps with the same music track? Wouldn't these wind up being printed twice? |
|
|
|
Yes, good point. Hashmap time. |
|
|
|
|
|
|
Note to self:
$music is a gstring / lang lump |
|
|
(0008947)
|
Edward-san
|
2014-06-09 02:35
(edited on: 2014-06-09 02:36) |
|
You should find some inspiration in function S_ChangeMusic in s_sounds.cpp. There's a specific handle of '$' char in the music name string.
|
|
|
|
|
|
|
The implementation itself looks good, there are just two minor style issues:
- Don't remove the new lines in the includes. We inherited those from (G)ZDoom and should keep them. If you need to add includes, just add them at the end of the Zandronum specific includes. In this case, this is after "#include "network/nettraffic.h". The next include "g_hub.h" still needs to be separated by a new line.
- Code consistency: You use both "(*it)." and "it->". While they should be equivalent, IMO it would be nicer if you decide for one and only use that in such a short code snippet. |
|
|
(0009666)
|
Watermelon
|
2014-06-22 15:44
(edited on: 2014-06-22 15:45) |
|
|
|
|
Quote from Watermelon All fixed.
Almost ;). With my comment "In this case, this is after "#include "network/nettraffic.h". The next include "g_hub.h" still needs to be separated by a new line." I tried to say that the include has to be in between "network/nettraffic.h" and "g_hub.h". This way it's with the other Zandronum includes. With your changes we would have "Zandronum includes, (G)ZDoom includes, Zandronum includes".
Quote from Watermelon Now, there was one that used (*it)[0] instead of it->operator[](0) Sure, that's fine. I mainly wondered about the difference between the two "GetChars", that's the only reason why I noticed the inconsistency. |
|
|
|
Just so I do it right this time (gotta make this one be the good commit!), is this what you mean
#include "network/nettraffic.h"
// [CK] For CCMD listmusic
#include <set>
#include "g_hub.h"
#include "gl/gl_functions.h"
|
|
|
|
Exactly. Marking this include is not necessary, since the whole block is already marked as Zandronum includes a few lines above, but you can keep the comment to stress that the STL was introduced here for listmusic. |
|
|
|
|
|
|
|
|
(0009828)
|
Arco
|
2014-07-03 19:33
|
|
Works in V1.3 140703-1806. |
|