Xonotic Forums
New Bot names - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Creating & Contributing (https://forums.xonotic.org/forumdisplay.php?fid=10)
+--- Forum: Xonotic - Development (https://forums.xonotic.org/forumdisplay.php?fid=12)
+--- Thread: New Bot names (/showthread.php?tid=1231)

Pages: 1 2


New Bot names - nowego4 - 11-20-2010

I dug out the "Bots.txt" from the xonotic>data>xonotic-data.pk3dir and renamed all the bots. The old ones didn't have much rhyme or reason, and so the theme of these is "Greek Mythology", obviously expanding off of the player models' names.

Bot names:

Hades
Ares
Hermes
Apollo
Dionysus
Eros
Hephaestus
Poseidon
Zeus
Chaos
Erebos
Chronos
Aether
Aphrodite
Pontos
Artemis
Athena
Hestia

To install this, go into your xonotic>data>xonotic-data.pk3dir and replace the Bots.txt with mine.


.txt   bots.txt (Size: 1.35 KB / Downloads: 44)

Have fun! Big Grin


RE: New Bot names - chooksta - 11-20-2010

no chooky bot.....

Sad

:^


RE: New Bot names - nowego4 - 11-20-2010

You can easily edit it yourself if you want, just open the file, it's pretty self-explanatory.

Chooksta
Chooky
Chookster...


RE: New Bot names - divVerent - 11-20-2010

I don't want the bots to be named like hosts in the computer science department of the uni I was in Wink


RE: New Bot names - booo - 11-21-2010

(11-20-2010, 03:38 PM)divVerent Wrote: I don't want the bots to be named like hosts in the computer science department of the uni I was in Wink

lol, div0 , but still , these names are better than naming a cray XT5 'Rosa' , like a cow...


RE: New Bot names - Lee_Stricklin - 11-21-2010

Standard bot names: old/busted
New bot names: GREEK MYTHOLOGY = MOAR L33T/KEWL


RE: New Bot names - unfa - 11-24-2010

Funny stuff. How about adding ancient greek philosophers?


RE: New Bot names - Creation - 11-27-2010

How about adding president names to the bots Tongue


RE: New Bot names - -z- - 11-27-2010

maybe I can generate text files based on urban dictionary's words of the day :-P


RE: New Bot names - Minkovsky - 11-27-2010

(11-27-2010, 01:52 PM)-z- Wrote: maybe I can generate text files based on urban dictionary's words of the day :-P

+1 Heart Big Grin


RE: New Bot names - -z- - 11-27-2010

hmm, well I can only grab 7 words from UD
(requires xml2)
Code:
wget -q -O- http://feeds.urbandictionary.com/UrbanWordOfTheDay | xml2 | grep "/rss/channel/item/title" | awk -F "=" '{ print $2 }' | tr -d '[:punct:]'

11 from merriam webster
Code:
wget -q -O- http://www.merriam-webster.com/word/index.xml | xml2 | grep "/rss/channel/item/title" | awk -F "=" '{ print $2 }' | tr -d '[:punct:]'



RE: New Bot names - Lee_Stricklin - 11-27-2010

(11-27-2010, 01:52 PM)-z- Wrote: maybe I can generate text files based on urban dictionary's words of the day :-P

That would make the bot names similar to what you would expect in an actual match. lol


RE: New Bot names - -z- - 11-27-2010

Code:
#!/bin/bash
# Bot file generation with names based on words of the day from Urban Dictionary and Merriam Webster
# Written by Tyler "-z-" Mulligan
# Notes: Wtf is wrong with me?

# GET ME DEM WORDS!
for s in "http://feeds.urbandictionary.com/UrbanWordOfTheDay" "http://www.merriam-webster.com/word/index.xml"; do
    while read -r; do array+=("$REPLY"); done < <(wget -q -O- $s | xml2 | grep "/rss/channel/item/title" | awk -F "=" '{ print $2 }' | tr -d '[:punct:]')
done

IFS=$'\n' # Set IFS to break up array based on newlines
#printf '\n%s ' "${array[@]}"

cp bot-file-template.txt bots.txt

i=1;
for s in ${array[@]}; do # who can shorten this to one sed statement?
    sed -i "s/{b${i}}/$s/" bots.txt
    i=$(($i+1));
done

The template file "bot-file-template.txt":

Code:
//bot configuration: name    model    skin    shirt    pants    team    keyboard use    moving    dodging    ping    weapon use    aggressivity    range    aiming    calmhand    mouse    fightthink    aithink
//default team values (team-override): 1 = red, 2 = blue, 3 = yellow, 4 = pink                                                                    
//use -1 for shirt-color or pants-color to get random colors                                                                    
{b1}    ignis    0    4    0    0    0    0    -0.5    -1    1    1    -0.5    -1    -1    2    0.5    -1
{b2}    gakarmored    0    14    7    0    -1    -1.5    -0.5    0    1    0    0    0    2    -0.5    -0.5    1
{b3}    erebus    0    2    6    0    0    -1    -0.5    -0.5    1    -0.5    0.5    1.5    -0.5    -1    1    0.5
{b4}    umbra    0    13    11    0    1    1    1    1    -1    0    0.5    0    -2    0    -1    0
{b5}    umbra    0    12    7    0    0    0    -1.5    -0.5    -0.5    0    0    0    0    -0.5    1.5    1.5
{b6}    ignis    0    11    1    0    -1    -1.5    -1    -0.5    1    1    -1    1    -0.5    1    0.5    0
{b7}    gak    0    3    10    0    0    1    0    0.5    -0.5    0.5    -0.5    -1    0    0    -0.5    0
{b8}    gakmasked    0    8    12    0    0    -1    -1    -1    0    2    0    1    0    2    -1    -1
{b9}    gakmasked    0    4    11    0    -0.5    0    0    1    -0.5    0    1    0    0    0    0    0
{b10}    ignishalfmasked    0    13    13    0    0    -1    0    -0.5    0.5    1    0    1    -2    1    0    0
{b11}    nyx    0    12    14    0    0    0    0    1    0    -1    -0.5    -1    1    0    0    0
{b12}    nyx    0    3    9    0    0    0    0    2    -1    0    0    0    -1    0    0    0
{b13}    erebus    0    13    6    0    0    0    0    -0.5    -1    1    0.5    0.5    -0.5    0    0.5    0
{b14}    pyria    0    9    14    0    1    1    1    1    -1    -1    0    1    1    -2    -1    -1
{b15}    ignismasked    0    0    4    0    1    1.5    2    -1    -1    -1    1    0    1    -0.5    -1    -1
{b16}    seraphina    0    9    9    0    0    0    0.5    -1    0    -1    0    -1    2.5    -1.5    1    0.5
{b17}    seraphinamasked    0    4    8    0    -0.5    2    1    0    0    -1    0    -1    0    1    -1    -0.5
{b18}    umbra    0    1    1    0    0    -0.5    -0.5    0    2    -1    -1    -1    0    -1    1    1


THIS CODE IS PROBABLY NOT SUITABLE FOR A PRODUCTION ENVIRONMENT, USE AT YOUR OWN RISK. Maybe someone can refine based on this proof of concept.


RE: New Bot names - -z- - 11-27-2010

Okay, this is probably better, though I'm assuming some values and not handling floats.

Code:
#!/bin/bash
# Bot file generation with names based on words of the day from Urban Dictionary and Merriam Webster
# Written by Tyler "-z-" Mulligan
# Notes: Wtf is wrong with me?

# GET ME DEM WORDS!
for s in "http://feeds.urbandictionary.com/UrbanWordOfTheDay" "http://www.merriam-webster.com/word/index.xml"; do
    while read -r; do array+=("$REPLY"); done < <(wget -q -O- $s | xml2 | grep "/rss/channel/item/title" | awk -F "=" '{ print $2 }' | tr -d '[:punct:]')
done

IFS=$'\n' # Set IFS to break up array based on newlines
#printf '\n%s ' "${array[@]}"

bots=( erebus ignis ignishalfmasked gak gakarmored nyx seraphina seraphinamasked umbra )
rm bots.txt
echo "//bot configuration: name model   skin    shirt   pants   team    keyboard use    moving  dodging ping    weapon use  aggressivity    range   aiming  calmhand    mouse   fightthink  aithink
//default team values (team-override): 1 = red, 2 = blue, 3 = yellow, 4 = pink                                                                  
//use -1 for shirt-color or pants-color to get random colors" >> bots.txt
for s in ${array[@]}; do # who can shorten this to one sed statement?
    echo -e "$s\t${bots[$((RANDOM%${#bots[@]}))]}\t$((RANDOM%14))\t$((RANDOM%14))\t$((RANDOM%14))\t$((RANDOM%4))\t$((RANDOM%4-2))\t$((RANDOM%4-2))\t$((RANDOM%4-2))\t$((RANDOM%4-2))\t$((RANDOM%4-2))\t$((RANDOM%4-2))\t$((RANDOM%4-2))\t$((RANDOM%4-2))\t$((RANDOM%4-2))\t$((RANDOM%4-2))\t$((RANDOM%4-2))\t$((RANDOM%4-2))" >> bots.txt
done    

cat bots.txt

Apparently I do not need to strip the punctuation (tr -d '[:punct:]') but I do not have an environment to test this at the moment.


RE: New Bot names - nowego4 - 11-27-2010

Yes, I highly doubt that this would be GPL compatible Tongue but would it be possible to have the game fetch random names form a predetermined list? (just a .txt file with every name we could think of in it). Also "Word of the Day" would require internet access even for singleplayer.

Fun idea though Exclamation


RE: New Bot names - -z- - 11-27-2010

You can write any sort of bot file generator and put it on a cron to update and replace it, or load it in a different different game folder for your server, so different"game types" can use different bot files.

My script for "words of the day" would be run daily, not on every game.

Here's a screenshot btw

[Image: 4ff7er6i59jdiwmum8jl.jpg]

I believe to load the bots file separately, you would have to run xonotic with a new directory along side the data directory and an extra flag when running xonotic.
Code:
cd /path/to/xonotic
mkdir coolideas
cd coolideas
cp /path/to/my/new/bots.txt .
./all run -game data -game coolideas
this would load the "data" game first, then load your "game" files on top of it. I don't know if there is a better way as I don't think -userdir reads the bot file.

Theoretically, bots can even have a "personality" generated and saved on a server, a random unique name, set of cloths, skillset saved with a unique id (Xonotic ID system?) and their statistics can be databased over time for fun or testing different bot criteria over time.


RE: New Bot names - Halogene - 11-28-2010

I have to say, the aggregate awesomness of what I encounter on this forum is stunning. Another splendid idea in action! Thank you!


RE: New Bot names - nowego4 - 11-28-2010

Version 2: Devs and Contributers! Angel

bot names:

-z-
divVerent
merlijn
Morphed
mand1nga
tZork
FruitieX
Diabolik
Dokujisan
kojn^
esteel
C.Brutial
Rad Ished
Mirio
Mr. Bougo
MiceaKitsune
Halogene
chooksta

Of course, not all these people are Devs, but we don't have enough to fill the bot file. So I selected a couple of the most active/most contributing people to fill the other slots. If your name's on the list and you don't want it to be, just say so.

And to all the people that want to be on the list but aren't: edit your own bots.txt!


.txt   bots.txt (Size: 1.37 KB / Downloads: 1)

Happy holidays, Devs!


RE: New Bot names - Samual - 12-28-2010

Hey, what about me? :'(

I SEE HOW IT IS


RE: New Bot names - theShadow - 12-29-2010

that would be confusing if you were actually playing with the person(s)

I had a friend that made bots for red faction along the lines of cheese, zombie, coconut, etc.

also, apparently I am nto a contributor Sad


RE: New Bot names - nowego4 - 01-12-2011

Yes I'm sure I left out a lot of people who should be on it (you guys included), but I did warn about this in Article 3, Section 8, Paragraph 2.
Article 3 Section 8 Paragraph 2 Wrote:And to all the people that want to be on the list but aren't: edit your own bots.txt!

and again in Article 8, Section 1, Paragraph 7.

Article 8 Section 1 Paragraph 7 Wrote:Do it yourself, or stop complaining.

Big Grin Tongue

But anyway, does anybody think these (my first file) should be made official? Or maybe we should hold a contest to see who can make the best! (well, -Z- would win, but anyway) that would be fun, even if rather unproductive.


RE: New Bot names - FraNcoTirAdoR - 01-12-2011

Greek gods sound amazing, but then the [BOT] tag should be renamed to [GOD] Tongue


RE: New Bot names - Samual - 01-12-2011

Only problem is that I know a bunch of people who use greek gods as their gamer tag.... Like myself Tongue (Ares) -- So maybe greek gods wouldn't be the best to use. Tongue


RE: New Bot names - Nesquick - 01-13-2011

Name them after body parts instead... Man would I laugh when Penis starts shooting rocket-headshots. =)


RE: New Bot names - Halogene - 01-13-2011

* Halogene coughs