Skip to content

Recent Fixes and Possible coding issues spotted#2

Open
APGRoboCop wants to merge 736 commits into
pongo1231:masterfrom
APGRoboCop:master
Open

Recent Fixes and Possible coding issues spotted#2
APGRoboCop wants to merge 736 commits into
pongo1231:masterfrom
APGRoboCop:master

Conversation

@APGRoboCop
Copy link
Copy Markdown

I've added my nickname as [APG]RoboCop[CL] for the comments to indicate and display some possible bugs or memory leaks

pongo1231 pushed a commit that referenced this pull request Jun 13, 2021
This is probably more robust than the call I was going to use.  Close #2.
@pongo1231 pongo1231 force-pushed the master branch 4 times, most recently from 76ac3a9 to feed212 Compare January 2, 2025 17:19
R. Hunter and others added 23 commits May 4, 2025 14:18
Co-Authored-By: RussiaTails <113246593+russiatails@users.noreply.github.com>
Thread 1 "srcds_linux" received signal SIGSEGV, Segmentation fault. 0xe3905650 in CBotEntPropIndexToAThings (this=<optimized out>, num=<optimized out>, pEntData=<optimized out>, pEdictData=<optimized out>) at /home/linux/Dropbox/src/rcbot2/rcbot/entprops.cpp:335 335     /home/linux/Dropbox/src/rcbot2/rcbot/entprops.cpp: No such file or directory. (gdb) bt #0  0xe3905650 in CBotEntPropIndexToAThings (this=<optimized out>, num=<optimized out>, pEntData=<optimized out>, pEdictData=<optimized out>) at /home/linux/Dropbox/src/rcbot2/rcbot/entprops.cpp:335 #1  CBotEntPropGetEntProp (this=0xe4df1b4c <s_entprops>, entity=1, proptype=Prop_Send, prop=0xe3a1da00 "m_nPlayerCondEx", size=4, element=0) at /home/linux/Dropbox/src/rcbot2/rcbot/entprops.cpp:388 #2  0xe390aa09 in CTF2ConditionsTF2_IsPlayerInCondition (client=1, cond=TFCond_UberchargedHidden) at /home/linux/Dropbox/src/rcbot2/rcbot/tf2/conditions.cpp:72 #3  0xe389af20 in CBotTF2isEnemy (this=0x100a1da0, pEdict=0x10223da4, bCheckWeapons=<optimized out>) at /home/linux/Dropbox/src/rcbot2/utils/RCBot2_meta/bot_fortress.cpp:7656 #4  0xe383299f in CBotupdateStatistics (this=0x100a1da0) at /home/linux/Dropbox/src/rcbot2/utils/RCBot2_meta/bot.cpp:1965 #5  0xe3831555 in CBotthink (this=0x100a1da0) at /home/linux/Dropbox/src/rcbot2/utils/RCBot2_meta/bot.cpp:1009 #6  0xe38390fc in CBotsbotThink () at /home/linux/Dropbox/src/rcbot2/utils/RCBot2_meta/bot.cpp:3390 #7  0xe3900907 in RCBotPluginMetaHook_GameFrame ( this=0xe3aa3304 <g_RCBotPluginMeta>, simulating=<optimized out>) at /home/linux/Dropbox/src/rcbot2/utils/RCBot2_meta/bot_plugin_meta.cpp:814 #8  0xe3903ca5 in fastdelegateFastDelegate<void, bool>operator() ( this=<optimized out>, params=<optimized out>) --Type <RET> for more, q to quit, c to continue without paging-- at /home/linux/Dropbox/src/rcbot2/alliedmodders/metamod-source/core/sourcehook/FastDelegate.h:927 #9  __SourceHook_FHCls_IServerGameDLLGameFrame0CMyDelegateImplCall ( this=0x1009b8e0, p1=<optimized out>) at /home/linux/Dropbox/src/rcbot2/utils/RCBot2_meta/bot_plugin_meta.cpp:75 #10 0xeaf18710 in __SourceHook_FHCls_IServerGameDLLGameFramefalseFunc(bool) () from /home/debian/steamcmd/tf2n/tf/addons/sourcemod/bin/sourcemod.2.tf2.so #11 0xf654e5a8 in SV_Think(bool) () from /home/debian/steamcmd/tf2n/bin/engine_srv.so #12 0xf654ef4c in SV_Frame(bool) () from /home/debian/steamcmd/tf2n/bin/engine_srv.so #13 0xf65c9a42 in _Host_RunFrame_Server(bool) () from /home/debian/steamcmd/tf2n/bin/engine_srv.so #14 0xf65ca3e8 in _Host_RunFrame(float) () from /home/debian/steamcmd/tf2n/bin/engine_srv.so #15 0xf65d3d6b in CHostStateState_Run(float) () from /home/debian/steamcmd/tf2n/bin/engine_srv.so #16 0xf65d4110 in CHostStateFrameUpdate(float) () from /home/debian/steamcmd/tf2n/bin/engine_srv.so #17 0xf65d4263 in HostState_Frame(float) () from /home/debian/steamcmd/tf2n/bin/engine_srv.so #18 0xf662de7f in CEngineFrame() () --Type <RET> for more, q to quit, c to continue without paging-- from /home/debian/steamcmd/tf2n/bin/engine_srv.so #19 0xf662b6aa in CDedicatedServerAPIRunFrame() () from /home/debian/steamcmd/tf2n/bin/engine_srv.so #20 0xf72fe7e3 in RunServer() () from bin/dedicated_srv.so #21 0xf662b3ea in CModAppSystemGroupMain() () from /home/debian/steamcmd/tf2n/bin/engine_srv.so #22 0xf6678cf8 in CAppSystemGroupRun() () from /home/debian/steamcmd/tf2n/bin/engine_srv.so #23 0xf662c434 in CDedicatedServerAPIModInit(ModInfo_t&) () from /home/debian/steamcmd/tf2n/bin/engine_srv.so #24 0xf72fe474 in CDedicatedAppSystemGroupMain() () from bin/dedicated_srv.so #25 0xf7415778 in CAppSystemGroupRun() () from bin/dedicated_srv.so #26 0xf7415778 in CAppSystemGroupRun() () from bin/dedicated_srv.so #27 0xf72e805a in main () from bin/dedicated_srv.so #28 0x080491d4 in main () (gdb)
…ck/Defend])

Some CTF (Attack/Defend) maps support
- Engineers will no longer use defend waypoint type,
- Snipers with bow will no longer use sniper waypoint type
…of-Life

Quality of Life + Sniper's fix (TEAM FORTRESS 2)
R. Hunter and others added 30 commits April 12, 2026 15:07
Plus added some Unused local variable suspect comments
Copied from RedFox's FoXBot and adapted for RCBot2
BOSS maps support accepted!
Implement and declare CBotProfile::operator= to correctly copy numeric fields and string members (with self-assignment guard) and return *this; leave the copy constructor delegating to the assignment. Also fix a bounds check in CBotSquad::getMember by removing the invalid iMember < 0 test for a size_t index, preventing a pointless signed/unsigned comparison and ensuring proper out-of-range handling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants