Anonymous | Login | Signup for a new account | 2025-07-27 18:06 UTC | ![]() |
My View | View Issues | Change Log | Roadmap | Zandronum Issue Support Ranking | Rules | My Account |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0000600 | Zandronum | [All Projects] Bug | public | 2011-10-09 21:15 | 2013-10-15 22:04 | ||||
Reporter | Borg | ||||||||
Assigned To | |||||||||
Priority | high | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | no change required | ||||||
Platform | OS | OS Version | |||||||
Product Version | 98d | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0000600: Client does NOT sent info about screen size | ||||||||
Description | Client does not report to server his screen size. This makes GetScreenHeight() and GetScreenWidth() useless for server side HUD scripting. | ||||||||
Additional Information | Client should update this info on connect and on screen resulution change. | ||||||||
Attached Files | |||||||||
![]() |
|
Torr Samaho (administrator) 2012-01-14 13:26 |
This is not a bug, at most you can call it a missing feature. What exactly do you need it for? I guess you need it to make the client display something and in that case you should put the display code in a CLIENTSIDE script. |
Dusk (developer) 2012-01-15 16:55 edited on: 2012-01-15 16:55 |
int ScreenH[32]; int ScreenW[32]; script 1 OPEN CLIENTSIDE { ConsoleCommand ("puke -2 $vid_defwidth $vid_defheight"); } script 2 (int w, int h) NET { ScreenW[PlayerNumber()] = w; ScreenH[PlayerNumber()] = h; } script 3 (void) { int p = PlayerNumber(); SetHudSize (ScreenW[p], ScreenH[p], 1); // hud scripting goes here } ====================== Should work well enough as a work-around. |
Borg (reporter) 2012-02-10 16:20 edited on: 2012-02-10 16:21 |
Nightfall: why you use puke -2 instead of puke 2? Torr: well, of course I should, but ACS vars are not synced between client and server, so I need to put some of the HUD display to serverside. I can give you wonderfull code I've done myself to display text message perfectly on any resolution without ugly scaling. So they are look nice and are properly positioned. |
Qent (updater) 2012-02-10 21:50 |
From'http://zdoom.org/wiki/CCMDs:Debug#Testing [^]' : "If the 'script' argument is a negative value, the script will be executed as if it had been called by ACS_ExecuteAlways; otherwise it will be executed as if called by ACS_Execute." |
Torr Samaho (administrator) 2012-02-11 16:16 |
> Torr: well, of course I should, but ACS vars are not synced between client and server, so I need to put some of the HUD display to serverside. You can let the server set ACS vars on the clients by calling a CLIENTSIDE script. > I can give you wonderfull code I've done myself to display text message perfectly on any resolution without ugly scaling. So they are look nice and are properly positioned. And you should just let the clients execute that code themselves. |
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. |
![]() |
|||
Date Modified | Username | Field | Change |
2011-10-09 21:15 | Borg | New Issue | |
2012-01-14 13:26 | Torr Samaho | Note Added: 0002365 | |
2012-01-14 13:27 | Torr Samaho | Status | new => feedback |
2012-01-15 16:52 | Dusk | Note Added: 0002429 | |
2012-01-15 16:52 | Dusk | Note Deleted: 0002429 | |
2012-01-15 16:55 | Dusk | Note Added: 0002430 | |
2012-01-15 16:55 | Dusk | Note Edited: 0002430 | View Revisions |
2012-02-10 16:20 | Borg | Note Added: 0002582 | |
2012-02-10 16:20 | Borg | Status | feedback => new |
2012-02-10 16:21 | Borg | Note Edited: 0002582 | View Revisions |
2012-02-10 21:50 | Qent | Note Added: 0002584 | |
2012-02-11 16:16 | Torr Samaho | Note Added: 0002587 | |
2012-02-11 16:17 | Torr Samaho | Status | new => feedback |
2012-06-09 13:22 | Torr Samaho | Category | General => Bug |
2013-10-15 22:04 | Arco | Status | feedback => closed |
2013-10-15 22:04 | Arco | Resolution | open => no change required |
Copyright © 2000 - 2025 MantisBT Team |