[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
Battlefield Modding Tutorials BFMODS • View topic - Bot Names

Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Sat Apr 27, 2024 1:42 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Bot Names
PostPosted: Tue May 24, 2005 3:24 pm 
Offline

Joined: Mon Aug 16, 2004 12:00 am
Posts: 2120
The names for computer-controled players (AKA Bots) for Singleplayer and Co-Op games are located in the game.rfa file in the /game/common/ directories.

In there, there are 5 files:
RussianNames.con
JapaneseNames.con
GermanNames.con
BritishNames.con
AmericanNames.con

The .con file's name is corresponding to the team that the data affect. IE. RussianNames.con controls the Russian Bot names. In this tutorial I am going to use AmericanNames.con for reference.

In the files there are 2 types of commands:
game.addFirstNameOnTeam # {String}
game.addSecondNameOnTeam # {String}

The number located after the command, is the team that the name will be set to. For all "Axis" teams (German & Japanese), the number is one (1). For all "Allied" teams (American, British, & Russian) the number is two (2).

The string is the actual "name" that will be matched with another. FirstNameOnTeam is the Bot's first name, and SecondNameOnTeam is the Bot's last name. This is how the game appears to have "random" names for bots. There are roughly 65 last/first names in the American file, which gives 4225 different combinations of names.

You are able to change the {String} to any value that you would like, but the number can not be changed, as it causes a server crash.


Top
 Profile  
 
 Post subject: Re: Bot Names
PostPosted: Wed Apr 15, 2009 1:55 am 
Offline

Joined: Sat Apr 11, 2009 6:42 pm
Posts: 1
Is there a way to make a First and Last name stick together? As of right now i made all the first names AI and then the last names the full name like First.Last


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Bot Names
PostPosted: Wed Apr 15, 2009 3:35 am 
Offline
User avatar

Joined: Fri Oct 03, 2008 4:37 pm
Posts: 513
Location: Levelland, Texas

_________________
ImageImage
I have cameras in your head!


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 195 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group