Posted February 24Feb 24 I put together a little network bot that implements most of the game. It's not very configurable, but the source code shouldn't be too hard to work with.Source code: zeroIt can connect and play in zones with VIE encryption. It supports Continuum encryption, but that part is not available to the public.Should behave very similar to a normal client. It has been tested in both asss and subgame servers.Has a debug render window for a display of it playing.Uses behavior trees for gameplay behavior.Has some simple behavior trees defined for a few hardcoded servers.Downside is that the core update loop uses floats for position data, so it can sometimes eat bullets/bombs when it's very close.Most of the bot is hardcoded to what I was working with, so it's not very configurable. Bot command controllers, servers, etc.I don't use this bot anywhere, so I'm not sure about its stability.It's pretty easy to setup a subgame server that you can connect to locally. Allow vie clients and make sure you listen on 127.0.0.1 so multiple connected bots don't get throttled by subgame. I would recommend setting the zero config server to Subgame and pointing that to the local connection. That will cause it to use the default svs behavior tree.
February 28Feb 28 Author Reduced memory usage and optimized player range lookups with a k-d tree. This was a major speedup in player-weapon collision tests since I don't have to go over every player for each weapon now.With those optimizations, I could run 200 bots on a local asss server. It starts to get laggy at around 250 bots, but it's probably just a limitation of my machine. The Windows version of asss crashed at around 275 bots connected.I can run around 150 on subgame, but it starts to get laggy if I go any higher with default settings. I changed some of the subgame network settings and it let me get to 200, but it came with a reduced quality of play.These bots are all doing pathfinding and doing full simulation of the game, so I think the results are pretty good.
Friday at 10:36 PM5 days Author I created a powershell script that automatically downloads the releases for C# SubspaceServer and this zero bot. It will automatically download the releases, unzip them, configure the arena, configure multiple bots, and launch them. It only requires the 9.0 .NET runtime to run the server.Repository: playground
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.