Download |
Download |
Cheeseh |
Oct 28 2018, 09:55 PM
Post
#1
|
Admin Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 |
RCBot for Svencoop 5 (Angelscript)
This version of RCBot has been created from scratch with some code converted from RCBot1 and inspired by RCBot2 code. It uses the built in plugin system "AngelScript" that comes with Svencoop 5. instructions and download here: https://github.com/rcbotCheeseh/RCBotSven5 Usage just download all files (Download/Clone as zip) extract into the BotManager directory in scripts/plugins. (overwrite) The files will overwrite the current "Bot" scripts as it was based on the sample. Features Bots can run around / shoot enemies, pick up ammo/health/weapons/armor, use health/HEV chargers, use teleports, take cover, press buttons (at objective points -- not tested), shoot breakables (not tested). (i.e. its a work in progress). Bots CAN'T use ladders yet, or secondary fire, or use grapple etc yet or other fancy stuff. Commands: CODE addbot Adds a new bot waypoint_off Display waypoints off waypoint_on Displays waypoints on waypoint_add Adds a new waypoint waypoint_delete Adds a new waypoint waypoint_load Loads waypoints waypoint_save Saves waypoints pathwaypoint_create1 Adds a new path from pathwaypoint_create2 Adds a new path to pathwaypoint_remove1 pathwaypoint_remove2 waypoint_clear waypoint_info (print waypoint types on current waypoint) waypoint_givetype give waypoint type waypoint_removetype remove waypoint type waypoint_toggletype waypoint_convert_type (from) (to). Convert waypoint types debug debug messages toggle godmode god mode noclip noclip notarget (no target mode) killbots kills all bots <to add - notouch (needed for waypointing)> all commands accessible via command "as_command rcbot.<command>" e.g. "as_command rcbot.addbot" DEBUGGING if you run into trouble (usually becuase of a nightly build) find the problem by first using the commands CODE developer 1 as_log_level 2 as_reloadplugins note down any errors and report them I'm needing waypoints redone These are now "rcwa" files in a different format. I made a program to convert rcbot1 waypoints to these. Downloadable here: RCBotWPTConverter.zip ( 502.51k ) Number of downloads: 12609 This post has been edited by Cheeseh: Nov 7 2018, 06:50 AM |
Solokiller |
Nov 12 2018, 08:06 PM
Post
#2
|
Member Group: Members Posts: 23 Joined: 17-December 16 Member No.: 2,482 |
Unless they've changed it plugins are not reloaded on map change.
Bots are dropped on changelevel so a handle to its CBasePlayer instance will become invalid. You should clear the handles out to avoid problems. If the problem isn't related to this then you should run it with GDB to get a stack trace by putting a breakpoint in the NUM_FOR_EDICT function in its error condition code. |
Cheeseh |
Nov 14 2018, 06:41 PM
Post
#3
|
Admin Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 |
Unless they've changed it plugins are not reloaded on map change. Bots are dropped on changelevel so a handle to its CBasePlayer instance will become invalid. You should clear the handles out to avoid problems. If the problem isn't related to this then you should run it with GDB to get a stack trace by putting a breakpoint in the NUM_FOR_EDICT function in its error condition code. Hi solokiller , just to confirm --- which handle to CBasePlayer and when ? When bot is "disconnected" is that good enough? Also you mean the m_pPlayer handle ? Just set to null? Or do something more complicated? Thanks. @Poka Also if you connect to a server thinking you can use "as_command rcbot.addbot" , this might cause the same error. you must use rcon so you are executing the command on the server, not the client. |
Solokiller |
Nov 14 2018, 06:49 PM
Post
#4
|
Member Group: Members Posts: 23 Joined: 17-December 16 Member No.: 2,482 |
Hi solokiller , just to confirm --- which handle to CBasePlayer and when ? When bot is "disconnected" is that good enough? Also you mean the m_pPlayer handle ? Just set to null? Or do something more complicated? Thanks. @Poka Also if you connect to a server thinking you can use "as_command rcbot.addbot" , this might cause the same error. you must use rcon so you are executing the command on the server, not the client. Yeah the CBasePlayer handle. When a player is dropped the entity instance is also freed, whether it's a real or fake client doesn't matter. |
Lo-Fi Version | Time is now: 28th September 2024 - 01:39 PM |