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: 4446 This post has been edited by Cheeseh: Nov 7 2018, 06:50 AM |
madmax2 |
Oct 30 2018, 05:46 AM
Post
#2
|
RCBot Guru Group: Waypointers Posts: 957 Joined: 2-March 12 From: USA, WA state Member No.: 2,162 |
QUOTE the WP converter keeps all types. no trouble to make it net 4 I don't think. just fixed bad bot aiming, at least they are getting frags now. Theyre pretty hardcore now Sounds good QUOTE TBH I think most waypoints need fixing / redone anyway. Yeah I agree, many of the old maps have broken or incomplete wpts. We should focus on the stock maps first. You may want to put all the untested wpts into a seperate pack, at some point? So people know they may not work well. We could add them back in as we test/fix them, which would take forever without more help... I'll work on converting the wpts I've uploaded first, so you can know which ones I'll be working on. Most of them are stock maps... Request/question : Would it be difficult to change the givetype/removetype commands to a "toggle givetype" command. This would cut the needed binds in half. I don't see a big need for having the multiple givetype option on each bind in this game, if removing that would make it easier to implement? Isn't that the way givetypes work with rcbot2, as a toggle? Maybe copy the code from rcbot2? I just received my new 24inch monitor/tv for my new/old PC, I'm feel like a kid in a candy store, weeee... |
Cheeseh |
Oct 30 2018, 08:41 AM
Post
#3
|
Admin Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 |
Sounds good Yeah I agree, many of the old maps have broken or incomplete wpts. We should focus on the stock maps first. You may want to put all the untested wpts into a seperate pack, at some point? So people know they may not work well. We could add them back in as we test/fix them, which would take forever without more help... I'll work on converting the wpts I've uploaded first, so you can know which ones I'll be working on. Most of them are stock maps... Request/question : Would it be difficult to change the givetype/removetype commands to a "toggle givetype" command. This would cut the needed binds in half. I don't see a big need for having the multiple givetype option on each bind in this game, if removing that would make it easier to implement? Isn't that the way givetypes work with rcbot2, as a toggle? Maybe copy the code from rcbot2? I just received my new 24inch monitor/tv for my new/old PC, I'm feel like a kid in a candy store, weeee... Great -- will need to,as you say, identify broken waypoints. I re-did sandstone cos they were totally off - but the git still contains loads of waypoints that might be of no use. The HL1 campaign in Svencoop has changed and doesn't use the default maps any more so they might need redone somehow I added a new command "waypoint_toggletype" blindly -- see if it works. |
madmax2 |
Oct 30 2018, 08:25 PM
Post
#4
|
RCBot Guru Group: Waypointers Posts: 957 Joined: 2-March 12 From: USA, WA state Member No.: 2,162 |
I added a new command "waypoint_toggletype" blindly -- see if it works. Will test that but, Latest Git build not starting: CODE Angelscript log opened Server started logging Angelscript on map 'sc_another' at: 2018-10-30 12:56:50 ERROR: c:/program files/steam/steamapps/common/sven co-op/svencoop/scripts/plugins/BotManager/BotManager.as (174, 23) : 'flag_to_check' is not declared ERROR: Plugin script compilation failed 1 Plugin(s) failed compilation Reloading plugins Removed 1 plugins Loading plugins from file 'default_plugins.txt' 2 plugins Beginning plugin compilation Included script 'StringUtils' Included script '../../Cfg' Beginning plugin 'PlayerManagement' compilation Starting compilation: 3 scripts Plugin script compilation succeeded Registering hook: module 'PlayerManagement', hook 'ClientSay', function 'PlayerManagement::ClientSay' Adding console command 'plrmgr.admin_slap' Adding console command 'plrmgr.admin_slay' Adding console command 'plrmgr.admin_kick' Adding console command 'plrmgr.admin_ban' Adding console command 'plrmgr.admin_teleport' Adding console command 'plrmgr.admin_teleportto' Adding console command 'plrmgr.admin_sethealth' Adding console command 'plrmgr.admin_setarmor' Included script 'UtilFuncs' Included script 'BotProfile' Included script 'BotManagerInterface' Included script 'FileBuffer' Included script 'CBotBits' Included script 'BotWaypoint' Included script 'CBotTasks' Included script 'BotWeapons' Beginning plugin 'RCBot' compilation Starting compilation: 9 scripts c:/program files/steam/steamapps/common/sven co-op/svencoop/scripts/plugins/BotManager/BotManager.as (152, 1) : Compiling void WaypointToggleType(const CCommand@) ERROR: c:/program files/steam/steamapps/common/sven co-op/svencoop/scripts/plugins/BotManager/BotManager.as (174, 23) : 'flag_to_check' is not declared ERROR: Plugin script compilation failed 1 Plugin(s) successfully compiled 1 Plugin(s) failed compilation Server stopped logging Angelscript at: 2018-10-30 12:58:52 Angelscript log opened Server started logging Angelscript on map 'sc_another' at: 2018-10-30 12:58:52 Clearing temporary directory './scripts/maps/temp' Removed 1 plugins Clearing temporary directory './scripts/plugins/temp' Clearing temporary directory './scripts/maps/temp' Server stopped logging Angelscript at: 2018-10-30 12:58:52 |
Cheeseh |
Oct 31 2018, 07:04 PM
Post
#5
|
Admin Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 |
should work now madmax ,, just me being silly since I was coding blind at the time
|
Lo-Fi Version | Time is now: 8th June 2024 - 08:38 AM |