First of all, if you are going to read this thread completely, thank you.
Basically I've been trying to set up a server for approximately over a month now. I've restarted from scratch more than 3 times now, and I thought this fourth time I got it... nope! Getting a HTTP timeout. So here I am, asking you guys for help.
By the way, I know some things are double (eg. Vars.h), but I just opened every .sln file and posted all the tabs I used. Also; if you need anything more from me, please... tell me!
My API: http://dadapi.nazuka.net/
Server --> Bin --> Bin --> Build --> data
Spoiler:wz.xmlSpoiler:<p> <d ver="891032110" base="http://dadapi.nazuka.net/wz/wz351C122E0" inc="http://dadapi.nazuka.net/wz/wz351C122E"/>
</p>
Server --> Bin --> Bin --> Build --> updater
Spoiler:api_getserverinfo.xmlSpoiler:<info><news>
<news name="Up and running!" url="http://dayafterdead.comlu.com/forum/showthread.php?tid=2" date="05.23.2013"/>
<news name="Game is almost ready!" url="http://dayafterdead.comlu.com/forum/showthread.php?tid=3" date="05.24.2013"/>
</news>
<SurveyIn link=""/>
<SurveyOut link=""/>
<ServerInfo status="ONLINE"/>
</info>
Spoiler:Launcher.cfgSpoiler:[Launcher]serialBuyURL = Day after Dead: The Survivor MMO Zombie Game coming to you soon!
serialExpiredBuyURL = Day after Dead: The Survivor MMO Zombie Game coming to you soon!
accountForgotPasswordURL = Web hosting, domain names, VPS - 000webhost.com(I AM AWARE THIS LINK IS NOT WORKING)
myAccountURL = Day after Dead Forums
forumsURL = Day after Dead Forums
supportURL = Day after Dead Forums
youtubeURL = youtube.com/user/LaenoarPlayZ
facebookURL = https://www.facebook.com/pages/Dayaf...58628284318927
twitterURL = https://twitter.com/day_after_dead
accountUnknownStatusMessage = Unknown account status
accountDeletedMessage = Your account was deleted because your payment was refunded or cancelled\n\nPlease contact your payment provider
accountBannedMessage = Your account has been permanently banned
accountFrozenMessage = Your account has been temporarily frozen\n\nYou will be able to continue to use the service in %d hours
accountCreateFailedMessage = Account creation failed, please try again later
accountCreateEmailTakenMessage = There is already registered account with that email!\nPlease note that you must use unique email per The War Z account
accountCreateInvalidSerialMessage = Serial Key is not valid after Serial Key Check
webAPIDomainIP = Index of /api
webAPIDomainBaseUrl = /Site/
webAPIDomainPort = 21
webAPIDomainUseSSL = 0
tosURL = http://dadapi.nazuka.net/rules/TOS.rtf
eulaURL = http://dadapi.nazuka.net/rules/EULA.rtf
updateLauncherDataHostURL = Index of /wz/updater
updateGameDataURL = http://dadapi.nazuka.net/wz/wz.xml
updateLauncherDataURL = http://dadapi.nazuka.net/wz/updater/woupd.xml
serverInfoURL = http://dadapi.nazuka.net/wz/updater/...serverinfo.xml
Spoiler:woupd.xmlSpoiler:<p> <u url="http://dadapi.nazuka.net/wz/updater/WarZlauncher.exe_0.10_Alpha.exe" crc="1144145304" ver="0.10_Alpha" size="8350208"/>
</p>
Server --> bin --> build
Spoiler:RSBuild.xmlSpoiler:<build> <output dir="bin\build\data"/>
<cdn url="http://dadapi.nazuka.net/wz/"/>
<!-- set base archive for incremental update -->
<base file="bin\build\data\wz31381531"/>
<!-- include EULA file -->
<include mask="eula-en.htm"/>
<include mask="eula-en.rtf"/>
<!-- excludes for this package files (just in case they was created in this dir -->
<exclude mask="WZ_*.bin"/>
<!-- excludes for debug files -->
<exclude mask="r3dlog.txt"/>
<exclude mask="MasterServer_ccu.txt"/>
<exclude mask="*.pdb"/>
<exclude mask="*.exp"/>
<exclude mask="*.lib"/>
<exclude mask="*.bat"/>
<exclude mask="*.vmp"/>
<!-- excludes for other binaries -->
<exclude mask="Studio*.*"/>
<exclude mask="MasterServer.*"/>
<exclude mask="WZ_GameServer.*"/>
<exclude mask="SupervisorServer.*"/>
<exclude mask="RSBuild.*"/>
<exclude mask="RSUpdate.*"/>
<exclude mask="WZAdmin.*"/>
<exclude mask="WarZ_unpack.exe"/>
<exclude mask="*.log"/>
<exclude mask="*.suo"/>
<exclude mask="*.bat"/>
<exclude mask="gameSettings.ini"/>
<exclude mask="local.ini"/>
<exclude mask="windows_error_report_mapping.xml"/>
<exclude mask="Launcher.cfg"/>
<exclude mask="APEX_Common_Legacy_x86.dll"/>
<exclude mask="APEX_Common_LegacyCHECKED_x86.dll"/>
<exclude mask="APEX_Common_LegacyPROFILE_x86.dll"/>
<exclude mask="APEX_Destructible_Legacy_x86.dll"/>
<exclude mask="APEX_Destructible_LegacyCHECKED_x86.dll"/>
<exclude mask="APEX_Destructible_LegacyPROFILE_x86.dll"/>
<exclude mask="APEX_Destructible_x86.dll"/>
<exclude mask="APEX_DestructibleCHECKED_x86.dll"/>
<exclude mask="APEX_DestructiblePROFILE_x86.dll"/>
<exclude mask="APEX_Framework_Legacy_x86.dll"/>
<exclude mask="APEX_Framework_LegacyPROFILE_x86.dll"/>
<exclude mask="APEX_Framework_LegacyCHECKED_x86.dll"/>
<exclude mask="ApexFramework_x86.dll"/>
<exclude mask="ApexFrameworkCHECKED_x86.dll"/>
<exclude mask="ApexFrameworkPROFILE_x86.dll"/>
<exclude mask="avutil-50.dll"/>
<exclude mask="PhysX3CharacterKinematic_x86.dll"/>
<exclude mask="PhysX3CharacterKinematicCHECKED_x86.dll"/>
<exclude mask="PhysX3CharacterKinematicPROFILE_x86.dll"/>
<exclude mask="PhysX3CHECKED_x86.dll"/>
<exclude mask="PhysX3CommonCHECKED_x86.dll"/>
<exclude mask="PhysX3CommonPROFILE_x86.dll"/>
<exclude mask="PhysX3CookingCHECKED_x86.dll"/>
<exclude mask="PhysX3CookingPROFILE_x86.dll"/>
<exclude mask="PhysX3GpuCHECKED_x86.dll"/>
<exclude mask="PhysX3GpuPROFILE_x86.dll"/>
<!-- excludes for build directories -->
<exclude mask="1"/>
<exclude mask="build"/>
<exclude mask="logs"/>
<exclude mask="bin"/>
<exclude mask="server"/>
<exclude mask="tools"/>
<exclude mask="logs"/>
<exclude mask="logms"/>
<exclude mask="logss"/>
<exclude mask="logsv"/>
<include mask="ApexFramework_x86.dll"/>
<include mask="avcodec-52.dll"/>
<include mask="avformat-52.dlll"/>
<include mask="avutil-50.dll"/>
<include mask="CrashRpt1301.dll"/>
<include mask="cudart32_32_16.dll"/>
<include mask="dbghelp.dll"/>
<include mask="fmod_event.dll"/>
<include mask="fmod_event_net.dll"/>
<include mask="fmod_event_netL.dll"/>
<include mask="fmod_eventL.dll"/>
<include mask="fmodex.dll"/>
<include mask="fmoxedL.dll"/>
<include mask="icudt46.dll"/>
<include mask="PhysX3_x86.dll"/>
<include mask="PhysX3_Common_x86.dll"/>
<include mask="PhysX3Coooking_x86.dll"/>
<include mask="PhysX3Gpu_x86.dll"/>
<include mask="PhysX3PROFILE_x86.dll"/>
<include mask="steam_api.dll"/>
<include mask="VMProtectSDK32.dll"/>
</build>
Server --> bin --> server --> src --> WarZ_Server.sln
Spoiler:Vars.hSpoiler:REG_VAR( g_serverip, "192.168.178.14", 0 ); // 66.180.197.56 - IP of dev server where we host dev master\supervisor
REG_VAR( g_api_ip, "http://dadapi.nazuka.net", 0);
Spoiler:WOBackendAPI.cppSpoiler:#ifndef FINAL_BUILD // automatically switch to local site version
if(stricmp(g_api_ip->GetString(), "http://dadapi.nazuka.net/api") == 0)
{
gDomainBaseUrl= "/Site/";
gDomainPort = 21;
gDomainUseSSL = false;
}
Spoiler:3rdDebug.cppSpoiler:ifdef FINAL_BUILD info.pszAppName = L"WarZ";
#else
info.pszAppName = L"Studio";
#endif
info.pszAppVersion = L"1.0";
info.pszEmailTo = NULL;
info.pszUrl = L"http://dadapi.nazuka.net/api/Site/php/api_CrashRpt.php";
info.pszCrashSenderPath = NULL;
info.pfnCrashCallback = &r3dCrashRptCallback;
info.uPriorities[CR_HTTP] = 1;
info.uPriorities[CR_SMTP] = CR_NEGATIVE_PRIORITY; // skip it
info.uPriorities[CR_SMAPI] = CR_NEGATIVE_PRIORITY; // skip it
info.dwFlags |= CR_INST_ALL_EXCEPTION_HANDLERS;
info.dwFlags |= CR_INST_HTTP_BINARY_ENCODING;
info.dwFlags |= CR_INST_SEND_QUEUED_REPORTS;
//we should not restart app, as GNA using command line to pass login info
//info.dwFlags |= CR_INST_APP_RESTART;
//info.pszRestartCmdLine = __r3dCmdLine;
info.pszPrivacyPolicyURL = L"https://api1.thewarinc.com/PrivacyPolicy_WarZ.htm";
info.pszLangFilePath = langFile;
int res = crInstallW(&info);
if(res !=0)
{
// Something goes wrong. Get error message.
TCHAR szErrorMsg[512] = _T("");
crGetLastErrorMsg(szErrorMsg, 512);
r3dOutToLog(("%s\n"), szErrorMsg);
//return 1;
}
Server --> bin --> server --> src --> Scripts --> WZBackend-ASP.NET
Spoiler:php/dbinfo.inc.phpSpoiler:$db_apikey = "ACOR4823G%sjYU*@476xnDvYaK@!56"; function db_connect()
{
$db_user = "CANT TELL" (but I can connect using Microsoft SQL Server 2008 R2)
$db_pass = "CANT TELL"; (but I can connect using Microsoft SQL Server 2008 R2)
$db_dbname = "WarZ";
$db_serverName = "192.168.178.14,1433";
$db_connectionInfo = array(
"UID" => $db_user,
"PWD" => $db_pass,
"Database" => $db_dbname,
"CharacterSet" => "UTF-8"
//"ReturnDatesAsStrings" => true
);
Server --> bin --> src --> EclipseStudio --> WarZ.sln
Spoiler:r3dDebug.cppSpoiler:#endif info.pszAppVersion = L"1.0";
info.pszEmailTo = NULL;
info.pszUrl = L"http://dadapi.nazuka.net/api/Site/php/api_CrashRpt.php";
info.pszCrashSenderPath = NULL;
info.pfnCrashCallback = &r3dCrashRptCallback;
info.uPriorities[CR_HTTP] = 1;
info.uPriorities[CR_SMTP] = CR_NEGATIVE_PRIORITY; // skip it
info.uPriorities[CR_SMAPI] = CR_NEGATIVE_PRIORITY; // skip it
info.dwFlags |= CR_INST_ALL_EXCEPTION_HANDLERS;
info.dwFlags |= CR_INST_HTTP_BINARY_ENCODING;
info.dwFlags |= CR_INST_SEND_QUEUED_REPORTS;
//we should not restart app, as GNA using command line to pass login info
//info.dwFlags |= CR_INST_APP_RESTART;
//info.pszRestartCmdLine = __r3dCmdLine;
info.pszPrivacyPolicyURL = L"https://api1.thewarinc.com/PrivacyPolicy_WarZ.htm";
info.pszLangFilePath = langFile;
int res = crInstallW(&info);
if(res !=0)
{
// Something goes wrong. Get error message.
TCHAR szErrorMsg[512] = _T("");
crGetLastErrorMsg(szErrorMsg, 512);
r3dOutToLog(("%s\n"), szErrorMsg);
//return 1;
}
Spoiler:Main.cppSpoiler:#ifndef FINAL_BUILD
case Menu_AppSelect::bUpdateDB:
g_bEditMode = false;
UpdateDB("http://dadapi.nazuka.net/api/Site/", "Data/Weapons/itemsDB.xml");
MessageBox(0, "Successfully updated English DB!", "Result", MB_OK);
break;
#endif
case Menu_AppSelect::bStartGamePublic:
// override server settings if special key isn't set
if(strstr(__r3dCmdLine, "-ffgrtvzdf") == NULL)
{
// hardcoded IP for now
g_serverip->SetString("192.168.178.14");
}
// override API settings
g_api_ip->SetString("http://dadapi.nazuka.net");
case Menu_AppSelect::bStartGameSVN:
g_bEditMode = false;
ExecuteNetworkGame();
break;
Spoiler:WOBackendAPI.cppSpoiler:#ifndef FINAL_BUILD // automatically switch to local site version
if(stricmp(g_api_ip->GetString(), "http://dadapi.nazuka.net/api") == 0)
{
gDomainBaseUrl= "/Site/";
gDomainPort = 21;
gDomainUseSSL = false;
}
Spoiler:Vars.hSpoiler:REG_VAR( g_serverip, "192.168.178.14", 0 ); // 66.180.197.56 - IP of dev server where we host dev master\supervisor
REG_VAR( g_api_ip, "http://dadapi.nazuka.net", 0);
Server --> bin --> src --> Eternity --> Eternity.sln
Spoiler:Vars.hSpoiler:REG_VAR( g_serverip, "192.168.178.14", 0 ); // 66.180.197.56 - IP of dev server where we host dev master\supervisor
REG_VAR( g_api_ip, "http://dadapi.nazuka.net", 0);
Spoiler:r3dDebug.cppSpoiler:#endif info.pszAppVersion = L"1.0";
info.pszEmailTo = NULL;
info.pszUrl = L"http://dadapi.nazuka.net/api/Site/php/api_CrashRpt.php";
info.pszCrashSenderPath = NULL;
info.pfnCrashCallback = &r3dCrashRptCallback;
info.uPriorities[CR_HTTP] = 1;
info.uPriorities[CR_SMTP] = CR_NEGATIVE_PRIORITY; // skip it
info.uPriorities[CR_SMAPI] = CR_NEGATIVE_PRIORITY; // skip it
info.dwFlags |= CR_INST_ALL_EXCEPTION_HANDLERS;
info.dwFlags |= CR_INST_HTTP_BINARY_ENCODING;
info.dwFlags |= CR_INST_SEND_QUEUED_REPORTS;
//we should not restart app, as GNA using command line to pass login info
//info.dwFlags |= CR_INST_APP_RESTART;
//info.pszRestartCmdLine = __r3dCmdLine;
info.pszPrivacyPolicyURL = L"https://api1.thewarinc.com/PrivacyPolicy_WarZ.htm";
info.pszLangFilePath = langFile;
int res = crInstallW(&info);
if(res !=0)
{
// Something goes wrong. Get error message.
TCHAR szErrorMsg[512] = _T("");
crGetLastErrorMsg(szErrorMsg, 512);
r3dOutToLog(("%s\n"), szErrorMsg);
//return 1;
}
Server --> bin --> src --> RSBuild.sln
Spoiler:Vars.hSpoiler:REG_VAR( g_serverip, "192.168.178.14", 0 ); // 66.180.197.56 - IP of dev server where we host dev master\supervisor
REG_VAR( g_api_ip, "http://dadapi.nazuka.net", 0);
Spoiler:r3dDebug.cppSpoiler:#endif info.pszAppVersion = L"1.0";
info.pszEmailTo = NULL;
info.pszUrl = L"http://dadapi.nazuka.net/api/Site/php/api_CrashRpt.php";
info.pszCrashSenderPath = NULL;
info.pfnCrashCallback = &r3dCrashRptCallback;
info.uPriorities[CR_HTTP] = 1;
info.uPriorities[CR_SMTP] = CR_NEGATIVE_PRIORITY; // skip it
info.uPriorities[CR_SMAPI] = CR_NEGATIVE_PRIORITY; // skip it
info.dwFlags |= CR_INST_ALL_EXCEPTION_HANDLERS;
info.dwFlags |= CR_INST_HTTP_BINARY_ENCODING;
info.dwFlags |= CR_INST_SEND_QUEUED_REPORTS;
//we should not restart app, as GNA using command line to pass login info
//info.dwFlags |= CR_INST_APP_RESTART;
//info.pszRestartCmdLine = __r3dCmdLine;
info.pszPrivacyPolicyURL = L"https://api1.thewarinc.com/PrivacyPolicy_WarZ.htm";
info.pszLangFilePath = langFile;
int res = crInstallW(&info);
if(res !=0)
{
// Something goes wrong. Get error message.
TCHAR szErrorMsg[512] = _T("");
crGetLastErrorMsg(szErrorMsg, 512);
r3dOutToLog(("%s\n"), szErrorMsg);
//return 1;
}
Server --> bin --> src --> RSUpdate.sln
Spoiler:Vars.hSpoiler:REG_VAR( g_serverip, "192.168.178.14", 0 ); // 66.180.197.56 - IP of dev server where we host dev master\supervisor
REG_VAR( g_api_ip, "http://dadapi.nazuka.net", 0);
Spoiler:UPDATER_CONFIG.cppSpoiler:#include "r3dPCH.h"#include "r3d.h"
bool UPDATER_UPDATER_ENABLED = 1;
char UPDATER_VERSION[512] = "0.10_Alpha";
char UPDATER_VERSION_SUFFIX[512] = "";
char UPDATER_BUILD[512] = __DATE__ " " __TIME__;
char BASE_RESOURSE_NAME[512] = "WZ";
char GAME_EXE_NAME[512] = "DaD.exe";
char GAME_TITLE[512] = "Day after Dead";
// updater (xml and exe) and game info on our server.
char UPDATE_DATA_URL[512] = "http://dadapi.nazuka.net/wz/wz.xml"; // url for data update
char UPDATE_UPDATER_URL[512] = "http://dadapi.nazuka.net/wz/updater/woupd.xml";
// HIGHWIND CDN
char UPDATE_UPDATER_HOST[512] = "http://dadapi.nazuka.net/wz/updater/";
// LOCAL TESTING
//http://arktos.pandonetworks.com/Arktos
//char UPDATE_DATA_URL[512] = "http://dadapi.nazuka.net/wz/wz.xml"; // url for data update
//char UPDATE_UPDATER_HOST[512] = "http://dadapi.nazuka.net/wz/updater/"; // url for updater .xml
char EULA_URL[512] = "http://dadapi.nazuka.net/rules/EULA.rtf";
char TOS_URL[512] = "http://dadapi.nazuka.net/rules/TOS.rtf";
char GETSERVERINFO_URL[512] = "http://dadapi.nazuka.net/api/Site/api_getserverinfo.xml";
bool UPDATER_STEAM_ENABLED = false;
Spoiler:r3dDebug.cppSpoiler:#endif info.pszAppVersion = L"1.0";
info.pszEmailTo = NULL;
info.pszUrl = L"http://dadapi.nazuka.net/api/Site/php/api_CrashRpt.php";
info.pszCrashSenderPath = NULL;
info.pfnCrashCallback = &r3dCrashRptCallback;
info.uPriorities[CR_HTTP] = 1;
info.uPriorities[CR_SMTP] = CR_NEGATIVE_PRIORITY; // skip it
info.uPriorities[CR_SMAPI] = CR_NEGATIVE_PRIORITY; // skip it
info.dwFlags |= CR_INST_ALL_EXCEPTION_HANDLERS;
info.dwFlags |= CR_INST_HTTP_BINARY_ENCODING;
info.dwFlags |= CR_INST_SEND_QUEUED_REPORTS;
//we should not restart app, as GNA using command line to pass login info
//info.dwFlags |= CR_INST_APP_RESTART;
//info.pszRestartCmdLine = __r3dCmdLine;
info.pszPrivacyPolicyURL = L"https://api1.thewarinc.com/PrivacyPolicy_WarZ.htm";
info.pszLangFilePath = langFile;
int res = crInstallW(&info);
if(res !=0)
{
// Something goes wrong. Get error message.
TCHAR szErrorMsg[512] = _T("");
crGetLastErrorMsg(szErrorMsg, 512);
r3dOutToLog(("%s\n"), szErrorMsg);
//return 1;
}
Spoiler:WOBackendAPI.cppSpoiler:#ifndef FINAL_BUILD // automatically switch to local site version
if(stricmp(g_api_ip->GetString(), "http://dadapi.nazuka.net/api") == 0)
{
gDomainBaseUrl= "/Site/";
gDomainPort = 21;
gDomainUseSSL = false;
}
Server --> bin
Spoiler:MasterServer.cfgSpoiler:[MasterServer]masterport=34000
clientPort=34001
masterCCU=20
serverId=1
[WarZGames]
numGames = 1
maxPlayers = 64
[PermGame3]
map = MAPID_WZ_Colorado DOESNOTHING GBNET_REGION_US_West 0 0
data = 32 0 0
g_api_ip=http://dadapi.nazuka.net
Spoiler:SupervisorServer.cfgSpoiler:[SupervisorServer]
masterPort=34000
masterIp=192.168.178.14
serverGroup=1
serverName=WarZGames
maxPlayers=1024
maxGames=32
portStart=34010
gameServerExe=WZ_GameServer.exe
externalIp=192.168.178.14
masterIp=192.168.178.14
webAPIDomainIP=31.170.167.180 (I THINK it has to be this, because: http://gyazo.com/b2eaa6dd17d1aca7e813c7fc4edca24d.png)
uploadLogs=0
webAPIDomainBaseURL=/api/Site/
webAPIDomainPort=21
webAPIDomainUseSSL=0
webAPIServerKey=bvx425698dg6GsnxwedszF
Spoiler:game.iniSpoiler:d_walk_speed_scale 5
d_sun_rotate 0
r_near_plane 0.5
r_far_plane 64000
r_cloud_lod_start 9000
r_cloud_lod_end 15000
Spoiler:local.iniSpoiler:d_walk_speed_scale 5
d_sun_rotate 0
r_near_plane 0.5
r_far_plane 64000
r_cloud_lod_start 9000
r_cloud_lod_end 15000
Questions:
Do I need to change anything in here?
Server --> bin --> server --> src --> Scripts --> WZBackend-ASP.NET
Spoiler:App_Code/IPLocationCheck.csSpoiler:// exclude IP from checks if (strIpAddress.StartsWith("31.25.224.")) // Syncopate servers 31.25.224.0/22
return false;
else if (strIpAddress == "81.177.30.7")
return false;
else if (strIpAddress == "194.190.17.173") // Syncopate office
return false;
Do I need to change anything in here?
Server --> bin --> server --> src --> Scripts --> WZFirstDataPayment-ASP.NET
Spoiler:App_Code/SQLBase.csSpoiler:public class SQLBase
{
string server = "";
string user = "";
string pass = "";
string workdb = "";
SqlConnection conn_ = null;
public SQLBase(string in_user, string in_pass, string in_workdb)
{
server = "db1.thewarinc.com,11433";
user = in_user;
pass = in_pass;
workdb = in_workdb;
}
~SQLBase()
{
Disconnect();
}





