Shortcut error with steam

Post Reply
Slothy13
Posts: 7
Joined: 2009-12-26 11:33

Shortcut error with steam

Post 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
You do not have the required permissions to view the files attached to this post.
bosco_
Retired PR Developer
Posts: 14620
Joined: 2006-12-17 19:04

Re: Shortcut error with steam

Post 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.
Image
Slothy13
Posts: 7
Joined: 2009-12-26 11:33

Re: Shortcut error with steam

Post 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?
BottledRussian
Posts: 1
Joined: 2009-12-27 15:28

Re: Shortcut error with steam

Post 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 :P
Gyarados
Posts: 1
Joined: 2009-12-27 15:59

Re: Shortcut error with steam

Post 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!
bosco_
Retired PR Developer
Posts: 14620
Joined: 2006-12-17 19:04

Re: Shortcut error with steam

Post by bosco_ »

Download the AutoHotkey Installer and install it. :)
Image
Blurzz
Posts: 1
Joined: 2009-12-27 21:14

Re: Shortcut error with steam

Post 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 :P
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.
Slothy13
Posts: 7
Joined: 2009-12-26 11:33

Re: Shortcut error with steam

Post by Slothy13 »

yeah my is installed on a partition too but i still couldnt get it to work
Slothy13
Posts: 7
Joined: 2009-12-26 11:33

Re: Shortcut error with steam

Post 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
a_baker
Posts: 1
Joined: 2009-12-28 05:01

Re: Shortcut error with steam

Post 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?
Slothy13
Posts: 7
Joined: 2009-12-26 11:33

Re: Shortcut error with steam

Post by Slothy13 »

baker i think it might be possible but i still cant get mine to work
Anteep
Posts: 2
Joined: 2009-12-31 18:13

Re: Shortcut error with steam

Post 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.
Last edited by Anteep on 2009-12-31 18:48, edited 1 time in total.
Slothy13
Posts: 7
Joined: 2009-12-26 11:33

Re: Shortcut error with steam

Post by Slothy13 »

thank you ill try it now
hongpan1986
Posts: 6
Joined: 2009-12-30 17:26

Re: Shortcut error with steam

Post by hongpan1986 »

it worked for me. thx. bro.
Slothy13
Posts: 7
Joined: 2009-12-26 11:33

Re: Shortcut error with steam

Post 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
dominator200
Posts: 179
Joined: 2009-04-24 12:52

Re: Shortcut error with steam

Post 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
You do not have the required permissions to view the files attached to this post.
dominator200
Posts: 179
Joined: 2009-04-24 12:52

Re: Shortcut error with steam

Post 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
dominator200
Posts: 179
Joined: 2009-04-24 12:52

Re: Shortcut error with steam

Post 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
Last edited by dominator200 on 2010-01-06 01:36, edited 1 time in total.
limb-from-limb
Posts: 3
Joined: 2009-09-26 14:33

Re: Shortcut error with steam

Post 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! :sad: hehe
Post Reply

Return to “General Technical Support”