BF2 Starting Parameter

For when things break.

Moderator: Executive

Ramrod64
Posts: 819
Joined: Mon Jul 20, 2009 8:23 pm
Location: Muenster (Westf) Germany

BF2 Starting Parameter

Post by Ramrod64 »

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
Ramrod, out!

Cu on Battlefield of =Global-Conflict=
Image
current Campaign:
Image
ramboon
Posts: 752
Joined: Mon Jul 20, 2009 8:23 pm
Location: Aachen/Germany

Post by ramboon »

Yeah good Idea. In this way, victims like me or Ramrod wouldnt be kicked from the server without warning.

HF, THX
Image
Winter_Lion
Posts: 1535
Joined: Mon Jul 20, 2009 8:23 pm
Location: Lake Conroe.....Texas

Post by Winter_Lion »

ramboon wrote:Yeah good Idea. In this way, victims like me or Ramrod wouldnt be kicked from the server without warning.

HF, THX
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? :roll:

lol.........Winter :D
ImageImage
ramboon
Posts: 752
Joined: Mon Jul 20, 2009 8:23 pm
Location: Aachen/Germany

Post by ramboon »

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? :roll:

lol.........Winter :D
I prefere to get kicked then to log on the GAYSPY server. :lol:
Image
Ramrod64
Posts: 819
Joined: Mon Jul 20, 2009 8:23 pm
Location: Muenster (Westf) Germany

Post by Ramrod64 »

okay someone else have something usefull to add here?
Andro
Posts: 36
Joined: Mon Jul 20, 2009 8:23 pm

Post by Andro »

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:

Code: Select all

GlobalSettings.setDefaultUser "0001"
GlobalSettings.setNamePrefix "]K[Cpt"
Filename 2 is "Global.2"
With this as text content:

Code: Select all

GlobalSettings.setDefaultUser "0001"
GlobalSettings.setNamePrefix "=GC="
Filename 3 is "Prefix ]K[Cpt.bat"
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
Filename 4 is "Prefix =GC=.bat"
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
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.
Last edited by Andro on Thu Mar 15, 2007 12:13 pm, edited 1 time in total.
Image
Campaign 8 Image
Campaign 7 Image
Ash2Dust
Executive
Executive
Posts: 4797
Joined: Mon Jul 20, 2009 8:23 pm
Location: California

Post by Ash2Dust »

In your Profiles folder is a file that consists of these 2 setting.
GlobalSettings.setDefaultUser "0001"
GlobalSettings.setNamePrefix ""
You can enter a tag between the prefix qoutes, but that is changed everytime you change the tag name in game.

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.
Andro
Posts: 36
Joined: Mon Jul 20, 2009 8:23 pm

Post by Andro »

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. :P

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.
Image
Campaign 8 Image
Campaign 7 Image
MorpheusPT
Posts: 1324
Joined: Mon Jul 20, 2009 8:23 pm
Location: Penacova, Coimbra, Portugal

Post by MorpheusPT »

this is what i have=

"C:\Program Files\EA GAMES\Battlefield 2\BF2.exe" +menu 1 +fullscreen 1 +restart +playerName MorpheusPT +playerPassword ******

the +restart thingy is quite useful, since the videos don'g get loaded into the memory, saving you time, and computer performance.
Morph
Andro
Posts: 36
Joined: Mon Jul 20, 2009 8:23 pm

Post by Andro »

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
Image
Campaign 8 Image
Campaign 7 Image
Ash2Dust
Executive
Executive
Posts: 4797
Joined: Mon Jul 20, 2009 8:23 pm
Location: California

Post by Ash2Dust »

I edited my post with a solution. You may be able to use the parameter in the run line. Didnt try it.
Ramrod64
Posts: 819
Joined: Mon Jul 20, 2009 8:23 pm
Location: Muenster (Westf) Germany

Post by Ramrod64 »

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
Ramrod, out!

Cu on Battlefield of =Global-Conflict=
Image
current Campaign:
Image
Andro
Posts: 36
Joined: Mon Jul 20, 2009 8:23 pm

Post by Andro »

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.
Image
Campaign 8 Image
Campaign 7 Image
Ash2Dust
Executive
Executive
Posts: 4797
Joined: Mon Jul 20, 2009 8:23 pm
Location: California

Post by Ash2Dust »

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.
GlobalSettings.setDefaultUser "0001"
GlobalSettings.setNamePrefix "ArmyZ"
save it.

On your desktop, create a new text file in Notepad and copy/paste this in
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
save the text file as 'BF2 GC.bat' (dont let it add .txt to the end)

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
Andro
Posts: 36
Joined: Mon Jul 20, 2009 8:23 pm

Post by Andro »

Again we said nearly the same (Backup for global.con).
You saw my postning, its the same, isnt it?
Image
Campaign 8 Image
Campaign 7 Image
Post Reply