Page 1 of 1
Shortcut error with steam
Posted: 2009-12-26 13:16
by Slothy13
Hello guys i recently bought battlefield 2 + all the expansions off steam and i decided to use Project Reality i have patched everything and when i get to the main screen i select my account and press login then i get a message saying please use pr.exe to run the game (NOTE i will attach a picture of the message that i get to this topic!) i have run it countless times through the pr folder and have tried the suggestions on the forums i only have a steam version of this game and if anyone can help me get it running please feel free to contact me at
Email:
[email protected]
Xfire: Sloth15
Steam: Slothy13
PLEASE LET ME KNOW WHO YOU ARE IF YOU ADD ME
i will attach a photo of the error message
Slothy
Re: Shortcut error with steam
Posted: 2009-12-26 13:33
by bosco_
Download:
AutoHotkey Download
Then create a .txt file on your desktop and put this inside:
Code: Select all
#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
Then, rename the .txt to 'LaunchPR.ahk' and doubleclick it.
Re: Shortcut error with steam
Posted: 2009-12-27 04:14
by Slothy13
i tried what you posted above and i still couldnt get it to work would you be able to please help me out by using teamveiwer?
Re: Shortcut error with steam
Posted: 2009-12-27 15:35
by BottledRussian
Yeah, that may work for me, but i have my steam folder in my external hdd, its my T: drive in games folder (so the file path is T:\Games\Steam\steamapps\common\battlefield 2\mods\pr) is there any way someone can edit that to work for me? or tell me how to do it myself?
Thanks

Re: Shortcut error with steam
Posted: 2009-12-27 16:02
by Gyarados
Disregard. The code worked.
Just to let anyone know, you need to simply download the standard AutoHotkey installer and it'll work just fine. Fixed the problem, thanks!
Re: Shortcut error with steam
Posted: 2009-12-27 16:06
by bosco_
Download the AutoHotkey Installer and install it.

Re: Shortcut error with steam
Posted: 2009-12-27 21:18
by Blurzz
BottledRussian wrote:Yeah, that may work for me, but i have my steam folder in my external hdd, its my T: drive in games folder (so the file path is T:\Games\Steam\steamapps\common\battlefield 2\mods\pr) is there any way someone can edit that to work for me? or tell me how to do it myself?
Thanks
I also have my install on another partition. My path is (e:\Steam\steamapps\common\battlefield 2\mods\pr)
Please someone help, I would love to play this.
Re: Shortcut error with steam
Posted: 2009-12-27 22:26
by Slothy13
yeah my is installed on a partition too but i still couldnt get it to work
Re: Shortcut error with steam
Posted: 2009-12-28 02:43
by Slothy13
what do i have to do after i download the auto hot key? i tried converting the .ahk file to the exe i ran the exe after doing that and it still did not work
Re: Shortcut error with steam
Posted: 2009-12-28 05:18
by a_baker
Following the instructions posted by [R-DEV]bosco allows me to run Project Reality via the text file / auto hot key.
However, I would prefer to run the game via the project reality shortcut.
Is this possible?
Re: Shortcut error with steam
Posted: 2009-12-28 05:24
by Slothy13
baker i think it might be possible but i still cant get mine to work
Re: Shortcut error with steam
Posted: 2009-12-31 18:35
by Anteep
Are you going to show us how to change the path so that people (and that is quite a few people) who have installed it on a different drive can play?
Ok despite looking complicated if you look through the code, it is actually simple, from searching the forums, I found all you need to do is replace some lines of code:
PREXE := ProgramFilesX86 . "e:\Program Files\Steam\steamapps\common\battlefield 2\mods\pr\pr.exe"
BF2 := ProgramFilesX86 . "e:\Program Files\Steam\steamapps\common\battlefield 2"
I have changed those lines because my path is on the e: drive, so all you need to do is change it for yourselves.
Re: Shortcut error with steam
Posted: 2010-01-02 02:08
by Slothy13
thank you ill try it now
Re: Shortcut error with steam
Posted: 2010-01-02 22:18
by hongpan1986
it worked for me. thx. bro.
Re: Shortcut error with steam
Posted: 2010-01-03 00:31
by Slothy13
Still couldnt get it to work could someone please help me out by using teamviewer or something please if you can my xfire is Sloth15 add me
Re: Shortcut error with steam
Posted: 2010-01-05 16:45
by dominator200
I am having difficulties with it to downloaded the core level packs installed, installed patch downloaded the file for ahk, downloaded ahkinstaller, installed tried to run it just opens the txt file changed to open with ahk and get this message
Re: Shortcut error with steam
Posted: 2010-01-06 00:33
by dominator200
dominator200 wrote:I am having difficulties with it to downloaded the core level packs installed, installed patch downloaded the file for ahk, downloaded ahkinstaller, installed tried to run it just opens the txt file changed to open with ahk and get this message
Sorted it I hadnt started BF2 to finish the installation so uninstalled everything then reinstalled bf2 started it then installed the pr core and levels then used the ahk file and works fine thanks for the work around much appreciated
Re: Shortcut error with steam
Posted: 2010-01-06 00:45
by dominator200
Just a little more info for people who dnt understand as everything isnt in here
1 :d ownload BF2
2:install BF2
3:START BF2 (TO FINISH THE INSTALL)
4:Install PR CORE+ LELVELS
5: Download the ahk installer + copy and paste the ahk file in to a txt file
6:Install the ahk PROGRAM
7:The txt file u have created by copy and paste, change the program to open with by right clicking, properties and were it says open with, click change and select the auto hot key program.
This should work as it did for me this is basically what has already been said in this thread but it is step by step
Re: Shortcut error with steam
Posted: 2010-05-05 14:20
by limb-from-limb
It seems that with version 9 being released, there are still problems with launching the game for steam versions of BF2
I always see the PR splash screen, but then vanilla BF2 will launch.
The AutoHotKey script does not work with this - the only way I can launch the game is by going into vanilla BF2 -> community -> custom games -> PR
(which leads to the "please run via pr.exe" message)
Are there any new techniques to get PR to run on Steam copies of BF2 since the latest update? If not, what are the ideal conditions in which it will run?
I want my PR!

hehe