[Release] WarZTH v2 Full Source Code

Anyone that already have the problem WO_API http timeout know how to solve ? I have this problem 3 day's and i dont have any ideia now how to solve this. (Is in this src)


This src in DB Logins have WOADMIN and WZADMIN ? its because i just have wz_api_user

to fix "WO_API: http timeout"

try create a self signed certificate and configure the connections of api

or change port 443 to 80 in configurations of api

search for:
Code:
const char*    gDomainBaseUrl= "/WarZ/api/";
int        gDomainPort   = [COLOR=#ff0000]443[/COLOR]; // PAX_BUILD - change to 80 and no SSL
bool        gDomainUseSSL = [COLOR=#ff0000]true[/COLOR];

change to:
Code:
const char*    gDomainBaseUrl= "/WarZ/api/";
int        gDomainPort   = [COLOR=#ff0000]80[/COLOR]; // PAX_BUILD - change to 80 and no SSL
bool        gDomainUseSSL = [COLOR=#FF0000]false[/COLOR];
 
Last edited:
I can not find how to correct the error Http 405 :

000000.576| WOApi: api_GetShop1.aspx NETWORK time: 0.1002000000.577| WO_API: returned http405
000000.577| GetShopData FAILED, code: 8
000000.578| Reading game rewards
000000.581| WOApi: api_GetDataGameRewards.aspx NETWORK time: 0.0018
000000.581| WO_API: returned http405
000000.581| ApiGetDataGameRewards FAILED, code: 8



Is good ? :
Yuri-BR - [Release] WarZTH v2 Full Source Code - RaGEZONE Forums
 
WO_API: returned http405 FIXED , missing ASP ... fixed by : http://forum.ragezone.com/f792/help-error-failed-game-rewards-977647/

New error :

WOApi: api_GetShop1.aspx NETWORK time: 16.0328000016.378| WO_API: failed with error code 5 SQL Connect failed
000016.378| GetShopData FAILED, code: 5
000016.378| Reading game rewards
000016.381| WOApi: api_GetDataGameRewards.aspx NETWORK time: 0.0021
000016.381| WO_API: failed with error code 5 SQL Connect failed
000016.382| ApiGetDataGameRewards FAILED, code: 5
000016.382| !!! ERROR: failed to get game rewards
000016.382| !!! crashed
000016.382| Creating minidump at logss\GS_100000551a0dc.dmp
000016.499| Minidump created.

Yuri-BR - [Release] WarZTH v2 Full Source Code - RaGEZONE Forums


web.cfg:
<add name="dbConnectionString" connectionString="Server=**myIP**,1433;Database=WarZ;User ID=wz_api_user;Password=**PASSWORD**;Trusted_Connection=False;" providerName="System.Data.SqlClient"/>


dbinfo.inc :

$db_user = "wz_api_user"; $db_pass = "**PASSWORD**";
$db_dbname = "WarZ";


$db_serverName = "**MI IP **,1433";

Help me please , Thanks
 
Last edited:
000000.000| Input Devices enabled: Mouse, Keyboard
000000.032| VMEM As seen through DDRaw: 978
000000.032| VMEM As seen through WMI: 0
000000.042| We have 2748 MB texture memory
000000.042| r3dFont: Creating Verdana 10pt
000000.043| r3dFont: Finished creating Verdana 10pt
000000.043| r3dFont: Creating Tahoma 12pt
000000.044| r3dFont: Finished creating Tahoma 12pt
000000.044| r3dFont: Creating Tahoma 10pt
000000.044| r3dFont: Finished creating Tahoma 10pt
000000.044| r3dFont: Creating Tahoma 9pt
000000.044| r3dFont: Finished creating Tahoma 9pt
000000.291| Starting updater, v:3.1.6, cmd:
000000.291| Checking for new updater
000000.299| Checking for new updater - finished
000004.153| WO_API: returned http500
000004.154| Login FAILED, code: 8
000006.811| Requested to stop, 0 files in queue
000006.811| CUpdater::Stop()

Help pls
 
000000.000| Input Devices enabled: Mouse, Keyboard
000000.032| VMEM As seen through DDRaw: 978
000000.032| VMEM As seen through WMI: 0
000000.042| We have 2748 MB texture memory
000000.042| r3dFont: Creating Verdana 10pt
000000.043| r3dFont: Finished creating Verdana 10pt
000000.043| r3dFont: Creating Tahoma 12pt
000000.044| r3dFont: Finished creating Tahoma 12pt
000000.044| r3dFont: Creating Tahoma 10pt
000000.044| r3dFont: Finished creating Tahoma 10pt
000000.044| r3dFont: Creating Tahoma 9pt
000000.044| r3dFont: Finished creating Tahoma 9pt
000000.291| Starting updater, v:3.1.6, cmd:
000000.291| Checking for new updater
000000.299| Checking for new updater - finished
000004.153| WO_API: returned http500
000004.154| Login FAILED, code: 8

000006.811| Requested to stop, 0 files in queue
000006.811| CUpdater::Stop()

Help pls

For HTTP Errors code:


404: You put in the wrong folder address, or it's not there anymore.
500: You either have messed up your settings, or you don't have directory browsing enabled.


/*
WO API error codes:
0: operation Ok
1: session not valid (disconnected)
5: php<->SQL error
6: SQL parameters error
7: SQL logic error (not enough money, etc)
8: http connection
9: http output error
*/


http://forum.ragezone.com/f791/tutorial-fix-api-errors-972586/
 
Last edited:
For the people saying the premium dont work etc, the Premium for me work 100% (Chaning in DB) and (Buying in-game).
 
how about backpack change in inventory?
nuifx the backpack change in inventory works... the problem is the name and slots still the same backpack before you change to another backpack but its very normal and it works... but if you want see the backpack you want to switch you just relog you will see the name and slots.
 
Registration on the website throws, and I have no website. How to fix it?



Code:
//***************
    // Manual Config
    //***************
    serialBuyURL = "http://88.87.70.19/buy?ref=WarL";
    serialExpiredBuyURL = "http://88.87.70.19/buy?ref=WarE";

    accountForgotPasswordURL = "http://88.87.70.19/redirect.php?page=forgotpassword";
    accountRegisterURL = "http://88.87.70.19/redirect.php?page=register";
 
Last edited:
Registration on the website throws, and I have no website. How to fix it?



Code:
//***************
    // Manual Config
    //***************
    serialBuyURL = "http://88.87.70.19/buy?ref=WarL";
    serialExpiredBuyURL = "http://88.87.70.19/buy?ref=WarE";

    accountForgotPasswordURL = "http://88.87.70.19/redirect.php?page=forgotpassword";
    accountRegisterURL = "http://88.87.70.19/redirect.php?page=register";

not need configure it :)
 

Code:
000002.386| ComputerID: 0x6acf74cf6f11
000002.386| Game Version: WarZTH (build: Nov  1 2014 15:58:37) - final
000002.386| Available memory: 8154 MB
000002.411| r3dFS: version:November 1, 2014 13:10, 38862 files
000002.504| Can't open file "1"
000002.504| Can't open file "1"
000002.504| readGameOptionsFile: found INI at C:\Users\admin\Documents\Arktos\WarZ\gameSettings.ini
000002.505| writeGameOptionsFile: Saving settings to C:\Users\admin\Documents\Arktos\WarZ\gameSettings.ini
000002.510| readInputMap: found file at C:\Users\admin\Documents\Arktos\WarZ\inputMap.xml
000002.511| writeInputMap: Saving settings to C:\Users\admin\Documents\Arktos\WarZ\inputMap.xml
000002.512| userSettings: found file at C:\Users\admin\Documents\Arktos\WarZ\userSettings.xml
000002.512| userSettings: Saving settings to C:\Users\admin\Documents\Arktos\WarZ\userSettings.xml
000002.513| InitSounds
000002.513| SOUND: initializing sound system
000002.533| SOUND: '2' sound drivers found
000002.533| SOUND: sound caps = 0xF8, speakermode= 2
000002.533| SOUND: sound driver 'SONY TV-4 (NVIDIA High Definition Audio)'
000002.546| SOUND: sound system ready
000002.546| FMOD: LoadSoundEffects: Loading from Data\Sounds\Sounds.fev
000003.309| Input Devices enabled: Mouse, Keyboard
000003.672| VMEM As seen through DDRaw: 1989
000003.672| VMEM As seen through WMI: 0
000003.672| Setting mode:  1920x1080x32 Flags=4
000003.696| NVApi successfuly initialized.
000003.696| NVApi: stereo is not available. Stereo driver not installed?
000003.696|  Adapter: NVIDIA GeForce GTX 660  
000003.696|   nvd3dum.dll 9.18.13.4448
000003.696|  Monitor: \\.\DISPLAY1 (1920x1080)
000003.744|  res adjusted 1920x1080->1914x1052
000003.744|  r3dRenderLayer::SetMode(x=1914,y=1052,bpp=32,windowed=4,hz=60)
000003.746|  Creating d3d device
000003.767|  NVApi: failed to create stereo handle!
000003.767|  GPU supports D3DQUERYTYPE_TIMESTAMP
000003.767|  GPU supports D3DQUERYTYPE_TIMESTAMPFREQ
000003.767|  D3D hack support = NullRT: 1, hwPCF: 1, IntZ: 1, ResZ: 0
000003.768|  We have 4030 MB texture memory
000003.769|  r3dFont: Creating Verdana 10pt
000003.770|  r3dFont: Finished creating Verdana 10pt
000003.771| Loading shaders...
000004.091| Finished loading shaders (0.319990 sec)!
000004.099| r3dFont: Creating Tahoma 12pt
000004.100| r3dFont: Finished creating Tahoma 12pt
000004.100| r3dFont: Creating Verdana 10pt
000004.100| r3dFont: Finished creating Verdana 10pt
000004.135| Creating render targets
000004.139| r3dFont: Creating Verdana 8pt
000004.143| r3dFont: Finished creating Verdana 8pt
000004.148| Loaded 12 of 12 grass settings locations from the glist file
000004.149| Loaded 12 grass settings files
000004.223| WEAPON ERROR: Pecheneg trying to load non existent sound event Sounds/NewWeapons/LightMachineGun/Pecheneg_single
000004.223| WEAPON ERROR: Benelli M1 trying to load non existent sound event Sounds/NewWeapons/Shotgun/Mossberg_auto
000004.224| WEAPON ERROR: Beretta 1201 trying to load non existent sound event Sounds/NewWeapons/Shotgun/Mossberg_auto
000004.224| WEAPON ERROR: Spas12 trying to load non existent sound event Sounds/NewWeapons/Shotgun/Mossberg_auto
000004.224| WEAPON ERROR: Satchel Charge trying to load non existent sound event Sounds/Weapons/AK74_7_62_Shot_single
000004.225| WEAPON ERROR: SAIGA ELITE trying to load non existent sound event Sounds/Weapons/AK74_7_62_Shot_single
000004.225| WEAPON ERROR: SAIGA ELITE trying to load non existent sound event Sounds/Weapons/AK74_7_62_Shot_auto
000005.463| SetHomeDir: Levels\WZ_FrontEndLighting
000005.463| We have 3850 MB texture memory
000005.496| Loading 'Levels\WZ_FrontEndLighting/LevelSettings.xml'
000005.568| Unloaded 0.0 MB STATIC decal textures
000005.568| Unloaded 0.0 MB DYNAMIC decal textures
000005.568| Loading decal library Data\Decals\library.xml.
000005.569| Loading decal library Levels\WZ_FrontEndLighting\decals.xml.
000005.569| Loaded 0.0 MB STATIC decal textures
000005.593| Loaded 3.3 MB DYNAMIC decal textures
000005.593| LoadLevel_MatLibs...
000005.593| LoadLevel_Objects...
000005.603| GetD3DTexFormatSize, unknown format: 113
000005.603| GetD3DTexFormatSize, unknown format: 113
000005.603| GetD3DTexFormatSize, unknown format: 113
000005.603| GetD3DTexFormatSize, unknown format: 113
000005.603| GetD3DTexFormatSize, unknown format: 113
000005.603| GetD3DTexFormatSize, unknown format: 113
000005.603| GetD3DTexFormatSize, unknown format: 113
000005.603| GetD3DTexFormatSize, unknown format: 113
000006.180| LoadGrassLib()...
000006.241| g_pGrassMap->Load...
000006.242| LoadLevel_MatLibs...
000006.242| Building skeleton cache..000006.267| Building obstacles cache..000006.267| done.000006.267| Loading 'Levels\WZ_FrontEndLighting\collections\collections.xml'
000006.267| COLLECTIONS: Could not open 'Levels\WZ_FrontEndLighting\collections\elements.bin'
000006.267| World loaded
000006.268| Total load time: 0.78
000007.976| AnimCSV: MEL_UNARMED is not in game, remove it
000008.077| AnimCSV: Item_repairKit_01 is not in game, remove it
000008.078| AnimCSV: Item_repairKit_Premium_01 is not in game, remove it
000008.080| AnimCSV: Item_bandage_Improvised is not in game, remove it
000008.358| AnimCSV: SMG_Kedr is not in game, remove it
000008.360| AnimCSV: SMG_MP5A4_Vet is not in game, remove it
000008.361| AnimCSV: SMG_P90_Vet is not in game, remove it
000008.363| AnimCSV: SMG_ScorpionEVO3_Elite is not in game, remove it
000008.445| AnimCSV: SUP_M202Flash_Vet is not in game, remove it
000008.479| AnimCSV: SUP_RPO is not in game, remove it
000008.480| AnimCSV: SUP_RPO_Elite is not in game, remove it
000008.547| r3dMesh::Load(): Can't load 'data/objectsdepot/characters/constructionman_bodyfps_01.sco' or 'data/objectsdepot/characters/constructionman_bodyfps_01.scb', file doesn't exist
 (Loading mesh data/objectsdepot/characters/constructionman_bodyfps_01.sco)
000008.547| r3dMesh::Load(): Can't load 'data/objectsdepot/characters/constructionman_legs_01.sco' or 'data/objectsdepot/characters/constructionman_legs_01.scb', file doesn't exist
 (Loading mesh data/objectsdepot/characters/constructionman_legs_01.sco)
000008.547| ASSERT at file .\Sources\ObjectsCode\WEAPONS\HeroConfig.cpp, line 21: index>=0 && index<(int)m_HeadMeshes.size()
 
Last edited:
make sure that the file has Light_Flashlight.dds in directory C:\WarZ\Bin\Data\Shaders\TEXTURE

I have got the same problem and the Light_Flashlight.dds file still in the TEXTURE Directory. Have you solved the problem?
 
Back