[Bot] zero

Discuss and Share your work for games and clients

Moderator: monkey

Post Reply
monkey
Posts: 10
Joined: Tue Mar 18, 2025 8:55 pm

[Bot] zero

Post by monkey »

This is a gameplay bot that will enter a ship and fight others. Its simulation is taken from my nullspace client, so it should be very close to Continuum's simulation. It can run on Windows and Linux.

It supports pathfinding for traversing through the map. It uses behavior trees for its behavior system, so it's very configurable if you actually edit the code. The Subgame behavior called terrier is probably the easiest to use default behavior. It can be set in the zero.cfg config file.

It's a pretty lightweight bot except for during startup where it needs to build the pathfinding data. If you have a decent computer, you can run up to 200-250 in one arena with svs settings.
zero

Here's a powershell script for Windows that will automatically download a server, zero, extract them, configure them, and run a configurable number of bots. This requires .NET runtime 9.0 for the server.
playground
User avatar
damageinc86
Posts: 9
Joined: Sat Mar 22, 2025 7:03 pm
Location: Oregon

Re: [Bot] zero

Post by damageinc86 »

Is there any chance you could help me with other bot setup? I can't understand any of this, and I'm trying to get some classic TW maps to run locally, but I'd like to have this, and some of the other standard bots in there (flag timer, teams uneven, twbd bot, etc).

EDIT: Ran your script and got an old pub tw map to work with the bots. Of course, they are all just running around outside flagroom because they are from the other zone haha. But pretty cool to get that to work anyways. Thank you for making this, it's super fun!
monkey
Posts: 10
Joined: Tue Mar 18, 2025 8:55 pm

Re: [Bot] zero

Post by monkey »

Sorry, I don't really know anything about how the tw bots work. I think that stuff is not available to the public.

For the zero bots, I'm slowly working on behaviors for different zones. I'm messing around with making trench wars spiders go to the flag room and fight in there. I'd like to add a terrier bot so they can attach as well, but I haven't implemented it yet. I don't know how far I'll get on these though because I don't find working on behaviors to be very fun.

User avatar
damageinc86
Posts: 9
Joined: Sat Mar 22, 2025 7:03 pm
Location: Oregon

Re: [Bot] zero

Post by damageinc86 »

monkey wrote: Mon Mar 24, 2025 1:39 am Sorry, I don't really know anything about how the tw bots work. I think that stuff is not available to the public.

For the zero bots, I'm slowly working on behaviors for different zones. I'm messing around with making trench wars spiders go to the flag room and fight in there. I'd like to add a terrier bot so they can attach as well, but I haven't implemented it yet. I don't know how far I'll get on these though because I don't find working on behaviors to be very fun.

I found what's called "TW-Core" files, which have all the bots in it. There's a tutorial on it https://twcore.org/RunningOnWindows/, but none of the build actions worked for me. Someone much smarter could probably get it all built. But I can't even seem to get the directories or files in the correct location for all the batch files to operate smoothly *shrugs*.
But that's cool to those zero bots up in there! Nice work!
monkey
Posts: 10
Joined: Tue Mar 18, 2025 8:55 pm

Re: [Bot] zero

Post by monkey »

I've been working on the Trench Wars behaviors a little bit more. I have a spider and terrier behavior.

The spiders will attach to the terrier and ride it to the flagroom. Once inside they will get off and start killing enemies. If they are the closest one to an unclaimed flag, they will try to claim it.

The terrier will try to pick the best side to enter from the entrance corridor. I haven't been able to implement a good way of deciding yet, so it's still pretty stupid and dies often. Once inside the flagroom, it is not too terrible at staying alive. It mostly sticks to the sides of the flagroom and will attempt to dodge weapons flying at it. It will also use portals and warp away if it's in danger.

Here's a little update video of me playing with the bots:
User avatar
damageinc86
Posts: 9
Joined: Sat Mar 22, 2025 7:03 pm
Location: Oregon

Re: [Bot] zero

Post by damageinc86 »

This is absolutely phenomenal!
User avatar
PoLiX
Site Admin
Posts: 30
Joined: Sun Mar 16, 2025 4:53 am
Location: Port Orchard, Washington, USA
Contact:

Re: [Bot] zero

Post by PoLiX »

These guys could also work really well for The Abyss map... nice :)
Themmog.com Admin
Former SSC Server Host, Billing Operator, and Network BanG Admin
SSForum.net - 2001 to 2014
Post Reply