[Release]VOIP custom Settings

Page 1 of 2 12 LastLast
Results 1 to 25 of 41
  1. #1
    Account Upgraded | Title Enabled! jonnybravo is offline
    MemberRank
    Sep 2006 Join Date
    773Posts

    [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....
    Last edited by jonnybravo; 10-02-14 at 02:01 PM.


  2. #2
    Alpha Member javaz97 is offline
    MemberRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    Re: [Release]VOIP custom Settings

    thank you

  3. #3
    m70b1jr#9501 m70b1jr is offline
    MemberRank
    May 2013 Join Date
    North CarolinaLocation
    862Posts

    Re: [Release]VOIP custom Settings

    work DNC?

  4. #4
    Account Upgraded | Title Enabled! Poster13 is offline
    MemberRank
    Jun 2013 Join Date
    395Posts

    Re: [Release]VOIP custom Settings

    Thank you Jonny)

  5. #5
    French Guy :D skyone is offline
    MemberRank
    Nov 2013 Join Date
    254Posts

    Re: [Release]VOIP custom Settings

    this, fix the volume bug ?

  6. #6
    Account Upgraded | Title Enabled! Cryptopia is offline
    MemberRank
    Oct 2013 Join Date
    HelveteLocation
    289Posts

    Re: [Release]VOIP custom Settings

    Quote Originally Posted by skyone View Post
    this, fix the volume bug ?
    yes

    and thank you jonnybravo for sharing this!

  7. #7
    Apprentice faceofdevil is offline
    MemberRank
    Nov 2006 Join Date
    19Posts

    Re: [Release]VOIP custom Settings

    um make sure that r_voip_volume is inside your gamesettings.ini folder and this works for me...

  8. #8
    Account Upgraded | Title Enabled! Poster13 is offline
    MemberRank
    Jun 2013 Join Date
    395Posts

    Re: [Release]VOIP custom Settings

    Quote Originally Posted by javaz97 View Post
    cant up volume in config
    work fine.

  9. #9
    Alpha Member javaz97 is offline
    MemberRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    Re: [Release]VOIP custom Settings

    need delete "C:\Users\your_name\Documents\Arktos\WarZ\gameSettings.ini"

    and auto re-create

  10. #10
    Member crysis55 is offline
    MemberRank
    Apr 2013 Join Date
    RussiaLocation
    80Posts

    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

  11. #11
    French Guy :D skyone is offline
    MemberRank
    Nov 2013 Join Date
    254Posts

    Re: [Release]VOIP custom Settings

    Quote Originally Posted by crysis55 View Post
    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 //
    Last edited by skyone; 11-02-14 at 05:59 PM.

  12. #12
    failed in javascript ItzFdr is offline
    MemberRank
    May 2013 Join Date
    BrasilLocation
    293Posts

    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

  13. #13
    Alpha Member javaz97 is offline
    MemberRank
    May 2006 Join Date
    HellLocation
    1,537Posts

    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

  14. #14
    French Guy :D skyone is offline
    MemberRank
    Nov 2013 Join Date
    254Posts

    Re: [Release]VOIP custom Settings

    Quote Originally Posted by m70b1jr View Post
    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

  15. #15
    m70b1jr#9501 m70b1jr is offline
    MemberRank
    May 2013 Join Date
    North CarolinaLocation
    862Posts

    Re: [Release]VOIP custom Settings

    Quote Originally Posted by skyone View Post
    me everything works, go skype I'll help you :p
    Thanks man, i love you.

  16. #16
    French Guy :D skyone is offline
    MemberRank
    Nov 2013 Join Date
    254Posts

    Re: [Release]VOIP custom Settings

    Quote Originally Posted by m70b1jr View Post
    Thanks man, i love you.
    no problem dude :D

  17. #17
    French Guy :D skyone is offline
    MemberRank
    Nov 2013 Join Date
    254Posts

    Re: [Release]VOIP custom Settings

    Quote Originally Posted by fhansiwadon View Post
    how to increase range VOIP i can speak 24 m?
    open warz.sln and search this

    float dist = (gCam - tplr->GetPosition()).Length();
    Now you see this

    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)

    if (dist > 200.0f && tplr->CurLoadout.isVoipShow && tplr != gClientLogic().localPlayer_)

  18. #18
    Proficient Member Gabirieu is offline
    MemberRank
    Oct 2013 Join Date
    .localhost/hue/Location
    155Posts

    Re: [Release]VOIP custom Settings

    whats the VOIP?

  19. #19
    Proficient Member JohnzBallad is offline
    MemberRank
    Jan 2014 Join Date
    Rio de JaneiroLocation
    175Posts

    Re: [Release]VOIP custom Settings

    This works with the RageZone Community Edition "Source"? And thanks for share with us.

  20. #20
    My Status --> LukasCCB is offline
    MemberRank
    Apr 2013 Join Date
    CracolandiaLocation
    1,190Posts

    Re: [Release]VOIP custom Settings

    @Gabirieu VOIP is Voice, TeamSpeak communication!
    Last edited by LukasCCB; 17-05-16 at 08:17 PM. Reason: Fix problem!

  21. #21
    Enthusiast italofialho is offline
    MemberRank
    Apr 2014 Join Date
    40Posts

    Re: [Release]VOIP custom Settings

    You could resolve this error ?

    - - - Updated - - -

    Quote Originally Posted by lukasccb View Post
    Help please

    Use WarZTH V2 By Yuri-BR

    You could resolve this error ?

  22. #22
    Valued Member Doky is offline
    MemberRank
    Oct 2014 Join Date
    BrazilLocation
    127Posts

    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);

  23. #23
    My Status --> LukasCCB is offline
    MemberRank
    Apr 2013 Join Date
    CracolandiaLocation
    1,190Posts

    Re: [Release]VOIP custom Settings

    Quote Originally Posted by Doky View Post
    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!!!
    Last edited by LukasCCB; 17-05-16 at 07:53 PM. Reason: I'm sorry, bad language

  24. #24
    Valued Member Doky is offline
    MemberRank
    Oct 2014 Join Date
    BrazilLocation
    127Posts

    Re: [Release]VOIP custom Settings

    Quote Originally Posted by lukasccb View Post
    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);

  25. #25
    Member patipakdeeying is offline
    MemberRank
    Sep 2014 Join Date
    Muang Surin, SuLocation
    53Posts

    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



Page 1 of 2 12 LastLast

Advertisement