RE: Problema com sampvoice - zBL4CK - 09/07/2021
(07/07/2021 02:53)NelsonC. Escreveu: Tente usar o sistema como filterscript
tentei usar como fs aparece isso:
Código: Loading plugin: sampvoice
[sv:dbg:network:init] : module initializing...
[dbg:raknet:init] : module initializing...
[dbg:raknet:init] : installed hook to 'GetRakServerInterface' function (ptr:0044FAD0)
[dbg:raknet:init] : installed hook to 'OnPlayerDisconnect' function (ptr:0046D970)
[dbg:raknet:init] : module initialized
[sv:dbg:network:init] : module initialized
-------------------------------------------
___ __ __ _
/ __| __ _ _ __ _ _\ \ / /__ (_) __ ___
\__ \/ _` | ' \| '_ \ / _ \| |/ _/ -_)
|___/\__,_|_|_|_| .__/\_/\___/|_|\__\___|
|_|
-------------------------------------------
SampVoice by MOR loaded
-------------------------------------------
Loaded.
Loaded 7 plugins.
Ban list
--------
Loaded: samp.ban
Started server on port: 7777, with maxplayers: 50 lanmode is OFF.
Filterscripts
---------------
Loading filterscript 'Check.amx'...
[sv:dbg:main:AmxLoad] : net game pointer (value:02509F48) received
[sv:dbg:network:bind] : voice server running on port 62739
Android check has been successfully loaded.
Loading filterscript 'freemode.amx'...
[sv:dbg:main:AmxLoad] : failed to bind voice server
Loading filterscript 'voice.amx'...
[sv:dbg:main:AmxLoad] : failed to bind voice server
Loaded 3 filterscripts.
[sv:dbg:main:AmxLoad] : failed to bind voice server
[sv:dbg:main:AmxLoad] : failed to bind voice server
RE: Problema com sampvoice - LeleziiN - 09/07/2021
(09/07/2021 12:54)zBL4CK Escreveu: (07/07/2021 02:53)NelsonC. Escreveu: Tente usar o sistema como filterscript
tentei usar como fs aparece isso:
Código: Loading plugin: sampvoice
[sv:dbg:network:init] : module initializing...
[dbg:raknet:init] : module initializing...
[dbg:raknet:init] : installed hook to 'GetRakServerInterface' function (ptr:0044FAD0)
[dbg:raknet:init] : installed hook to 'OnPlayerDisconnect' function (ptr:0046D970)
[dbg:raknet:init] : module initialized
[sv:dbg:network:init] : module initialized
-------------------------------------------
___ __ __ _
/ __| __ _ _ __ _ _\ \ / /__ (_) __ ___
\__ \/ _` | ' \| '_ \ / _ \| |/ _/ -_)
|___/\__,_|_|_|_| .__/\_/\___/|_|\__\___|
|_|
-------------------------------------------
SampVoice by MOR loaded
-------------------------------------------
Loaded.
Loaded 7 plugins.
Ban list
--------
Loaded: samp.ban
Started server on port: 7777, with maxplayers: 50 lanmode is OFF.
Filterscripts
---------------
Loading filterscript 'Check.amx'...
[sv:dbg:main:AmxLoad] : net game pointer (value:02509F48) received
[sv:dbg:network:bind] : voice server running on port 62739
Android check has been successfully loaded.
Loading filterscript 'freemode.amx'...
[sv:dbg:main:AmxLoad] : failed to bind voice server
Loading filterscript 'voice.amx'...
[sv:dbg:main:AmxLoad] : failed to bind voice server
Loaded 3 filterscripts.
[sv:dbg:main:AmxLoad] : failed to bind voice server
[sv:dbg:main:AmxLoad] : failed to bind voice server
Mano pode ser a sua Host que não suporta o VOIP/voice pois esse problema já aconteceu comigo
RE: Problema com sampvoice - xbruno1000x - 09/07/2021
(09/07/2021 12:54)zBL4CK Escreveu: (07/07/2021 02:53)NelsonC. Escreveu: Tente usar o sistema como filterscript
tentei usar como fs aparece isso:
Código: Loading plugin: sampvoice
[sv:dbg:network:init] : module initializing...
[dbg:raknet:init] : module initializing...
[dbg:raknet:init] : installed hook to 'GetRakServerInterface' function (ptr:0044FAD0)
[dbg:raknet:init] : installed hook to 'OnPlayerDisconnect' function (ptr:0046D970)
[dbg:raknet:init] : module initialized
[sv:dbg:network:init] : module initialized
-------------------------------------------
___ __ __ _
/ __| __ _ _ __ _ _\ \ / /__ (_) __ ___
\__ \/ _` | ' \| '_ \ / _ \| |/ _/ -_)
|___/\__,_|_|_|_| .__/\_/\___/|_|\__\___|
|_|
-------------------------------------------
SampVoice by MOR loaded
-------------------------------------------
Loaded.
Loaded 7 plugins.
Ban list
--------
Loaded: samp.ban
Started server on port: 7777, with maxplayers: 50 lanmode is OFF.
Filterscripts
---------------
Loading filterscript 'Check.amx'...
[sv:dbg:main:AmxLoad] : net game pointer (value:02509F48) received
[sv:dbg:network:bind] : voice server running on port 62739
Android check has been successfully loaded.
Loading filterscript 'freemode.amx'...
[sv:dbg:main:AmxLoad] : failed to bind voice server
Loading filterscript 'voice.amx'...
[sv:dbg:main:AmxLoad] : failed to bind voice server
Loaded 3 filterscripts.
[sv:dbg:main:AmxLoad] : failed to bind voice server
[sv:dbg:main:AmxLoad] : failed to bind voice server
RakNet e VoiceSamp tem incompatibilidades, pode ser esse o problema.
RE: Problema com sampvoice - welmateus - 09/07/2021
(09/07/2021 15:19)xbruno1000x Escreveu: (09/07/2021 12:54)zBL4CK Escreveu: (07/07/2021 02:53)NelsonC. Escreveu: Tente usar o sistema como filterscript
tentei usar como fs aparece isso:
Código: Loading plugin: sampvoice
[sv:dbg:network:init] : module initializing...
[dbg:raknet:init] : module initializing...
[dbg:raknet:init] : installed hook to 'GetRakServerInterface' function (ptr:0044FAD0)
[dbg:raknet:init] : installed hook to 'OnPlayerDisconnect' function (ptr:0046D970)
[dbg:raknet:init] : module initialized
[sv:dbg:network:init] : module initialized
-------------------------------------------
___ __ __ _
/ __| __ _ _ __ _ _\ \ / /__ (_) __ ___
\__ \/ _` | ' \| '_ \ / _ \| |/ _/ -_)
|___/\__,_|_|_|_| .__/\_/\___/|_|\__\___|
|_|
-------------------------------------------
SampVoice by MOR loaded
-------------------------------------------
Loaded.
Loaded 7 plugins.
Ban list
--------
Loaded: samp.ban
Started server on port: 7777, with maxplayers: 50 lanmode is OFF.
Filterscripts
---------------
Loading filterscript 'Check.amx'...
[sv:dbg:main:AmxLoad] : net game pointer (value:02509F48) received
[sv:dbg:network:bind] : voice server running on port 62739
Android check has been successfully loaded.
Loading filterscript 'freemode.amx'...
[sv:dbg:main:AmxLoad] : failed to bind voice server
Loading filterscript 'voice.amx'...
[sv:dbg:main:AmxLoad] : failed to bind voice server
Loaded 3 filterscripts.
[sv:dbg:main:AmxLoad] : failed to bind voice server
[sv:dbg:main:AmxLoad] : failed to bind voice server
RakNet e VoiceSamp tem incompatibilidades, pode ser esse o problema. entao, no meu caso funciona usando como filterscript, e se tento usar diretamente no gamemode parece nao funcionar
RE: Problema com sampvoice - MagnatuS - 12/07/2021
(09/07/2021 20:05)welmateus Escreveu: (09/07/2021 15:19)xbruno1000x Escreveu: (09/07/2021 12:54)zBL4CK Escreveu: (07/07/2021 02:53)NelsonC. Escreveu: Tente usar o sistema como filterscript
tentei usar como fs aparece isso:
Código: Loading plugin: sampvoice
[sv:dbg:network:init] : module initializing...
[dbg:raknet:init] : module initializing...
[dbg:raknet:init] : installed hook to 'GetRakServerInterface' function (ptr:0044FAD0)
[dbg:raknet:init] : installed hook to 'OnPlayerDisconnect' function (ptr:0046D970)
[dbg:raknet:init] : module initialized
[sv:dbg:network:init] : module initialized
-------------------------------------------
___ __ __ _
/ __| __ _ _ __ _ _\ \ / /__ (_) __ ___
\__ \/ _` | ' \| '_ \ / _ \| |/ _/ -_)
|___/\__,_|_|_|_| .__/\_/\___/|_|\__\___|
|_|
-------------------------------------------
SampVoice by MOR loaded
-------------------------------------------
Loaded.
Loaded 7 plugins.
Ban list
--------
Loaded: samp.ban
Started server on port: 7777, with maxplayers: 50 lanmode is OFF.
Filterscripts
---------------
Loading filterscript 'Check.amx'...
[sv:dbg:main:AmxLoad] : net game pointer (value:02509F48) received
[sv:dbg:network:bind] : voice server running on port 62739
Android check has been successfully loaded.
Loading filterscript 'freemode.amx'...
[sv:dbg:main:AmxLoad] : failed to bind voice server
Loading filterscript 'voice.amx'...
[sv:dbg:main:AmxLoad] : failed to bind voice server
Loaded 3 filterscripts.
[sv:dbg:main:AmxLoad] : failed to bind voice server
[sv:dbg:main:AmxLoad] : failed to bind voice server
RakNet e VoiceSamp tem incompatibilidades, pode ser esse o problema. entao, no meu caso funciona usando como filterscript, e se tento usar diretamente no gamemode parece nao funcionar
meu esta com mesmo erro tbm meu criei post aqui mesmo ngm conseguiu resolver.
RE: Problema com sampvoice - bllkgs - 18/05/2022
(13/11/2020 14:12)Nexus Escreveu: Estou tentando adicionar sampvoice ao meu servidor. Depois de fazer algumas mudanças no código original, compilei e não recebi nenhum erro, mas quando tento utilizar o plugin no servidor, o microfone é acionado, mas o nome do jogador no canto esquerdo da tela e o microfone acima do personagem não aparecem e nenhum som é reproduzido.
Gostaria de saber se cometi algum erro nas modificações que fiz.
Código original:
Código: #include <sampvoice>
new SV_GSTREAM:gstream = SV_NULL;
new SV_LSTREAM:lstream[MAX_PLAYERS] = { SV_NULL, ... };
/*
The public OnPlayerActivationKeyPress and OnPlayerActivationKeyRelease
are needed in order to redirect the player's audio traffic to the
corresponding streams when the corresponding keys are pressed.
*/
public SV_VOID:OnPlayerActivationKeyPress(SV_UINT:playerid, SV_UINT:keyid)
{
// Attach player to local stream as speaker if 'B' key is pressed
if (keyid == 0x42 && lstream[playerid]) SvAttachSpeakerToStream(lstream[playerid], playerid);
// Attach the player to the global stream as a speaker if the 'Z' key is pressed
if (keyid == 0x5A && gstream) SvAttachSpeakerToStream(gstream, playerid);
}
public SV_VOID:OnPlayerActivationKeyRelease(SV_UINT:playerid, SV_UINT:keyid)
{
// Detach the player from the local stream if the 'B' key is released
if (keyid == 0x42 && lstream[playerid]) SvDetachSpeakerFromStream(lstream[playerid], playerid);
// Detach the player from the global stream if the 'Z' key is released
if (keyid == 0x5A && gstream) SvDetachSpeakerFromStream(gstream, playerid);
}
public OnPlayerConnect(playerid)
{
// Checking for plugin availability
if (SvGetVersion(playerid) == SV_NULL)
{
SendClientMessage(playerid, -1, "Could not find plugin sampvoice.");
}
// Checking for a microphone
else if (SvHasMicro(playerid) == SV_FALSE)
{
SendClientMessage(playerid, -1, "The microphone could not be found.");
}
// Create a local stream with an audibility distance of 40.0, an unlimited number of listeners
// and the name 'Local' (the name 'Local' will be displayed in red in the players' speakerlist)
else if (lstream[playerid] = SvCreateDLStreamAtPlayer(40.0, SV_INFINITY, playerid, 0xff0000ff, "Local"))
{
SendClientMessage(playerid, -1, "Press Z to talk to global chat and B to talk to local chat.");
// Attach the player to the global stream as a listener
if (gstream) SvAttachListenerToStream(gstream, playerid);
// Assign microphone activation keys to the player
SvAddKey(playerid, 0x42);
SvAddKey(playerid, 0x5A);
}
}
public OnPlayerDisconnect(playerid, reason)
{
// Removing the player's local stream after disconnecting
if (lstream[playerid])
{
SvDeleteStream(lstream[playerid]);
lstream[playerid] = SV_NULL;
}
}
public OnGameModeInit()
{
// Uncomment the line to enable debug mode
// SvDebug(SV_TRUE);
gstream = SvCreateGStream(0xffff0000, "Global");
}
public OnGameModeExit()
{
if (gstream) SvDeleteStream(gstream);
}
Exemplo do código modificado:
Código: #include <sampvoice>
new SV_LSTREAM:lstream[MAX_PLAYERS] = { SV_NULL, ... };
/*
The public OnPlayerActivationKeyPress and OnPlayerActivationKeyRelease
are needed in order to redirect the player's audio traffic to the
corresponding streams when the corresponding keys are pressed.
*/
public SV_VOID:OnPlayerActivationKeyPress(SV_UINT:playerid, SV_UINT:keyid)
{
// Attach player to local stream as speaker if 'B' key is pressed
if (keyid == 0x42 && lstream[playerid]) SvAttachSpeakerToStream(lstream[playerid], playerid);
}
public SV_VOID:OnPlayerActivationKeyRelease(SV_UINT:playerid, SV_UINT:keyid)
{
// Detach the player from the local stream if the 'B' key is released
if (keyid == 0x42 && lstream[playerid]) SvDetachSpeakerFromStream(lstream[playerid], playerid);
}
public OnPlayerSpawn(playerid)
{
// Checking for plugin availability
if (SvGetVersion(playerid) == SV_NULL)
{
SendClientMessage(playerid, -1, "Could not find plugin sampvoice.");
}
// Checking for a microphone
else if (SvHasMicro(playerid) == SV_FALSE)
{
SendClientMessage(playerid, -1, "The microphone could not be found.");
}
// Create a local stream with an audibility distance of 40.0, an unlimited number of listeners
// and the name 'Local' (the name 'Local' will be displayed in red in the players' speakerlist)
else
{
lstream[playerid] = SvCreateDLStreamAtPlayer(40.0, SV_INFINITY, playerid, 0xff0000ff, "Local");
SendClientMessage(playerid, -1, "Press B to talk to local chat.");
// Assign microphone activation keys to the player
SvAddKey(playerid, 0x42);
}
}
public OnPlayerDisconnect(playerid, reason)
{
// Removing the player's local stream after disconnecting
if (lstream[playerid])
{
SvDeleteStream(lstream[playerid]);
lstream[playerid] = SV_NULL;
}
}
public OnGameModeInit()
{
// Uncomment the line to enable debug mode
// SvDebug(SV_TRUE);
}
Plugin: https://github.com/CyberMor/sampvoice Alguém encontrou uma solução? aparentemente tudo funciona, mas ocorre o mesmo(não sai som e nem aparece o nome verde de quem está falando)
Código: public SV_VOID:OnPlayerActivationKeyPress(SV_UINT:playerid, SV_UINT:keyid)
{
if(keyid == 0x42 && lstream[playerid])
{
SendClientMessage(playerid, COR_FOREVER, "[VOIP] testando pressionar");
if(PlayerInfo[playerid][VOIPautorizado] == 0)
{
SendClientMessage(playerid, azulzin, "[VOIP] testando AUTORIZADO == 0");
}
if(PlayerInfo[playerid][VOIPautorizado] == 1)
{
SendClientMessage(playerid, azulzin, "[VOIP] testando AUTORIZADO == 1");
if(PlayerInfo[playerid][VOIPbloqueado] == 0)
{
SendClientMessage(playerid, azulzin, "[VOIP] BLOQUEADO == 0");
SvAttachSpeakerToStream(lstream[playerid], playerid); //local
}
}
}
}
pelo que percebi nenhum sendclientmessage aparece quando pressionado a tecla 'B'
O icone do microfonezinho chega a "brilhar" como se estivesse realmente conversando porém nenhum som é enviado e muito menos essas mensagens.
RE: Problema com sampvoice - bllkgs - 19/05/2022
não queria ter que abrir outro tópico
@up
RE: Problema com sampvoice - CannabiS_MoChavaO - 01/05/2023
triste o quanto é dificil encontrar soluções no mundo do desenvolvimento samp, 3 4 anos e ainda o mesmo problema aparentemente sem resposta
RE: Problema com sampvoice - xbruno1000x - 01/05/2023
(01/05/2023 05:26)CannabiS_MoChavaO Escreveu: triste o quanto é dificil encontrar soluções no mundo do desenvolvimento samp, 3 4 anos e ainda o mesmo problema aparentemente sem resposta
O plugin SampVoice foi descontinuado, o autor é que não oferece suporte ao mesmo. Não temos culpa do plugin ser todo problemático.
|