Zandronum Chat on our Discord Server Get the latest version: 3.2
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000600Zandronum[All Projects] Bugpublic2011-10-09 21:152013-10-15 22:04
ReporterBorg 
Assigned To 
PriorityhighSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version98d 
Target VersionFixed in Version 
Summary0000600: Client does NOT sent info about screen size
DescriptionClient does not report to server his screen size.
This makes GetScreenHeight() and GetScreenWidth()
useless for server side HUD scripting.
Additional InformationClient should update this info on connect and on screen resulution
change.
Attached Files

- Relationships

-  Notes
User avatar (0002365)
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.
User avatar (0002430)
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.

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

User avatar (0002584)
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."
User avatar (0002587)
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.

Issue Community Support
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.

- Issue History
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






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2025 MantisBT Team
Powered by Mantis Bugtracker