• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[Release] TheLiciaZ src - LATEST CODEX SRC FIXED

Joined
Apr 23, 2013
Messages
1,172
Reaction score
1,797
Masterserver.cfg


[Report]
ReportDir=C:\inetpub\WebInfestation\panel\


screenshot don't show in folder
C:\inetpub\WebInfestation\panel\


to operate the screenshot from panel.
do it.


WarZ_Server.sln


compile in DEBUG!


Search:


Code:
void        OnPKT_C2S_ScreenshotData(DWORD peerId, const int size, const char* data);


Change:


Code:
void        OnPKT_C2S_ScreenshotData(DWORD peerId, const int size, const char* data, const char* FoundPlayer);


Search:


Code:
void ServerGameLogic::OnPKT_C2S_ScreenshotData(DWORD peerId, const int size, const char* data)
{
    char    fname[MAX_PATH];
    char plrName[64]={0};


    const peerInfo_s& peer = GetPeer(peerId);
    if(peer.player == NULL) 
    {
        return;
    }
    else
    {
        //_mkdir("screenshots");
        sprintf(fname, "screenshots\\CID-%d_%s_%x.jpg", peer.player->profile_.CustomerID, peer.player->userName, GetTickCount());
    }


    r3dOutToLog("peer%02d received screenshot, fname:%s\n", peerId, fname);
    LogCheat(peerId, PKT_S2C_CheatWarning_s::CHEAT_D3DCHEAT, false, "Hack Detect or Send Report", "Screenshot na pasta!"); // d3d cheat


    FILE* f = fopen(fname, "wb");
    if(f == NULL) {
        LogInfo(peerId, "SaveScreenshot", "unable to save fname:%s", fname);
    }
    else
    {
        fwrite(data, 1, size, f);
        fclose(f);
    }


    peer.player->security_screenshotRequestSentAt = 10; // reset


/*#ifdef ENABLE_GAMEBLOCKS
    if(g_GameBlocks_Client && g_GameBlocks_Client->Connected())
    {
        GameBlocks::Event_PlayerScreenShotJpg_Send(g_GameBlocks_Client, g_GameBlocks_ServerID, GameBlocks::GBPublicPlayerId(uint32_t(peer.player->profile_.CustomerID)), data, size);
    }
#endif*/
    return;
}


Change:


Code:
void ServerGameLogic::OnPKT_C2S_ScreenshotData(DWORD peerId, const int size, const char* data, const char* FoundPlayer)
{
	char	fname[MAX_PATH];
	char test[512];


	const peerInfo_s& peer = GetPeer(peerId);


	int isFoundPlayer = 0;
	for(int i=0; i<MAX_NUM_PLAYERS; ++i)
	{
		obj_ServerPlayer* plr = gServerLogic.GetPlayer(i);


		sprintf(test,"%s",FoundPlayer);


		if(plr && strcmp(strupr(plr->loadout_->Gamertag),strupr(test)) == 0)
		{
			isFoundPlayer = plr->profile_.CustomerID;
			break;
		}
	}


	if (strcmp(FoundPlayer,"AnticheatSystemAuto") == 0)
		isFoundPlayer = 999;


	if (isFoundPlayer == 0)
		return;


	if(peer.player == NULL)
	{
		return;
	}
	else
	{
		const char* group      = "Report";


		if(_access(configFile, 0) != 0) {
			r3dError("can't open config file %s\n", configFile);
		}


		char ReportDir[512];
		r3dscpy(ReportDir,r3dReadCFG_S(configFile, group, "ReportDir", ".\\"));


		char Directory[512]="";
		sprintf(Directory,"%sReports\\%i\\",ReportDir,isFoundPlayer);
		_mkdir(Directory);


		time_t     t;
		time(&t);


		char Date[512];
		r3dscpy(Date,ctime(&t));
		Date[3]='_';
		Date[7]='_';
		Date[10]='_';
		Date[13]='_';
		Date[16]='_';
		Date[19]='_';


		sprintf(fname, "%sDate_%.24s_GameServer_%d_PlayerScreen_of_CID_%d_%x.jpg",Directory,Date,ginfo_.gameServerId,peer.player->profile_.CustomerID,GetTickCount());
		//sprintf(fname, "%sJPG_%d_%d_%d_%x.jpg",Directory,ginfo_.gameServerId, peer.player->profile_.CustomerID, peer.player->loadout_->LoadoutID, GetTickCount());
	}


	r3dOutToLog("peer%02d received screenshot, fname:%s\n", peerId, fname);


	FILE* f = fopen(fname, "wb");
	if(f == NULL) {
		LogInfo(peerId, "SaveScreenshot", "unable to save fname:%s", fname);
	}
	else
	{
		fwrite(data, 1, size, f);
		fclose(f);
	}


	peer.player->security_screenshotRequestSentAt = 0; // reset


/*#ifdef ENABLE_GAMEBLOCKS
	if(g_GameBlocks_Client && g_GameBlocks_Client->Connected())
	{
		GameBlocks::Event_PlayerScreenShotJpg_Send(g_GameBlocks_Client, g_GameBlocks_ServerID, GameBlocks::GBPublicPlayerId(uint32_t(peer.player->profile_.CustomerID)), data, size);
	}
#endif*/
	return;
}


Search:


Code:
OnPKT_C2S_ScreenshotData(peerId, n.dataSize, (char*)packetData + sizeof(n));


Change:


Code:
OnPKT_C2S_ScreenshotData(peerId, n.dataSize, (char*)packetData + sizeof(n), n.nickname);

Epg1nXb - [Release] TheLiciaZ src - LATEST CODEX SRC FIXED - RaGEZONE Forums


to7ec2b - [Release] TheLiciaZ src - LATEST CODEX SRC FIXED - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Last edited:
Newbie Spellweaver
Joined
Dec 28, 2014
Messages
5
Reaction score
0
What is default DB name??

Cannot restore DB!
 
Last edited:
Newbie Spellweaver
Joined
Aug 25, 2014
Messages
11
Reaction score
0
I will change my language , however .
obamabf2 - [Release] TheLiciaZ src - LATEST CODEX SRC FIXED - RaGEZONE Forums


 
Newbie Spellweaver
Joined
May 14, 2015
Messages
20
Reaction score
0
need help !

All api user password dbname correct but i got DC when login map

000193.810| CAsyncApiWorker 0 executing CJobUpdateChar[1000000] 07AC6998000193.839| WO_API: returned http500
000193.839| !!!! UpdateCharThread failed, code: 8, ans:
000193.841| CAsyncApiWorker 0 job CJobUpdateChar[1000000] 07AC6998 failed, retrying 1/5
000193.855| WO_API: returned http500
000193.856| !!!! UpdateCharThread failed, code: 8, ans:
000193.857| CAsyncApiWorker 0 job CJobUpdateChar[1000000] 07AC6998 failed, retrying 2/5
000193.874| WO_API: returned http500
000193.875| !!!! UpdateCharThread failed, code: 8, ans:
000193.876| CAsyncApiWorker 0 job CJobUpdateChar[1000000] 07AC6998 failed, retrying 3/5
000193.894| WO_API: returned http500
000193.894| !!!! UpdateCharThread failed, code: 8, ans:
000193.895| CAsyncApiWorker 0 job CJobUpdateChar[1000000] 07AC6998 failed, retrying 4/5
000193.907| WO_API: returned http500
000193.907| !!!! UpdateCharThread failed, code: 8, ans:
000193.909| CAsyncApiWorker 0 finished CJobUpdateChar[1000000] 07AC6998
000193.909| !!!! CAsyncApiWorker 0 job CJobUpdateChar[1000000] 07AC6998 failed
000193.910| CAsyncApiWorker 0 job CJobUpdateChar[1000000] 07AC6998 failed
000193.911| AddForcedJob CID:1000000 CJobAddLogInfo

please help
 
Newbie Spellweaver
Joined
Aug 25, 2014
Messages
11
Reaction score
0
number DEV 126 Do not use the command /gi of scale .Help me
 
Junior Spellweaver
Joined
Dec 2, 2012
Messages
146
Reaction score
24
HELP me please

000019.341| WO_API: failed with error code 5 System.IndexOutOfRangeException: GamePos2

at System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName)

at System.Data.SqlClient.SqlDataReader.GetOrdinal(String name)

at System.Data.SqlClient.SqlDataReader.get_Item(String name)

at api_GetProfile1.AddChars(StringBuilder& xml, Boolean FromServer)

at api_GetProfile1.Execute()

at WOApiWebPage.Page_Load(Object sender, EventArgs _e)
000019.341| GetProfile FAILED, code: 5
000022.348| writeGameOptionsFile: Saving settings to C:\Users\Documents\WarZ\gameSettings.ini
000028.578| WO_API: returned http404
000028.578| ApiLootBoxBuy FAILED, code: 8
000032.968| obj_Zombie::FreePhysSkeletonCache:000032.968| done in 0.00 seconds
000033.016| obj_Zombie::FreePhysSkeletonCache:000033.016| done in 0.00 seconds
 
Newbie Spellweaver
Joined
Jan 1, 2015
Messages
6
Reaction score
0
#wqwqwq5555

Search with = WarZ_Server/ServerGameLogic.cpp this =

if(strncmp(cmd, "/gi", 3)

and change with this =

if(strncmp(cmd, "/gi", 3) == 0 && (plr->profile_.ProfileData.isDevAccount & wiUserProfile::DAA_SPAWN_ITEM))
 
Newbie Spellweaver
Joined
Jan 1, 2015
Messages
6
Reaction score
0
Dev while playing the game by running or flying close the game with this.

CN-Scan Contendo suspeito detectado!

Why is this error?
 
Back
Top