Psycho~*DS*~
Banned
+50|6864
Any way of getting a command line to directly connect you to a server?

I would think the server would be in your "Favorites" folder, or just connect manipulating the ip address, thoughts?
sermsys
Member
+1|6895
I found out the command line through ProcessExplorer. I switched from SF to vanilla and checked the commandline of BF2 in ProcessExplorer (it logins automatically after a SF/BF switch).
No idea about direct server connection.
Psycho~*DS*~
Banned
+50|6864
Ahh, I figured it out, thanks anyways.
Lamsey
Member
+11|6912|Glasgow, Scotland
Got a problem... Was looking through this thread and decided to try it out to see if it made a difference. Only problem is that I don't have Special Forces, so in retrospect it probably wasn't a good idea to use the +restart option.

Now, when I launch BF2, it gives me an error message saying "StaticMesh.fx(2): error X1507: failed to open source file: 'mods/xpack/shaders/datatypes.fx' " with Retry and Cancel options. 'Retry' just makes the error box pop up again, and 'Cancel' takes me back to desktop.

I've tried relaunching it with "+restart 1" removed and also with "+restart 0" - neither make any difference. I've also tried directly launching BF2.exe from the installation folder; same problem.

Anyone got any ideas as to how I can fix this? Got a horrible feeling it's gonna need a full reinstall
scottomus0
Teh forum ghey!
+172|6902|Wigan. Manchester. England.
what ?

im confused
G.I.JOE¤MFA¤
Member
+3|6995|Wherever Uncle Sams Needs Me.

Citizen One wrote:

Maj.Do wrote:

hmm doesnt work for me  so i just paste the command line +restart 1 +playerName "name" +playerPassword "password"  and no "" stuff right?
No leave it in, here is mine...

"C:\Program Files\EA GAMES\Battlefield 2\BF2.exe" +menu 1 +fullscreen 1 +restart 1 +playerName "CitizenTwo" +playerPassword "yourpassgoeshere"
edit:  answered the SF question

Lamsey wrote:

Got a problem... Was looking through this thread and decided to try it out to see if it made a difference. Only problem is that I don't have Special Forces, so in retrospect it probably wasn't a good idea to use the +restart option.

Now, when I launch BF2, it gives me an error message saying "StaticMesh.fx(2): error X1507: failed to open source file: 'mods/xpack/shaders/datatypes.fx' " with Retry and Cancel options. 'Retry' just makes the error box pop up again, and 'Cancel' takes me back to desktop.

I've tried relaunching it with "+restart 1" removed and also with "+restart 0" - neither make any difference. I've also tried directly launching BF2.exe from the installation folder; same problem.

Anyone got any ideas as to how I can fix this? Got a horrible feeling it's gonna need a full reinstall
BF2 =

"C:\Program Files\EA GAMES\Battlefield 2\BF2.exe" +menu 1 +fullscreen 1 +restart 1 +playerName "YOUR USERNAME HERE" +playerPassword "YOUR PASSWORD HERE"



BF2:SF =

"C:\Program Files\EA GAMES\Battlefield 2\BF2.exe" +menu 1 +fullscreen 1 +playerName "YOUR USERNAME HERE" +playerPassword "YOUR PASSWORD HERE" +modPath mods/xpack +ignoreAsserts 1




HOPE THIS EXPLAINS IT BETTER

the BOLD RED TEXT is where u enter in YOUR info...the rest u can copy and paste into your BF2 and SF shortcut TARGETS

EXAMPLE:
https://dfmafia.net/images/bf2target.JPG


the movie issue has been addressed b4 but here it is in simple terms like the above was...

go to your BF2 and BF2:SF folders:

BF2 =

C:\Program Files\EA GAMES\Battlefield 2\mods\bf2\Movies


SF =

C:\Program Files\EA GAMES\Battlefield 2\mods\xpack\movies

just right click on each movie file and rename it - i just added _ at the end of the names so i could go back to the default if needed at a later time


EXAMPLE:
https://dfmafia.net/images/movie_edit.jpg



both of these help load BF2 and SF way quicker - try it sometime

Last edited by G.I.JOE¤MFA¤ (2006-04-07 04:30:02)

Lamsey
Member
+11|6912|Glasgow, Scotland
Yah, I've tried that - I think the problem is that the +restart line implies that you're switching from BF2 to BF2SF. Because I don't have SF, it's gotten confused by my having put the +restart param in. Unfortunately, removing the parameter doesn't seem to make any difference.

Oh well, will just have to reinstall. Must remember to keep a copy of the patch download this time
G.I.JOE¤MFA¤
Member
+3|6995|Wherever Uncle Sams Needs Me.
take a look at your shortcut...if it works then dont change it...just add the login details at the end

+playerName "YOUR USERNAME HERE" +playerPassword "YOUR PASSWORD HERE"

Last edited by G.I.JOE¤MFA¤ (2006-04-07 04:46:39)

Speelbal
Member
+146|7017|Netherlands
I play battlefield 2 via a batch file.

Code:

@echo off
@echo off
cd /d "D:\Battlefield 2"
start /low BF21.exe +menu 1 +fullscreen 1 +playerName "Speelbal" +playerPassword "hell_no"

"D:\Program Files\MultiRes\MultiRes.exe" /800,600,32
pause
cls
Help me improve it. I still need some commands:

- If I quit BF2 i want my screen resolution set back to normal.
- I want Multires to quit too.

Last edited by Speelbal (2006-04-07 07:50:52)

sermsys
Member
+1|6895
???!!!???
I think your code is a bit messed up.
Here's mine (the program is in the bf2.exe folder):

Code:

start /high bf2.exe  +menu 1 +fullscreen 1 +restart 1 +playerName SerMSYS +playerPassword noturbusiness
As for quiting a program remotely, type: tskill "appname_with_no_qoutes_and_no_.exe" or process_id

Last edited by sermsys (2006-04-09 10:14:46)

Lamsey
Member
+11|6912|Glasgow, Scotland
sermsys - he's giving it low priority because that stops BF2 from locking up your PC completely when it hangs. As long as you're not running anything cpu-intensive at the same time as BF2, there will be no noticeable performance impact.
Speelbal
Member
+146|7017|Netherlands
Ah, pasted it wrong. Should be:

Code:

@echo off
cd /d "D:\Battlefield 2"
start /low BF21.exe +menu 1 +fullscreen 1 +playerName "Speelbal" +playerPassword "hell_no"

"D:\Program Files\MultiRes\MultiRes.exe" /800,600,32
pause
cls
Btw, quitting a programm remotely is something else, isnt it?
I want this: When I press the Quit button in BF2, so it goes back to desktop, i want my screen resolution changed to 1400 x 1050. How do I do that?

Last edited by Speelbal (2006-04-09 11:13:32)

sermsys
Member
+1|6895
When u start a program without using start command , eg. cd C:\bf2\  {next line} bf2.exe, the command lines after this line will (i think) execute when the program exits, so:

cmd.exe
cd C:\bf2\multires\
multires.exe /whatever
cd ..
bf2.exe /1234
cd multires\
multires /go back
exit /b
sermsys
Member
+1|6895
wow this is an old topic already...

https://h1.ripway.com/SerMSYSx2/bf2cmd.JPG

Board footer

Privacy Policy - © 2025 Jeff Minard