Дата: Понедельник, 15.04.2013, 16:27 | Сообщение # 2
Группа: Проверенные
Сообщений: 24
Как запустить / компилировать WarZ Студи. / редактор карт.
Это краткое руководство с тем, как я это сделал. Это собирается быть быстрым и не полностью исчерпывающим. 1. Скачать исходники + bins 2. Скачать Visual Studio 2008 3. Скачать Sp1 4. Скачать исправление 5. Установка Visual Studio 2008 SP1, то затем применить исправление. 6. Импорт vssettings (кредитные DNC) Инструменты> Импорт> 7. Извлечение источника C: \ поэтому его полный путь, как C: \ Shared \ InstallableFiles \ Warz \ bin и так далее. 8. Открыть C: \ Shared \ InstallableFiles \ Warz \ bin \ SRC \ EclipseStudio \ WarZ.sln 9. ПостройПерейти к C: \ Shared \ InstallableFiles \ Warz \ bin \ бин и копию Studio.exe в C: \ Shared \ InstallableFiles \ Warz \ Bin 10. Выполнить Studio.exe и выберите редактор уровней. Вот и все.
CkHttpResponse* resp = http.SynchronousRequest("api1.thewarinc.com", 443, true, req); .....further on down...... // overwrite server behavior - he'll connect to different API IIS server
if(stricmp(g_api_ip->GetString(), "localhost") != 0) { r3dOutToLog("*** OVERRIDING API TO LA-GAME2\n"); extern int gDomainPort; extern bool gDomainUseSSL;
\src\Eternity\Source\r3dDebug.cpp Line 133 Support Email address
Код
r3dOutToLog("\n!!!Crash!!!\nPlease send '%s' to support@thewarz.com \nThank you.", miniDumpPath); // hide window, hopefully will work in fullscreen ShowWindow(win::hWnd, SW_FORCEMINIMIZE);
// show message box to user char tempStr[2048]; sprintf(tempStr, "Application crashed.\nPlease send '%s' and r3dLog.txt (in install folder of the game) to support@thewarz.com along with description of what you were doing at the time of crash.\nThank you and sorry for inconvenience.", miniDumpPath); MessageBox(0, tempStr, "Crash", MB_OK);
\src\Eternity\Source\r3dDebug.cpp Line 260 CrashRpt settings.
Код
// use wide versino of structure, as pszLangFilePath *require* full path by some reasons CR_INSTALL_INFOW info; memset(&info, 0, sizeof(CR_INSTALL_INFOW)); info.cb = sizeof(CR_INSTALL_INFOW); #ifdef FINAL_BUILD info.pszAppName = L"WarZ"; #else info.pszAppName = L"Studio"; #endif info.pszAppVersion = L"1.0"; info.pszEmailTo = NULL;
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;
\src\Eternity\SF\Console\Vars.h Line 396 Vars.h is options available that can be changed in game.ini / local.ini.
Код
REG_VAR( g_serverip, "66.180.197.56", 0 ); // 66.180.197.56 - IP of dev server where we host dev master\supervisor REG_VAR( g_api_ip, "api1.thewarinc.com", 0);
bin\server\MasterServer\Sources\MasterGameServer.cpp Line 797 Doing something different when running as localhost.
Код
// minor hack: if we're running in local test mode, skip items updating extern int gDomainPort; if(gDomainPort == 55016 || stricmp(g_api_ip->GetString(), "localhost") == 0) { itemsDbUpdateFlag_ = ITEMSDBUPDATE_Processing; // put it in permanent wait state return; }
bin\server\MasterServer\Sources\MasterUserServer.cpp Line 523 Hard coded customerID checks.
Код
bool isAdmin = false; if(CustomerID == 1281646178 || // sagor CustomerID == 1288125909 || // sousuke CustomerID == 1288144549 || // cvance CustomerID == 1288629751 || // wertyuiop CustomerID == 1288188971 || // piki CustomerID == 1288686686 // kewk ) { // do not check password for GM, we allow GMs to enter any game isAdmin = true; }
// mark that we reported it HKEY hKey; int hr; hr = RegCreateKeyEx(HKEY_CURRENT_USER, "Software\\Arktos Entertainment Group\\WarZ", 0, NULL, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hKey, NULL);
src\RSUpdate\main.cpp Line 821 Web address for getting new serial.
Код
// get new serial button if(insideRect(g_rGetNewKeyBtn, g_mx, g_my)) { g_imBtnGetNewKey->draw(g_rGetNewKeyBtn.left, g_rGetNewKeyBtn.top, g_rGetNewKeyBtn.width, g_rGetNewKeyBtn.height, clr); if(g_mb) { ShellExecute(NULL, "open", "http://www.thewarz.com/buy?ref=WarE", "", NULL, SW_SHOW); } }
src\RSUpdate\main.cpp Line 896 Another web address for getting new serial.
Код
// get new serial button if(insideRect(g_rGetSerialBtn, g_mx, g_my)) { g_imBtnGetSerial->draw(g_rGetSerialBtn.left, g_rGetSerialBtn.top, g_rGetSerialBtn.width, g_rGetSerialBtn.height, clr); if(g_mb) { ShellExecute(NULL, "open", "http://www.thewarz.com/buy?ref=WarL", "", NULL, SW_SHOW); } }
src\RSUpdate\main.cpp Line 969 Web address for forgot password.
src\RSUpdate\Updater.cpp Line 1097 Login result messages.
Код
switch(gUserProfile.loginAnswerCode) { default: case CLoginHelper::ANS_Timeout: case CLoginHelper::ANS_Error: loginErrMsg_ = "Login failed, please try again later"; break;
case CLoginHelper::ANS_BadPassword: loginErrMsg_ = "Invalid username or password"; break;
case CLoginHelper::ANS_GameActive: loginErrMsg_ = "Game session active, try later"; break;
case CLoginHelper::ANS_Frozen: { loginErrMsg_ = "Your account has been temporarily frozen";
// SessionID holds ban time int hours = (gUserProfile.SessionID / 60) + 1; char buf[512]; sprintf(buf, "Your account has been temporarily frozen because of violation of the Terms of Service ( Paragraph 2 )\n\nYou will be able to continue to use the service in %d hours", hours); MessageBox(NULL, buf, "Login", MB_OK | MB_ICONEXCLAMATION); break; }
case CLoginHelper::ANS_Banned: loginErrMsg_ = "Your account has been permanently banned"; MessageBox(NULL, "Your account has been permanently banned", "Login", MB_OK | MB_ICONSTOP); break;
case CLoginHelper::ANS_TimeExpired: loginErrMsg_ = "Your guest game play time is expired"; status_ = STATUS_TimeExpired; break;
case CLoginHelper::ANS_Deleted: loginErrMsg_ = "ACCOUNT DELETED"; MessageBox(NULL, "Your account was deleted because your payment was refunded or cancelled\n\nPlease contact your payment provider", "Account Deleted", MB_OK | MB_ICONEXCLAMATION); break;
char BASE_RESOURSE_NAME[512] = "WZ"; char GAME_EXE_NAME[512] = "WarZ.exe"; char GAME_TITLE[512] = "The War Z";
// updater (xml and exe) and game info on our server. char UPDATE_DATA_URL[512] = "https://api1.thewarinc.com/wz/wz.xml"; // url for data update char UPDATE_UPDATER_URL[512] = "https://api1.thewarinc.com/wz/updater/woupd.xml";
DirectX Software Development Kit: http://download.microsoft.com/download/A/E/7/AE743F1F-632B-4809-87A9-AA1BB3458E31/DXSDK_Jun10.exe
Бин и исходные файлы WARZ (отдельное спасибо DNC настроить, Fixxing Включает и пополнять его) http://forum.ragezone.com/f790/release-uploaded-fully-configured-compiling-923567/
База данных для размещения файлов (ИДК, который загрузил его) https://mega.co.nz/ #!r9Z31CCS!GU7H91Z4VTgmjvOQC8WGdlPunjVofAYiXpY5iQmU5Y4
RipGhost, как насчёт продолжить работу в данной теме? Есть новые анимации для ходьбы, для зомби. Новая версия Колорадо 2.0. Новая растительность. Новая графика. Примеры сайто в и т.д. Авось и соберём полноценную команду) despaironline.ipb.su - территория выживания