Junior Spellweaver
- Joined
- Jan 5, 2015
- Messages
- 173
- Reaction score
- 194
Sometimes developers may need to join game without using launcher/binarys and for some reason we cant use studio :glare:
here is the tutorial mode for make game non-launcher acsessable on sometimes
First of all search on Main.cpp
Add below
Change the code to
Go to FrontEndWarZ.cpp and search
Change
Search on Main.cpp
Change code to
Search on Config.cpp
Under
Change code
Open Vars.h add this code front of page
delete the old ones on the same file
After this modifications if you are opened testmodes you can join game with game exe , remember add your login information to local.ini
here is the tutorial mode for make game non-launcher acsessable on sometimes
First of all search on Main.cpp
Code:
void r3dInitShaders();
Add below
Code:
bool testmode = false;
Code:
MessageBox(NULL, "Please run WarZ launcher.", g_szApplicationName, MB_OK);
Change the code to
Code:
win::hWinIcon = ::LoadIcon(win::hInstance, MAKEINTRESOURCE(IDI_WARZ));
if(strstr(__r3dCmdLine, "-WOUpdatedOK") == NULL && strstr(__r3dCmdLine, "-gna") == NULL && testmode == false) //burakdatlife no-login test
{
MessageBox(NULL, "Please run WarZ launcher.", g_szApplicationName, MB_OK);
ExitProcess(0);
}
Go to FrontEndWarZ.cpp and search
Code:
r3dError("you should set login as d_login <user> d_password <pwd> in local.ini");
Change
Code:
//#ifndef FINAL_BUILD burakdatlife no-login if(Login_PassedUser[0] == 0 || Login_PassedPwd[0] == 0)
{
r3dscpy(Login_PassedUser, d_login->GetString());
r3dscpy(Login_PassedPwd, d_password->GetString());
if(strlen(Login_PassedUser)<2 || strlen(Login_PassedPwd)<2)
{
r3dError("you should set login as d_login <user> d_password <pwd> in local.ini");
// programmers only can do this:
//r3dError("you should set login as '-login <user> -pwd <pwd> in command line");
}
}
//#endif
Search on Main.cpp
Code:
static void DoExecIni( const char* Path )
Change code to
Code:
static void DoExecIni( const char* Path ){
ExecVarIni( Path );
// always override game settings ini with "local" ini
if(strstr(__r3dCmdLine, "-WOUpdatedOK") == NULL && strstr(__r3dCmdLine, "-gna") == NULL && testmode == true) //burakdatlife no-login test
{
ExecVarIni( "local.ini" );
ExecVarIni("voip.ini");
}
else
{
ExecVarIni( "" );
}
}
Search on Config.cpp
Under
Code:
#undef REG_VAR_C
Change code
Code:
bool testmode = false; if(testmode == true)
{
ExecVarIni( "game.ini" );
ExecVarIni( "local.ini" );
}
else
{
ExecVarIni( "1" );
ExecVarIni( "1" );
}
Open Vars.h add this code front of page
Code:
REG_VAR( d_login, "", 0 );
REG_VAR( d_password, "", 0 );
delete the old ones on the same file
After this modifications if you are opened testmodes you can join game with game exe , remember add your login information to local.ini