Skip to content

Instantly share code, notes, and snippets.

@qaisjp

qaisjp/AddReportLog.cpp

Last active Sep 9, 2019
Embed
What would you like to do?
ag --nobreak --nofilename --nonumbers '\KAddReportLog\((\d+)' | awk '{$1=$1};1' | sort | pbcopy
AddReportLog(1003, SString("CInstallManager::_ChangeToAdmin - exit(0) %s", ""));
AddReportLog(1041, SString("* Launch * pid:%d '%s' MTASAPath set from %s '%s'", dwProcessId, GetLaunchPathFilename().c_str(), GotPathFrom.c_str(),
AddReportLog(1044, SString("* End (0x%X)* pid:%d", iReturnCode, GetCurrentProcessId()));
AddReportLog(1060, SString("CInstallManager::Continue - return %s", *strCommandLineOut));
AddReportLog(1061, SString("CInstallManager::RestoreSequencerState %s", *strText));
AddReportLog(1062, SString("GetLauncherPathFilename %s", *strResult));
AddReportLog(1070, SString("CallFunction: %s", *strName));
AddReportLog(2005, SString("DoPollDownload: Downloaded %d bytes from %s", m_JobInfo.downloadBuffer.size(), m_strLastQueryURL.c_str()));
AddReportLog(2007, SString("DoPollDownload: Downloaded %s", m_JobInfo.strSaveLocation.c_str()));
AddReportLog(2050, SString("_InstallFiles: ok %s", ""));
AddReportLog(2051, SString("InstallNewsItems ok for '%s'", *strDate));
AddReportLog(2501, SString("CXMLBuffer::SetFromBuffer: Could not save %s", m_strTempFileName.c_str()));
AddReportLog(2502, SString("CXMLBuffer::SetFromBuffer: Could not CreateXML %s", m_strTempFileName.c_str()));
AddReportLog(2503, SString("CXMLBuffer::SetFromBuffer: Could not parse %s", m_strTempFileName.c_str()));
AddReportLog(2504, SString("CXMLBuffer::SetFromBuffer: No root node in %s", m_strTempFileName.c_str()));
AddReportLog(3048, SString("_InstallFiles: Install - trying as admin %s", ""));
AddReportLog(3100, strMessageCombo + SString(" (%d)", uiInform));
AddReportLog(3119, SString("DllDirectory wrong: DllDirectory:'%s' Path:'%s'", *strDllDirectory, *CalcMTASAPath("mta")));
AddReportLog(3119, SString("DllDirectory wrong: DllDirectory:'%s' Path:'%s'", *strDllDirectory, *CalcMTASAPath("mta")));
AddReportLog(3120, strMessage);
AddReportLog(3200, SString("Trouble %s", *strType));
AddReportLog(3302, SString("CNewsBrowser::LoadLayout: Problem loading %s", *newsItem.strContentFullDir));
AddReportLog(3304, SString("CNewsBrowser::LoadLayout: Problem with LoadLayout [%s] %s", *newsItem.strContentFullDir, *newsItem.strLayoutFilename));
AddReportLog(3400 + uiId, strMessage + g_pNet->GetConnectedServer(true), 10);
AddReportLog(4000, SString("OnRestartCommand disregarded due to version change %s -> %s", vecParts[5].c_str(), strVersion.c_str()));
AddReportLog(4002, SString("DoPollDownload: Regular fail for %s (status:%u time:%u)", m_strLastQueryURL.c_str(), m_JobInfo.iDownloadResultCode,
AddReportLog(4023, SString("InstallFiles: Couldn't backup '%s' as it does not exist", *item.strDestPathFilename));
AddReportLog(4047, SString("_CheckOnRestartCommand: CheckOnRestartCommand returned %s", strResult.c_str()));
AddReportLog(4048, SString("InstallNewsItems failed with '%s' '%s' '%s'", *strDate, *strFileLocation, *strTargetDir));
AddReportLog(4053, "Deleted gta_sa.set");
AddReportLog(5003, SString("DoPollDownload: Checksum wrong for %s (Want:%d-%s Got:%d-%s)", m_JobInfo.strFilename.c_str(), (int)m_JobInfo.iFilesize,
AddReportLog(5004, SString("DoPollDownload: Unable to use the path %s", strSaveLocation.c_str()));
AddReportLog(5005, SString("DoPollDownload: Unable to save the file %s (size %d)", m_JobInfo.strFilename.c_str(), uiSize));
AddReportLog(5006, SString("DoPollDownload: Signature wrong for %s (MD5: %s)", m_JobInfo.strFilename.c_str(), m_JobInfo.strMD5.c_str()));
AddReportLog(5007, SString("DoPollDownload: Fail for %s", m_strLastQueryURL.c_str()));
AddReportLog(5009, SString("GetResumableSaveLocation: New download of %d for %s", iFilesize, *strSaveLocation));
AddReportLog(5020, SString("InstallFiles: Couldn't make dir '%s'", strBakRoot.c_str()));
AddReportLog(5021, SString("InstallFiles: Couldn't backup '%s' to '%s'", *item.strDestPathFilename, *item.strBackupPathFilename));
AddReportLog(5022, SString("InstallFiles: Couldn't copy '%s' to '%s'", *item.strSrcPathFilename, *item.strDestPathFilename));
AddReportLog(5023,
AddReportLog(5049, SString("_InstallFiles: Couldn't install files %s", ""));
AddReportLog(5052, SString("CheckOnRestartCommand: Unknown restart command %s", strOperation.c_str()));
AddReportLog(5054, SString("Delete gta_sa.set failed with '%s'", *strSettingsFilename));
AddReportLog(5321, SString("Rtl_fopen failed: called from:%08x mode:%s name:%s", calledFrom, szMode, *strFilename));
AddReportLog(5412, SString("GetFrameFromId - %s", *strMsg));
AddReportLog(5413, SString("GetFrameFromId - %s", *strMsg));
AddReportLog(5430, SString("Mismatch in slot %d Wanted type:%d Got type:%d (%s)", i, m_WeaponTypes[i], slotWeaponType, *strPlayerName), 30);
AddReportLog(5431, SString("Failed to load animation %s", *strMessage));
AddReportLog(5432, SString("DischargeWeapon adding missing weapon %d (%s)", weaponType, GetNick()), 30);
AddReportLog(5501, SString("2nd pass 1 for BulletSyncShot damage. weaponUsed:%d", weaponUsed));
AddReportLog(5502, SString("BulletSyncShot but not bBulletSyncWeapon. weaponUsed:%d", weaponUsed));
AddReportLog(5503, SString("not BulletSyncShot but bBulletSyncWeapon. weaponUsed:%d", weaponUsed));
AddReportLog(5711, strMessage);
AddReportLog(5712, SString("LoadLibrary '%s' succeeded on change to directory '%s'", *strLoaderDllFilename, *strMTASAPath));
AddReportLog(5807, SString("StartDownload: Cached file reuse - Size correct, but md5 did not match (%s)", *strPathFilename));
AddReportLog(5808, SString("StartDownload: Cached file reuse - Size and md5 correct, but signature incorrect (%s)", *strPathFilename));
AddReportLog(5809, SString("StartDownload: Cached file reuse - Size, md5 and signature correct (%s)", *strPathFilename));
AddReportLog(6211, SString("WaitForSingleObject timed out with %08x and %dms", hHandle, dwWait));
AddReportLog(6532, SString("Chat rt chatSize:%2.0f %2.0f rtsize:%d %d card:%s", chatSize.fX, chatSize.fY, iRenderTargetSizeX,
AddReportLog(6641, SString("Blocking load fail: %d (%s)", m_dwModelID, szTag));
AddReportLog(6642, SString("Blocking load: %d (%s) (Took %d attempts)", m_dwModelID, szTag, iCount));
AddReportLog(7059, strMessage + g_pNet->GetConnectedServer(true), 10);
AddReportLog(7100, SString("Core - NetError (%s) (%s)", *strTitle, *strMessage));
AddReportLog(7101, "Core - Quit");
AddReportLog(7102, "Core - PROCESS_DETACH");
AddReportLog(7103, "Loader - Core injected");
AddReportLog(7104, "Loader - Finishing");
AddReportLog(7105, SString("Core - Kicked (%s)", *strMessageCombo));
AddReportLog(7106, SString("Game - HTTPError (%s)", *m_strLastHTTPError));
AddReportLog(7107, SString("Game - Disconnected (%s) (%s)", *strErrorCode, *strReason.Replace("\n", " ")));
AddReportLog(7108, SString("Game - RaiseFatalError %d", uiCode));
AddReportLog(7109, SString("Game - RaiseProtocolError %d", uiCode));
AddReportLog(7110, "Game - COMMAND_Disconnect");
AddReportLog(7115, SString("Loader - Request to elevate privileges (%s)", *strReason));
AddReportLog(7340, SString("EnumDisplaySettings failed for %s", *GetCurrentAdapterDeviceName()));
AddReportLog(7341, SString("ChangeDisplaySettingsEx failed for %s (%d)", *GetCurrentAdapterDeviceName(), iChangeResult));
AddReportLog(7410, SString("CClientGame::SetFileCacheRoot - Not shared '%s'", *m_strFileCacheRoot));
AddReportLog(7411, SString("CClientGame::SetFileCacheRoot - Is shared '%s'", *m_strFileCacheRoot));
AddReportLog(7412, SString("CClientGame::SetFileCacheRoot - Initial setting '%s'", *m_strFileCacheRoot));
AddReportLog(7413, SString("CClientGame::SetFileCacheRoot - Change shared from '%s' to '%s'", *strFileCachePath, *m_strFileCacheRoot));
AddReportLog(7430, strMessage);
AddReportLog(7521, SString("Clothes geometry refs below expected value: %d", pGeometry->refs));
AddReportLog(7544, SString("NewEffectTemplate (call:%d) %s %s", uiCallCount, *strReport, *strFile));
AddReportLog(7555, SString("Unexpected undump hash for buffer size %d. Got:%s Expected:%s", n, *strExpectedHash, *strGotHash));
AddReportLog(8070, SString("CheckService %d result: %d", uiStage, bResult));
AddReportLog(8070, SString("TerminateProcess %d result: %d", dwProcessID, bResult));
AddReportLog(8331, strLine);
AddReportLog(8332, strLine);
AddReportLog(8423, SString("HookCheckOriginalByte failed at %08x - Got %02x - expected %02x", dwInstallAddress, ucValue, ucExpectedValue));
AddReportLog(8430, SString("RightSizeTxd problem %s with '%s'", *strError, *strInTxdFilename), 10);
AddReportLog(8530, SString("IsTaskSimpleCarFallOutValid fail - pTask->VTBL: %08x", pTask->VTBL), 5);
AddReportLog(8531, SString("IsTaskSimpleCarFallOutValid invalid vehicle ptr - pTask->pVehicle: %08x", pTask->pVehicle), 5);
AddReportLog(8544, SString("PreLoad Upgrades - LowestUnsafeUpgrade fallen from %d to %d", iPrevHiScore, iLowestUnsafeUpgrade));
AddReportLog(8545, SString("PreLoad Upgrades - Crash detect - bSlowMethod:%d iLowestUnsafeUpgrade:%d", bSlowMethod, iLowestUnsafeUpgrade));
AddReportLog(8610, strMessage);
AddReportLog(8611, strMessage);
AddReportLog(8612, strMessage);
AddReportLog(8613, strMessage);
AddReportLog(8625, strMessage);
AddReportLog(8626, strMessage);
AddReportLog(8627, strMessage);
AddReportLog(8640, SString("Removing CPhysical type %d from moving list", pEntity->nType));
AddReportLog(8645, SString("Error in render list: IsPlaceable:%d HasRwObject:%d", bIsPlaceable, bHasRwObject));
AddReportLog(9100, SString("QuestionBox::Show [%s] %s", m_pWindow->GetText().c_str(), *m_strMsg.Left(200).Replace("\n", "|")));
AddReportLog(9130, SString("QueryWMI - Failed to create IWbemLocator object. Error code = %x (%s)", hres, *strQuery));
AddReportLog(9130, SString("QueryWMI pEnumerator->Next returned STATUS_ACCESS_VIOLATION for %s", *strQuery));
AddReportLog(9131, SString("QueryWMI pEnumerator->Next returned %08x for %s", hr, *strQuery));
AddReportLog(9132, SString("QueryWMI pclsObj == NULL returned %08x for %s", hr, *strQuery));
AddReportLog(9133, SString("QueryWMI pclsObj->Get returned %08x for key %d in %s", hr, i, *strQuery));
AddReportLog(9135, SString("QueryWMI - Could not connect. Error code = %x (%s)", hres, *strQuery));
AddReportLog(9136, SString("QueryWMI - Could not set proxy blanket. Error code = %x (%s)", hres, *strQuery));
AddReportLog(9137, SString("QueryWMI - Query failed. Error code = %x (%s)", hres, *strQuery));
AddReportLog(9201, "CCrashDumpWriter::DumpMiniDump - Could not load DBGHELP.DLL");
AddReportLog(9202, "CCrashDumpWriter::DumpMiniDump - Could not find MiniDumpWriteDump");
AddReportLog(9203, SString("CCrashDumpWriter::DumpMiniDump - Could not create '%s'", *CalcMTASAPath("mta\\core.dmp")));
AddReportLog(9204, SString("CCrashDumpWriter::DumpMiniDump - MiniDumpWriteDump failed (%08x)", GetLastError()));
AddReportLog(9205, "Disabled volumetric shadows");
AddReportLog(9206, SString("InvalidParameterCount changed from %d to %d", ms_uiInvalidParameterCountLogged, ms_uiInvalidParameterCount));
AddReportLog(9310, "Loader - HandleNotUsedMainMenu");
AddReportLog(9311, "Loader - HandleNotUsedMainMenu - User change to Borderless window");
AddReportLog(9312, "Loader - HandleNotUsedMainMenu - Set Borderless window");
AddReportLog(9313, "Loader - HandleNotUsedMainMenu - User said no");
AddReportLog(9314, "Loader - HandleNotUsedMainMenu - Mode not fullscreen standard");
AddReportLog(9315, "Loader - HandleNotUsedMainMenu - Already Borderless window");
AddReportLog(9400, SString("RightSized %s(%s) from %d KB => %d KB", *ExtractFilename(m_strFilename), *strLargeSha256.Left(8),
AddReportLog(9442, SString("Problem with AddFontResourceEx [MD5:%s Size:%d] %s ", *strFileMd5, uiFileSize, *strPathFilename));
AddReportLog(9640, strMessage);
void Log(const SString& strMessage) { AddReportLog(1071, strMessage); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment