From 82402a715aff1df4209b1acb32454e181ff11ccf Mon Sep 17 00:00:00 2001 From: RussiaTails <113246593+RussiaTails@users.noreply.github.com> Date: Tue, 9 Sep 2025 02:35:03 +0300 Subject: [PATCH 1/9] Revert "Windows 32bit and 64bit Build" --- .github/workflows/build.yml | 25 +++++-------------------- utils/RCBot2_meta/bot_cvars.cpp | 5 ----- utils/RCBot2_meta/bot_cvars.h | 5 ----- utils/RCBot2_meta/bot_fortress.cpp | 17 ++++++++++------- utils/RCBot2_meta/bot_fortress.h | 1 - utils/RCBot2_meta/bot_tf2_mod.cpp | 5 ++--- utils/RCBot2_meta/bot_waypoint.cpp | 19 ++++++++----------- 7 files changed, 25 insertions(+), 52 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d35fe6379..48979677f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,8 +15,7 @@ jobs: matrix: os: - ubuntu-22.04 - - windows-x32 - - windows-x64 + - windows-latest include: - meta_branch: "1.11-dev" sm_branch: "1.11-dev" @@ -28,28 +27,14 @@ jobs: dbg_ext: dbg cc: clang cxx: clang++ - vs_arch: unused - am_arch: x86,x86_64 - - os: windows-x32 - os_short: win32 + - os: windows-latest + os_short: win os_version: windows-latest package_ext: zip dbg_ext: pdb cc: not-used cxx: not-used - vs_arch: x32 - am_arch: x86 - - - os: windows-x64 - os_short: win64 - os_version: windows-latest - package_ext: zip - dbg_ext: pdb - cc: not-used - cxx: not-used - vs_arch: x64 - am_arch: x86_64 steps: - name: Install (Linux) @@ -71,7 +56,7 @@ jobs: run: | :: See https://github.com/microsoft/vswhere/wiki/Find-VC for /f "usebackq delims=*" %%i in (`vswhere -latest -property installationPath`) do ( - call "%%i"\Common7\Tools\vsdevcmd.bat -arch=${{ matrix.vs_arch }} -host_arch=x64 + call "%%i"\Common7\Tools\vsdevcmd.bat -arch=x86 -host_arch=x64 ) :: Loop over all environment variables and make them global. @@ -101,7 +86,7 @@ jobs: run: | mkdir post cd post - python3 ../configure.py --sdks=present --mms-path="${{ github.workspace }}/rcbot2/alliedmodders/metamod-source" --sm-path="${{ github.workspace }}/rcbot2/alliedmodders/sourcemod" --hl2sdk-root="${{ github.workspace }}/rcbot2/alliedmodders" --symbol-files --target ${{ matrix.am_arch }} + python3 ../configure.py --sdks=present --mms-path="${{ github.workspace }}/rcbot2/alliedmodders/metamod-source" --sm-path="${{ github.workspace }}/rcbot2/alliedmodders/sourcemod" --hl2sdk-root="${{ github.workspace }}/rcbot2/alliedmodders" --symbol-files ambuild - uses: benjlevesque/short-sha@v2.2 diff --git a/utils/RCBot2_meta/bot_cvars.cpp b/utils/RCBot2_meta/bot_cvars.cpp index 64e3eafa9..5e0e32125 100644 --- a/utils/RCBot2_meta/bot_cvars.cpp +++ b/utils/RCBot2_meta/bot_cvars.cpp @@ -108,8 +108,6 @@ ConVar rcbot_bot_quota_interval("rcbot_bot_quota_interval", "10", 0, "Interval b ConVar rcbot_show_welcome_msg("rcbot_show_welcome_msg", "1", 0, "Show welcome message on player connect");//Not referenced properly? [APG]RoboCop[CL] ConVar rcbot_force_class("rcbot_force_class", "0", 0, "Force bots to choose specified class, kills alive bots on change (1 - 9, set to 0 for none)"); -ConVar rcbot_waypoint_ignore_map_mismatch("rcbot_waypoint_ignore_map_mismatch", "1", 0, "If 1, waypoints will be loaded even if there's a mismatch."); - // Synergy CVars ConVar rcbot_runplayercmd_syn("rcbot_runplayer_cmd_syn", "424", 0, "offset of the Synergy PlayerRunCommand function"); ConVar rcbot_syn_use_search_range("rcbot_syn_use_search_range", "256", 0, "Sets the maximum button search range.", true, 150.0f, true, 1024.0f); @@ -128,9 +126,6 @@ ConVarRef mp_stalemate_meleeonly("mp_stalemate_meleeonly"); ConVarRef mp_roundtime("mp_roundtime"); ConVarRef mp_c4timer("mp_c4timer"); -// Rafmod -ConVarRef sig_mvm_changeclass_anytime("sig_mvm_changeclass_anytime"); - void RCBOT2_Cvar_setup(ICvar* cvar) //'cvar' hides global declaration from /public/icvar.h [APG]RoboCop[CL] { if (cvar == nullptr) diff --git a/utils/RCBot2_meta/bot_cvars.h b/utils/RCBot2_meta/bot_cvars.h index 79f20a1d1..7a5f30fd5 100644 --- a/utils/RCBot2_meta/bot_cvars.h +++ b/utils/RCBot2_meta/bot_cvars.h @@ -93,7 +93,6 @@ extern ConVar rcbot_bot_quota_interval; //extern ConVar rcbot_const_point_master_offset; extern ConVar rcbot_util_learning; - //Synergy Cvars extern ConVar rcbot_runplayercmd_syn; extern ConVar rcbot_syn_use_search_range; @@ -115,10 +114,6 @@ extern ConVarRef mp_stalemate_enable; extern ConVarRef mp_roundtime; extern ConVarRef mp_c4timer; -/** Heapons **/ -extern ConVarRef sig_mvm_changeclass_anytime; -extern ConVar rcbot_waypoint_ignore_map_mismatch; - void RCBOT2_Cvar_setup (ICvar* cvar); #endif diff --git a/utils/RCBot2_meta/bot_fortress.cpp b/utils/RCBot2_meta/bot_fortress.cpp index 7698a64c5..b72e51395 100644 --- a/utils/RCBot2_meta/bot_fortress.cpp +++ b/utils/RCBot2_meta/bot_fortress.cpp @@ -389,12 +389,12 @@ bool CBotFortress::startGame() // Removed "(m_iDesiredClass > 0 && (m_iClass != m_iDesiredClass))" to avoid bots trying to change class when it was forced by something like in VSH and VIP maps { // can't change class in MVM during round! - if (CTeamFortress2Mod::isMapType(TF_MAP_MVM) && CTeamFortress2Mod::hasRoundStarted() && !sig_mvm_changeclass_anytime.GetBool()) + if (CTeamFortress2Mod::isMapType(TF_MAP_MVM) && CTeamFortress2Mod::hasRoundStarted()) { return true; } if (CTeamFortress2Mod::isMapType(TF_MAP_SAXTON) || CTeamFortress2Mod::isMapType(TF_MAP_GG) || - std::strncmp(szmapname, "vip_", 4) == 0 || std::strncmp(szmapname, "vipr_", 5) == 0 || std::strncmp(szmapname, "cw_", 3) == 0 || + std::strncmp(szmapname, "vip_", 4) == 0 || std::strncmp(szmapname, "cw_", 3) == 0 || std::strncmp(szmapname, "ctf_2fort_sniperwars", 20) == 0 || std::strncmp(szmapname, "dm_", 3) == 0) { return true; @@ -2819,9 +2819,6 @@ void CBotFortress::chooseClass() case 9: m_iDesiredClass = TF_CLASS_SPY; break; - case 10: - m_iDesiredClass = 10; // TF_CLASS_CIVILIAN - break; } } else @@ -7929,10 +7926,16 @@ bool CBotTF2::isEnemy(edict_t* pEdict, const bool bCheckWeapons) } }*/ } - if (CBotGlobals::getTeam(pEdict) == getTeam()) + /*if (mp_friendlyfire.GetInt() == 1) { - return mp_friendlyfire.GetBool(); + if (CBotGlobals::getTeam(pEdict) == getTeam()) + return true; } + if (mp_friendlyfire.GetInt() == 0) + { + if (CBotGlobals::getTeam(pEdict) == getTeam()) + return false; + }*/ //Doesn't work } // TODO: to allow bots to properly attack RD Robots [APG]RoboCop[CL] else if ( (CTeamFortress2Mod::isMapType(TF_MAP_RD) || CTeamFortress2Mod::isMapType(TF_MAP_CTF)) && !std::strcmp(pEdict->GetClassName(),"tf_robot_destruction_robot") && (CClassInterface::getTeam(pEdict) != m_iTeam)) diff --git a/utils/RCBot2_meta/bot_fortress.h b/utils/RCBot2_meta/bot_fortress.h index 6a859b716..f24bf891f 100644 --- a/utils/RCBot2_meta/bot_fortress.h +++ b/utils/RCBot2_meta/bot_fortress.h @@ -284,7 +284,6 @@ typedef enum : std::uint8_t TF_CLASS_PYRO, TF_CLASS_SPY, TF_CLASS_ENGINEER, - //TF_CLASS_CIVILIAN, TF_CLASS_MAX }TF_Class; diff --git a/utils/RCBot2_meta/bot_tf2_mod.cpp b/utils/RCBot2_meta/bot_tf2_mod.cpp index cc85f618d..8f52eeb7a 100644 --- a/utils/RCBot2_meta/bot_tf2_mod.cpp +++ b/utils/RCBot2_meta/bot_tf2_mod.cpp @@ -280,10 +280,9 @@ void CTeamFortress2Mod :: mapInit () std::strncmp(szmapname, "stt_", 4) == 0 || std::strncmp(szmapname, "koth_lifesnatcher", 17) == 0 || std::strncmp(szmapname, "vip_", 4) == 0 || - std::strncmp(szmapname, "vipr_", 5) == 0 || + std::strncmp(szmapname, "vipr_", 5) != 0 || std::strncmp(szmapname, "szf_", 4) == 0 || - std::strncmp(szmapname, "zf_", 3) == 0 || - std::strncmp(szmapname, "ze_", 3) == 0) + std::strncmp(szmapname, "zf_", 3) == 0) // Conquest, 2koth and DOM works fine as CP_. Moved stt to cp to make bots attack a tank - RussiaTails m_MapType = TF_MAP_CP; // control point else if (std::strncmp(szmapname, "tc_", 3) == 0) diff --git a/utils/RCBot2_meta/bot_waypoint.cpp b/utils/RCBot2_meta/bot_waypoint.cpp index 1970efaa1..a372c02db 100644 --- a/utils/RCBot2_meta/bot_waypoint.cpp +++ b/utils/RCBot2_meta/bot_waypoint.cpp @@ -1849,23 +1849,20 @@ bool CWaypoints :: load (const char *szMapName) return false; } - if (!rcbot_waypoint_ignore_map_mismatch.GetBool()) + if ( szMapName ) { - if ( szMapName ) - { - if ( !FStrEq(header.szMapName,szMapName) ) - { - logger->Log(LogLevel::ERROR, "Error loading waypoints: Map name mismatch"); - return false; - } - } - else if ( !FStrEq(header.szMapName,CBotGlobals::getMapName()) ) + if ( !FStrEq(header.szMapName,szMapName) ) { logger->Log(LogLevel::ERROR, "Error loading waypoints: Map name mismatch"); return false; } } - + else if ( !FStrEq(header.szMapName,CBotGlobals::getMapName()) ) + { + logger->Log(LogLevel::ERROR, "Error loading waypoints: Map name mismatch"); + return false; + } + if ( header.iVersion > 3 ) { // load author information From 451461b9d9fbe8a3382be2717ee1a18939d3eab4 Mon Sep 17 00:00:00 2001 From: RussiaTails <113246593+RussiaTails@users.noreply.github.com> Date: Tue, 9 Sep 2025 02:36:21 +0300 Subject: [PATCH 2/9] Update bot_tf2_mod.cpp --- utils/RCBot2_meta/bot_tf2_mod.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/RCBot2_meta/bot_tf2_mod.cpp b/utils/RCBot2_meta/bot_tf2_mod.cpp index 8f52eeb7a..1a985372a 100644 --- a/utils/RCBot2_meta/bot_tf2_mod.cpp +++ b/utils/RCBot2_meta/bot_tf2_mod.cpp @@ -269,7 +269,7 @@ void CTeamFortress2Mod :: mapInit () !(std::strncmp(szmapname, "ctf_chouhen", 11) == 0 || std::strncmp(szmapname, "ctf_haarp", 9) == 0))) // Quake Turbine is CTF. - RussiaTails m_MapType = TF_MAP_CTF; // capture the flag - else if ((std::strncmp(szmapname, "cp_", 3) == 0 || std::strncmp(szmapname, "cp_", 3) == 1) || + else if ((std::strncmp(szmapname, "cp_", 3) == 0 || std::strncmp(szmapname, "cqt_", 4) == 0 || std::strncmp(szmapname, "conquest_", 9) == 0 || std::strncmp(szmapname, "dom_", 4) == 0 || From 578a70d6e31017d59a66a95de72f1aef729eadb1 Mon Sep 17 00:00:00 2001 From: RussiaTails <113246593+RussiaTails@users.noreply.github.com> Date: Tue, 9 Sep 2025 02:44:53 +0300 Subject: [PATCH 3/9] Update bot_fortress.cpp Fixed some Conditions not working + added more --- utils/RCBot2_meta/bot_fortress.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utils/RCBot2_meta/bot_fortress.cpp b/utils/RCBot2_meta/bot_fortress.cpp index b72e51395..6b34e7726 100644 --- a/utils/RCBot2_meta/bot_fortress.cpp +++ b/utils/RCBot2_meta/bot_fortress.cpp @@ -7801,8 +7801,10 @@ bool CBotTF2::isEnemy(edict_t* pEdict, const bool bCheckWeapons) const int iConds = CClassInterface::getTF2Conditions(pEdict); const bool bExposedCloaked = CClassInterface::getTF2SpyCloakMeter(pEdict) == 0.0f || ((CTeamFortress2Mod::isMapType(TF_MAP_ZI) || CTeamFortress2Mod::isMapType(TF_MAP_SAXTON)) - && (CTF2Conditions::TF2_IsPlayerInCondition(entIndex, TFCond_Kritzkrieged) || - CTF2Conditions::TF2_IsPlayerInCondition(entIndex, TFCond_Buffed))) /*Buff exposes invisibility - RussiaTails*/ + && (CTF2Conditions::TF2_IsPlayerInCondition(edictIndex, TFCond_Kritzkrieged) || + CTF2Conditions::TF2_IsPlayerInCondition(edictIndex, TFCond_Buffed))) /*Buff exposes invisibility - RussiaTails*/ + || CTF2Conditions::TF2_IsPlayerInCondition(edictIndex, TFCond_Sapped) + || CTF2Conditions::TF2_IsPlayerInCondition(edictIndex, TFCond_MVMBotRadiowave) || CTeamFortress2Mod::TF2_IsPlayerOnFire(pEdict) // if he is on fire and cloaked I can see him || iConds & (1 << 9) /* Flicker */ || iConds & (1 << 24) /* Jarated */ From 8542980dd867322c0d289b0f41e5d55cfb5d97e7 Mon Sep 17 00:00:00 2001 From: RussiaTails <113246593+RussiaTails@users.noreply.github.com> Date: Tue, 9 Sep 2025 02:48:20 +0300 Subject: [PATCH 4/9] Brought back one commit --- .github/workflows/build.yml | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 48979677f..d35fe6379 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,8 @@ jobs: matrix: os: - ubuntu-22.04 - - windows-latest + - windows-x32 + - windows-x64 include: - meta_branch: "1.11-dev" sm_branch: "1.11-dev" @@ -27,14 +28,28 @@ jobs: dbg_ext: dbg cc: clang cxx: clang++ + vs_arch: unused + am_arch: x86,x86_64 - - os: windows-latest - os_short: win + - os: windows-x32 + os_short: win32 os_version: windows-latest package_ext: zip dbg_ext: pdb cc: not-used cxx: not-used + vs_arch: x32 + am_arch: x86 + + - os: windows-x64 + os_short: win64 + os_version: windows-latest + package_ext: zip + dbg_ext: pdb + cc: not-used + cxx: not-used + vs_arch: x64 + am_arch: x86_64 steps: - name: Install (Linux) @@ -56,7 +71,7 @@ jobs: run: | :: See https://github.com/microsoft/vswhere/wiki/Find-VC for /f "usebackq delims=*" %%i in (`vswhere -latest -property installationPath`) do ( - call "%%i"\Common7\Tools\vsdevcmd.bat -arch=x86 -host_arch=x64 + call "%%i"\Common7\Tools\vsdevcmd.bat -arch=${{ matrix.vs_arch }} -host_arch=x64 ) :: Loop over all environment variables and make them global. @@ -86,7 +101,7 @@ jobs: run: | mkdir post cd post - python3 ../configure.py --sdks=present --mms-path="${{ github.workspace }}/rcbot2/alliedmodders/metamod-source" --sm-path="${{ github.workspace }}/rcbot2/alliedmodders/sourcemod" --hl2sdk-root="${{ github.workspace }}/rcbot2/alliedmodders" --symbol-files + python3 ../configure.py --sdks=present --mms-path="${{ github.workspace }}/rcbot2/alliedmodders/metamod-source" --sm-path="${{ github.workspace }}/rcbot2/alliedmodders/sourcemod" --hl2sdk-root="${{ github.workspace }}/rcbot2/alliedmodders" --symbol-files --target ${{ matrix.am_arch }} ambuild - uses: benjlevesque/short-sha@v2.2 From ef9269080697edcf5c84811539bbbef64f4f8fff Mon Sep 17 00:00:00 2001 From: RussiaTails <113246593+RussiaTails@users.noreply.github.com> Date: Tue, 9 Sep 2025 03:15:34 +0300 Subject: [PATCH 5/9] bruh --- utils/RCBot2_meta/bot_tf2_mod.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/RCBot2_meta/bot_tf2_mod.cpp b/utils/RCBot2_meta/bot_tf2_mod.cpp index 1a985372a..2e1317036 100644 --- a/utils/RCBot2_meta/bot_tf2_mod.cpp +++ b/utils/RCBot2_meta/bot_tf2_mod.cpp @@ -269,7 +269,7 @@ void CTeamFortress2Mod :: mapInit () !(std::strncmp(szmapname, "ctf_chouhen", 11) == 0 || std::strncmp(szmapname, "ctf_haarp", 9) == 0))) // Quake Turbine is CTF. - RussiaTails m_MapType = TF_MAP_CTF; // capture the flag - else if ((std::strncmp(szmapname, "cp_", 3) == 0 || + else if (std::strncmp(szmapname, "cp_", 3) == 0 || std::strncmp(szmapname, "cqt_", 4) == 0 || std::strncmp(szmapname, "conquest_", 9) == 0 || std::strncmp(szmapname, "dom_", 4) == 0 || From 113c69ae93e307e05b0b4a85360a90d079e3ca7a Mon Sep 17 00:00:00 2001 From: RussiaTails <113246593+RussiaTails@users.noreply.github.com> Date: Tue, 9 Sep 2025 03:36:19 +0300 Subject: [PATCH 6/9] Clean up in bot_tf2_mod.cpp Removed non functional lines --- utils/RCBot2_meta/bot_tf2_mod.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/utils/RCBot2_meta/bot_tf2_mod.cpp b/utils/RCBot2_meta/bot_tf2_mod.cpp index 2e1317036..919b87cf8 100644 --- a/utils/RCBot2_meta/bot_tf2_mod.cpp +++ b/utils/RCBot2_meta/bot_tf2_mod.cpp @@ -265,17 +265,14 @@ void CTeamFortress2Mod :: mapInit () if (std::strncmp(szmapname, "ctf_", 4) == 0 || std::strncmp(szmapname, "quake_turbine", 13) == 0 || std::strncmp(szmapname, "pass_", 5) == 0 || std::strncmp(szmapname, "pd_", 3) == 0 || std::strncmp(szmapname, "od_", 3) == 0 || - (std::strncmp(szmapname, "slendytubbies", 13) == 0 && - !(std::strncmp(szmapname, "ctf_chouhen", 11) == 0 || std::strncmp(szmapname, "ctf_haarp", 9) == 0))) + std::strncmp(szmapname, "slendytubbies", 13) == 0) // Quake Turbine is CTF. - RussiaTails - m_MapType = TF_MAP_CTF; // capture the flag + m_MapType = TF_MAP_CTF; // capture the flag + pass time + player destruction else if (std::strncmp(szmapname, "cp_", 3) == 0 || std::strncmp(szmapname, "cqt_", 4) == 0 || std::strncmp(szmapname, "conquest_", 9) == 0 || std::strncmp(szmapname, "dom_", 4) == 0 || std::strncmp(szmapname, "2koth_", 6) == 0 || - std::strncmp(szmapname, "ctf_chouhen", 11) == 0 || - std::strncmp(szmapname, "ctf_haarp", 9) == 0 || std::strncmp(szmapname, "falling_cp", 10) == 0 || std::strncmp(szmapname, "stt_", 4) == 0 || std::strncmp(szmapname, "koth_lifesnatcher", 17) == 0 || @@ -288,9 +285,7 @@ void CTeamFortress2Mod :: mapInit () else if (std::strncmp(szmapname, "tc_", 3) == 0) m_MapType = TF_MAP_TC; // territory control else if (std::strncmp(szmapname, "pl_", 3) == 0 || - (std::strncmp(szmapname, "kotc_", 5) == 0 && - (!(std::strncmp(szmapname, "pl_fountain", 11) == 0 || - std::strncmp(szmapname, "pl_divulgence", 13) == 0)))) + std::strncmp(szmapname, "kotc_", 5) == 0) // Tug of War works fine as Payload - RussiaTails m_MapType = TF_MAP_CART; // pipeline else if (std::strncmp(szmapname, "plr_", 4) == 0 || std::strncmp(szmapname, "tow_", 4) == 0 || @@ -314,8 +309,7 @@ void CTeamFortress2Mod :: mapInit () m_MapType = TF_MAP_SD; // special delivery else if (std::strncmp(szmapname, "tr_", 3) == 0) m_MapType = TF_MAP_TR; // training mode - else if (std::strncmp(szmapname, "cppl_", 5) == 0 || std::strncmp(szmapname, "pl_fountain", 11) == 0 || - std::strncmp(szmapname, "pl_divulgence", 13) == 0 || std::strncmp(szmapname, "cp_helmsdeep_v2", 15) == 0 || + else if (std::strncmp(szmapname, "cppl_", 5) == || std::strncmp(szmapname, "cw_", 3) == 0) // Hybrid - RussiaTails m_MapType = TF_MAP_CPPL; // CP+PL maps else if (std::strncmp(szmapname, "gg_", 3) == 0 || std::strncmp(szmapname, "dm_hydro", 8) == 0 || From 3aefba2f2e9bf4f63a77130575e4d65bbdd0bb44 Mon Sep 17 00:00:00 2001 From: RussiaTails <113246593+RussiaTails@users.noreply.github.com> Date: Tue, 9 Sep 2025 03:46:40 +0300 Subject: [PATCH 7/9] Why Heapons even did this? --- utils/RCBot2_meta/bot_tf2_mod.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/RCBot2_meta/bot_tf2_mod.cpp b/utils/RCBot2_meta/bot_tf2_mod.cpp index 919b87cf8..567234855 100644 --- a/utils/RCBot2_meta/bot_tf2_mod.cpp +++ b/utils/RCBot2_meta/bot_tf2_mod.cpp @@ -277,7 +277,7 @@ void CTeamFortress2Mod :: mapInit () std::strncmp(szmapname, "stt_", 4) == 0 || std::strncmp(szmapname, "koth_lifesnatcher", 17) == 0 || std::strncmp(szmapname, "vip_", 4) == 0 || - std::strncmp(szmapname, "vipr_", 5) != 0 || + std::strncmp(szmapname, "vipr_", 5) == 0 || std::strncmp(szmapname, "szf_", 4) == 0 || std::strncmp(szmapname, "zf_", 3) == 0) // Conquest, 2koth and DOM works fine as CP_. Moved stt to cp to make bots attack a tank - RussiaTails From 8e218d8002b6301effbddc010caad37402652641 Mon Sep 17 00:00:00 2001 From: RussiaTails <113246593+RussiaTails@users.noreply.github.com> Date: Tue, 9 Sep 2025 04:02:05 +0300 Subject: [PATCH 8/9] =?UTF-8?q?0=EF=B8=8F=E2=83=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/RCBot2_meta/bot_tf2_mod.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/RCBot2_meta/bot_tf2_mod.cpp b/utils/RCBot2_meta/bot_tf2_mod.cpp index 567234855..7241eeb6b 100644 --- a/utils/RCBot2_meta/bot_tf2_mod.cpp +++ b/utils/RCBot2_meta/bot_tf2_mod.cpp @@ -309,7 +309,7 @@ void CTeamFortress2Mod :: mapInit () m_MapType = TF_MAP_SD; // special delivery else if (std::strncmp(szmapname, "tr_", 3) == 0) m_MapType = TF_MAP_TR; // training mode - else if (std::strncmp(szmapname, "cppl_", 5) == || + else if (std::strncmp(szmapname, "cppl_", 5) == 0 || std::strncmp(szmapname, "cw_", 3) == 0) // Hybrid - RussiaTails m_MapType = TF_MAP_CPPL; // CP+PL maps else if (std::strncmp(szmapname, "gg_", 3) == 0 || std::strncmp(szmapname, "dm_hydro", 8) == 0 || From 5579b40cf6e47b13f983f26dff2a613621b74423 Mon Sep 17 00:00:00 2001 From: RussiaTails <113246593+RussiaTails@users.noreply.github.com> Date: Tue, 9 Sep 2025 14:10:50 +0300 Subject: [PATCH 9/9] Enable Optimize test Check if this fix broken build for windows --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d35fe6379..d31b57e2c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -101,7 +101,7 @@ jobs: run: | mkdir post cd post - python3 ../configure.py --sdks=present --mms-path="${{ github.workspace }}/rcbot2/alliedmodders/metamod-source" --sm-path="${{ github.workspace }}/rcbot2/alliedmodders/sourcemod" --hl2sdk-root="${{ github.workspace }}/rcbot2/alliedmodders" --symbol-files --target ${{ matrix.am_arch }} + python3 ../configure.py --sdks=present --mms-path="${{ github.workspace }}/rcbot2/alliedmodders/metamod-source" --sm-path="${{ github.workspace }}/rcbot2/alliedmodders/sourcemod" --hl2sdk-root="${{ github.workspace }}/rcbot2/alliedmodders" --symbol-files --target ${{ matrix.am_arch }} --enable-optimize ambuild - uses: benjlevesque/short-sha@v2.2