Star Wars: Battlefront 2 (Classic, 2005)

Star Wars: Battlefront 2 (Classic, 2005)

darkblades May 27, 2022 @ 11:46am
Is there an Admin Command guide, of what commands you can do for this game?
Is there an Admin Command guide, of what commands you can do for this game when you are online, hosting a game.
< >
Showing 1-2 of 2 comments
AnthonyBF2 May 27, 2022 @ 1:16pm 
I know them all by heart as I used to host servers for several years.

In the game chat (press T) you can enter the following commands and values:

/admin /login password (your admin password) will log you into the server.

/admin /adminpw (new password) sets a new admin password after logging in(see above)),

* If you're the host, you don't need to do 1 or 2, you can just use any other command listed below. If you want other players to have admin access, you need to do those first 2 commands. When you quit a session, all these settings are lost and you have to make a new admin password and have other players login again in a new session. Final note, admin password is not the same as the game password required to join.

/admin /players will display all current player names and their slot ID, the problem is the HUD text area can only display about 7 or 8 lines at a time so if you have more than 8 players, you can't see them all as they cut off, you will have to do the command several times to try and see them all.

/admin /kick (number) will boot the player with that ID number, the host player is always 0 or 1 (forgot exactly) and any player who joins will be ID 2, 3, 4, etc but if a person leaves the session, that slot will be assigned to the next player that joins. If you have 5 players, and player 3 quits, then the next person who joins will become 3 instead of 6.

/admin /ban (number) will ban the player from the session but I don't think this works with self-hosted games, only the dedicated server manager, which is no longer even functional with the modern Steam game version.

/admin /swap (number) will swap the team of the player with that ID number, won't work if they are in spectate mode as they aren't counted as playing to be swapped. If player select teams is turned on, that person you just swapped can just press "back" and rejoin the team you swapped them from immediately.

/admin /shutdown is the same as pausing the game and quitting which exits back to the main menu.

/admin /say (your message) will display a message as "Admin" instead of your player's name.

/admin /gamename (text message) will change the name of the session. This won't be visually updated for the host or any player in the session. It will only be visible to players browsing the menu that haven't joined yet.

/admin /restart will restart the current match. Refrain from using this too many times too quickly because players need time to exit the score screen and finish the loading screen, and they may become disconnected.

/admin /awards (1 or 0) will allow players to score award weapons and other awards like damage increase. This requires the current map to end and the next map to load to go into effect. Many of the following commands will require a map change to take effect, to save time and space I will denote them with "Map Change Needed".

/admin /teamdamage (1 or 0) will turn off or on team killing. Map Change Needed.

/admin /autoassignteams (1 or 0) will turn off or on auto assign teams or player select teams. Map Change Needed.

/admin /conaiperteam (number, 32 or less) will change the number of AI bots per team in conquest mode. Map Change Needed.

/admin /ctfaiperteam (number, 32 or less) will change the number of AI bots per team in 1flag or 2flag mode. Map Change Needed.

/admin /assaiperteam (number, 32 or less) will change the number of AI bots per team in space assault mode. Map Change Needed.

/admin /eliaiperteam (number, 32 or less) will change the number of AI bots per team in hero assault mode. Map Change Needed.

/admin /huntaiperteam (number, 32 or less) will change the number of AI bots per team in
hunt mode. Map Change Needed.

/admin /contimelimit (number, 60 or less) will change the game timer (in minutes) for conquest mode. Any number over 60 will result in no change or perhaps a game crash, I can't remember for sure but it doesn't work. Map Change Needed.

/admin /ctftimelimit (number, 60 or less) will change the game timer (in minutes) for 1 & 2 flag mode. Any number over 60 will result in no change or perhaps a game crash, I can't remember for sure but it doesn't work. Map Change Needed.

/admin /hunttimelimit (number, 60 or less) will change the game timer (in minutes) for hunt mode. Any number over 60 will result in no change or perhaps a game crash, I can't remember for sure but it doesn't work. Map Change Needed.

If I remember correctly, space assault and hero assault do not have a timer function, unless they are scripted in (think mod maps).
Setting any game mode timer to 0 will result in no time limit. The lowest functional time limit is 1 (1 minute).

/admin /spawn (number) will change the amount of time (in seconds) of spawn invincibility protection that all players will receive when spawning. This can be as high as 999999 or as low as 0 (none) and it goes away as soon as you fire any weapons. It's a cool trick to stay invincible but while it is active, you can't capture posts, flags, or use vehicles. This command can be changed in real time without a map change.

/admin /changemap (map ID code) will end the current match and load the map ID you entered. This is very important to not mess up because a typo will crash everyone's game and the host game as well. I will have a list of all the default map name ID codes at the bottom of this post.

/admin /dropmap (map ID code) will remove a map ID from rotation so that it won't be loaded again unless the admin runs the map using /changemap seen above.

/admin /nextmap (map ID code) will set the next map to be loaded when the current map ends without ending the current map.

/admin /addmap (map ID code) will add the name ID to the current session, to be loaded when the current playlist has been cycled or randomized, if map randomization is on.

If you enter a typo for /addmap, /nextmap, or /dropmap you will just get an error message about map not found or command not found.

/admin /randomize (1 or 0) will randomize the current playlist of maps along with any maps added via /addmap command. This goes into effect on the next map change.

/admin /conreinforcements (number) will set the number of reinforcements each team has in conquest mode. If you set the number too high (over 1000) it does work but it won't be visually updated on everyone else's game, so they will see a different number. The host player can see everything fine though. Also note - all other game modes are scripted with infinite reinforcements and there are no commands to change that. The lowest functional value is 1. I think 0 just causes a session to end as soon as it loads. Map Change Needed.

/admin /ctfscorelimit (number) will change how many flags need to be captured to win CTF modes. This is for both 1 and 2 flag mode. The number could be as high as you want it, like 999999. The lowest functional value is 1. I can't remember what happens with 0 but I think the session just ends as soon as it loads. Map Change Needed.

/admin /huntscorelimit (number) will change how many points needed to win hunt modes.
Map Change Needed.

/admin /eliscorelimit (number) will change how many points needed to win hero assault mode. Map Change Needed.

/admin /assscorelimit (number) will change how many points needed to win space assault. Map Change Needed.

/admin /heroes (1 or 0) determines if heroes are unlockable for both teams. Map Change Needed.

I cannot remember any of the hero settings commands, sorry for that. I never messed with hero settings enough to remember them. I think the default hero settings are 5 or 10 points to unlock.

At this point, I have covered all the most useful commands. There are more commands but I can't remember them or they are unimportant.

Some useful launch parameters:
-win will put the game in windowed mode, the menu mode will be stuck in 4x3 mode unless you install the v1.5 r2 remastered mod.
-nointro will skip the boot logos and go directly to the profile selection menu
-resolution (number number) will determine the ingame resolution for menu mode and game mode, but the v1.5 r2 remastered mod is highly suggested because the menus are broken beyond 4x3 mode without it.
-nosound will run the game without sounds

Map ID codes + notes:

_con = conquest
_ctf = 2 flags
_1flag = 1 flags
_eli = hero assault
_ass = space assault
_hunt = hunt

The first 3 letters+number indicate map ID, and the "c" or "g" indicate era and the suffix indicate mode.


Coruscant:
cor1c_con
cor1g_con
cor1g_ctf
cor1c_ctf
Dagobah:
dag1c_con
dag1g_con
dag1c_ctf
dag1g_ctf
Death Star:
dea1c_con
dea1g_con
dea1c_1flag
dea1g_1flag
Endor:
end1g_con
end1g_hunt
end1g_1flag
Felucia:
fel1c_con
fel1g_con
fel1c_1flag
fel1g_1flag
Geonosis:
geo1c_con
geo1c_hunt
geo1c_ctf
Hoth:
hot1g_con
hot1g_1flag
hot1g_hunt
Kamino:
kam1c_con
kam1g_con
kam1c_1flag
kam1g_1flag
Kashyyyk:
kas2c_con
kas2g_con
kas2c_hunt
kas2c_ctf
kas2g_ctf
Kamino:
kam1c_con
kam1g_con
kam1g_1flag
kam1c_1flag
Mustafar:
mus1c_con
mus1g_con
mus1c_ctf
mus1g_ctf
Mos Eisley:
tat2c_con
tat2g_con
tat2g_hunt
tat2g_eli
tat2c_ctf
tat2g_ctf
Mygeeto:
myg1c_con
myg1g_con
myg1c_ctf
myg1g_ctf
Naboo:
nab2c_con
nab2g_con
nab2c_hunt
nab2g_ctf
nab2c_ctf
Polis Massa:
pol1c_con
pol1g_con
pol1g_ctf
pol1c_ctf
Tantive:
tan1c_con
tan1g_con
tan1g_1flag
tan1c_1flag
Utapau:
uta1c_con
uta1g_con
uta1c_1flag
uta1g_1flag
Jabba's Palace:
tat3c_con
tat3g_con
tat3g_1flag
tat3c_1flag
Yavin 4:
yav1c_con
yav1g_con
yav1c_1flag
yav1g_1flag
Space Levels:
spa1g_ass
spa1g_1flag
spa3c_ass
spa3c_1flag
spa6c_ass
spa6c_1flag
spa7c_ass
spa7c_1flag
spa8g_ass
spa8g_1flag
spa9g_ass
spa9g_1flag
Space Chart:
spa1 - Yavin
spa3 - Kashyyyk
spa6 - Mygeeto
spa7 - felucia
spa8 - hoth
spa9 - tatooine

Cheers, hope this helps, pass it along. This was a combination of my notes saved but also remembering stuff.
darkblades May 27, 2022 @ 1:45pm 
Originally posted by darkblades:
Is there an Admin Command guide, of what commands you can do for this game when you are online, hosting a game.
Thank you, this was what i was looking for.
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: May 27, 2022 @ 11:46am
Posts: 2