Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can someone tell me what's wrong? #151

Open
Walter-Correa opened this issue Aug 4, 2024 · 1 comment
Open

Can someone tell me what's wrong? #151

Walter-Correa opened this issue Aug 4, 2024 · 1 comment

Comments

@Walter-Correa
Copy link
Contributor

Walter-Correa commented Aug 4, 2024

This is the first time I'm going to use SAMP VOICE and I installed version 4.2 on my server and the Samp client R1-R3, but no one can hear or speak anything.

I press F11 and everything is ok, my microphone is configured correctly.

I press X or Z and the microphone icon turns yellow, but no one can hear me or anyone else.

I'll post how everything is configured:

1 - Samp R1 installed and the sv_client_037_r1.zip files all in the main GTA folder.

2 - Server running on a VPS.

3 - Sampvoice plugin added after pawnraknet:
plugins crashdetect samp-precise-timers YSF streamer sscanf pawncmd mysql discord-connector pawnraknet GPS sampvoice

4 - Files unchanged in the main server folder: control.cfg, voice.cfg, sampvoice.exe and sampvoice.out.

5 - Include sampvoice.inc properly included in game mode.

6 - The script I'm using:

#define GLOBAL_CHANNEL 0
#define LOCAL_CHANNEL 1

new SV_UINT:ServerVoiceStream = SV_NONE;

enum PlayerVars {SV_UINT:VoiceStream};
new PlayerVar[MAX_PLAYERS][PlayerVars];

ServerVoiceStream = SvCreateStream();//OnGameModeInit();

PlayerVar[playerid][VoiceStream] = SV_NONE;//When the player connect

stock CheckPlayerVoice(playerid) //Called when the player spawns
{
	 if(ServerVoiceStream != SV_NONE)
	 {
		if(SvGetVersion(playerid) && SvHasMicro(playerid))
        	{
            		SvSetKey(playerid, 0x5A, GLOBAL_CHANNEL); // Z key
            		SvAttachStream(playerid, ServerVoiceStream, GLOBAL_CHANNEL);
           		SvAttachListener(ServerVoiceStream, playerid);
           		SvSetIcon(ServerVoiceStream, "speaker");
            
    			if((PlayerVar[playerid][VoiceStream] = SvCreateStream(30.0)) != SV_NONE)
    			{
        			SvSetKey(playerid, 0x58, LOCAL_CHANNEL);//X key
        			SvAttachStream(playerid, PlayerVar[playerid][VoiceStream], LOCAL_CHANNEL);
        			SvSetTarget(PlayerVar[playerid][VoiceStream], SvMakePlayer(playerid));
        			SvSetIcon(PlayerVar[playerid][VoiceStream], "speaker");
      
       				SendClientMessage(playerid, -1, "Press X to talk to local chat.");
			}
		}
    	}
	return 1;
}

7 - Server_log.txt:

[12:34:26]  Loading plugin: sampvoice
[12:34:26] [dbg:raknet:initialize] module initializing...
[12:34:26] [dbg:raknet:initialize] module initialized
[12:34:26]  -------------------------------------------    
[12:34:26]    ___                __   __    _              
[12:34:26]   / __| __ _ _ __  _ _\ \ / /__ (_) __ ___    
[12:34:26]   \__ \/ _` | '  \| '_ \   / _ \| |/ _/ -_)
[12:34:26]   |___/\__,_|_|_|_| .__/\_/\___/|_|\__\___|
[12:34:26]                   |_|                           
[12:34:26]  -------------------------------------------    
[12:34:26]            SampVoice by MOR loaded              
[12:34:26]  -------------------------------------------    
[12:34:26]   Loaded.

8 - Control.txt:

03.08.2024](10:11:52) [dbg:raknet:deinitialize] module releasing...
[03.08.2024](10:11:52) [dbg:raknet:deinitialize] module released
[03.08.2024](10:11:59) [dbg:raknet:initialize] module initializing...
[03.08.2024](10:11:59) [dbg:raknet:initialize] module initialized
[03.08.2024](10:11:59)  -------------------------------------------    
[03.08.2024](10:11:59)    ___                __   __    _              
[03.08.2024](10:11:59)   / __| __ _ _ __  _ _\ \ / /__ (_) __ ___    
[03.08.2024](10:11:59)   \__ \/ _` | '  \| '_ \   / _ \| |/ _/ -_)
[03.08.2024](10:11:59)   |___/\__,_|_|_|_| .__/\_/\___/|_|\__\___|
[03.08.2024](10:11:59)                   |_|                           
[03.08.2024](10:11:59)  -------------------------------------------    
[03.08.2024](10:11:59)            SampVoice by MOR loaded              
[03.08.2024](10:11:59)  ------------------------------------------- 

9 - Documents\GTA San Andreas User Files\sampvoice\svlog.txt:

[04.08.2024](17:22:16) [dbg:render:initialize] module initializing...
[04.08.2024](17:22:16) [dbg:render:initialize] module initialized
[04.08.2024](17:22:16) [dbg:samp:initialize] module initializing...
[04.08.2024](17:22:16) [dbg:samp:initialize] module initialized
[04.08.2024](17:22:16) [dbg:raknet:initialize] module initializing...
[04.08.2024](17:22:16) [dbg:raknet:initialize] finded rakclient interface offset (value:0x3C9)
[04.08.2024](17:22:16) [dbg:raknet:initialize] module initialized
[04.08.2024](17:22:16) [sv:dbg:listener:initialize] module initializing...
[04.08.2024](17:22:16) [sv:dbg:listener:initialize] module initialized
[04.08.2024](17:22:16) [dbg:render:hookdirect3dcreate9] intercepted instance (ptr:01CD5950) of IDirect3D9
[04.08.2024](17:22:16) [dbg:render:hookdirect3dcreate9] pointer successfully replaced from orig (ptr:01CD5950) to hook (ptr:01CD5F10)
[04.08.2024](17:22:16) [dbg:render:hookdirect3dcreate9] intercepted instance (ptr:01CD62B0) of IDirect3D9
[04.08.2024](17:22:16) [dbg:render:hookdirect3dcreate9] pointer successfully replaced from orig (ptr:01CD62B0) to hook (ptr:01CD67A0)
[04.08.2024](17:22:18) [dbg:render:direct] device interface (ptr:01CD6C10) success created with hwnd (value:1442800) windowed (value:0) screenwidth (value:1920) screenheight (value:1080)
[04.08.2024](17:22:18) [dbg:render:direct] pointer successfully replaced from orig (ptr:01CD6C10) to hook (ptr:0E2F86E8)
[04.08.2024](17:22:29) [sv:dbg:listener:load] module loading...
[04.08.2024](17:22:29) [sv:err:listener:load] failed to set 'BASS_CONFIG_UNICODE' parameter (code:37)
[04.08.2024](17:22:29) [sv:dbg:listener:load] hooked function BASS_Init(device:-1, frequency:44100, flags:0x0, window:0x0, dsguid:0x0)...
[04.08.2024](17:22:29) [sv:dbg:listener:load] calling function BASS_Init(device:-1, frequency:48000, flags:0x6, window:0x0, dsguid:0x0)...
[04.08.2024](17:22:29) [sv:dbg:listener:load] volume(1.00)
[04.08.2024](17:22:29) [sv:dbg:listener:load] module loaded
[04.08.2024](17:22:29) [dbg:raknet:load] module loading...
[04.08.2024](17:22:29) [dbg:raknet:load] module loaded
[04.08.2024](17:22:29) [dbg:samp:load] module loading...
[04.08.2024](17:22:29) [dbg:samp:load] module loaded
[04.08.2024](17:22:29) [dbg:raknet:client:connect] connecting to game server 'XX.XX.XX.XX:7777'...
[04.08.2024](17:22:29) [dbg:raknet:client:connect] connected
[04.08.2024](17:22:31) [sv:dbg:ClientInitialize] host(XX.XX.XX.XX), port(2020), key(0x7F145790), id(0)
[04.08.2024](17:22:31) [sv:dbg:speaker:initialize] module initializing...
[04.08.2024](17:22:31) [sv:dbg:speaker:initialize] device detect [ id(0) enabled(1) loopback(0) name(Default) type(0x5000000) ]
[04.08.2024](17:22:31) [sv:dbg:speaker:initialize] device detect [ id(1) enabled(1) loopback(0) name(Grupo de microfones (Tecnologia Intel  Smart Sound para microfones digitais)) type(0x5000000) ]
[04.08.2024](17:22:31) [sv:dbg:speaker:initialize] device detect [ id(2) enabled(1) loopback(0) name(Headset Microphone (Realtek(R) Audio)) type(0x5000000) ]
[04.08.2024](17:22:31) [sv:dbg:speaker:initialize] device detect [ id(3) enabled(1) loopback(1) name(Speaker (Realtek(R) Audio)) type(0x2000000) ]
[04.08.2024](17:22:31) [sv:dbg:speaker:initialize] device detect [ id(4) enabled(1) loopback(1) name(Headphone (Realtek(R) Audio)) type(0x4000000) ]
[04.08.2024](17:22:31) [sv:dbg:speaker:initialize] module initialized
[04.08.2024](17:22:41) [sv:dbg:SpeakerSetKey] channels(0x80000000), key(0x5A)
[04.08.2024](17:22:41) [sv:dbg:SpeakerActiveChannels] channels(0x80000000)
[04.08.2024](17:22:41) [sv:dbg:StreamCreate] stream(0), distance(0.00)
[04.08.2024](17:22:41) [sv:dbg:StreamSetIcon] stream(0), icon(speaker)
[04.08.2024](17:22:41) [sv:dbg:SpeakerSetKey] channels(0x40000000), key(0x58)
[04.08.2024](17:22:41) [sv:dbg:SpeakerActiveChannels] channels(0xC0000000)

Screenshot_2

Am I missing something?

@Walter-Correa
Copy link
Contributor Author

Solved! It was necessary to run the sampvoice.exe manually! A more detailed installation tutorial is missing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant