SRB2 Kart Bots? Oh my god! Player Bot Mod

SRB2 Kart Bots? Oh my god! Player Bot Mod Version 1 (Beta)

S0nic1983

Just a dude :D
S0nic1983 submitted a new resource:

SRB2 Kart Bots? Oh my god! Player Bot Mod - Just Bots

SRB2 Kart Bots NOW EXIST!

Player Bot-a mod that allows you to add bots to your game!
Multiplayer support is there, and setting up bots is very simple!
Works on the principle of FoxBot for SRB2!
Support for Battle Mode!
And much more!
A few concepts:

View attachment 39343
Knux Gang + Bot Gang :D
View attachment 39345View attachment 39344

View attachment 39346
View attachment 39347

WARNING! Not all mods are supported...

Read more about this resource...
 
I think you should probably use a companion script to place the pathfinding objects into levels, instead of redistributing the maps themselves. Battle Plus uses a similar technique.

As for the actual bots, I'm a little confused that you bothered to hook PlayerCmd only to just P_Thrust the karts around with no control input. I think a more "realistic" approach, if you don't want to deal with actually getting bots to turn properly, would be to have them use BT_ACCELERATE for forward momentum and then steer them more or less how you're doing it currently.

Regardless, neat stuff!
 
As a beta tester, let me reiterate my thoughts:

This script right here is a perfect way of warming me up for V2 Kart and it's a great way of practicing every track in the game before you hop into Kart servers to take on the other players.

If I can suggest something, try making an "addbot" command, like the command used in both SRB2JTE and SRB2CB, to add bot players. That way, people who don't have powerful PCs can race against them if their computer/laptop can't handle multiple instances of SRB2Kart.

I'm looking forward to what you have in store for this mod!
 
I got it and I'm slightly confused. How do I setup the bots
The simplest way to test is that you set 2-4 local players (yes, splitscreen), load both WAD and maps addons, load the playerbot setup level in multiplayer, and then just set the other players to be Player Bots. Then you pick the map you want to play through that menu. I could write a bit more elaborate guide about this later on, but for now I think this should be good enough to understand :)
 
The simplest way to test is that you set 2-4 local players (yes, splitscreen), load both WAD and maps addons, load the playerbot setup level in multiplayer, and then just set the other players to be Player Bots. Then you pick the map you want to play through that menu. I could write a bit more elaborate guide about this later on, but for now I think this should be good enough to understand :)
But without split screen?
 
But without split screen?
You can either make a batch file in your SRB2Kart folder or open CMD and open SRB2Kart with the following command
"-port 50XX"
the XX can be anything you want, but basically you have to open the game normally once, then launch the second instance with a different port set. After that, you can set your first instance to host an Internet/Lan server but with no extra local players, alt-tab, go to the second instance and set the amount of local players there, join your own game (type "localhost" in the ip address bar), have the 4 local players in there join the game (in the pause menu you can select "Enter/Spectate" as much as you need to set each player to Playing), and then go back to your own instance, pick the Playerbot Setup map again (so that the server recognizes they are ingame), and then set them to player bots.

As I said, I could make a clearer guide about this but its quite late here so at the moment this is what I can tell.

EDIT: Oh, and the reason why you would have to do this is because you can't use the bot feature with a single instance without splitscreen yet since it relies in having real players in the server being set to playerbots.
Post automatically merged:

guide finally spawned in the world
Also time doesn't exist so I made this
 
Last edited:
I'm loving this already! Hoping more maps can be supported in the future...and perhaps a way to have more bots without more instances if possible?
While I can point out the AI is not exactly the sharpest in battles, it's still fun regardless. Again, love it! :wonderful:
 
But without split screen?
1) Copy/paste the existing "SRB2Kart (Standard).bat" in your SRB2Kart folder
2.1) Right click the copied file > "Edit"
2.2) Enter the following:
@echo off
start /b srb2kart.exe -win -server -file bonuschars.kart KL_Player_Bot-V1.wad KL_Player_Bot_Maps-V1.pk3 +map mapzx +maxplayers 16
2.3) Once saved, I suggest naming this file something like "Kart Bots 1.bat"
3.1) Copy/paste the bat file we just made
3.2) Edit this file to the following:
@echo off
start /b srb2kart.exe -win +wait 70 +splitplayers 4 +connect localhost +wait 175 +changeteam 1 +changeteam2 1 +changeteam3 1 +changeteam4 1
3.3) Save, rename file. ("Kart Bots 2.bat")
4) Run "Kart Bots 1.bat", then once complete, run "Kart Bots 2.bat"

The first instance creates a private server, loads the kart bot addons, then loads the "player bot" waiting room.
The second instance adds the players (bots), connects to the private server, then has all players join the game.
From there you can setup your bots however you prefer.

Notes
a) Since we set the max playercount to be 16 in our KB1 bat file, you can have multiple KB2 instances running.
The fourth KB2 instance would fail though; you would need to change the number of players joining from 4 to 3.

b) You can go into the video options for the bots' instances, and lower settings to improve performance if needed.
When your done playing, just remember to exit out the bots first, so they don't overwrite your config file.
If you're savvy, you can create a separate config file, and have KB2 use that for this purpose (-config [filename]).

c) If you play on a custom kart build, just replace the "srb2kart.exe" line with the preferred exe in question.
If you use opengl or software, you can set that too. (Example: "start /b srb2kart-bird3.exe -opengl".)

d) If you don't want to go through the hassle of setting up all your bots, you can have the bat file do it for you.
"+skin", "+name", and "+color" do what they say on the tin. "+skin2/name2/color2" for the 2nd player,
"skin3/name3/color3" for the third player, and so on. You can reference the "kartconfig.cfg" file.
Feel free to create additional bat files to organize this.

My thanks goes to Freeman.
Good stuff as usual
 
Oh, I've been wanting to try this out! I wasn't aware that it got released earlier this month (I still need to get used to this site's new layout, lol).
 
Hi, I've been playing this game for a while and bots are a long-awaited update but I'm so glad this mod gave me something to tide over and I'm having a lot of fun with it.

Several thoughts:
  • Bots don't slow down while they are drifting. It's much noticeable on the Daytona Speedway track where you have to perform long drifts, especially near the finish line, where you'll see them speed past you with little effort. Also, their stats don't seem to matter much, they all drive in a straight line from my experience.
  • I've found a pretty major bug in Mario Circuit 2. If you place an Eggman Monitor in the last set of monitors, when the bots pick it up and explode, they always explode and drive into the wall on the bottom part of the track, where they'll eventually end up being replaced on the track. However, there's a very small chance that instead of hitting the wall and being replaced on the track like they should to reorient themselves, they sit, bouncing on the springs forever, until they get hit by other items. It's happened at least twice in my 50 lap playthrough of Mario Circuit 2.
  • Bots in Battle Mode don't steer at all. They drive in straight lines, sometimes U-turn, and unpredictably reorient themselves after they hit walls. Battle courses with little to no walls are not very playable because the bots will just drive off cliffs without fail. Best battle courses to play on for some target practice are smaller, cramped courses with lots of alleys and little open space, can be hard to get them as they don't lose speed when hitting walls.
Also, btw, I did attempt to set a local server to connect to myself so I could add more bots, even created two .BAT files as instructed in a linked instruction thread, one for launching the game into player bot mode, the second bat to connect to the localhost, and it doesn't seem to recognize it, the second instance being stuck in the connecting screen. Not sure what I need to do to get it to recognize my own host.
 
... the second instance being stuck in the connecting screen. Not sure what I need to do ...
a) In the 2nd .bat file that connects to the localhost, edit in a "-port 5030" line after "-win"
Technically the port can be anything (50XX) that's not 5029
b) I did go through the process of port forwarding myself for kart, so you may need to do the same

Unless the instructions entered on the .bats are any different than what I posted,
I'm not to certain of what else I could offer to assist.
 
Ech, I don't like portforwarding. I guess I can also try with Hamachi too.
Post automatically merged:

Oh by the way, I've played quite a bit of 50 lap sessions with a sister using Hamachi localhost.

The bots on the guests' side will do consistently worse than the host if the race is on far enough, and I'm going to attribute this to lag, as they take poorer racing lines than the host's bots. I'm not sure why, but sometimes, the guests' bots will jam themselves on walls when they're powered up and fast. This is best noticeable in the Egg Zeppelin stage, when you set the Grow power up to be common, and they jam themselves past the first boost pad (with the set of item boxes and a shortcut) and the area with the circular hole and lots of walls.
 
Last edited:
hehe... at least this mod is reusable... someone can pick it up and improve/update it, right? :worry: anyone? helloo..?
 

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top