Page 4 of 4

Re: Project Reality + Battlefield 2 on Steam

Posted: 2010-01-05 14:06
by BuddhaBroddh
I dont Really Know wheather this has something to do with steam or not but i have a problem with my Punkbuster.

I use that autohotkey script to run PR instead of BF2 and after a few minutes i get the message, that punkbuster kicked me because my bf2.exe doesnt seem to be as it should be :shock:

i already updated punkbuster but whatelse can i do? and am i the only one with that issue? :confused:

Punkbuster Error
You have been disconnected by punkbuster. The reason follows in english below.
Punkbuster kicked player >ME< (for 3 minutes) ...
MD5Tool Mismatch BF2.exe (len=2048 )


Edit: Found a solution in another thread!

Re: Project Reality + Battlefield 2 on Steam

Posted: 2010-01-09 12:19
by Synctone
VBNight wrote:I have built a workaround to allow Steam players to get Project Reality to launch correctly. The problem is BF2.exe from Steam quits when you 1st launch it to perform some sort of Steam authentication. Steam relaunches BF2 after the authentication. This script launches PR.exe, waits for it to close when BF2 closes, then waits for BF2 to be restarted, then relaunches PR.exe so it is running with BF2. This has the side effect of PR.exe starting BF2 again which try to start but it will exit because the existing BF2 process is running.

The PR developers should be able to update the PR.exe to detect steam and wait for BF2 to relaunch instead of exiting but this will let you run the game until they do.

Please post any questions or problems here.



AUTOHOTKEY REQUIRED - FREE

You will need to have Autohotkey installed on your system to use this script.

Download Autohotkey: http://www.autohotkey.com

AUTOHOTKEY REQUIRED - FREE




To Use Script:



Copy & Paste Method
  • Paste the following code into a blank notepad.
  • Save the text file on your desktop as "LaunchPR.ahk"
  • Double click LaunchPR.ahk to start Project Reality.
Download Method
  • Download attached LaunchPR.txt file.
  • Open file in notepad and verify text matches script above. (Optional)
  • Rename file to LaunchPR.ahk
  • Double click LaunchPR.ahk to start Project Reality.
Project Reality Launcher - Steam Helper

Code: Select all

; Project Reality Launcher - Steam Helper
;
; This workaround helps launch Project Reality for users who purchased BF2 on Steam.
;
; Run this script to start Project Reality
;
; Launches PR.exe and waits for it to exit when BF2 performs Steam authentication.
; Relaunches PR.exe after Steam restarts BF2.exe after authentication.
;
; WARNING: The 2nd launch of PR.exe attempts to start BF2 again which will try start then quit.

#NoTrayIcon 
#SingleInstance force
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

; Get Path To Project Reality PR.EXE
EnvGet ProgramFilesX86, ProgramFiles(x86)
PREXE := ProgramFilesX86 . "\Steam\steamapps\common\battlefield 2\mods\pr\pr.exe"
BF2 := ProgramFilesX86 . "\Steam\steamapps\common\battlefield 2"

; Verify Path Correct
IfNotExist %PREXE%
{
	EnvGet ProgramFilesFolder, ProgramFiles
	PREXE := ProgramFilesFolder . "\Steam\steamapps\common\battlefield 2\mods\pr\pr.exe"

	IfNotExist %PREXE%
	{
		Msgbox PR.EXE (%PREXE%) NOT FOUND, PROJECT REALITY LAUNCHER FAILED
		ExitApp 1
	}
}

; Launch PR, Wait For It To Exit
RunWait, %PREXE%, %BF2%, UseErrorLevel

; Wait For BF2 Relaunch (20 Sec Timeout)
Process, Wait, BF2.exe, 20

; Check Timeout Error
if (ErrorLevel == 0)
{
	Msgbox TIMEOUT WAITING FOR BF2 RELAUNCH, PROJECT REALITY LAUNCHER FAILED
	ExitApp
}

; Relaunch PR.EXE Again
Run, %PREXE%, %BF2%, UseErrorLevel

; Exit (Finished)
ExitApp 0

Please post any questions or problems here.
Thanx it helped :D

Re: Project Reality + Battlefield 2 on Steam

Posted: 2010-01-10 18:45
by Tsar94
VBNight wrote:I have built a workaround to allow Steam players to get Project Reality to launch correctly. The problem is BF2.exe from Steam quits when you 1st launch it to perform some sort of Steam authentication. Steam relaunches BF2 after the authentication. This script launches PR.exe, waits for it to close when BF2 closes, then waits for BF2 to be restarted, then relaunches PR.exe so it is running with BF2. This has the side effect of PR.exe starting BF2 again which try to start but it will exit because the existing BF2 process is running.

The PR developers should be able to update the PR.exe to detect steam and wait for BF2 to relaunch instead of exiting but this will let you run the game until they do.

Please post any questions or problems here.



AUTOHOTKEY REQUIRED - FREE

You will need to have Autohotkey installed on your system to use this script.

Download Autohotkey: http://www.autohotkey.com

AUTOHOTKEY REQUIRED - FREE




To Use Script:



Copy & Paste Method
  • Paste the following code into a blank notepad.
  • Save the text file on your desktop as "LaunchPR.ahk"
  • Double click LaunchPR.ahk to start Project Reality.
Download Method
  • Download attached LaunchPR.txt file.
  • Open file in notepad and verify text matches script above. (Optional)
  • Rename file to LaunchPR.ahk
  • Double click LaunchPR.ahk to start Project Reality.
Project Reality Launcher - Steam Helper

Code: Select all

; Project Reality Launcher - Steam Helper
;
; This workaround helps launch Project Reality for users who purchased BF2 on Steam.
;
; Run this script to start Project Reality
;
; Launches PR.exe and waits for it to exit when BF2 performs Steam authentication.
; Relaunches PR.exe after Steam restarts BF2.exe after authentication.
;
; WARNING: The 2nd launch of PR.exe attempts to start BF2 again which will try start then quit.

#NoTrayIcon 
#SingleInstance force
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

; Get Path To Project Reality PR.EXE
EnvGet ProgramFilesX86, ProgramFiles(x86)
PREXE := ProgramFilesX86 . "\Steam\steamapps\common\battlefield 2\mods\pr\pr.exe"
BF2 := ProgramFilesX86 . "\Steam\steamapps\common\battlefield 2"

; Verify Path Correct
IfNotExist %PREXE%
{
	EnvGet ProgramFilesFolder, ProgramFiles
	PREXE := ProgramFilesFolder . "\Steam\steamapps\common\battlefield 2\mods\pr\pr.exe"

	IfNotExist %PREXE%
	{
		Msgbox PR.EXE (%PREXE%) NOT FOUND, PROJECT REALITY LAUNCHER FAILED
		ExitApp 1
	}
}

; Launch PR, Wait For It To Exit
RunWait, %PREXE%, %BF2%, UseErrorLevel

; Wait For BF2 Relaunch (20 Sec Timeout)
Process, Wait, BF2.exe, 20

; Check Timeout Error
if (ErrorLevel == 0)
{
	Msgbox TIMEOUT WAITING FOR BF2 RELAUNCH, PROJECT REALITY LAUNCHER FAILED
	ExitApp
}

; Relaunch PR.EXE Again
Run, %PREXE%, %BF2%, UseErrorLevel

; Exit (Finished)
ExitApp 0

Please post any questions or problems here.
I did it but when i launched launchPR.exe there is opening a black window its not working please help :-(

Image

Re: Project Reality + Battlefield 2 on Steam

Posted: 2010-01-11 07:10
by Franco.A.USMC
When i double-click the PR shortcut it goes to the login menu and after my account is logged in it shows a message:
You must use "pr.exe" to run Project Reality.
Please update ur shortcuts as required.
Example:
'C:\Program Files\EA Games\Battlefield 2\mods\pr\pr.exe'
instead of:
'C:\Program Files\EA Games\Battlefield 2\bf2.exe'



Thats all it says... i run it as an admin and in compablity mode, it has started only twice and ran beautifuly with the script but no longer starts. Please reply with solution to this problem.

Re: Project Reality + Battlefield 2 on Steam

Posted: 2010-01-11 07:48
by DutchInAction
Hey,

Im not sure if you already have your answer, didnt read the whole thread, but I have the same problem. I solve this by starting PR by : 'My computer', 'Program Files', 'EA Games', 'Battlefield 2', 'mods', 'pr' , and then that shortcut with 'pr'.

Goodluck!

Re: Project Reality + Battlefield 2 on Steam

Posted: 2010-01-11 16:08
by Tsar94
I have a new problem

Image

What should i do?

Re: Project Reality + Battlefield 2 on Steam

Posted: 2010-01-13 06:37
by Psyrus
I believe it should be

\Program Files (x86)\

Re: Project Reality + Battlefield 2 on Steam

Posted: 2010-01-19 16:09
by Technobanana
Hey do you think you could make a steam script for rpsp.exe ???? because i wouldent mind having the single player as well

Re: Project Reality + Battlefield 2 on Steam

Posted: 2010-01-21 07:19
by communistman
Actually, I made singleplayer work by myself, just go into the PR autohotkey script and change every reference from 'PR' to 'PRSP'.

Re: Project Reality + Battlefield 2 on Steam

Posted: 2010-01-22 00:37
by subliminal
the hotkey thing didnt work for me... here my code maybe you guys can spot whats wrong with it

; Project Reality Launcher - Steam Helper
;
; This workaround helps launch Project Reality for users who purchased BF2 on Steam.
;
; Run this script to start Project Reality
;
; Launches PR.exe and waits for it to exit when BF2 performs Steam authentication.
; Relaunches PR.exe after Steam restarts BF2.exe after authentication.
;
; WARNING: The 2nd launch of PR.exe attempts to start BF2 again which will try start then quit.

#NoTrayIcon
#SingleInstance force
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

; Get Path To Project Reality PR.EXE
EnvGet ProgramFilesX86, ProgramFiles(x86)
PREXE :="\Steam\steamapps\common\battlefield 2\mods\pr\pr.exe"
BF2 :="\Steam\steamapps\common\battlefield 2\"

; Verify Path Correct
IfNotExist %PREXE%
{
PREXE :="\Steam\steamapps\common\battlefield 2\mods\pr\pr.exe"

IfNotExist %PREXE%
{
Msgbox PR.EXE (%PREXE%) NOT FOUND, PROJECT REALITY LAUNCHER FAILED
ExitApp 1
}
}

; Launch PR, Wait For It To Exit
RunWait, %PREXE%, %BF2%, UseErrorLevel

; Wait For BF2 Relaunch (20 Sec Timeout)
Process, Wait, BF2.exe, 20

; Check Timeout Error
if (ErrorLevel == 0)
{
Msgbox TIMEOUT WAITING FOR BF2 RELAUNCH, PROJECT REALITY LAUNCHER FAILED
ExitApp
}

; Relaunch PR.EXE Again
Run, %PREXE%, %BF2%, UseErrorLevel

; Exit (Finished)
ExitApp 0

Re: Project Reality + Battlefield 2 on Steam

Posted: 2010-01-22 02:05
by communistman
Mine reads:

; Project Reality Launcher - Steam Helper
;
; This workaround helps launch Project Reality for users who purchased BF2 on Steam.
;
; Run this script to start Project Reality
;
; Launches PR.exe and waits for it to exit when BF2 performs Steam authentication.
; Relaunches PR.exe after Steam restarts BF2.exe after authentication.
;
; WARNING: The 2nd launch of PR.exe attempts to start BF2 again which will try start then quit.

#NoTrayIcon
#SingleInstance force
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

; Get Path To Project Reality PR.EXE
EnvGet ProgramFilesX86, ProgramFiles(x86)
PREXE := ProgramFilesX86 . "\Steam\steamapps\common\battlefield 2\mods\pr\pr.exe"
BF2 := ProgramFilesX86 . "\Steam\steamapps\common\battlefield 2\"

; Verify Path Correct
IfNotExist %PREXE%
{
EnvGet ProgramFilesFolder, ProgramFiles
PREXE := ProgramFilesFolder . "\Steam\steamapps\common\battlefield 2\mods\pr\pr.exe"

IfNotExist %PREXE%
{
Msgbox PR.EXE (%PREXE%) NOT FOUND, PROJECT REALITY LAUNCHER FAILED
ExitApp 1
}
}

; Launch PR, Wait For It To Exit
RunWait, %PREXE%, %BF2%, UseErrorLevel

; Wait For BF2 Relaunch (20 Sec Timeout)
Process, Wait, BF2.exe, 20

; Check Timeout Error
if (ErrorLevel == 0)
{
Msgbox TIMEOUT WAITING FOR BF2 RELAUNCH, PROJECT REALITY LAUNCHER FAILED
ExitApp
}

; Relaunch PR.EXE Again
Run, %PREXE%, %BF2%, UseErrorLevel

; Exit (Finished)
ExitApp 0




Works fine, with the exception of being kicked about 90% of the time because of the MD5tool mismatch, something about PB restrictions, etc. In fact, I got so damned fed up with trying to deal with crappy Steam that I just ordered a regular retail copy of BF2 from Amazon for $10.

Re: Project Reality + Battlefield 2 on Steam

Posted: 2010-01-27 02:39
by Xitude
Thanks Guys Worked Perfectly. +1.

Re: Project Reality + Battlefield 2 on Steam

Posted: 2010-01-30 04:08
by Deep_pain
Jeff wrote:Nevermind, I found this bf2.exe that works really well. I don't even need the autohotkey script anymore. i found it on this post.
https://www.realitymod.com/forum/f27-pr ... 048-a.html
replacing the bf2.exe from the post you quoted fixed this issue for me, pr now works on steam for me (win xp sp3) with no problems.

Re: Project Reality + Battlefield 2 on Steam

Posted: 2010-02-03 08:32
by shifty66
VBNight wrote:I have built a workaround to allow Steam players to get Project Reality to launch correctly. The problem is BF2.exe from Steam quits when you 1st launch it to perform some sort of Steam authentication. Steam relaunches BF2 after the authentication. This script launches PR.exe, waits for it to close when BF2 closes, then waits for BF2 to be restarted, then relaunches PR.exe so it is running with BF2. This has the side effect of PR.exe starting BF2 again which try to start but it will exit because the existing BF2 process is running.

The PR developers should be able to update the PR.exe to detect steam and wait for BF2 to relaunch instead of exiting but this will let you run the game until they do.

Please post any questions or problems here.



AUTOHOTKEY REQUIRED - FREE

You will need to have Autohotkey installed on your system to use this script.

Download Autohotkey: http://www.autohotkey.com

AUTOHOTKEY REQUIRED - FREE




To Use Script:



Copy & Paste Method
  • Paste the following code into a blank notepad.
  • Save the text file on your desktop as "LaunchPR.ahk"
  • Double click LaunchPR.ahk to start Project Reality.
Download Method
  • Download attached LaunchPR.txt file.
  • Open file in notepad and verify text matches script above. (Optional)
  • Rename file to LaunchPR.ahk
  • Double click LaunchPR.ahk to start Project Reality.
Project Reality Launcher - Steam Helper

Code: Select all

; Project Reality Launcher - Steam Helper
;
; This workaround helps launch Project Reality for users who purchased BF2 on Steam.
;
; Run this script to start Project Reality
;
; Launches PR.exe and waits for it to exit when BF2 performs Steam authentication.
; Relaunches PR.exe after Steam restarts BF2.exe after authentication.
;
; WARNING: The 2nd launch of PR.exe attempts to start BF2 again which will try start then quit.

#NoTrayIcon 
#SingleInstance force
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

; Get Path To Project Reality PR.EXE
EnvGet ProgramFilesX86, ProgramFiles(x86)
PREXE := ProgramFilesX86 . "\Steam\steamapps\common\battlefield 2\mods\pr\pr.exe"
BF2 := ProgramFilesX86 . "\Steam\steamapps\common\battlefield 2"

; Verify Path Correct
IfNotExist %PREXE%
{
	EnvGet ProgramFilesFolder, ProgramFiles
	PREXE := ProgramFilesFolder . "\Steam\steamapps\common\battlefield 2\mods\pr\pr.exe"

	IfNotExist %PREXE%
	{
		Msgbox PR.EXE (%PREXE%) NOT FOUND, PROJECT REALITY LAUNCHER FAILED
		ExitApp 1
	}
}

; Launch PR, Wait For It To Exit
RunWait, %PREXE%, %BF2%, UseErrorLevel

; Wait For BF2 Relaunch (20 Sec Timeout)
Process, Wait, BF2.exe, 20

; Check Timeout Error
if (ErrorLevel == 0)
{
	Msgbox TIMEOUT WAITING FOR BF2 RELAUNCH, PROJECT REALITY LAUNCHER FAILED
	ExitApp
}

; Relaunch PR.EXE Again
Run, %PREXE%, %BF2%, UseErrorLevel

; Exit (Finished)
ExitApp 0

Please post any questions or problems here.

Can anyone edit this to make it launch the ADF mod through steam?

Re: Project Reality + Battlefield 2 on Steam

Posted: 2010-02-03 23:46
by mo0nbuggy1
Oh I member when this kept on happening to me. Darkest days of my life!

Re: Project Reality + Battlefield 2 on Steam

Posted: 2010-02-04 00:01
by Snares
Won't have to do any of this with 0.9, since PR will support Steam installs.