Skip to content

Commit

Permalink
Removed GameSpy achievements and stats code
Browse files Browse the repository at this point in the history
GameSpy server hosted by GSC (gamegsc.com) doesn't store achievements and stats. Thus, all this code is nearly dead legacy code.
Only thing that keeps it working is mp_profile.ltx file that gets created locally on your PC – the data is being saved only in this file.

From project maintenance view, it's better to remove it.
  • Loading branch information
Xottab-DUTY committed Oct 24, 2024
1 parent f7e8e61 commit cd0dff6
Show file tree
Hide file tree
Showing 135 changed files with 37 additions and 10,043 deletions.
104 changes: 0 additions & 104 deletions src/xrGame/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ target_sources(xrGame PRIVATE
account_manager.cpp
account_manager.h
account_manager_script.cpp
accumulative_states.h
action_base.h
action_base_inline.h
action_base_script.cpp
Expand Down Expand Up @@ -241,8 +240,6 @@ target_sources(xrGame PRIVATE
alife_update_manager.h
AmebaZone.cpp
AmebaZone.h
ammunition_groups.cpp
ammunition_groups.h
animation_movement_controller.cpp
animation_movement_controller.h
animation_script_callback.cpp
Expand All @@ -259,12 +256,6 @@ target_sources(xrGame PRIVATE
Artefact.cpp
Artefact.h
artefact_script.cpp
atlas_stalkercoppc_v1.c
atlas_stalkercoppc_v1.h
#atlas_stalkercs_v1.c
#atlas_stalkercs_v1.h
atlas_submit_queue.cpp
atlas_submit_queue.h
attachable_item.cpp
attachable_item.h
attachable_item_inline.h
Expand All @@ -273,30 +264,20 @@ target_sources(xrGame PRIVATE
autosave_manager.cpp
autosave_manager.h
autosave_manager_inline.h
awards_store.cpp
awards_store.h
base_client_classes_script.cpp
base_client_classes_wrappers.h
BastArtifact.cpp
BastArtifact.h
battleye.h
#battleye_system.cpp
#battleye_system.h
best_scores_helper.cpp
best_scores_helper.h
best_scores_store.cpp
best_scores_store.h
BlackDrops.cpp
BlackDrops.h
BlackGraviArtifact.cpp
BlackGraviArtifact.h
black_list.cpp
black_list.h
BlockAllocator.h
Bolt.cpp
Bolt.h
bone_groups.cpp
bone_groups.h
BoneProtections.cpp
BoneProtections.h
BottleItem.cpp
Expand Down Expand Up @@ -349,7 +330,6 @@ target_sources(xrGame PRIVATE
client_spawn_manager_script.cpp
ClimableObject.cpp
ClimableObject.h
command_switch_counter.h
configs_common.cpp
configs_common.h
configs_dumper.cpp
Expand Down Expand Up @@ -449,8 +429,6 @@ target_sources(xrGame PRIVATE
doors.h
doors_manager.cpp
doors_manager.h
double_shot_double_kill.cpp
double_shot_double_kill.h
DummyArtifact.cpp
DummyArtifact.h
#DynamicHeightMap.cpp
Expand Down Expand Up @@ -499,8 +477,6 @@ target_sources(xrGame PRIVATE
EntityCondition_script.cpp
Entity.cpp
Entity.h
event_conditions_collection.cpp
event_conditions_collection.h
ExoOutfit.cpp
ExoOutfit.h
Explosive.cpp
Expand All @@ -513,8 +489,6 @@ target_sources(xrGame PRIVATE
F1.h
FadedBall.cpp
FadedBall.h
faster_than_bullets_time.cpp
faster_than_bullets_time.h
filereceiver_node.cpp
filereceiver_node.h
filetransfer_common.h
Expand Down Expand Up @@ -574,7 +548,6 @@ target_sources(xrGame PRIVATE
game_cl_teamdeathmatch.cpp
game_cl_teamdeathmatch.h
game_cl_teamdeathmatch_snd_messages.h
game_events_handler.h
game_location_selector.h
game_location_selector_inline.h
game_news.cpp
Expand All @@ -586,10 +559,6 @@ target_sources(xrGame PRIVATE
game_path_manager_inline.h
GamePersistent.cpp
GamePersistent.h
game_state_accumulator.cpp
game_state_accumulator.h
game_state_accumulator_inline.h
game_state_accumulator_state_register.cpp
game_sv_artefacthunt.cpp
game_sv_artefacthunt.h
game_sv_artefacthunt_process_event.cpp
Expand Down Expand Up @@ -650,8 +619,6 @@ target_sources(xrGame PRIVATE
HairsZone_script.cpp
HangingLamp.cpp
HangingLamp.h
harvest_time.cpp
harvest_time.h
Helicopter2.cpp
Helicopter.cpp
helicopter.h
Expand All @@ -668,9 +635,6 @@ target_sources(xrGame PRIVATE
hit_memory_manager.cpp
hit_memory_manager.h
hit_memory_manager_inline.h
hits_store.cpp
hits_store.h
hits_store_inline.h
holder_custom.cpp
holder_custom.h
holder_custom_script.cpp
Expand Down Expand Up @@ -756,16 +720,9 @@ target_sources(xrGame PRIVATE
inventory_upgrade_root.cpp
inventory_upgrade_root.h
inventory_upgrade_root_inline.h
invincible_fury.cpp
invincible_fury.h
item_manager.cpp
item_manager.h
item_manager_inline.h
killer_victim_velocity_angle.cpp
killer_victim_velocity_angle.h
kills_store.cpp
kills_store.h
kills_store_inline.h
Level_Bullet_Manager.cpp
Level_bullet_manager_firetrace.cpp
Level_Bullet_Manager.h
Expand Down Expand Up @@ -921,8 +878,6 @@ target_sources(xrGame PRIVATE
object_property_evaluators.cpp
object_property_evaluators.h
object_property_evaluators_inline.h
obsolete_queue.h
obsolete_queue_inline.h
obstacles_query.cpp
obstacles_query.h
obstacles_query_inline.h
Expand Down Expand Up @@ -1008,41 +963,6 @@ target_sources(xrGame PRIVATE
player_hud_tune.h
player_name_modifyer.cpp
player_name_modifyer.h
player_spot_params.cpp
player_spot_params.h
player_state_achilles_heel.cpp
player_state_achilles_heel.h
player_state_ambassador.cpp
player_state_ambassador.h
player_state_ammo_elapsed.cpp
player_state_ammo_elapsed.h
player_state_avenger.cpp
player_state_avenger.h
player_state_blitzkrieg.cpp
player_state_blitzkrieg.h
player_state_cherub.cpp
player_state_cherub.h
player_state_climber.cpp
player_state_climber.h
player_state_mad.cpp
player_state_mad.h
player_state_marksman.cpp
player_state_marksman.h
player_state_multichampion.cpp
player_state_multichampion.h
player_state_opener.cpp
player_state_opener.h
player_state_param.h
player_state_params.cpp
player_state_params.h
player_state_remembrance.cpp
player_state_remembrance.h
player_state_skewer.cpp
player_state_skewer.h
player_state_toughy.cpp
player_state_toughy.h
player_team_win_score.cpp
player_team_win_score.h
pose_extrapolation.cpp
pose_extrapolation.h
poses_blending.cpp
Expand All @@ -1053,7 +973,6 @@ target_sources(xrGame PRIVATE
pp_effector_custom.h
pp_effector_distance.cpp
pp_effector_distance.h
profile_data_types.cpp
profile_data_types.h
profile_data_types_script.cpp
profile_data_types_script.h
Expand Down Expand Up @@ -1104,16 +1023,6 @@ target_sources(xrGame PRIVATE
restricted_object_inline.h
restricted_object_obstacle.cpp
restricted_object_obstacle.h
reward_event_generator.cpp
reward_event_generator.h
reward_event_handler.h
rewarding_events_handlers.cpp
rewarding_events_handlers.h
rewarding_state_events.cpp
rewarding_state_events.h
reward_manager.cpp
reward_manager.h
reward_snd_messages.h
RGD5.h
RocketLauncher.cpp
RocketLauncher.h
Expand Down Expand Up @@ -1266,8 +1175,6 @@ target_sources(xrGame PRIVATE
sight_manager_target.cpp
Silencer.cpp
Silencer.h
silent_shots.cpp
silent_shots.h
SimpleDetector.cpp
SimpleDetector.h
SleepEffector.cpp
Expand Down Expand Up @@ -1362,8 +1269,6 @@ target_sources(xrGame PRIVATE
spectator_camera_first_eye.h
Spectator.cpp
Spectator.h
sprinter_stopper.cpp
sprinter_stopper.h
squad_hierarchy_holder.cpp
squad_hierarchy_holder.h
squad_hierarchy_holder_inline.h
Expand Down Expand Up @@ -1441,8 +1346,6 @@ target_sources(xrGame PRIVATE
stalker_death_planner.cpp
stalker_death_planner.h
stalker_decision_space.h
stalker_flair.cpp
stalker_flair.h
stalker_get_distance_actions.cpp
stalker_get_distance_actions.h
stalker_get_distance_planner.cpp
Expand Down Expand Up @@ -1497,16 +1400,11 @@ target_sources(xrGame PRIVATE
stalker_velocity_holder.cpp
stalker_velocity_holder.h
stalker_velocity_holder_inline.h
state_arguments_functions.cpp
state_arguments_functions.h
static_cast_checked.hpp
#static_cast_checked_test.cpp
static_obstacles_avoider.cpp
static_obstacles_avoider.h
static_obstacles_avoider_inline.h
#stats_submitter.cpp
stats_submitter_dsa_params.cpp
stats_submitter.h
StdAfx.cpp
StdAfx.h
steering_behaviour_alignment.h
Expand Down Expand Up @@ -1553,8 +1451,6 @@ target_sources(xrGame PRIVATE
traffic_optimization.h
trajectories.cpp
trajectories.h
UIAchivementsIndicator.cpp
UIAchivementsIndicator.h
UIDialogHolder.cpp
UIDialogHolder.h
ui_export_script.cpp
Expand Down
4 changes: 0 additions & 4 deletions src/xrGame/GameObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
#include "xrPhysics/MathUtils.h"
#include "game_cl_base_weapon_usage_statistic.h"
#include "game_cl_mp.h"
#include "reward_event_generator.h"
#include "xrAICore/Navigation/game_level_cross_table.h"
#include "ai_obstacle.h"
#include "magic_box3.h"
Expand Down Expand Up @@ -392,9 +391,6 @@ void CGameObject::OnEvent(NET_Packet& P, u16 type)
if (GameID() != eGameIDSingle)
{
Game().m_WeaponUsageStatistic->OnBullet_Check_Result(false);
game_cl_mp* mp_game = smart_cast<game_cl_mp*>(&Game());
if (mp_game->get_reward_generator())
mp_game->get_reward_generator()->OnBullet_Hit(Hitter, this, Weapon, HDS.boneID);
}
//---------------------------------------------------------------------------
}
Expand Down
4 changes: 0 additions & 4 deletions src/xrGame/Level_Bullet_Manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include "mt_config.h"
#include "game_cl_base_weapon_usage_statistic.h"
#include "game_cl_mp.h"
#include "reward_event_generator.h"

#include "Include/xrRender/UIRender.h"
#include "Include/xrRender/Kinematics.h"
Expand Down Expand Up @@ -196,9 +195,6 @@ void CBulletManager::AddBullet(const Fvector& position, const Fvector& direction
{
if (SendHit)
Game().m_WeaponUsageStatistic->OnBullet_Fire(&bullet, cartridge);
game_cl_mp* tmp_cl_game = smart_cast<game_cl_mp*>(&Game());
if (tmp_cl_game->get_reward_generator())
tmp_cl_game->get_reward_generator()->OnBullet_Fire(sender_id, sendersweapon_id, position, direction);
}
}

Expand Down
21 changes: 1 addition & 20 deletions src/xrGame/MainMenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
#include "account_manager.h"
#include "login_manager.h"
#include "profile_store.h"
#include "stats_submitter.h"
#include "atlas_submit_queue.h"
#include "xrEngine/xr_input.h"

// fwd. decl.
Expand Down Expand Up @@ -104,14 +102,6 @@ CMainMenu::CMainMenu()
m_deactivated_frame = 0;

m_sPatchURL = "";
#ifdef XR_PLATFORM_WINDOWS
m_pGameSpyFull = NULL;
m_account_mngr = NULL;
m_login_mngr = NULL;
m_profile_store = NULL;
m_stats_submitter = NULL;
m_atlas_submit_queue = NULL;
#endif

m_sPDProgress.IsInProgress = false;
m_downloaded_mp_map_url._set("");
Expand Down Expand Up @@ -155,16 +145,10 @@ CMainMenu::CMainMenu()
downloadMsg->AddCallbackStr(
"button_yes", MESSAGE_BOX_YES_CLICKED, CUIWndCallback::void_function(this, &CMainMenu::OnDownloadMPMap));
}

#endif

m_account_mngr = xr_new<gamespy_gp::account_manager>(m_pGameSpyFull->GetGameSpyGP());
m_login_mngr = xr_new<gamespy_gp::login_manager>(m_pGameSpyFull);
m_profile_store = xr_new<gamespy_profile::profile_store>(m_pGameSpyFull);
#ifdef XR_PLATFORM_WINDOWS
m_stats_submitter = xr_new<gamespy_profile::stats_submitter>(m_pGameSpyFull);
m_atlas_submit_queue = xr_new<atlas_submit_queue>(m_stats_submitter);
#endif
m_profile_store = xr_new<gamespy_profile::profile_store>();
}

Device.seqFrame.Add(this, REG_PRIORITY_LOW - 1000);
Expand All @@ -185,8 +169,6 @@ CMainMenu::~CMainMenu()
xr_delete(m_account_mngr);
xr_delete(m_login_mngr);
xr_delete(m_profile_store);
xr_delete(m_stats_submitter);
xr_delete(m_atlas_submit_queue);

xr_delete(m_pGameSpyFull);
#endif
Expand Down Expand Up @@ -593,7 +575,6 @@ void CMainMenu::OnFrame()
case GSUpdateStatus::Unknown: SetErrorDialog(ErrMasterServerConnectFailed); break;
case GSUpdateStatus::OutOfService: SetErrorDialog(ErrGSServiceFailed); break;
}
m_atlas_submit_queue->update();
}
#endif

Expand Down
Loading

0 comments on commit cd0dff6

Please sign in to comment.