MantisBT - Zandronum |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0001236 | Zandronum | [All Projects] Suggestion | public | 2012-12-30 19:23 | 2018-09-30 20:19 |
|
Reporter | Konar6 | |
Assigned To | Dusk | |
Priority | none | Severity | feature | Reproducibility | N/A |
Status | closed | Resolution | fixed | |
Platform | * | OS | | OS Version | |
Product Version | 1.0 | |
Target Version | 1.1 | Fixed in Version | 1.1 | |
|
Summary | 0001236: Suggestions for client console notify lines |
Description | 1]
The number of console notify lines is hardcoded to 4 in c_console.cpp:204.
I imagine that it originates from the old Doom days when it was sufficient for the few players Doom had supported + monitor resolutions were low, but today we have 64 players support and a lot more stuff is printed in the console, and we have monitors with huge resolutions.
Personally I've doubled the number of notify lines, and I thought it would be a blast if this value was user-configurable via some con_notifylines CVAR, just like there is con_notifytime for adjusting the time for the messages to stay on screen.
I would have provided a patch, but I don't know how I would go about changing that constant to CVAR variable since it's used in arrays :(. |
Steps To Reproduce | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | 0001377 | feedback | | Suggestions for client console notify lines, part 2 |
|
Attached Files | Screenshot_Doom_20121230_231654.png (141,915) 2012-12-30 23:00 /tracker/file_download.php?file_id=907&type=bug

|
|
Issue History |
Date Modified | Username | Field | Change |
2012-12-30 19:23 | Konar6 | New Issue | |
2012-12-30 21:38 | Torr Samaho | Note Added: 0005626 | |
2012-12-30 22:25 | Dusk | Note Added: 0005627 | |
2012-12-30 22:25 | Dusk | Assigned To | => Dusk |
2012-12-30 22:25 | Dusk | Status | new => needs review |
2012-12-30 22:29 | Dusk | Note Edited: 0005627 | bug_revision_view_page.php?bugnote_id=5627#r3087 |
2012-12-30 22:49 | Konar6 | Note Added: 0005628 | |
2012-12-30 22:56 | Dusk | Note Edited: 0005627 | bug_revision_view_page.php?bugnote_id=5627#r3088 |
2012-12-30 22:56 | Dusk | Note Added: 0005629 | |
2012-12-30 23:00 | Konar6 | File Added: Screenshot_Doom_20121230_231654.png | |
2012-12-30 23:01 | Konar6 | Note Edited: 0005628 | bug_revision_view_page.php?bugnote_id=5628#r3090 |
2012-12-31 09:50 | Torr Samaho | Note Added: 0005634 | |
2012-12-31 11:04 | Dusk | Note Added: 0005639 | |
2012-12-31 11:04 | Dusk | Status | needs review => assigned |
2012-12-31 11:14 | Dusk | Note Edited: 0005639 | bug_revision_view_page.php?bugnote_id=5639#r3092 |
2012-12-31 11:14 | Dusk | Status | assigned => needs review |
2012-12-31 12:11 | Torr Samaho | Note Added: 0005641 | |
2012-12-31 12:33 | Torr Samaho | Status | needs review => feedback |
2013-01-01 11:07 | Dusk | Note Added: 0005646 | |
2013-01-01 11:07 | Dusk | Status | feedback => needs review |
2013-01-02 09:13 | Torr Samaho | Note Added: 0005648 | |
2013-01-02 10:41 | Torr Samaho | Note Edited: 0005648 | bug_revision_view_page.php?bugnote_id=5648#r3100 |
2013-01-02 10:41 | Torr Samaho | Status | needs review => needs testing |
2013-01-02 13:10 | ZzZombo | Note Added: 0005655 | |
2013-01-09 23:16 | Dusk | Target Version | => 1.1 |
2013-03-20 04:42 | Watermelon | Note Added: 0006149 | |
2013-03-24 13:35 | Torr Samaho | Note Deleted: 0005655 | |
2013-03-24 13:39 | Torr Samaho | Note Added: 0006167 | |
2013-03-28 17:18 | Watermelon | Note Added: 0006180 | |
2013-03-28 17:48 | Dusk | Note Added: 0006181 | |
2013-04-08 22:42 | Dusk | Note Added: 0006273 | |
2013-04-08 22:42 | Dusk | Status | needs testing => feedback |
2013-06-11 01:54 | Qent | Note Added: 0006414 | |
2013-06-11 01:55 | Qent | Note Edited: 0006414 | bug_revision_view_page.php?bugnote_id=6414#r3535 |
2013-06-23 14:48 | Dusk | Note Edited: 0005627 | bug_revision_view_page.php?bugnote_id=5627#r3575 |
2013-06-23 14:48 | Dusk | Note Edited: 0005639 | bug_revision_view_page.php?bugnote_id=5639#r3576 |
2013-06-23 14:49 | Dusk | Relationship added | related to 0001377 |
2013-06-23 14:49 | Dusk | Description Updated | bug_revision_view_page.php?rev_id=3578#r3578 |
2013-06-23 14:50 | Dusk | Note Added: 0006487 | |
2013-06-23 14:50 | Dusk | Status | feedback => resolved |
2013-06-23 14:50 | Dusk | Fixed in Version | => 1.1 |
2013-06-23 14:50 | Dusk | Resolution | open => fixed |
2018-09-30 20:19 | Blzut3 | Status | resolved => closed |
Notes |
|
|
Quote from Konar6 I would have provided a patch, but I don't know how I would go about changing that constant to CVAR variable since it's used in arrays :(. One possibility is to replace the fixed size C array with ZDoom's TArray and then to dynamically change the size of the TArray whenever the user changes the proposed CVAR.
Quote from Konar6 Why is C_FlushDisplay() called in g_level.cpp:1022 and g_level.cpp:1579 (ie. on level finished and level start)?
g_level.cpp:1022 was already in the source of ST 97c2, so it was added to Skulltag before I took care of the source, g_level.cpp:1579 is inherited from ZDoom. I don't know the motivation of either. |
|
|
(0005627)
|
Dusk
|
2012-12-30 22:25
(edited on: 2013-06-23 14:48) |
|
|
|
(0005628)
|
Konar6
|
2012-12-30 22:49
(edited on: 2012-12-30 23:01) |
|
Very good!
I like con_notifylines since it's consistent with existing con_notifytime.
EDIT: updated a screenshot showing the effect of removing C_FlushDisplay() on level start, which I personally find pretty cool :P.
|
|
|
(0005629)
|
Dusk
|
2012-12-30 22:56
|
|
Renamed, updated commit link |
|
|
|
Quote from Dusk SURPRISE COMMIT
I'd say it's safer to use NotifyStrings.Size() instead of con_numnotifylines.GetGenericRep(CVAR_Int).Int to determine NUMNOTIFIES. If for whatever reason the former should be smaller than the latter, code using the latter to access NotifyStrings will crash. And as always: Please mark any changes to ZDoom code with a comment. |
|
|
(0005639)
|
Dusk
|
2012-12-31 11:04
(edited on: 2013-06-23 14:48) |
|
I actually had just thought of the same.. let's see here.
EDIT: How's this?
|
|
|
|
Looks good! If you rebase and collapse it, I'll pull it, or I can also do the rebasing / collapsing. The only thing I still wonder is whether we should enforce a reasonable maximum for con_notifylines. Setting this in the thousands certainly doesn't make any sense. |
|
|
(0005646)
|
Dusk
|
2013-01-01 11:07
|
|
|
|
(0005648)
|
Torr Samaho
|
2013-01-02 09:13
(edited on: 2013-01-02 10:41) |
|
Thanks! Pulled and rebased. I also prevented con_notifylines from being set to anything bigger than 50. If somebody really wants to set it to something bigger, we can raise the limit.
EDIT: We still need to decide what to do with C_FlushDisplay().
|
|
|
|
Is it significant if we enter in a negative number for the time it stays on the screen? When I enter in -1 it holds -1 as a value. I don't know if we want to (like the other cvar) just hold it at 0 if someone goes negative or not. |
|
|
|
The way con_notifytime is handled is inherited from ZDoom. We shouldn't change this unless it's changed in ZDoom. |
|
|
|
I'd say then that this is a resolved ticket as it worked for me on my end. I'll let you be the one to decide this since I don't know if you want any more testing, I entered as many weird numbers as I could and tried to crash it... it did not which is great.
In addition it worked as it was supposed to. |
|
|
(0006181)
|
Dusk
|
2013-03-28 17:48
|
|
Quote from Torr Samaho We still need to decide what to do with C_FlushDisplay().
I guess we should resolve this first? |
|
|
(0006273)
|
Dusk
|
2013-04-08 22:42
|
|
con_notifylines confirmed to work by Arco, there's just the C_FlushDisplay problem now. What do? |
|
|
(0006414)
|
Qent
|
2013-06-11 01:54
(edited on: 2013-06-11 01:55) |
|
Make it optional with con_flushonlevelchange? I would like to keep the display uninterrupted (mostly for not missing chat messages online), but I could totally see someone wanting to keep a more vanilla feel (e.g. does it carry pickup messages into the intermission in singleplayer?).
|
|
|
(0006487)
|
Dusk
|
2013-06-23 14:50
|
|
I've split the C_FlushDisplay stuff into 0001377, since it's a different issue entirely. Since con_numnotifies works, I'll mark this as fixed. |
|