MantisBT - Zandronum
View Issue Details
0001944Zandronum[All Projects] Bugpublic2014-10-05 14:372018-04-08 18:03
Mr_Xerxes 
 
normalminoralways
feedbackopen 
MicrosoftWindowsXP/Vista/7
1.2 
 
0001944: Sector_SetFade() & Sector_SetColor() clientsided
Sector_SetFade() & Sector_SetColor() functions didn't work if they'r used into a clientsided script during multiplayer.

They work well in singleplayer but don't do anything for a server's client.
#define SKYBOX_TID 100

script 1 OPEN clientside {
    Sector_SetFade(SKYBOX_TID,255,255,255);
    Sector_SetColor(SKYBOX_TID,128,0,0,0);
}
No tags attached.
has duplicate 0002684closed  Sector_SetColor doesn't take effect with 'CLIENTSIDE' keyword 
? fade-color_clientside.wad (1,692) 2014-10-05 14:37
https://zandronum.com/tracker/file_download.php?file_id=1301&type=bug
Issue History
2014-10-05 14:37Mr_XerxesNew Issue
2014-10-05 14:37Mr_XerxesFile Added: fade-color_clientside.wad
2014-10-05 14:52Mr_XerxesNote Added: 0010334
2014-10-06 20:45DuskAssigned To => Dusk
2014-10-06 20:45DuskStatusnew => assigned
2014-10-06 20:45DuskTarget Version => 1.4
2014-10-08 13:35DuskNote Added: 0010386
2014-10-08 13:35DuskAssigned ToDusk =>
2014-10-08 13:35DuskStatusassigned => needs review
2014-10-11 15:46Torr SamahoNote Added: 0010491
2014-10-11 15:46Torr SamahoStatusneeds review => feedback
2015-01-06 09:50DuskTarget Version1.4 =>
2016-10-14 09:01unknownnaRelationship addedhas duplicate 0002684

Notes
(0010334)
Mr_Xerxes   
2014-10-05 14:52   
I experimented the same problem with the latest testing build for 2.0
(0010386)
Dusk   
2014-10-08 13:35   
We don't really have a way to determine when execution reaches client-sided scripting, so these line specials cannot determine when to wait for the server for packets for changing fade and color.

I have a prototype which tries to track this by setting a global variable when client-side ACS is executed or when a client-handled actor executes its state functions. I do wonder, is there a better way to deal with this?
(0010491)
Torr Samaho   
2014-10-11 15:46   
The design of our whole client side ACS script logic never took into account that clients call ACS script via DECORATE. Before doing anything about the issue reported here, we should decide how we want to handle ACS scripts called by DECORATE on the client in general.