nuke telemetry recording calls

This commit is contained in:
Tropical 2026-03-30 20:40:50 -05:00
parent 8580100ce4
commit ed9701fc4d
22 changed files with 1 additions and 158 deletions

View file

@ -1227,9 +1227,6 @@ void CMinecraftApp::SetPlayerSkin(int iPad, std::uint32_t dwSkinId) {
GameSettingsA[iPad]->dwSelectedSkin = dwSkinId; GameSettingsA[iPad]->dwSelectedSkin = dwSkinId;
GameSettingsA[iPad]->bSettingsChanged = true; GameSettingsA[iPad]->bSettingsChanged = true;
TelemetryManager->RecordSkinChanged(iPad,
GameSettingsA[iPad]->dwSelectedSkin);
if (Minecraft::GetInstance()->localplayers[iPad] != nullptr) if (Minecraft::GetInstance()->localplayers[iPad] != nullptr)
Minecraft::GetInstance()->localplayers[iPad]->setAndBroadcastCustomSkin( Minecraft::GetInstance()->localplayers[iPad]->setAndBroadcastCustomSkin(
dwSkinId); dwSkinId);
@ -2622,8 +2619,6 @@ void CMinecraftApp::HandleXuiActions(void) {
ProfileManager.SetCurrentGameActivity( ProfileManager.SetCurrentGameActivity(
j, CONTEXT_PRESENCE_MULTIPLAYER, false); j, CONTEXT_PRESENCE_MULTIPLAYER, false);
} }
TelemetryManager->RecordLevelExit(
j, eSen_LevelExitStatus_Exited);
} }
} }
} else { } else {
@ -2636,8 +2631,6 @@ void CMinecraftApp::HandleXuiActions(void) {
ProfileManager.SetCurrentGameActivity( ProfileManager.SetCurrentGameActivity(
i, CONTEXT_PRESENCE_MULTIPLAYER_1P, false); i, CONTEXT_PRESENCE_MULTIPLAYER_1P, false);
} }
TelemetryManager->RecordLevelExit(
i, eSen_LevelExitStatus_Exited);
} }
break; break;
case eAppAction_ExitWorldCapturedThumbnail: { case eAppAction_ExitWorldCapturedThumbnail: {
@ -3074,9 +3067,6 @@ void CMinecraftApp::HandleXuiActions(void) {
// INVITES // INVITES
case eAppAction_DashboardTrialJoinFromInvite: { case eAppAction_DashboardTrialJoinFromInvite: {
TelemetryManager->RecordUpsellPresented(
i, eSen_UpsellID_Full_Version_Of_Game, app.m_dwOfferID);
SetAction(i, eAppAction_Idle); SetAction(i, eAppAction_Idle);
unsigned int uiIDA[2]; unsigned int uiIDA[2];
uiIDA[0] = IDS_CONFIRM_OK; uiIDA[0] = IDS_CONFIRM_OK;
@ -3108,10 +3098,6 @@ void CMinecraftApp::HandleXuiActions(void) {
this); this);
} else { } else {
if (!ProfileManager.IsFullVersion()) { if (!ProfileManager.IsFullVersion()) {
TelemetryManager->RecordUpsellPresented(
i, eSen_UpsellID_Full_Version_Of_Game,
app.m_dwOfferID);
// upsell // upsell
uiIDA[0] = IDS_CONFIRM_OK; uiIDA[0] = IDS_CONFIRM_OK;
uiIDA[1] = IDS_CONFIRM_CANCEL; uiIDA[1] = IDS_CONFIRM_CANCEL;
@ -3427,7 +3413,6 @@ void CMinecraftApp::HandleXuiActions(void) {
// can't ban the level at that point // can't ban the level at that point
if (g_NetworkManager.IsInGameplay() && if (g_NetworkManager.IsInGameplay() &&
!g_NetworkManager.IsLeavingGame()) { !g_NetworkManager.IsLeavingGame()) {
TelemetryManager->RecordBanLevel(i);
// primary player would exit the world, secondary would // primary player would exit the world, secondary would
// exit the player // exit the player
@ -3863,10 +3848,6 @@ int CMinecraftApp::UnlockFullInviteReturned(void* pParam, int iPad,
false, iPad, eSen_UpsellID_Full_Version_Of_Game); false, iPad, eSen_UpsellID_Full_Version_Of_Game);
} }
} }
} else {
TelemetryManager->RecordUpsellResponded(
iPad, eSen_UpsellID_Full_Version_Of_Game, app.m_dwOfferID,
eSen_UpsellOutcome_Declined);
} }
return 0; return 0;
@ -3886,10 +3867,6 @@ int CMinecraftApp::UnlockFullSaveReturned(void* pParam, int iPad,
eSen_UpsellID_Full_Version_Of_Game); eSen_UpsellID_Full_Version_Of_Game);
} }
} }
} else {
TelemetryManager->RecordUpsellResponded(
iPad, eSen_UpsellID_Full_Version_Of_Game, app.m_dwOfferID,
eSen_UpsellOutcome_Declined);
} }
return 0; return 0;
@ -3910,9 +3887,6 @@ int CMinecraftApp::UnlockFullExitReturned(void* pParam, int iPad,
} }
} }
} else { } else {
TelemetryManager->RecordUpsellResponded(
iPad, eSen_UpsellID_Full_Version_Of_Game, app.m_dwOfferID,
eSen_UpsellOutcome_Declined);
pApp->SetAction(pMinecraft->player->GetXboxPad(), pApp->SetAction(pMinecraft->player->GetXboxPad(),
eAppAction_ExitWorldTrial); eAppAction_ExitWorldTrial);
} }
@ -3939,10 +3913,6 @@ int CMinecraftApp::TrialOverReturned(void* pParam, int iPad,
eAppAction_ExitTrial); eAppAction_ExitTrial);
} }
} else { } else {
TelemetryManager->RecordUpsellResponded(
iPad, eSen_UpsellID_Full_Version_Of_Game, app.m_dwOfferID,
eSen_UpsellOutcome_Declined);
pApp->SetAction(pMinecraft->player->GetXboxPad(), eAppAction_ExitTrial); pApp->SetAction(pMinecraft->player->GetXboxPad(), eAppAction_ExitTrial);
} }
@ -4224,11 +4194,6 @@ void CMinecraftApp::UpsellReturnedCallback(void* pParam, eUpsellType type,
senType = eSen_UpsellID_Undefined; senType = eSen_UpsellID_Undefined;
break; break;
}; };
// Always the primary pad that gets an upsell
TelemetryManager->RecordUpsellResponded(ProfileManager.GetPrimaryPad(),
eSen_UpsellID_Full_Version_Of_Game,
app.m_dwOfferID, senResponse);
} }
#if defined(_DEBUG_MENUS_ENABLED) #if defined(_DEBUG_MENUS_ENABLED)
@ -5851,7 +5816,6 @@ void CMinecraftApp::RemoveLevelFromBannedLevelList(int iPad, PlayerUID xuid,
if (pBannedListData != nullptr) { if (pBannedListData != nullptr) {
if (IsEqualXUID(pBannedListData->xuid, xuid) && if (IsEqualXUID(pBannedListData->xuid, xuid) &&
(strcmp(pBannedListData->pszLevelName, pszLevelName) == 0)) { (strcmp(pBannedListData->pszLevelName, pszLevelName) == 0)) {
TelemetryManager->RecordUnBanLevel(iPad);
// match found, so remove this entry // match found, so remove this entry
it = m_vBannedListA[iPad]->erase(it); it = m_vBannedListA[iPad]->erase(it);

View file

@ -333,13 +333,8 @@ bool CGameNetworkManager::StartNetworkGame(Minecraft* minecraft,
if (!g_NetworkManager.IsHost()) { if (!g_NetworkManager.IsHost()) {
Minecraft::GetInstance()->progressRenderer->progressStart( Minecraft::GetInstance()->progressRenderer->progressStart(
IDS_PROGRESS_CONNECTING); IDS_PROGRESS_CONNECTING);
} else {
// 4J Stu - Host needs to generate a unique multiplayer id for sentient
// telemetry reporting
int multiplayerInstanceId =
TelemetryManager->GenerateMultiplayerInstanceId();
TelemetryManager->SetMultiplayerInstanceId(multiplayerInstanceId);
} }
TexturePack* tPack = Minecraft::GetInstance()->skins->getSelected(); TexturePack* tPack = Minecraft::GetInstance()->skins->getSelected();
do { do {
app.DebugPrintf("ticking connection A\n"); app.DebugPrintf("ticking connection A\n");
@ -1268,20 +1263,12 @@ void CGameNetworkManager::PlayerJoining(INetworkPlayer* pNetworkPlayer) {
} }
} }
} }
if (pNetworkPlayer->IsLocal()) {
TelemetryManager->RecordPlayerSessionStart(
pNetworkPlayer->GetUserIndex());
}
} }
void CGameNetworkManager::PlayerLeaving(INetworkPlayer* pNetworkPlayer) { void CGameNetworkManager::PlayerLeaving(INetworkPlayer* pNetworkPlayer) {
if (pNetworkPlayer->IsLocal()) { if (pNetworkPlayer->IsLocal()) {
ProfileManager.SetCurrentGameActivity(pNetworkPlayer->GetUserIndex(), ProfileManager.SetCurrentGameActivity(pNetworkPlayer->GetUserIndex(),
CONTEXT_PRESENCE_IDLE, false); CONTEXT_PRESENCE_IDLE, false);
TelemetryManager->RecordPlayerSessionExit(
pNetworkPlayer->GetUserIndex(), app.GetDisconnectReason());
} }
} }

View file

@ -121,9 +121,5 @@ void ChoiceTask::sendTelemetry() {
default: default:
break; break;
}; };
TelemetryManager->RecordEnemyKilledOrOvercome(
pMinecraft->player->GetXboxPad(), 0, 0, 0, 0, 0, 0,
m_eTelemetryEvent);
} }
} }

View file

@ -119,8 +119,5 @@ void InfoTask::sendTelemetry() {
default: default:
break; break;
}; };
TelemetryManager->RecordEnemyKilledOrOvercome(
pMinecraft->player->GetXboxPad(), 0, 0, 0, 0, 0, 0,
m_eTelemetryEvent);
} }
} }

View file

@ -205,10 +205,6 @@ void IUIScene_StartGame::UpdateCurrentTexturePack(int iSlot) {
uint64_t ullOfferID_Full; uint64_t ullOfferID_Full;
app.GetDLCFullOfferIDForPackID(ListItem.iData, &ullOfferID_Full); app.GetDLCFullOfferIDForPackID(ListItem.iData, &ullOfferID_Full);
TelemetryManager->RecordUpsellPresented(ProfileManager.GetPrimaryPad(),
eSet_UpsellID_Texture_DLC,
ullOfferID_Full & 0xFFFFFFFF);
unsigned int uiIDA[3]; unsigned int uiIDA[3];
uiIDA[0] = IDS_TEXTUREPACK_FULLVERSION; uiIDA[0] = IDS_TEXTUREPACK_FULLVERSION;

View file

@ -150,8 +150,6 @@ UIScene_CreateWorldMenu::UIScene_CreateWorldMenu(int iPad, void* initData,
CHECKFORAVAILABLETEXTUREPACKS_TIMER_TIME); CHECKFORAVAILABLETEXTUREPACKS_TIMER_TIME);
#endif #endif
TelemetryManager->RecordMenuShown(m_iPad, eUIScene_CreateWorldMenu, 0);
// block input if we're waiting for DLC to install, and wipe the saves list. // block input if we're waiting for DLC to install, and wipe the saves list.
// The end of dlc mounting custom message will fill the list again // The end of dlc mounting custom message will fill the list again
if (app.StartInstallDLCProcess(m_iPad) == true) { if (app.StartInstallDLCProcess(m_iPad) == true) {
@ -389,9 +387,6 @@ void UIScene_CreateWorldMenu::StartSharedLaunchFlow() {
app.GetDLCFullOfferIDForPackID(m_MoreOptionsParams.dwTexturePack, app.GetDLCFullOfferIDForPackID(m_MoreOptionsParams.dwTexturePack,
&ullOfferID_Full); &ullOfferID_Full);
TelemetryManager->RecordUpsellPresented(
ProfileManager.GetPrimaryPad(), eSet_UpsellID_Texture_DLC,
ullOfferID_Full & 0xFFFFFFFF);
#endif #endif
unsigned int uiIDA[2]; unsigned int uiIDA[2];

View file

@ -19,8 +19,6 @@ UIScene_DLCMainMenu::UIScene_DLCMainMenu(int iPad, void* initData,
if (m_loadedResolution == eSceneResolution_1080) { if (m_loadedResolution == eSceneResolution_1080) {
m_labelXboxStore.init(L""); m_labelXboxStore.init(L"");
} }
TelemetryManager->RecordMenuShown(iPad, eUIScene_DLCMainMenu, 0);
} }
UIScene_DLCMainMenu::~UIScene_DLCMainMenu() { UIScene_DLCMainMenu::~UIScene_DLCMainMenu() {

View file

@ -27,7 +27,6 @@ UIScene_DLCOffersMenu::UIScene_DLCOffersMenu(int iPad, void* initData,
m_buttonListOffers.init(eControl_OffersList); m_buttonListOffers.init(eControl_OffersList);
m_labelHTMLSellText.init(L" "); m_labelHTMLSellText.init(L" ");
m_labelPriceTag.init(L" "); m_labelPriceTag.init(L" ");
TelemetryManager->RecordMenuShown(m_iPad, eUIScene_DLCOffersMenu, 0);
m_bHasPurchased = false; m_bHasPurchased = false;
m_bIsSelected = false; m_bIsSelected = false;

View file

@ -145,8 +145,6 @@ void UIScene_JoinMenu::tick() {
// Alert the app the we want to be informed of ethernet connections // Alert the app the we want to be informed of ethernet connections
app.SetLiveLinkRequired(true); app.SetLiveLinkRequired(true);
TelemetryManager->RecordMenuShown(m_iPad, eUIScene_JoinMenu, 0);
addTimer(UPDATE_PLAYERS_TIMER_ID, UPDATE_PLAYERS_TIMER_TIME); addTimer(UPDATE_PLAYERS_TIMER_ID, UPDATE_PLAYERS_TIMER_TIME);
} }

View file

@ -189,7 +189,6 @@ UIScene_LoadMenu::UIScene_LoadMenu(int iPad, void* initData,
} else { } else {
} }
TelemetryManager->RecordMenuShown(m_iPad, eUIScene_LoadMenu, 0);
m_iTexturePacksNotInstalled = 0; m_iTexturePacksNotInstalled = 0;
// block input if we're waiting for DLC to install, and wipe the saves list. // block input if we're waiting for DLC to install, and wipe the saves list.
@ -547,10 +546,6 @@ void UIScene_LoadMenu::StartSharedLaunchFlow() {
uint64_t ullOfferID_Full; uint64_t ullOfferID_Full;
app.GetDLCFullOfferIDForPackID(m_MoreOptionsParams.dwTexturePack, app.GetDLCFullOfferIDForPackID(m_MoreOptionsParams.dwTexturePack,
&ullOfferID_Full); &ullOfferID_Full);
TelemetryManager->RecordUpsellPresented(
ProfileManager.GetPrimaryPad(), eSet_UpsellID_Texture_DLC,
ullOfferID_Full & 0xFFFFFFFF);
#endif #endif
unsigned int uiIDA[2]; unsigned int uiIDA[2];
@ -1050,12 +1045,6 @@ void UIScene_LoadMenu::StartGameFromSave(UIScene_LoadMenu* pClass,
int32_t saveOrCheckpointId = 0; int32_t saveOrCheckpointId = 0;
bool validSave = bool validSave =
StorageManager.GetSaveUniqueNumber(&saveOrCheckpointId); StorageManager.GetSaveUniqueNumber(&saveOrCheckpointId);
TelemetryManager->RecordLevelResume(
pClass->m_iPad, eSen_FriendOrMatch_Playing_With_Invited_Friends,
eSen_CompeteOrCoop_Coop_and_Competitive,
app.GetGameSettings(pClass->m_iPad, eGameSetting_Difficulty),
app.GetLocalPlayerCount(), g_NetworkManager.GetOnlinePlayerCount(),
saveOrCheckpointId);
} else { } else {
StorageManager.ResetSaveData(); StorageManager.ResetSaveData();
// Make our next save default to the name of the level // Make our next save default to the name of the level

View file

@ -958,8 +958,6 @@ void UIScene_MainMenu::RunUnlockOrDLC(int iPad) {
// check that the commerce is in the right state to be able to // check that the commerce is in the right state to be able to
// display the full version purchase - if the user is fast with the // display the full version purchase - if the user is fast with the
// trial version, it can still be retrieving the product list // trial version, it can still be retrieving the product list
TelemetryManager->RecordUpsellPresented(
iPad, eSen_UpsellID_Full_Version_Of_Game, app.m_dwOfferID);
ProfileManager.DisplayFullVersionPurchase( ProfileManager.DisplayFullVersionPurchase(
false, iPad, eSen_UpsellID_Full_Version_Of_Game); false, iPad, eSen_UpsellID_Full_Version_Of_Game);
} }

View file

@ -45,9 +45,6 @@ void UIScene_TrialExitUpsell::handleInput(int iPad, int key, bool repeat,
// 4J-PB - need to check this user can access the store // 4J-PB - need to check this user can access the store
{ {
TelemetryManager->RecordUpsellPresented(
iPad, eSen_UpsellID_Full_Version_Of_Game,
app.m_dwOfferID);
ProfileManager.DisplayFullVersionPurchase( ProfileManager.DisplayFullVersionPurchase(
false, iPad, eSen_UpsellID_Full_Version_Of_Game); false, iPad, eSen_UpsellID_Full_Version_Of_Game);
} }

View file

@ -161,9 +161,6 @@ UIScene_HowToPlay::UIScene_HowToPlay(int iPad, void* initData,
(EHowToPlayPage)((uiInitData >> 16) & (EHowToPlayPage)((uiInitData >> 16) &
0xFFFu); // Ignores MSB which is set to 1! 0xFFFu); // Ignores MSB which is set to 1!
TelemetryManager->RecordMenuShown(
m_iPad, eUIScene_HowToPlay, (ETelemetry_HowToPlay_SubMenuId)eStartPage);
StartPage(eStartPage); StartPage(eStartPage);
} }
@ -325,7 +322,4 @@ void UIScene_HowToPlay::StartPage(EHowToPlayPage ePage) {
delete[] stringVal; delete[] stringVal;
updateTooltips(); updateTooltips();
TelemetryManager->RecordMenuShown(m_iPad, eUIScene_HowToPlay,
(ETelemetry_HowToPlay_SubMenuId)ePage);
} }

View file

@ -93,8 +93,6 @@ void UIScene_DeathMenu::handlePress(F64 controlId, F64 childId) {
playTime = (int)pMinecraft->localplayers[m_iPad] playTime = (int)pMinecraft->localplayers[m_iPad]
->getSessionTimer(); ->getSessionTimer();
} }
TelemetryManager->RecordLevelExit(
m_iPad, eSen_LevelExitStatus_Failed);
if (StorageManager.GetSaveDisabled()) { if (StorageManager.GetSaveDisabled()) {
uiIDA[0] = IDS_CONFIRM_CANCEL; uiIDA[0] = IDS_CONFIRM_CANCEL;
@ -127,17 +125,12 @@ void UIScene_DeathMenu::handlePress(F64 controlId, F64 childId) {
} }
} }
} else { } else {
TelemetryManager->RecordLevelExit(
m_iPad, eSen_LevelExitStatus_Failed);
// just exit the player // just exit the player
app.SetAction(m_iPad, eAppAction_ExitPlayer); app.SetAction(m_iPad, eAppAction_ExitPlayer);
} }
} else { } else {
// is it the primary player exiting? // is it the primary player exiting?
if (m_iPad == ProfileManager.GetPrimaryPad()) { if (m_iPad == ProfileManager.GetPrimaryPad()) {
TelemetryManager->RecordLevelExit(
m_iPad, eSen_LevelExitStatus_Failed);
// adjust the trial time played // adjust the trial time played
ui.ReduceTrialTimerValue(); ui.ReduceTrialTimerValue();
@ -152,9 +145,6 @@ void UIScene_DeathMenu::handlePress(F64 controlId, F64 childId) {
&IUIScene_PauseMenu::ExitGameDialogReturned, &IUIScene_PauseMenu::ExitGameDialogReturned,
(void*)GetCallbackUniqueId()); (void*)GetCallbackUniqueId());
} else { } else {
TelemetryManager->RecordLevelExit(
m_iPad, eSen_LevelExitStatus_Failed);
// just exit the player // just exit the player
app.SetAction(m_iPad, eAppAction_ExitPlayer); app.SetAction(m_iPad, eAppAction_ExitPlayer);
} }

View file

@ -54,9 +54,6 @@ UIScene_PauseMenu::UIScene_PauseMenu(int iPad, void* initData,
eXuiServerAction_PauseServer, (void*)true); eXuiServerAction_PauseServer, (void*)true);
} }
TelemetryManager->RecordMenuShown(m_iPad, eUIScene_PauseMenu, 0);
TelemetryManager->RecordPauseOrInactive(m_iPad);
Minecraft* pMinecraft = Minecraft::GetInstance(); Minecraft* pMinecraft = Minecraft::GetInstance();
if (pMinecraft != nullptr && pMinecraft->localgameModes[iPad] != nullptr) { if (pMinecraft != nullptr && pMinecraft->localgameModes[iPad] != nullptr) {
TutorialMode* gameMode = TutorialMode* gameMode =
@ -390,9 +387,6 @@ void UIScene_PauseMenu::handlePress(F64 controlId, F64 childId) {
->getSessionTimer(); ->getSessionTimer();
} }
TelemetryManager->RecordLevelExit(
m_iPad, eSen_LevelExitStatus_Exited);
// just exit the player // just exit the player
app.SetAction(m_iPad, eAppAction_ExitPlayer); app.SetAction(m_iPad, eAppAction_ExitPlayer);
} }
@ -425,9 +419,6 @@ void UIScene_PauseMenu::handlePress(F64 controlId, F64 childId) {
->getSessionTimer(); ->getSessionTimer();
} }
TelemetryManager->RecordLevelExit(
m_iPad, eSen_LevelExitStatus_Exited);
// just exit the player // just exit the player
app.SetAction(m_iPad, eAppAction_ExitPlayer); app.SetAction(m_iPad, eAppAction_ExitPlayer);
} }

View file

@ -4421,18 +4421,6 @@ void Minecraft::playerLeftTutorial(int iPad) {
m_inFullTutorialBits = m_inFullTutorialBits & ~(1 << iPad); m_inFullTutorialBits = m_inFullTutorialBits & ~(1 << iPad);
if (m_inFullTutorialBits == 0) { if (m_inFullTutorialBits == 0) {
app.SetTutorialMode(false); app.SetTutorialMode(false);
// 4J Stu -This telemetry event means something different on XboxOne, so
// we don't call it for simple state changes like this
for (unsigned int idx = 0; idx < XUSER_MAX_COUNT; ++idx) {
if (localplayers[idx] != nullptr) {
TelemetryManager->RecordLevelStart(
idx, eSen_FriendOrMatch_Playing_With_Invited_Friends,
eSen_CompeteOrCoop_Coop_and_Competitive, level->difficulty,
app.GetLocalPlayerCount(),
g_NetworkManager.GetOnlinePlayerCount());
}
}
} }
} }

View file

@ -353,12 +353,6 @@ void ClientConnection::handleLogin(std::shared_ptr<LoginPacket> packet) {
if (iUserID != -1) { if (iUserID != -1) {
ui.UpdateSelectedItemPos(iUserID); ui.UpdateSelectedItemPos(iUserID);
} }
TelemetryManager->RecordLevelStart(
m_userIndex, eSen_FriendOrMatch_Playing_With_Invited_Friends,
eSen_CompeteOrCoop_Coop_and_Competitive,
Minecraft::GetInstance()->getLevel(packet->dimension)->difficulty,
app.GetLocalPlayerCount(), g_NetworkManager.GetOnlinePlayerCount());
} }
void ClientConnection::handleAddEntity( void ClientConnection::handleAddEntity(
@ -1801,11 +1795,6 @@ void ClientConnection::handleEntityActionAtPosition(
if (packet->action == EntityActionAtPositionPacket::START_SLEEP) { if (packet->action == EntityActionAtPositionPacket::START_SLEEP) {
std::shared_ptr<Player> player = std::dynamic_pointer_cast<Player>(e); std::shared_ptr<Player> player = std::dynamic_pointer_cast<Player>(e);
player->startSleepInBed(packet->x, packet->y, packet->z); player->startSleepInBed(packet->x, packet->y, packet->z);
if (player == minecraft->localplayers[m_userIndex]) {
TelemetryManager->RecordEnemyKilledOrOvercome(
m_userIndex, 0, player->y, 0, 0, 0, 0, eTelemetryInGame_UseBed);
}
} }
} }
@ -2404,9 +2393,6 @@ void ClientConnection::handleRespawn(std::shared_ptr<RespawnPacket> packet) {
minecraft->setLevel(dimensionLevel); minecraft->setLevel(dimensionLevel);
minecraft->player = lastPlayer; minecraft->player = lastPlayer;
TelemetryManager->RecordLevelExit(m_userIndex,
eSen_LevelExitStatus_Succeeded);
// minecraft->player->dimension = packet->dimension; // minecraft->player->dimension = packet->dimension;
minecraft->localplayers[m_userIndex]->dimension = packet->dimension; minecraft->localplayers[m_userIndex]->dimension = packet->dimension;
minecraft->setScreen(new ReceivingLevelScreen(this)); minecraft->setScreen(new ReceivingLevelScreen(this));

View file

@ -352,8 +352,6 @@ void MultiplayerLocalPlayer::ride(std::shared_ptr<Entity> e) {
break; break;
}; };
} }
TelemetryManager->RecordEnemyKilledOrOvercome(GetXboxPad(), 0, y, 0, 0,
0, 0, eventType);
} }
updateRichPresence(); updateRichPresence();

View file

@ -774,8 +774,6 @@ void LocalPlayer::hurtTo(float newHealth, ETelemetryChallenges damageSource) {
int carriedId = inventory->getSelected() == nullptr int carriedId = inventory->getSelected() == nullptr
? 0 ? 0
: inventory->getSelected()->id; : inventory->getSelected()->id;
TelemetryManager->RecordPlayerDiedOrFailed(GetXboxPad(), 0, y, 0, 0,
carriedId, 0, damageSource);
// if there are any xuiscenes up for this player, close them // if there are any xuiscenes up for this player, close them
if (ui.GetMenuDisplayed(GetXboxPad())) { if (ui.GetMenuDisplayed(GetXboxPad())) {
@ -820,10 +818,6 @@ void LocalPlayer::awardStat(Stat* stat, const std::vector<uint8_t>& param) {
// players cannot get theme/avatar/gamerpic and Trial players cannot // players cannot get theme/avatar/gamerpic and Trial players cannot
// get any This causes some extreme flooding of some awards // get any This causes some extreme flooding of some awards
if (ProfileManager.CanBeAwarded(m_iPad, ach->getAchievementID())) { if (ProfileManager.CanBeAwarded(m_iPad, ach->getAchievementID())) {
// 4J Stu - We don't (currently) care about the gamerscore, so
// setting to a default of 0 points
TelemetryManager->RecordAchievementUnlocked(
m_iPad, ach->getAchievementID(), 0);
// 4J Stu - Some awards cause a menu to popup. This can be bad, // 4J Stu - Some awards cause a menu to popup. This can be bad,
// especially if you are surrounded by mobs! We cannot pause the // especially if you are surrounded by mobs! We cannot pause the

View file

@ -860,14 +860,6 @@ void MinecraftServer::Suspend() {
qwDeltaTime.QuadPart = qwNewTime.QuadPart - qwTime.QuadPart; qwDeltaTime.QuadPart = qwNewTime.QuadPart - qwTime.QuadPart;
fElapsedTime = fSecsPerTick * static_cast<float>(qwDeltaTime.QuadPart); fElapsedTime = fSecsPerTick * static_cast<float>(qwDeltaTime.QuadPart);
// 4J-JEV: Flush stats and call PlayerSessionExit.
for (int iPad = 0; iPad < XUSER_MAX_COUNT; iPad++) {
if (ProfileManager.IsSignedIn(iPad)) {
TelemetryManager->RecordPlayerSessionExit(
iPad, DisconnectPacket::eDisconnect_Quitting);
}
}
m_suspending = false; m_suspending = false;
app.DebugPrintf("Suspend server: Elapsed time %f\n", fElapsedTime); app.DebugPrintf("Suspend server: Elapsed time %f\n", fElapsedTime);
PIXEndNamedEvent(); PIXEndNamedEvent();

View file

@ -655,8 +655,6 @@ void ConsoleSaveFileOriginal::Flush(bool autosave, bool updateThumbnail) {
int32_t saveOrCheckpointId = 0; int32_t saveOrCheckpointId = 0;
bool validSave = bool validSave =
StorageManager.GetSaveUniqueNumber(&saveOrCheckpointId); StorageManager.GetSaveUniqueNumber(&saveOrCheckpointId);
TelemetryManager->RecordLevelSaveOrCheckpoint(
ProfileManager.GetPrimaryPad(), saveOrCheckpointId, compLength + 8);
#ifdef _WINDOWS64 #ifdef _WINDOWS64
// set the icon and save image // set the icon and save image
StorageManager.SetSaveImages(pbThumbnailData, dwThumbnailDataSize, StorageManager.SetSaveImages(pbThumbnailData, dwThumbnailDataSize,

View file

@ -1370,8 +1370,6 @@ void ConsoleSaveFileSplit::Flush(bool autosave, bool updateThumbnail) {
int32_t saveOrCheckpointId = 0; int32_t saveOrCheckpointId = 0;
bool validSave = bool validSave =
StorageManager.GetSaveUniqueNumber(&saveOrCheckpointId); StorageManager.GetSaveUniqueNumber(&saveOrCheckpointId);
TelemetryManager->RecordLevelSaveOrCheckpoint(
ProfileManager.GetPrimaryPad(), saveOrCheckpointId, compLength + 8);
// save the data // save the data
StorageManager.SaveSaveData(&ConsoleSaveFileSplit::SaveSaveDataCallback, StorageManager.SaveSaveData(&ConsoleSaveFileSplit::SaveSaveDataCallback,