MantisBT - Zandronum
View Issue Details
0002689Zandronum[All Projects] Bugpublic2016-03-30 19:192018-09-30 22:04
Tiger 
Edward-san 
normalminoralways
closedfixed 
Desktop (x86_64)Windows6.3
2.1 
3.03.0 
0002689: PlaySound() function fails online
With using the ACS instruction 'PlaySound()' ['http://zdoom.org/wiki/PlaySound [^]' ] to a THING, the sound will not reproduce on a physical multiplayer game, but will work as expected on a single player game.

This issue occurs on the latest build of Zandronum 2.1.2 as well as Zandronum 3.0 (160229-1221).

I have attached a demonstration PWAD file for this issue.

Here is a brief example of the script being used:
SCRIPT 1 (int tagTarget)
{
    PlaySound(tagTarget, "World/JumpPad", CHAN_AUTO, 1.0, false, ATTN_NORM);
} // JumpPadSound()
Using the attached PWAD file:
First test in single player; step on-top of the one of the sector references that have the standard teleporter flat texture. You should hear the quake 3 jumppad sound coming from the sector that the player is standing on. Now test this while on a multiplayer game. You will not hear anything coming from the sectors, but the player should hear it regardless the state of the game.
No tags attached.
7z 3DFloorSnd.7z (10,689) 2016-03-30 19:19
/tracker/file_download.php?file_id=1772&type=bug
Issue History
2016-03-30 19:19TigerNew Issue
2016-03-30 19:19TigerFile Added: 3DFloorSnd.7z
2016-03-30 19:25DuskSummaryPlaySound() function fails => PlaySound() function fails online
2016-03-30 19:34Edward-sanAssigned To => Edward-san
2016-03-30 19:34Edward-sanStatusnew => assigned
2016-03-30 22:15Edward-sanNote Added: 0014626
2016-03-30 22:15Edward-sanStatusassigned => needs review
2016-04-03 11:01cobaltStatusneeds review => needs testing
2016-04-03 11:01cobaltTarget Version => 3.0
2016-04-03 11:01cobaltDescription Updatedbug_revision_view_page.php?rev_id=8875#r8875
2016-04-03 11:01cobaltSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=8877#r8877
2016-04-03 11:01cobaltNote Added: 0014649
2016-04-07 03:11TigerNote Added: 0014673
2016-04-08 19:13DuskStatusneeds testing => resolved
2016-04-08 19:13DuskFixed in Version => 3.0
2016-04-08 19:13DuskResolutionopen => fixed
2018-09-30 22:04Blzut3Statusresolved => closed

Notes
(0014626)
Edward-san   
2016-03-30 22:15   
Pull request'd.
(0014649)
cobalt   
2016-04-03 11:01   
Issue addressed by commit 50e1c147886f: - Fixed: ACS function PlaySound did not work online (fixes 2689).
Committed by Edoardo Prezioso [edward-san] on Wednesday 31 December 1969 23:59:57

Changes in files:

 docs/zandronum-history.txt | 1 +
 src/p_acs.cpp | 4 ++--
 src/s_sound.cpp | 6 +++++-
 src/s_sound.h | 2 +-
 4 files changed, 9 insertions(+), 4 deletions(-)

(0014673)
Tiger   
2016-04-07 03:11   
Using build 3.0-alpha @ 160403-1900 - Commit 96e0e5e40e46, (credit to WaTaKiD), this seems to be fixed for me. Thanks!