Printable Version of Topic

Click here to view this topic in its original format

RCBot Forums _ RCbot2 _ [Download] RCBot2 (TF2, HL2:DM, DOD:S)

Posted by: RoboCop Jun 11 2017, 10:59 AM

https://github.com/APGRoboCop/rcbot2/releases <<-----Downloads Here

# RCBot2 for Windows and Linux (TF2, HL2:DM, DOD:S)

## Information

This is a fork of [the official RCBot2 plugin][rcbot2] written by Cheeseh.

[bots-united.com discord]: https://discord.gg/BbxR5wY

## Changes from upstream

- Build process uses [AMBuild][] instead of `make` or Visual Studio. This removes the need for
Valve's cross platform make conversion tool and keeping copies of modified Source SDK files.
- The plugin has been split into SDK-specific builds to ensure proper compatibility, using the
same loader shim SourceMod uses to load mod-specific builds.
- The shim is named `RCBot2Meta` to maintain compatibility with existing files; mod-specific
plugins are named `rcbot.2.${MOD}`.
- The `sdk-split` branch only contains modifications to get the project running on the
new build tooling and SDK support without issues. It should be fairly painless to merge
(though it does remove `using namespace std;` for sanity).
- The usage of the install directory has been dropped. In particular, waypoints must be located
under `rcbot2/waypoints/${MOD}` instead of nested under a folder matching the name of the
steamdir.
- Removed custom loadout and attribute support from the TF2 portion of the plugin. Other server
plugins (namely [tf2attributes][] and [TF2Items][], where the implementation was ported from)
are better-suited and maintained to handle that stuff; this plugin should only deal with bots
themselves.
- The Metamod:Source plugin can now optionally expose natives to SourceMod, adding some
functionality to control the RCBot2 plugin from SourcePawn.

[AMBuild]: https://wiki.alliedmods.net/AMBuild
[tf2attributes]: https://github.com/FlaminSarge/tf2attributes
[TF2Items]: https://github.com/asherkin/TF2Items

## Installation

1. [Install MetaMod:Source][].
2. Download or build the RCBot2 package.
3. Extract the package into your game directory, similar to the process of installing MM:S.
4. Start the server.
5. To verify that the installation was successful, type `rcbotd` in your server console or RCON.
You should see multiple lines starting with "[RCBot]".

Things like the waypointing guide, hookinfo updater, and waypoints themselves are currently not
available here. You can download those from the [official release thread][]. Waypoints are
also available at [this page][waypoints].

[Install MetaMod:Source]: https://wiki.alliedmods.net/Installing_Metamod:Source
[official release thread]: http://rcbot.bots-united.com/forums/index.php?showtopic=1994
[waypoints]: http://rcbot.bots-united.com/waypoints.php

## Building

### Cloning from source

RCBot2's repo history had all sorts of build artifacts / binaries at various points in time, so
pulling the repository down normally takes an unusually long while. I'd highly recommend
passing in `--depth 1` or a few to avoid retrieving the files that were removed since then.

### Compiling on Windows / Linux

1. [Install the prerequisites for building SourceMod for your OS.][Building SourceMod]
2. Create a `build/` subdirectory, then run `configure.py`.
- The project currently assumes GCC 5.4.0 (Ubuntu 16.04 LTS) on Linux, and MSVC version
1900 (VC++2014.3 v14.00 last I checked). Other compiler toolchains are not guaranteed to
work at this time.
- I use the following options (where `${MOD}` is only TF2):
`python ../configure.py -s ${MOD} --mms_path ${MMS_PATH} --hl2sdk-root ${HL2SDK_ROOT}`
- Specifying an `--sm-path` argument enables linking to SourceMod.
- Note that the automatic versioning system requires an installation of `git` and a
relatively modern version of Python 3.
3. Run `ambuild`. MetaMod:Source plugin is built and the base install files will be available
in `build/package`.

[Building SourceMod]: https://wiki.alliedmods.net/Building_SourceMod

Posted by: Cheeseh Jun 11 2017, 12:52 PM

QUOTE(RoboCop @ Jun 11 2017, 11:59 AM) *

No major changes apart for the optimisation for SSE2 and using MetaMod Source v1.10.7 src scripts.

https://apg-clan.org/vbdownloads.php?do=download&downloadid=1125

https://github.com/APGRoboCop/rcbot2

RCBot2 v1.00 for Windows and Linux (TF2, HL2DM, DOD:S)
Note: Those are beta builds recompiled by [APG] Clan for RCBot2 v1.00.

Information

This is a fork of the official RCBot2 plugin written by Cheeseh, which can be found here.
This repository is mainly used for the Linux release of his plugin, but it also works on Windows.
Installation

A complete guide for installing this plugin can be found at the official RCBot2 forums over here.
This thread is also maintained by me.
Build

Go to linux_sdk
Type make -f Makefile.rcbot2 vcpm
Type make -f Makefile.rcbot2 genmf (this will generate the Makefiles)
Edit Makefile.rcbot2 and Makefile.HPB_bot2_* according to your needs
Most of the time you will only need to modify Line 21 and 55 of Makefile.rcbot2
Type make -f Makefile.rcbot2 all -j4 2> error.log
Check the error.log
Changelog

Fixed a bug in getNextRoutePoint, which destroyed bot aiming, because of invalid vLook
Fixed reading of files with windows line ending (\r\n)
Fixed all offsets for Linux
Added "master offset" settings for TF2
Fixed a typo while reading bot configs (visionticksclients -> visionticks_clients)
Fixed macro in bot_profile.cpp
Fixed consecutive use of "addbot"
Added debug messages in chat (rcbot debug chat 1)
Added automatic bot quota, based on human players
You can now edit the path of where you have installed RCBot by writing it in the rcbot2.vdf
(relative paths to the mod folder are also supported)

Ok great, I pinned it laugh.gif

Posted by: dgesd Jun 11 2017, 04:15 PM

You did a very good job, mate

Posted by: RoboCop Jun 11 2017, 05:07 PM

QUOTE(dgesd @ Jun 11 2017, 05:15 PM) *

You did a very good job, mate

Its not fully stable yet as it needs some fixes for TF2 with the crashes that I've found recently. If you encounter any crashes or bugs linked to rcbot, please be sure to get the relevant logs and use debug mode to locate the bug.

Posted by: Silverscreen Dec 7 2017, 11:01 PM

Hi,

the bots don't seem to be loading for me? i am using the latest metamod source and put the files in the right places. the server still runs but there are no bots there. i set it to start with 28 bots with 0 humans

Posted by: RoboCop Dec 8 2017, 08:23 AM

QUOTE(Silverscreen @ Dec 7 2017, 11:01 PM) *

Hi,

the bots don't seem to be loading for me? i am using the latest metamod source and put the files in the right places. the server still runs but there are no bots there. i set it to start with 28 bots with 0 humans

Which OS are you running? Also having the RCBot2 set can be a bit tricky, and you need to disable VAC for it to work, I believe.


Posted by: tryzombie501 Dec 10 2017, 08:47 AM

QUOTE(Silverscreen @ Dec 7 2017, 11:01 PM) *

Hi,

the bots don't seem to be loading for me? i am using the latest metamod source and put the files in the right places. the server still runs but there are no bots there. i set it to start with 28 bots with 0 humans


Rcbot has a bit of a steep setup curve but its not so hard once you know what you're doing. We are happy to help.
Also make sure your mod isn't commented out in the bot_config

Posted by: RoboCop Mar 18 2018, 08:09 PM

Well for those who are still using RCBot2 for TF2, well I kindae got good news. I had feedback from Bot-United Discord that I've resolved some possible bugs linked to how the Engineer deploy their sentries and dispencers, plus the bots don't seem to collide too often; which is reported from TFWiki:-

https://wiki.teamfortress.com/wiki/Bots#RCBot_Bugs

Also this guy Ducky praised on keeping RCBot2 maintained as well updating the bots with the newer Metamod Source Header files. I've asked him on his hookinfo as well avoid any unnecessary questions and struggles on using hookinfo.ini, as this appears to work fine on TF2 Linux server...just now:

CODE
givenameditem_linux=405
equipwearable_linux=431
runplayermove_tf2_linux=423
getweaponslot_linux=272
removewearable_linux=432
removeplayeritem_linux=274
weaponequip_linux=265
mstr_offset_linux=876
gamerules_linux=5


His config.ini appears to cope better without those mstr crashes on cp maps with this config:-

CODE
rcbot_const_mstr_offset 876
rcbot_const_round_offset 876


I've updated the RCBot2 APG download zips just now to avoid using the old broken ones! Also I've noticed 'gamerules_linux' isn't featured in bot_plugin_meta.cpp unless that was supposed to be typed near line 879?

https://github.com/APGRoboCop/rcbot2/blob/master/utils/RCBot2_meta/bot_plugin_meta.cpp#L879

Plus I've been told RCBot2 appears to work without sv_cheats 1 AND VAC...but I need to confirm if this VAC works fine with RCBot2.

And I think the RCBot2 Launcher may of created some typos for 'rcbot_meleeonly' and 'rcbot_aimsmooting' for config.ini from where I downloaded from the original RCBot2 v1.00. I will make the config.ini and hookinfo.ini texts look neatened up and explain more on the config.ini cvars for server owners to learn and that. Oh I've discovered that using smac_cvars.smx appears to block the RCBot2 bots from spawning, so that plugin will need to be disabled in order for the bots to spawn.

Posted by: My Time Mar 22 2018, 01:23 AM

Robocop I thank you for working and posting this. I have been using the very first Metamod version as it was the one that was pretty stable in a dedicated server (DODS) .This version you posted has been running on two different servers of mine for almost 2 days with out a crash . Nice ! My only problem is if I use any way to make a bot leave when a real player joins or the other way around bot join when a player leaves then its buggy and will crash. If I just have "rcbot config min_bots 10 then it fine . If I use the bot quota or use rcbot config max_bots 10 ,rcbot config min_bots 1 it will crash after a few players join or leave. Is there something else you use to do this ? And as for your server not liking the smac_cvars.smx , I have 4 servers using this with out any spawning problems . Again not a TF2 server but DODS . The plug ins I had problems with the rcbots was this one https://forums.alliedmods.net/showthread.php?t=76165 . Any way I could get your steam name and add you ? Mine is here http://steamcommunity.com/profiles/76561197960334296

Posted by: RoboCop Mar 23 2018, 10:47 PM

QUOTE(My Time @ Mar 22 2018, 01:23 AM) *

Robocop I thank you for working and posting this. I have been using the very first Metamod version as it was the one that was pretty stable in a dedicated server (DODS) .This version you posted has been running on two different servers of mine for almost 2 days with out a crash . Nice ! My only problem is if I use any way to make a bot leave when a real player joins or the other way around bot join when a player leaves then its buggy and will crash. If I just have "rcbot config min_bots 10 then it fine . If I use the bot quota or use rcbot config max_bots 10 ,rcbot config min_bots 1 it will crash after a few players join or leave. Is there something else you use to do this ? And as for your server not liking the smac_cvars.smx , I have 4 servers using this with out any spawning problems . Again not a TF2 server but DODS . The plug ins I had problems with the rcbots was this one https://forums.alliedmods.net/showthread.php?t=76165 . Any way I could get your steam name and add you ? Mine is here http://steamcommunity.com/profiles/76561197960334296

Well it's maybe because TF2 requires sv_cheats 1 for adding bots, but smac_cvars.smx may had blocked sv_cheats 1 being used - only to add bots nothing else. DoD:S may not require sv_cheats 1 for adding bots...

Also I've been running RCBot2 on TF2 in pl_minepit map with MM:S v1.10.7-devV, SMod v1.8.0.6040 and this triggered a crash when I join in:-
CODE
#0  0x00000000 in ?? ()
#1  0xe858ba31 in CBotEvents::executeEvent(void*, eBotEventType) ()
   from /home/desktop/steamcmd/tf2n/tf/addons/rcbot2/bin/RCBot2Meta_i486.so
#2  0xe8601ba8 in RCBotPluginMeta::FireGameEvent(IGameEvent*, bool) ()
   from /home/desktop/steamcmd/tf2n/tf/addons/rcbot2/bin/RCBot2Meta_i486.so
#3  0xea3a87e8 in __SourceHook_FHCls_IGameEventManager2FireEvent0::Func(IGameEvent*, bool) ()
   from /home/desktop/steamcmd/tf2n/tf/addons/sourcemod/bin/sourcemod.2.tf2.so


I've used GDB by typing this inside the main TF2 folder:-
CODE
$ LD_LIBRARY_PATH="$LD_LIBRARY_PATH":bin gdb ./srcds_linux


Then...

CODE
run -game -ip xx.xx.xx.xx -maxplayers 24 +map pl_minepit
and so on

I don't know what this GDB BackTrace error means but it won't be easy to fix.


Posted by: My Time Mar 23 2018, 11:40 PM

You maybe right about the sv_cheats . Mine is set to 0 . Do you use The bot_quota with out problems ?

Posted by: RoboCop Mar 24 2018, 02:07 PM

Yes but it requires some math to ensure you got the bot_quota.ini set properly along with the 'rcbotd config max_bots' set.

Also I've just released r486 today and it appears to stop some crashes that aren't linked to mstr_offset not typed in properly. However it appears that they don't properly cap nor carry intel nor push TF2 cart compared to r485. This is maybe because of commenting out the 'FireGameEvent' script that appears to trigger those crashes:-

https://github.com/APGRoboCop/rcbot2/commit/a2de5a87615ae645b4e95b0713c71ff1f0dbaeec#diff-2493395fda0982ad7079b2d0ae99006b

I've kept the older r485 in github for you to look at. I've updated the changelogs and did some experimental changes to see if this newer r486 gives us better results:-

https://github.com/APGRoboCop/rcbot2/releases/tag/r486-apg

If you want to help out on the C++ coding please let me know so we could cooperate to avoid those annoying bugs and crashes from occuring! Study the commit changes from r485 to r486 carefully!

https://github.com/APGRoboCop/rcbot2/commit/a2de5a87615ae645b4e95b0713c71ff1f0dbaeec

Credits goes to Cheeseh, My_Time, Ducky and of course you guys for posting and reporting those bugs. Please stay in touch and keep those reports coming to squash those bugs!

Posted by: RoboCop Jul 11 2018, 05:23 PM

RCBot v1.00 r487-APG released!

Fixes by pongo1321:-
CVar rcbot_show_welcome_msg to enable/disable player welcome text by RCBot2
Better compatibility with the VSH gamemode (?)
Updated mm headers
Other minor fixes/changes

https://github.com/APGRoboCop/rcbot2/releases/tag/r487-apg

Posted by: RoboCop Jul 29 2018, 01:13 PM

I've added Cheeseh's new 2018 HookInfo update tool in /rcbot2/tools folder along with the RCBot2 Profile tool. That way we can keep the essential tools we need to organise and setup RCBot2.

Posted by: dgesd Aug 5 2018, 03:06 PM

Hi. Thank you for keeping the RCBot alive. Your work is very impressive! So, I have the problem. TF2 instantly crashes after map load with the RCBot2 on my Windows local server and I don't know why this happening. I think that I installed everything correctly.. so idk
Crash dumps: https://drive.google.com/file/d/12_8J2B5FYSh1NznvfLodid7ymIfXkuNg/view?usp=sharing

upd
console log

CODE
Team Fortress
Map: cp_vanguard
Players: 1 / 32
Build: 4648326
Server Number: 1

Client reached server_spawn.
Recognizing MM server id [A:1:2871184390:10442]
Attemped to precache unknown particle system "rockettrail_RocketJumper"!
Attemped to precache unknown particle system "woodSplinter_standee"!
Attemped to precache unknown particle system "blood_impact_red"!
The server is using sv_pure 0.  (Enforcing consistency for select files only)
[RCBot] Bot Command 'rcbot_equiphats 0' executed
[RCBot] Bot Command 'rcbot_bot_quota_interval 0' executed
[RCBot] Bot Command 'rcbotd config min_bots 0' executed
[RCBot] Error, no map running or not dedicated server
[RCBot] Bot Command 'rcbotd config max_bots 0' executed
[RCBot] Error, no map running or not dedicated server
[RCBot] Bot Command 'rcbot_const_mstr_offset 876' executed
[RCBot] Bot Command 'rcbot_const_round_offset 876' executed
[RCBot] Bot Command 'sm plugins unload smac_cvars.smx' executed
Voice_Init: Using Steam voice optimal sample rate 24000
[SM] Plugin smac_cvars.smx is not loaded.
[RCBot] Bot Command 'sv_quota_stringcmdspersecond 99999' executed
[RCBot] AccessClient: 'STEAM_ID_LAN','[U:1:85973333]'
Kipu connected
Compact freed 831488 bytes
--- Missing Vgui material vgui/..\vgui\maps\menu_thumb_Missing
--- Missing Vgui material vgui/..\vgui\maps\menu_thumb_Missing
--- Missing Vgui material vgui/..\vgui\maps\menu_thumb_Missing
Redownloading all lightmaps
[RCBot2] Welcome to RCBot by Cheeseh
[RCBot2] Waypoints by Eye of Justice
[RCBot] adding bot  
Cannot verify load for invalid steam ID [A:1:0:1]
[RCBot] AccessClient: 'STEAM_ID_LAN','BOT'
[RCBot] ===================================
[RCBot] Creating Bot: JonTroll
[RCBot] AimSkill: 0.500000
[RCBot] Braveness: 0.520000
[RCBot] PathTicks: 41
[RCBot] Sensitivity: 5
[RCBot] VisionTicks: 15
[RCBot] VisionTicksClients: 7
[RCBot] ===================================
JonTroll connected
[RCBot] bot adding...
[RCBot] If you are playing cp_* maps, and you get this message, something might be wrong with your mstr_offset!

Posted by: RoboCop Aug 5 2018, 06:28 PM

Well it maybe because the offsets needs updated properly and the hookinfo, due to the recent TF2 update. Also may I suggest you update your MetaMod: Source and SourceMod to the latest stable builds.

Also Alliedmods suggests using SourceMod build 1.9.6248 & MetaMod:Source 1.10.966. And I will maybe need to update RCBot2 using the latest MetaMod:Source header files.

https://forums.alliedmods.net/showthread.php?p=2607749#post2607749

Contact us and our RCBot2 testers who know a minor bit on C/C++ join Bots-United Discord below here:-

https://discord.gg/zCSvyyC

Posted by: dgesd Aug 5 2018, 07:23 PM

I have installed latest MM and SM stable builds. Also I have updated hookinfo. About latest mstr_offsets.. I don't know where to get them.. I'm using them from the your latest build.

Posted by: RoboCop Aug 8 2018, 02:45 PM

@dgesd
According to Cheeseh, it appears that mstr_offset for win32 is 856.

Update: Try this Debug build, this have the FireEvent removed that appears to be causing some crashes mostly.

https://cdn.discordapp.com/attachments/323526874200276994/476832827367751681/RCBot2MetaDebug.dll

Posted by: dgesd Aug 9 2018, 11:54 AM

Thank you for your prompt response. It seems everything works quite stably except for a couple of bugs: bots very rarely react to buildings (even engineers are trying to build a second sentry or teleporter) and the bots don't change classes. In the rest everything is pretty normal.. I think

Posted by: RoboCop Aug 9 2018, 12:32 PM

Well may want to stand by as Cheeseh is working on those crashes. What appears to be the source of the crash is the Hook FireEvent. I had to comment that line out for testing purposes as my GDB console reported some seg faults linked to that code:-

https://github.com/APGRoboCop/rcbot2/commit/7d2e9a5fe3e1fc40fcc1c5efc641970157ad258b#diff-2493395fda0982ad7079b2d0ae99006b

Posted by: dgesd Aug 9 2018, 04:34 PM

I hope it linked with the Hook FireEvent, but what if not.. It seems areas' autosetup is broken. Because of this, the territory control mode doesn't work at all and new capture waypoints doesn't have any areas.

Posted by: RoboCop Aug 12 2018, 12:41 PM

Cheeseh just done some fixes for RCBot2 - please stand by for the release builds soon!

https://github.com/rcbotCheeseh/rcbot2

Posted by: RoboCop Nov 5 2018, 02:07 PM

Well I've added the plugin blacklist for RCBot2 config.ini to unload some plugins that can trigger crashes. If you know any plugins that hate RCBot2 please let us know!

Also the main topic has been edited and I will let Cheeseh and Pongo sort out on fixing the bugs, but I will still continue supporting RCBot by creating waypoints for TF2 and DoDS - which is very labour insensitive and require proper tests.

Posted by: RoboCop May 19 2020, 11:53 PM

RCBot2 v1.2 Released!

https://github.com/APGRoboCop/rcbot2/releases/tag/1.2-apg-nosoop

RCBot2 no longer requires hookinfo.ini for TF2 except for the rcbot_const_mstr_offset
RCBot2 no longer uses its own custom weapons and wearable cvars as SourceMod can support it
RCBot2 no longer uses the custom folder for where the /tf folder and files are.

Special thanks to NoSoop for adding AMBuild as well as SourceMod support and many more!

Posted by: YuriFR May 20 2020, 03:32 PM

QUOTE(RoboCop @ May 19 2020, 08:53 PM) *

RCBot2 v1.2 Released!

https://github.com/APGRoboCop/rcbot2/releases/tag/1.2-apg-nosoop

RCBot2 no longer requires hookinfo.ini for TF2 except for the rcbot_const_mstr_offset
RCBot2 no longer uses its own custom weapons and wearable cvars as SourceMod can support it
RCBot2 no longer uses the custom folder for where the /tf folder and files are.

Special thanks to NoSoop for adding AMBuild as well as SourceMod support and many more!


New version! How nice!

As there were few specific updates for Dod:Source, I made some suggestions for Cheeseh to implement (posted at: http://rcbot.bots-united.com/forums/index.php?showtopic=2248&pid=15173&st=0&#entry15173 and http://rcbot.bots-united.com/forums/index.php?showtopic=1414&pid=15174&st=100&#entry15174 ).
The most important of them and that I would like to see in a version "RCBot2 v1.3", is to solve the problem of bots that do not use defensive positions for Snipers and MGs (even with "rcbot_defrate" in 0.9 or 1.0), or use them very little (and narrowly time too): make the flag "defend" a mandatory waypoint for bots and assign it a user-controllable time value (thus, the bot is prevented from leaving the position until the time stipulated by the waypointer is met). This control would make a big difference in the gameplay, which would become more diverse and less predictable.

If Cheeseh does not want to change the "defender" flag, he can create another flag in the "waypoint menu", (for example: with the name "fixed position"), which implements this function above. The waypointer that is not interested in fixed defense positions: just ignore these flag (or set time "0" for her)...

[sory for bad english]
----------------------------------------

To remember:
RCBot2 v1.2 released here: https://github.com/APGRoboCop/rcbot2/releases/tag/1.2-apg-nosoop

Posted by: RoboCop May 20 2020, 10:33 PM

Well, bare in mind that RCBot v1.2 no longer uses those Makefile and VS Project files as NoSoop removed them in favour for AMBuild. AMBuild is supposed to be designed to handle and compile better for using multiple HL2SDKs and adding SourceMod support.

I've not had the chance to test RCBot2 v1.2 for DoDS and HL2DM even though AMBuild can compile some RCBot2 extensions for TF2, DoDS, HL2DM - possibly for Source 2006, CSS as well as BMS and Source 2013. But of course it really depends on the entities required for the bots to "understand" the tactical situations and how to "Menu Select".

Also I've managed to suss out how to use AMBuild in Linux as I was lucky to keep the older GCC 5.4 as they fail on newer GCC as before...But VS2019 on the other hand seems to work fine.

Sadly I'm not a Windows fan and AMBuild requires using Python and installing Python from MS Store doesn't work as they got those Folder Permissions that prevents us from installing AMBuild using Python, so you have to install Python from else where - even though Visual Code kinda focuses mainly on Python from MS Store.

I can handle more on the Linux side but I need to check if other HL2SDK kits work better for RCBot2. And the best part for RCBot2 is not having to worry or update your hookinfo.ini too often nowadays as 83% of it are no longer required.

Posted by: madmax2 May 21 2020, 12:14 AM

Nice work smile.gif ... But are these builds intended for dedicated servers, have they been run on listen servers?

Posted by: nosoop May 21 2020, 03:12 AM

QUOTE(madmax2 @ May 20 2020, 05:14 PM) *

Nice work smile.gif ... But are these builds also intended for dedicated servers, have they been run on listen servers?

As long as Metamod:Source manages to load, there should be no problems with the server portion.

That said, adding a bot in listen server mode (via rcbot addbot) does crash in TF2; at the moment I'm unsure if that's a regression in the migration to the AMBuild system / upstream SDKs, or in the MM:S-based plugin in general.

Edit: It goes at least as far back as after the AMBuild change was merged in. I'm not sure if recent builds that aren't built from my codebase are also affected, but it also crashes on the build listed http://rcbot.bots-united.com/forums/index.php?showtopic=1994.

Edit (2): Okay, no, I'm just dumb. Forgot to fix the offset for TF2 again. It is confirmed working on listen servers, as far as my basic tests go.
I'll try to watch this space in case I've caused a regression (though the removal of attribute / item support is because I only run dedicated servers myself).

Posted by: RoboCop May 21 2020, 01:35 PM

QUOTE(nosoop @ May 21 2020, 04:12 AM) *

As long as Metamod:Source manages to load, there should be no problems with the server portion.

That said, adding a bot in listen server mode (via rcbot addbot) does crash in TF2; at the moment I'm unsure if that's a regression in the migration to the AMBuild system / upstream SDKs, or in the MM:S-based plugin in general.

Well so far it appears from the latest commit update from BAILOPAN for HL2SDK this week has fixed the min/max std issue that appears to hate newer GCC as I've managed to recompile RCBot2 for TF2 on my Debian with GCC 8.3. But the other SDKs like DODS and HL2DM requires the -fpermissive flag added as they seem to hate the "V_swap" but I'm not going to add that flag for that.


CODE
In file included from /home/desktop/programming/src/rcbot2/alliedmodders/hl2sdk-dods/public/tier1/utlvector.h:23,
                 from /home/desktop/programming/src/rcbot2/alliedmodders/hl2sdk-dods/public/tier1/convar.h:21,
                 from /home/desktop/programming/src/rcbot2/utils/RCBot2_meta/bot_cvars.cpp:4:
/home/desktop/programming/src/rcbot2/alliedmodders/hl2sdk-dods/public/tier1/utlmemory.h: In member function ‘void CUtlMemory<T, I>::Swap(CUtlMemory<T, I>&)’:
/home/desktop/programming/src/rcbot2/alliedmodders/hl2sdk-dods/public/tier1/utlmemory.h:330:2: error: there are no arguments to ‘V_swap’ that depend on a template parameter, so a declaration of ‘V_swap’ must be available [-fpermissive]
  V_swap( m_nGrowSize, mem.m_nGrowSize );
  ^~~~~~
/home/desktop/programming/src/rcbot2/alliedmodders/hl2sdk-dods/public/tier1/utlmemory.h:330:2: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/home/desktop/programming/src/rcbot2/alliedmodders/hl2sdk-dods/public/tier1/utlmemory.h:332:2: error: there are no arguments to ‘V_swap’ that depend on a template parameter, so a declaration of ‘V_swap’ must be available [-fpermissive]
  V_swap( m_nAllocationCount, mem.m_nAllocationCount );
  ^~~~~~
Build failed.