MantisBT - Zandronum
View Issue Details
0002847Zandronum[All Projects] Bugpublic2016-10-02 19:542018-09-30 21:50
fr-blood 
Dusk 
normalminoralways
closedfixed 
MicrosoftWindowsXP/Vista/7
3.0-beta 
3.03.0 
0002847: GetScreenHeight function is ignored online
That function isn't working at all online.

The script is supposed to center the radar depending on your screen height.
I've added the scripts.

Here is the screen offline:
'http://images0.hiboox.com/images/3916/diapo5f10da6663471d14d0abdc6b45314900.png?37 [^]'

and here is the screen online:
'http://images0.hiboox.com/images/3916/diapo94960d38e92d7f30116b44f743dcec82.png?36 [^]'
No tags attached.
txt scripts.txt (7,677) 2016-10-02 19:54
/tracker/file_download.php?file_id=1895&type=bug
? getscreenonlinetest.wad (2,155) 2016-10-07 18:35
/tracker/file_download.php?file_id=1913&type=bug
Issue History
2016-10-02 19:54fr-bloodNew Issue
2016-10-02 19:54fr-bloodFile Added: scripts.txt
2016-10-07 18:35fr-bloodFile Added: getscreenonlinetest.wad
2016-10-07 18:38fr-bloodNote Added: 0015784
2016-10-13 18:43fr-bloodNote Edited: 0015784bug_revision_view_page.php?bugnote_id=15784#r9708
2016-10-13 18:55WaTaKiDCategorySuggestion => Bug
2016-10-13 19:33Edward-sanNote Added: 0015960
2016-12-24 22:42DuskTarget Version => 3.0
2017-01-05 20:55DuskNote Added: 0016607
2017-01-05 20:55DuskAssigned To => Dusk
2017-01-05 20:55DuskStatusnew => needs review
2017-01-15 09:55Torr SamahoNote Added: 0016637
2017-01-15 09:55Torr SamahoStatusneeds review => needs testing
2017-01-26 05:47Ru5tK1ngNote Added: 0016693
2017-01-26 05:47Ru5tK1ngStatusneeds testing => resolved
2017-01-26 05:47Ru5tK1ngResolutionopen => fixed
2017-01-26 05:47Ru5tK1ngFixed in Version => 3.0
2018-09-30 21:50Blzut3Statusresolved => closed

Notes
(0015784)
fr-blood   
2016-10-07 18:38   
(edited on: 2016-10-13 18:43)
Alright as you guys asked I've managed to make and upload an example wad.

Here are my video settings:

Aspect Ration 4:3
Renderer: OpenGL
Force Aspect Ratio: Off
Enable 5:4 Aspect Ration: No
1280 x 960

1. Launch the game with the file offline
2. Start a map and the script will write "ASPECT 4.0 / 3" if you got the same video settings than me.
3. Start a map online with the same video settings and normaly the script will say "ASPECT NOT 4.0 / 3" even tought the settings are still the same.

Hoping that wad will help you guys.

EDIT: Sorry for my mistake, it's not a suggestion but a bug!

(0015960)
Edward-san   
2016-10-13 19:33   
I think the only way to make it work reliably is to make the video resolution info shared between the clients to the server like autoaim, etc., but I don't know if it's worth it.
(0016607)
Dusk   
2017-01-05 20:55   
Fixed.
(0016637)
Torr Samaho   
2017-01-15 09:55   
I added your patch.
(0016693)
Ru5tK1ng   
2017-01-26 05:47   
Tested this online with r170122 and the scripts seemed to indicate correctly which aspect I was using whenever I changed resolutions in the menu.