![]() |
![]() |
phenrol |
![]()
Post
#1
|
Newbie ![]() Group: Members Posts: 8 Joined: 28-January 14 Member No.: 2,322 ![]() |
Hello,
I have RCbot2 working on my DOD:S linux server and I can spawn functioning bots, however, all of them are named "RCBot", which is rather annoying. I have tried messing with the profiles, and the server reads them in just fine as indicated by the startup output when the plugin is loading, however, anything I do with these does not seem to change anything. I can individually set their name using sm_rename, but that is a pain. can anyone help me with this issue? Thanks |
![]() ![]() |
phenrol |
![]()
Post
#2
|
Newbie ![]() Group: Members Posts: 8 Joined: 28-January 14 Member No.: 2,322 ![]() |
Here is an update on this.
I looked around for a sourcemod plugin that might be able to help out and I found Execute Configs 1.0 (Updated 08/12/09) This plugin allowed me to execute a cfg file when someone connects to the server and when a player connects (event:player_connect). I put a bunch of sm_rename commands into a cfg file for 75 potential bots (i.e. sm_rename Bot01 george; sm_rename Bot02 harry; sm_renam Bot03 larry; etc...). So, essentially what happens is that when someone joins the server, bots connect automatically (due to rcbotd config max_bots) and when each bot connects, it executes the cfg file with the sm_rename commands in it. I had to learn a bit about events at the valve events wiki. The console throws a ton of messages, but it works! Just so you know, this would not have been possible without Ted's updated code that does NOT rename the bots to "RCBot". So...thank you Ted! I do think there is more work to be done here to make this plugin a bit better, but this work around functions on my linux server, so I am content (for now). ![]() |
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 13th July 2025 - 06:11 AM |