MantisBT - Zandronum
View Issue Details
0000600Zandronum[All Projects] Bugpublic2011-10-09 21:152013-10-15 22:04
Borg 
 
highmajoralways
closedno change required 
98d 
 
0000600: Client does NOT sent info about screen size
Client does not report to server his screen size.
This makes GetScreenHeight() and GetScreenWidth()
useless for server side HUD scripting.
Client should update this info on connect and on screen resulution
change.
No tags attached.
Issue History
2011-10-09 21:15BorgNew Issue
2012-01-14 13:26Torr SamahoNote Added: 0002365
2012-01-14 13:27Torr SamahoStatusnew => feedback
2012-01-15 16:52DuskNote Added: 0002429
2012-01-15 16:52DuskNote Deleted: 0002429
2012-01-15 16:55DuskNote Added: 0002430
2012-01-15 16:55DuskNote Edited: 0002430bug_revision_view_page.php?bugnote_id=2430#r1230
2012-02-10 16:20BorgNote Added: 0002582
2012-02-10 16:20BorgStatusfeedback => new
2012-02-10 16:21BorgNote Edited: 0002582bug_revision_view_page.php?bugnote_id=2582#r1292
2012-02-10 21:50QentNote Added: 0002584
2012-02-11 16:16Torr SamahoNote Added: 0002587
2012-02-11 16:17Torr SamahoStatusnew => feedback
2012-06-09 13:22Torr SamahoCategoryGeneral => Bug
2013-10-15 22:04ArcoStatusfeedback => closed
2013-10-15 22:04ArcoResolutionopen => no change required

Notes
(0002365)
Torr Samaho   
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.
(0002430)
Dusk   
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.

(0002582)
Borg   
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.

(0002584)
Qent   
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."
(0002587)
Torr Samaho   
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.