Bot backport from master on 0.50.0

Release and discuss things you've made, including mods.
User avatar
illwieckz
Debugger
Posts: 357
Joined: Sat Aug 11, 2012 7:22 pm UTC
Location: France
Contact:

Bot backport from master on 0.50.0

Postby illwieckz » Thu Apr 06, 2017 12:05 pm UTC

This is a backport from development tree for server owners running the alpha 50 release.

It adds those features:

- make bot escape from place they are stuck
- add automatic bot filling team (and leaving when real player joins)

How to use it?

1. Get the pk3 there: pkg/dev/botfixes_0.50.0+2017-03-21-0219~illwieckz.pk3

⚠⚠⚠⚠⚠
BEWARE if you download the file with Chrome web browser it will rename it replacing the tilde with an hyphen and you will lost hours to figure out why in-game http download does not work because files do not share the same name because of Chrome silliness. The end of the file must be “0219<TILDE>illwieckz.pk3” and not “0219<HYPHEN>illwieckz.pk3”.
:angry: @$%#!!


2. Put it in pkg/dev/botfixes_0.50.0+2017-03-21-0219~illwieckz.pk3

Example if you are running Linux, put it there:

Code: Select all

~/.unvanquished/pkg/dev/botfixes_0.50.0+2017-03-21-0219~illwieckz.pk3


3. Add this option on your daemon's command line: -set fs_extrapaks 'dev/botfixes'

This option must be placed before any +options
Example:

Code: Select all

./daemonded -set net_port 27960 -set fs_extrapaks 'dev/botfixes' +exec server.cfg


4. Enable download

The simplest way is to put that on your server.cfg:

Code: Select all

set sv_allowDownload "1"


The download will be slow as hell so I recommend you to enable http download too, you can use official server as http server and mine as fallback:

Code: Select all

set sv_allowDownload "1"
set sv_wwwDownload "1"
set sv_wwwDlDisconnected "0"
set sv_wwwBaseURL "dl.unvanquished.net/pkg"
set sv_wwwFallbackURL "gg.illwieckz.net/dl/unvanquished/pkg"


If you know how to host your own http server, you can host the botfixes pk3 yourself and put your own server as BaseURL and the dl.unvanquished.net/pkg as FallbackURL. If you don't know how to host your own http server, you must use my server as fallback if you use the bostfixes backport since the official one does not share it.

5. use bot fill command

So, with this backport, this is how you manage bots. Bots must be loaded once the map is loaded, you can have different amount of bots or bot names per map if you want to use per map script, by the way in this tutorial we will use a default one, used for all the maps.

set this on your server.cfg

Code: Select all

set g_mapConfigs "map"


put that on .unvanquished/config/map/default.cfg

Code: Select all

bot fill 1 humans
bot fill 1 aliens


Just increase the number to set more bots on the teams. You can define bot names this way (put it in server.cfg before the bot fill commands (adjust the names according to your preferences), this is a copy paste from my own server config:

Team is optional, if you want to put 30 bots whatever the team on thunder, just write down a .config/map/thunder.cfg file with “bot fill 30” in it.

Code: Select all

bot names clear
bot names humans "^3[bot]^4 Clodomir" "^3[bot]^4 Alaric" "^3[bot]^4 Baudry" "^3[bot]^4 Adelin" "^3[bot]^4 Ferdinand" "^3[bot]^4 Brieux" "^3[bot]^4 Audran" "^3[bot]^4 Alistair" "^3[bot]^4 Renan" "^3[bot]^4 Malo"
bot names aliens "^3[bot]^1 Nolwen" "^3[bot]^1 Uriel" "^3[bot]^1 Morgan" "^3[bot]^1 Lena" "^3[bot]^1 Soizic" "^3[bot]^1 Aroa" "^3[bot]^1 Belem" "^3[bot]^1 Itsaso" "^3[bot]^1 Muxika" "^3[bot]^1 Urrotz"
bot fill 3 humans
bot fill 3 aliens


Tip: you can call other scripts from map config, for example you can define a .config/bot.cfg doing bot fill … stuff and put “exec bot.cfg“ in your .config/map/default.cfg.

I recall my previous thread except all the bot stuff is obsoleted by that botfixes backport, everything else is ok: Some tweaks for server admin
This comment is licensed under cc ​​by 4 and antecedent.

Return to “Community Development”

Who is online

Users browsing this forum: No registered users and 2 guests