-
[Release]VOIP custom Settings
This lets you custom the voip settings rather than be hardcoded
find HUD_TPSGame.cpp
Code:
r3dOutToLog("Using identity: %s\n", identity);
below it add:
Code:
char _voip_serverip[MAX_PATH];
char _voip_defaultChannelPassword[MAX_PATH];
char _voip_serverPassword[MAX_PATH];
r_voipserverip->SetString(""); //voip server IP
r_voipserverport->GetInt();// voip port
r_voipdefaultChannelPassword->SetString(""); //voip Default Channel Password
r_voipserverPassword->SetString(""); //voip Server Password
r3dscpy(_voip_serverip, r_voipserverip->GetString());
r3dscpy(_voip_defaultChannelPassword, r_voipdefaultChannelPassword->GetString());
r3dscpy(_voip_serverPassword, r_voipserverPassword->GetString());
ts3client_startConnection(1, identity, _voip_serverip,r_voipserverport->GetInt(), plr3msg, NULL, _voip_defaultChannelPassword, _voip_serverPassword);
go to Vars.h find:
Code:
REG_VAR(r_voip, true, VF_SAVE);
add below it:
Code:
REG_VAR(r_voipserverPassword, "", 0);
REG_VAR(r_voipdefaultChannelPassword, "", 0);
REG_VAR(r_voipserverip, "127.0.0.1", 0);
REG_VAR(r_voipserverport, 9987, 0);
create a voip.ini save this data in it...
Code:
r_voipserverip 127.0.0.1
r_voipserverport 9987
r_voipdefaultChannelPassword
r_voipserverPassword
now able to custom you voip setttings and server.
now to fix the voip volume...
find: eventOptionsVoipApply and replace it with this
Code:
void FrontendWarZ::eventOptionsVoipApply(r3dScaleformMovie* pMovie, const Scaleform::GFx::Value* args, unsigned argCount)
{
r3d_assert(args);
r3d_assert(argCount == 5);
r_voip->SetInt((int)args[0].GetNumber());
r_voipShowBall->SetInt((int)args[1].GetNumber());
r_voipPlayBack->SetInt((int)args[2].GetNumber());
r_voipCapture->SetInt((int)args[3].GetNumber());
r_voip_volume->SetFloat(R3D_CLAMP((float)args[4].GetNumber(), 0.0f, 1.0f));
SetNeedUpdateSettings();
SyncGraphicsUI();
// write to ini file
writeGameOptionsFile();
}
find in frontendwarz.cpp
Code:
if(s_comm_volume->GetFloat() < s_comm_volume->GetMinVal() || s_comm_volume->GetFloat() > s_comm_volume->GetMaxVal())
s_comm_volume->SetFloat(1.0f);
below it add:
Code:
if (r_voip_volume->GetFloat() < r_voip_volume->GetMinVal() || r_voip_volume->GetFloat() > r_voip_volume->GetMaxVal())
r_voip_volume->SetFloat(1.0f);
go to Vars.h find:
Code:
REG_VAR(r_voipShowBall, true, VF_SAVE);
add below it:
Code:
REG_VAR_C(r_voip_volume, 1.f, 0.0f, 1.0f, VF_SAVE | VF_CONSTRAINT);
find:
Code:
ExecVarIni( "local.ini" );
below it add:
Code:
ExecVarIni("voip.ini");
find:
Code:
Scaleform::GFx::Value vars[5];
vars[0].SetNumber(r_voip->GetBool());
vars[1].SetNumber(r_voipShowBall->GetBool());
vars[2].SetNumber(r_voipPlayBack->GetInt());
vars[3].SetNumber(r_voipCapture->GetInt());
vars[4].SetNumber(0.0f);
gfxMovie.Invoke("_root.api.setVoipOptions", vars, 5);
replace it with:
Code:
Scaleform::GFx::Value vars[5];
vars[0].SetNumber(r_voip->GetBool());
vars[1].SetNumber(r_voipShowBall->GetBool());
vars[2].SetNumber(r_voipPlayBack->GetInt());
vars[3].SetNumber(r_voipCapture->GetInt());
vars[4].SetNumber(r_voip_volume->GetFloat());
gfxMovie.Invoke("_root.api.setVoipOptions", vars, 5);
enjoy and a thankyou please
credits to: aomsin2526 for the ts3 functions....
-
Re: [Release]VOIP custom Settings
-
Re: [Release]VOIP custom Settings
-
Re: [Release]VOIP custom Settings
-
Re: [Release]VOIP custom Settings
this, fix the volume bug ?
-
Re: [Release]VOIP custom Settings
Quote:
Originally Posted by
skyone
this, fix the volume bug ?
yes
and thank you jonnybravo for sharing this!
-
Re: [Release]VOIP custom Settings
um make sure that r_voip_volume is inside your gamesettings.ini folder and this works for me...
-
Re: [Release]VOIP custom Settings
Quote:
Originally Posted by
javaz97
cant up volume in config
work fine.
-
Re: [Release]VOIP custom Settings
need delete "C:\Users\your_name\Documents\Arktos\WarZ\gameSettings.ini"
and auto re-create
-
Re: [Release]VOIP custom Settings
Work good for me, I rebuild warz.sln, delete settings folder, and when I change volume in voip settings(main menu) volume value change in gamesettings.ini
-
Re: [Release]VOIP custom Settings
Quote:
Originally Posted by
crysis55
Work good for me, I rebuild warz.sln, delete settings folder, and when I change volume in voip settings(main menu) volume value change in gamesettings.ini
// EDIT
Problem fixed //
-
Re: [Release]VOIP custom Settings
You dont need to create "voip.ini" file, only search for this : ExecVarIni( "local.ini" );
and add above:
ExecVarIni( "voip.ini" );
r_voipserverip->SetString("127.0.0.1");
r_voipserverport->SetString("9987");
r_voipdefaultChannelPassword->SetString("");
r_voipserverPassword->SetString("");
Work 100%, i have tested, and work for me xD
-
Re: [Release]VOIP custom Settings
Code:
static void DoExecIni( const char* Path )
{
ExecVarIni( Path );
// always override game settings ini with "local" ini
#ifndef FINAL_BUILD
ExecVarIni( "local.ini" );
ExecVarIni("voip.ini");
#else
ExecVarIni( "" );
#endif
}
wrong or right
-
Re: [Release]VOIP custom Settings
Quote:
Originally Posted by
m70b1jr
Not work, failed to connect to Voice server (ingame)
But i can connect to the server through teamspeak.
me everything works, go skype I'll help you :p
-
Re: [Release]VOIP custom Settings
Quote:
Originally Posted by
skyone
me everything works, go skype I'll help you :p
Thanks man, i love you.
-
Re: [Release]VOIP custom Settings
Quote:
Originally Posted by
m70b1jr
Thanks man, i love you.
no problem dude :D
-
Re: [Release]VOIP custom Settings
Quote:
Originally Posted by
fhansiwadon
how to increase range VOIP i can speak 24 m?
open warz.sln and search this
Quote:
float dist = (gCam - tplr->GetPosition()).Length();
Now you see this
Quote:
float dist = (gCam - tplr->GetPosition()).Length();
if (dist > 200.0f && tplr->CurLoadout.isVoipShow && tplr != gClientLogic().localPlayer_)
{
tplr->CurLoadout.isVoipShow = false;
char plrUserName[64]; tplr->GetUserName(plrUserName);
hudMain->removeVoip(plrUserName,plrUserName);
}
}
change this line (200 is the distance)
Quote:
if (dist > 200.0f && tplr->CurLoadout.isVoipShow && tplr != gClientLogic().localPlayer_)
-
Re: [Release]VOIP custom Settings
-
Re: [Release]VOIP custom Settings
This works with the RageZone Community Edition "Source"? And thanks for share with us.
-
Re: [Release]VOIP custom Settings
@Gabirieu VOIP is Voice, TeamSpeak communication!
-
Re: [Release]VOIP custom Settings
You could resolve this error ?
- - - Updated - - -
Quote:
Originally Posted by
lukasccb
You could resolve this error ?
-
Re: [Release]VOIP custom Settings
OverZ source error in
plr3msg and identity
ts3client_startConnection(1, identity, _voip_serverip,r_voipserverport->GetInt(), plr3msg, NULL, _voip_defaultChannelPassword, _voip_serverPassword);
-
Re: [Release]VOIP custom Settings
Quote:
Originally Posted by
Doky
OverZ source error in
plr3msg and identity
ts3client_startConnection(1, identity, _voip_serverip,r_voipserverport->GetInt(), plr3msg, NULL, _voip_defaultChannelPassword, _voip_serverPassword);
OverZ no is identity try use m_identity
From plr3msg try change for VIRTUALSERVER_WELCOMEMESSAGE
Not tested!!!
-
Re: [Release]VOIP custom Settings
Quote:
Originally Posted by
lukasccb
OverZ no is identity try use m_identity
From plr3msg try change for VIRTUALSERVER_WELCOMEMESSAGE
Not teste!!!
ohh thanks :O Working!
Now error is just
Code:
Error 1 error C2664: 'ts3client_startConnection' : cannot convert parameter 2 from 'std::string' to 'const char *' c:\WarZ\src\EclipseStudio\Sources\TeamSpeakClient.cpp 524 Eclipse Studio
Code:
ts3client_startConnection(1, m_identity, _voip_serverip,r_voipserverport->GetInt(), VIRTUALSERVER_WELCOMEMESSAGE, NULL, _voip_defaultChannelPassword, _voip_serverPassword);
-
Re: [Release]VOIP custom Settings
i use codex TheLiciaZ source , i can't found r_voip but i found only g_voip , what shoude i do
-
Re: [Release]VOIP custom Settings
Quote:
Originally Posted by
patipakdeeying
i use codex TheLiciaZ source , i can't found r_voip but i found only g_voip , what shoude i do
this release for v2 thailand sources.
edit some functions by urself
-
Re: [Release]VOIP custom Settings
i try, now error is just
Quote:
Error 1 error C2664: 'ts3client_startConnection' : cannot convert parameter 2 from 'std::string' to 'const char *' c:\WarZ\src\EclipseStudio\Sources\TeamSpeakClient.cpp 524 Eclipse Studio
SS : http://www.mx7.com/i/adf/FZGRVD.pnghttp://www.mx7.com/i/adf/FZGRVD.png
what shoude i do,
-
Re: [Release]VOIP custom Settings
@patipakdeeying
Code:
const char * v_identity = identity.c_str();
ts3client_startConnection(1, v_identity, _voip_serverip,r_voipserverport->GetInt(), plr3msg, NULL, _voip_defaultChannelPassword, _voip_serverPassword);
should fix your problem.
@Doky
change it to this:
Code:
const char * v_identity = m_identity.c_str();
ts3client_startConnection(1, v_identity, _voip_serverip,r_voipserverport->GetInt(), VIRTUALSERVER_WELCOMEMESSAGE, NULL, _voip_defaultChannelPassword, _voip_serverPassword);
-
Re: [Release]VOIP custom Settings
@jonnybravo thank you bro <3
one doubt, I have to make a TeamSpeak 3 server on my dedicated or do not need? this IP and port, password that is there in the code, it is already by default, for example, if I want to place 155.167.bla.bla it works?
OverZ Source
-
Re: [Release]VOIP custom Settings
still error ,
Quote:
Error 1 error C2065: 'identity' : undeclared identifier e:\wz server\src\EclipseStudio\Sources\TeamSpeakClient.cpp 521 Eclipse Studio
Quote:
Error 2 error C2228: left of '.c_str' must have class/struct/union e:\wz server\src\EclipseStudio\Sources\TeamSpeakClient.cpp 521 Eclipse Studio
Quote:
Error 3 error C2065: 'plr3msg' : undeclared identifier e:\wz server\src\EclipseStudio\Sources\TeamSpeakClient.cpp 522 Eclipse Studio
SS : http://www.mx7.com/i/bbd/RlfkpB.png
Please Help me , thank you sir
http://www.mx7.com/i/bbd/RlfkpB.png
-
Re: [Release]VOIP custom Settings
lol. It literally says what's wrong.
identity and plr3msg doesn't exist.
+ Don't come now and say: How to fix.
-
Re: [Release]VOIP custom Settings
@jonnybravo
OverZ Source
My error
Your code
const char * v_identity = m_identity.c_str();
ts3client_startConnection(1, v_identity, _voip_serverip,r_voipserverport->GetInt(), VIRTUALSERVER_WELCOMEMESSAGE, NULL, _voip_defaultChannelPassword, _voip_serverPassword);
Error 1 error C2664: 'ts3client_startConnection' : cannot convert parameter 5 from 'VirtualServerProperties' to 'const char *' c:\WarZ\src\EclipseStudio\Sources\TeamSpeakClient.cpp 527 Eclipse Studio
-
Re: [Release]VOIP custom Settings
paste me what this is?
VIRTUALSERVER_WELCOMEMESSAGE
-
Re: [Release]VOIP custom Settings
Quote:
Originally Posted by
jonnybravo
paste me what this is?
VIRTUALSERVER_WELCOMEMESSAGE
I do not know, I copied your code, using novasource.
error in plrmsg
-
Re: [Release]VOIP custom Settings
pastebin your teamspeakclient.cpp
also should learn how to code or the basics before you try.
Code:
| unsigned int ts3client_startConnection( |
serverConnectionHandlerID, |
|
|
identity, |
|
|
ip, |
|
|
port, |
|
|
nickname, |
|
|
defaultChannelArray, |
|
|
defaultChannelPassword, |
|
|
serverPassword); |
|
uint64 serverConnectionHandlerID;
const char* identity;
const char* ip;
unsigned int port;
const char* nickname;
const char** defaultChannelArray;
const char* defaultChannelPassword;
const char* serverPassword;
- serverConnectionHandlerID
Unique identifier for this server connection. Created with ts3client_spawnNewServerConnectionHandler - identity
The clients identity. This string has to be created by calling ts3client_createIdentity. Please note an application should create the identity only once, store the string locally and reuse it for future connections. - ip
Hostname or IP of the TeamSpeak 3 server.
If you pass a hostname instead of an IP, the Client Lib will try to resolve it to an IP, but the function may block for an unusually long period of time while resolving is taking place. If you are relying on the function to return quickly, we recommend to resolve the hostname yourself (e.g. asynchronously) and then call ts3client_startConnection with the IP instead of the hostname. - port
UDP port of the TeamSpeak 3 server, by default 9987. TeamSpeak 3 uses UDP. Support for TCP might be added in the future. - nickname
On login, the client attempts to take this nickname on the connected server. Note this is not necessarily the actually assigned nickname, as the server can modifiy the nickname ("gandalf_1" instead the requested "gandalf") or refuse blocked names. - defaultChannelArray
String array defining the path to a channel on the TeamSpeak 3 server. If the channel exists and the user has sufficient rights and supplies the correct password if required, the channel will be joined on login.
To define the path to a subchannel of arbitrary level, create an array of channel names detailing the position of the default channel (e.g. "grandparent", "parent", "mydefault", ""). The array is terminated with a empty string.
Pass NULL to join the servers default channel. - defaultChannelPassword
Password for the default channel. Pass an empty string if no password is required or no default channel is specified. - serverPassword
Password for the server. Pass an empty string if the server does not require a password.
All strings need to be encoded in UTF-8 format.
-
Re: [Release]VOIP custom Settings
-
Re: [Release]VOIP custom Settings
@Doky Remove the stuff you added to startup() its not needed there it gets called somewhere else.
This Voip stuff was for a old version of Warz (ALPHA)
remove it complie should be all set.
-
Re: [Release]VOIP custom Settings
Quote:
Originally Posted by
lukasccb
@
Gabirieu VOIP is Voice, TeamSpeak communication!
yeah, i know, I forgotten =D
-
Re: [Release]VOIP custom Settings
Thanks, hopefully works, will try it out
-
Re: [Release]VOIP custom Settings
-
Re: [Release]VOIP custom Settings
Quote:
Originally Posted by
djmelo
Souce v3 working?
V3 It already contains voip !