BF2 Starting Parameter
Moderator: Executive
BF2 Starting Parameter
Hi
I would like to know if there is a possibility to create shortcuts on the desktop which contains changing the prefix an logging in automatically?
e.g. bf2 -name -pw -tag -join ...
or all parameters should be usefull, i know some from the play know shortcut but the prefix is the most interesting one and i haven't found it in google yet.
Maybe you have more luck or knowledge.
thx for help cya
I would like to know if there is a possibility to create shortcuts on the desktop which contains changing the prefix an logging in automatically?
e.g. bf2 -name -pw -tag -join ...
or all parameters should be usefull, i know some from the play know shortcut but the prefix is the most interesting one and i haven't found it in google yet.
Maybe you have more luck or knowledge.
thx for help cya
Ramrod, out!
Cu on Battlefield of =Global-Conflict=

current Campaign:

Cu on Battlefield of =Global-Conflict=

current Campaign:

-
- Posts: 1535
- Joined: Mon Jul 20, 2009 8:23 pm
- Location: Lake Conroe.....Texas
Spare the ROD and spoil the BOON..........What don't kill ya, makes ya stronger. Besides Boon, I think RamRod is referring to logging on the Gayspy server as is required before the game will start up.ramboon wrote:Yeah good Idea. In this way, victims like me or Ramrod wouldnt be kicked from the server without warning.
HF, THX
Just wondering though..........Do you guys get kicked from servers a lot?

lol.........Winter



I prefere to get kicked then to log on the GAYSPY server.Winter_Lion wrote: Spare the ROD and spoil the BOON..........What don't kill ya, makes ya stronger. Besides Boon, I think RamRod is referring to logging on the Gayspy server as is required before the game will start up.
Just wondering though..........Do you guys get kicked from servers a lot?![]()
lol.........Winter

The Tag infomation is in our "«C:\Dokumente und Einstellungen\IhrName\Eigene Dateien\Battlefield 2\Profiles\Global.con" (C:\Documents And Settings\Name\My Documents\) file.
I had made a short workaround for you.
You need in this folder 4 new files:
Filename 1 is "Global.1"
With this as text content:
Filename 2 is "Global.2"
With this as text content:
Filename 3 is "Prefix ]K[Cpt.bat"
With this as text content:
Filename 4 is "Prefix =GC=.bat"
With this as text content:
You have to change the 5. line in the last 2 files. "yourdir" with your own folder Name for BF2, evntually the HD Letter "C:" to "D:"
Last you can create 2 Desktop Shortcuts to the .bat files, for each prefix one to start BF2 with it.
I had made a short workaround for you.
You need in this folder 4 new files:
Filename 1 is "Global.1"
With this as text content:
Code: Select all
GlobalSettings.setDefaultUser "0001"
GlobalSettings.setNamePrefix "]K[Cpt"
With this as text content:
Code: Select all
GlobalSettings.setDefaultUser "0001"
GlobalSettings.setNamePrefix "=GC="
With this as text content:
Code: Select all
rename Global.con global.bak
del Global.con
copy Global.1 Global.con
cd\
cd C:\yourdir\Battlefield 2\
BF2.exe +menu 1 +fullscreen 1
With this as text content:
Code: Select all
rename Global.con global.bak
del Global.con
copy Global.2 Global.con
cd\
cd C:\yourdir\Battlefield 2\
BF2.exe +menu 1 +fullscreen 1
Last you can create 2 Desktop Shortcuts to the .bat files, for each prefix one to start BF2 with it.
Last edited by Andro on Thu Mar 15, 2007 12:13 pm, edited 1 time in total.
In your Profiles folder is a file that consists of these 2 setting.
The only way around it I can see would be to create file named something like Global.conGC. Set the tag name in it.
Create a bat file to overwrite the Global.con with Global.conGC as the first line, then the second line launch the BF2.exe.
Just run that bat file everytime you play GC so it sets the tags and starts the game.
You can enter a tag between the prefix qoutes, but that is changed everytime you change the tag name in game.GlobalSettings.setDefaultUser "0001"
GlobalSettings.setNamePrefix ""
The only way around it I can see would be to create file named something like Global.conGC. Set the tag name in it.
Create a bat file to overwrite the Global.con with Global.conGC as the first line, then the second line launch the BF2.exe.
Just run that bat file everytime you play GC so it sets the tags and starts the game.
Last edited by Ash2Dust on Thu Mar 15, 2007 12:28 pm, edited 1 time in total.
Ash2Dust, your to late 
I saw your old text posted same time as mine, and now you had edit it and wrote the same idea.

I saw your old text posted same time as mine, and now you had edit it and wrote the same idea.

Ash2Dust Posted: Fri Mar 16, 2007 2:03 am Post subject: Reply with quote
Long ago, I saw utilities to semi logon. Dont remember the names, sorry. But it wasnt perfect either. It would login your account, but not into a game server. It did let you 'paste' the IP address from your clipboard content. This was way back before the 'clans tags' feature was implemented.
From my guess, you could get up to the point up to where you enter tags (choose player name) which doesnt solve what you're trying to do.
You could create a new account with your tags as part of the account name, but then you would not have any unlocks and a new account would be needed everytime your GC rank changed.
-
- Posts: 1324
- Joined: Mon Jul 20, 2009 8:23 pm
- Location: Penacova, Coimbra, Portugal
I had delted the videos, and the menu backroud video is exchanged with a Picture.
http://www.tweakguides.com/BF2_9.html -> BF2_Menu_Logo.zip
http://www.tweakguides.com/BF2_9.html -> BF2_Menu_Logo.zip
sure andro your solution and ashs I already know
but the problem will be that i modify my grafik settings several time
(costum maps. fly maps, infmaps) so i have to setup the setting for all of them.
the easiest way for me would be to know the run -parameter for the prefix if it exists
btw the *.bak shouldn't be necesseary cause you already have the two versions of the tags

(costum maps. fly maps, infmaps) so i have to setup the setting for all of them.
the easiest way for me would be to know the run -parameter for the prefix if it exists
btw the *.bak shouldn't be necesseary cause you already have the two versions of the tags
Ramrod, out!
Cu on Battlefield of =Global-Conflict=

current Campaign:

Cu on Battlefield of =Global-Conflict=

current Campaign:

Its only for the first running, never forget the "BAK", EVER! =)
So you have 3 Shortcuts with different Profiles for different Maps?
But, you could change your profile and resolution and so on in the bat files, too. Just like you do with run -parameters in the Shortcut (like MorpheusPT with the auto login). I'm not sure but there is no run -parameter for the prefix.
So you have 3 Shortcuts with different Profiles for different Maps?
But, you could change your profile and resolution and so on in the bat files, too. Just like you do with run -parameters in the Shortcut (like MorpheusPT with the auto login). I'm not sure but there is no run -parameter for the prefix.
Dont do this unless you made a backup Global.con file!!!!!!!!!!!!
Dont bother doing this unless you understand how to overcome both tricky parts
Overview:
1) I'm replacing the Global.con file with the one I made for GC as the game changes the tags everytime you enter a new tag.
2) It launch my BF2 using an existing shortcut on the desktop.
In your Profiles directory, copy the Global.con file, rename the copy 'Global.conGC'
Open Global.conGC in notepad (not Word or Wordpad) and edit the NamePrefix to what you want, leave the existing DefaultUser alone unless you want to change BF2 profiles.
On your desktop, create a new text file in Notepad and copy/paste this in
Then run the 'BF2 GC.bat' file. You're ingame with proper tag.
The tricky part:
My default windows login is in the 'Owner' account. Yours will prolly be different and need to replace 'Owner' in 3 places with your windows login name. If its a windows account name longer than 8 characters, then you'll need to truncate it to 6 with '~1'. If you have installed windows more than once without wiping the drive its even messier.
Tricky part2:
If you have more than 1 shortcut on your desktop that starts with 'battle' then you may find it launches the wrong shortcut. Either create a new shortcut and replace the 'Battle~1.lnk' with the new shortcut name. Or trial and error with ~2, ~3, ~4, etc until it does the shortcut you want. This also applies to the Battle~1 directory if you installed BF2 after BF2142.
Dont bother doing this unless you understand how to overcome both tricky parts
Dont bother doing this unless you understand how to overcome both tricky parts
Overview:
1) I'm replacing the Global.con file with the one I made for GC as the game changes the tags everytime you enter a new tag.
2) It launch my BF2 using an existing shortcut on the desktop.
In your Profiles directory, copy the Global.con file, rename the copy 'Global.conGC'
Open Global.conGC in notepad (not Word or Wordpad) and edit the NamePrefix to what you want, leave the existing DefaultUser alone unless you want to change BF2 profiles.
save it.GlobalSettings.setDefaultUser "0001"
GlobalSettings.setNamePrefix "ArmyZ"
On your desktop, create a new text file in Notepad and copy/paste this in
save the text file as 'BF2 GC.bat' (dont let it add .txt to the end)del C:\docume~1\owner\mydocu~1\battle~1\profiles\global.con
copy C:\docume~1\owner\mydocu~1\battle~1\profiles\global.congc C:\docume~1\owner\mydocu~1\battle~1\profiles\global.con
C:\docume~1\owner\desktop\Battle~1.lnk
Then run the 'BF2 GC.bat' file. You're ingame with proper tag.
The tricky part:
My default windows login is in the 'Owner' account. Yours will prolly be different and need to replace 'Owner' in 3 places with your windows login name. If its a windows account name longer than 8 characters, then you'll need to truncate it to 6 with '~1'. If you have installed windows more than once without wiping the drive its even messier.
Tricky part2:
If you have more than 1 shortcut on your desktop that starts with 'battle' then you may find it launches the wrong shortcut. Either create a new shortcut and replace the 'Battle~1.lnk' with the new shortcut name. Or trial and error with ~2, ~3, ~4, etc until it does the shortcut you want. This also applies to the Battle~1 directory if you installed BF2 after BF2142.
Dont bother doing this unless you understand how to overcome both tricky parts