Raised This Month: $51 Target: $400
 12% 

Sank Sounds (Luke Sankey) (v1.8.4)


Post New Thread Reply   
 
Thread Tools Display Modes
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 11-27-2017 , 10:38   Re: Sank Sounds (Luke Sankey) (v1.8.4)
Reply With Quote #1131

@dikk...45
Readme.txt section 2.3 + 2.4

@AllMassive
I have not tried the "_downloads" folder.
The server side should not have a "_downloads" folder. So your server path looks correct.
__________________
alias White Panther
karlos is offline
AllMassive
Senior Member
Join Date: Sep 2004
Location: /dev/urandom
Old 11-27-2017 , 15:57   Re: Sank Sounds (Luke Sankey) (v1.8.4)
Reply With Quote #1132

After moving the files they dont play.
Strange ....

So i'll stay with 1.6.6d
AllMassive is offline
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 11-27-2017 , 16:17   Re: Sank Sounds (Luke Sankey) (v1.8.6)
Reply With Quote #1133

You move the sounds on your server of your client?

PS:
Keep in mind that I will not support v1.6.6d
__________________
alias White Panther
karlos is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 12-03-2017 , 16:54   Re: Sank Sounds (Luke Sankey) (v1.8.4)
Reply With Quote #1134

Suggestion: you can precache both wav and mp3 files as generic since you only play them client-side.
That way, you save up precaching slots for the server and avoid unnecessarily increasing towards the very small 512 limit(generic precaches don't count).
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 12-05-2017 , 13:33   Re: Sank Sounds (Luke Sankey) (v1.8.4)
Reply With Quote #1135

@georgik57
I know but I think there was something special with wav files. So I left them as precache_sound.
MP3s are using generic.
__________________
alias White Panther
karlos is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 12-06-2017 , 06:30   Re: Sank Sounds (Luke Sankey) (v1.8.4)
Reply With Quote #1136

Nope, nothing special about them. You only need to precache them as a sound only when you use them for emit_sound for example(playing them server-sided).
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
RaZ_HU
Senior Member
Join Date: May 2015
Location: Hungary
Old 12-29-2017 , 13:38   Re: Sank Sounds (Luke Sankey) (v1.8.4)
Reply With Quote #1137

Hi!
I have 2 problems:
Using version 1.8.6 on 1.8.3 AMXX.
First one:
After a mapchange I have to wait SND_DELAY before I can use the first sound (with normal Z [player] access).

Second:
I can't get the following message to appear when I try to play a sound after another:
"Sank Sounds >> Sound is still playing ( wait %3.1f seconds )"

I have set normal Z flag for myself (like a player) and if I try to use another sound after/meanwhile another one it just does not show the message.

Edit:
Found a solution for my second problem, a small modification in Handle_Say(id):

PHP Code:
public Handle_Sayid )
{
    ...

    
// check If player used NO sound trigger
    
if ( ListIndex == -)
        return 
PLUGIN_CONTINUE

    
if ( sData[SOUND_AMOUNT] == )
        return 
PLUGIN_CONTINUE

    
new obey_duration_mode get_pcvar_num(CVAR_obey_duration)
    new 
Float:gametime get_gametime()
    new 
allowedToPlay isUserAllowed2Play(idgametimeobey_duration_mode)
    if ( 
gametime LastSoundTime <= SND_DELAY // added this check and it works
            
client_print(idprint_chat"Sank Sounds >> Sound is still playing ( wait %3.1f seconds )"NextSoundTime SND_DELAY gametime)
    else if ( 
allowedToPlay == RESULT_OK )
    {
        
displayQuotaWarning(id)
        new 
rand
        
new timeout
    
    
... 

Last edited by RaZ_HU; 12-29-2017 at 13:48.
RaZ_HU is offline
karlos
Veteran Member
Join Date: Apr 2004
Location: Germany/Poland
Old 12-29-2017 , 14:15   Re: Sank Sounds (Luke Sankey) (v1.8.4)
Reply With Quote #1138

Will be corrected with 1.8.8 once I release it.

@Prob1:
Replace (in "plugin_init")
PHP Code:
g_max_players get_maxplayers() 
with
PHP Code:
g_max_players get_maxplayers()
NextSoundTime get_gametime() - SND_DELAY
LastSoundTime
NextSoundTime 
@Prob2:
Yes, there is an issue but your change is already performed by the function "isUserAllowed2Play".
The correct fix is to change
PHP Code:
else if ( allowedToPlay == RESULT_QUOTA_EXCEEDED
        
|| allowedToPlay == RESULT_QUOTA_DURATION_EXCEEDED 
to
PHP Code:
else if ( allowedToPlay == RESULT_QUOTA_EXCEEDED
        
|| allowedToPlay == RESULT_QUOTA_DURATION_EXCEEDED 
        
|| allowedToPlay == RESULT_SOUND_DELAY 
__________________
alias White Panther
karlos is offline
RaZ_HU
Senior Member
Join Date: May 2015
Location: Hungary
Old 12-29-2017 , 14:49   Re: Sank Sounds (Luke Sankey) (v1.8.4)
Reply With Quote #1139

Thank you for the quick fix

Another problem I just faced:
The sound files does not get precached even if the _download setting is 1.
The extension is missing (developer 1 warning fix causes this) and the game can't download them.
Quote:
Error: server failed to transmit file 'sound/misc/ctwin'
Error: server failed to transmit file 'sound/misc/twin'

BTW you should update the version number in the OP title.

Temporary fix: comment the dev1 error fix:
PHP Code:
        // remove ".wav" from files to prevent runtime warnings (using: developer 1)
        /*if ( subData[SOUND_TYPE] == SOUND_TYPE_WAV )
        {
            new len = strlen(soundfile)
            if ( len > 4
                && equali(soundfile[len - 4], ".wav") )
            {
                soundfile[len - 4] = 0;
            }
        }*/ 

Last edited by RaZ_HU; 12-29-2017 at 19:18.
RaZ_HU is offline
yuvim86
Member
Join Date: Jan 2018
Old 01-10-2018 , 12:06   Re: Sank Sounds (Luke Sankey) (v1.8.4)
Reply With Quote #1140

Sounds are not playing. No audio, everythin is loaded just fine .
Client console log

"sound/misc/doh7" - time: 0.56 - admin level "" (played: 0)
"sound/misc/dohoo" - time: 3.91 - admin level "" (played: 0)
"sound/misc/dohnuts" - time: 1.16 - admin level "" (played: 0)

[6] "ha ha" with 1 sound and level "" (played: 0)
"sound/misc/haha" - time: 1.10 - admin level "" (played: 0)

[7] "osama bin laden" with 1 sound and level "" (played: 0)
"sound/misc/taliban" - time: 7.74 - admin level "" (played: 0)

[8] "ouch" with 1 sound and level "" (played: 0)
"sound/misc/ow" - time: 0.57 - admin level "" (played: 0)

[9] "run mr. taliban" with 1 sound and level "" (played: 0)
"sound/misc/taliban" - time: 7.74 - admin level "" (played: 0)

[10] "schoki" with 1 sound and level "" (played: 0)
"sound/misc/schoki" - time: 3.75 - admin level "" (played: 0)

Last edited by yuvim86; 01-10-2018 at 12:59. Reason: added more info
yuvim86 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode