SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   Silent Hunter 5 (https://www.subsim.com/radioroom/forumdisplay.php?f=244)
-   -   Tiny execution script (https://www.subsim.com/radioroom/showthread.php?t=181797)

DelphiUniverse 03-26-11 08:26 PM

Quote:

Originally Posted by Dignan (Post 1628602)
Ok. I tried the new script with the new download. Put it in my SH5 folder, created a shortcut to the desktop and added the new script line. No dice.

I'm guessing one of two things is wrong.

1. I put the scirpt in the Target line of the shortcut wrong. (Are the quotations right?) It looks like this EXACTLY.

%windir%\system32\cmd.exe /c start "runrealtime" /realtime "E:\Program Files\Ubisoft\Silent Hunter 5\sh5.exe"

or

2. I'm not in administrator mode. How do I confirm and/or change this?

I noticed something wrong that you are doing, you are not supposed to be putting the script inside a shortcut, you are supposed to use the batch script, put a shortcut of the batch script on your desktop, dont put the script inside the shortcut target, that will not work.

I will explain it again:

1: Download my script.
2: Put the script in the sh5 folder.
3: Edit the path inside the script to your own path
4: Drag a shortcut of that script to your desktop
5: Dont touch the shortcut, dont edit it, dont even smell on it :)
6: Right click the shortcut and "run as administrator"
OPTIONAL: 7: If you already use an admin account you can skip step 6 and just run it normally

Dignan 03-26-11 08:48 PM

Quote:

Originally Posted by DelphiUniverse (Post 1628605)
I noticed something wrong that you are doing, you are not supposed to be putting the script inside a shortcut, you are supposed to use the batch script, put a shortcut of the batch script on your desktop, dont put the script inside the shortcut target, that will not work.

I will explain it again:

1: Download my script.
2: Put the script in the sh5 folder.
3: Edit the path inside the script to your own path
4: Drag a shortcut of that script to your desktop
5: Dont touch the shortcut, dont edit it, dont even smell on it :)
6: Right click the shortcut and "run as administrator"
OPTIONAL: 7: If you already use an admin account you can skip step 6 and just run it normally

When you say "edit the path inside the script" in step 3...how do I do that? The only thing I can think of is right click and "edit" to bring up the notepad file.

Also, when I right click the shortcut I don't see "run as administrator" as an option. I have Windows XP 32.

DelphiUniverse 03-26-11 08:50 PM

Quote:

Originally Posted by Dignan (Post 1628616)
When you say "edit the path inside the script" in step 3...how do I do that? The only thing I can think of is right click and "edit" to bring up the notepad file.

You got it right. Edit it with notepad and change the driveletter and path to your own path. Thats it. Its very easy.

Quote:

Originally Posted by Dignan (Post 1628616)
Also, when I right click the shortcut I don't see "run as administrator" as an option. I have Windows XP 32.

if you dont have "run as administrator" you should log onto an admin account and just run it normally from there. There are other ways to run processes as administrator such as RUNAS but that is sort of beyond the scope of this small script that I presented here, you can however look into it yourself.

When I made this script I assumed people would know how to run it as administrator, I can't do a full windows tutorial if you know what I mean :haha: :know: I am not that good with the different windows versions.

Dignan 03-26-11 08:53 PM

Quote:

Originally Posted by DelphiUniverse (Post 1628618)
You got it right. Edit it with notepad and change the driveletter and path to your own path. Thats it. Its very easy.



if you dont have "run as administrator" you should log onto an admin account and just run it normally from there.


Ok. Thanks. I've had a bit too much wine and been staring at these forums a bit too long tonight. Going to revisit this problem tomorrow and hopefully it will be more clear. I appreciate your efforts. :up:

DelphiUniverse 03-26-11 09:01 PM

Quote:

Originally Posted by Dignan (Post 1628620)
Ok. Thanks. I've had a bit too much wine and been staring at these forums a bit too long tonight. Going to revisit this problem tomorrow and hopefully it will be more clear. I appreciate your efforts. :up:

%windir%\system32\cmd.exe /c start "runrealtime" /realtime "E:\Program Files\Ubisoft\Silent Hunter 5\sh5.exe"

You already have the right path here.

Edit the batch file and paste it, and you're set.

Dignan 03-27-11 05:32 PM

Quote:

Originally Posted by DelphiUniverse (Post 1628626)
%windir%\system32\cmd.exe /c start "runrealtime" /realtime "E:\Program Files\Ubisoft\Silent Hunter 5\sh5.exe"

You already have the right path here.

Edit the batch file and paste it, and you're set.

Well, I'm not sure what the problem is. I put the script you recommended above in my batch file (by editing notepad), made a shortcut of that file to the desktop but the game refuses to start in realtime. I don't think it's the administrator thing because I can alt-tab out, change it to realtime in task manager and it works. I can't for the life of me figure this one out.

Thanks for all your help though. I may look around on the internet for other ways to do this. In the meantime, I'll just keep alt-tabbing out to change the priority to realtime because it makes such a huge difference in the explosion and water spray graphics.

blkdimnd 09-07-12 03:23 AM

The links seem to be broken.

Dose anyone have the files and are willing to share?


Or the running SH5 in High Priority not needed?
I'm experiencing Mouse Courser Lag.

hitmanuw 09-07-12 06:48 AM

Quote:

Originally Posted by DelphiUniverse (Post 1628457)
When you launch silent hunter 5 normally, you get normal priority on the process, which is at priority 8. When you launch the game using high or realtime priority you get 13 for high or 24 for realtime.

When using high priority you get almost doubled priority compared to normal priority. And when using realtime you get tripled priority.

Realtime offers the best priority but you need administrator privilege to run in realtime. If you dont have admin privileges you can settle for high priority.
Choose the preferred one from below:

Download here:

"HIGH" PRIORITY DOWNLOAD
"REALTIME" PRIORITY DOWNLOAD


Install instructions:

  1. Copy the batch script to your "Ubisoft\Silent Hunter 5" directory
  2. Right click the batch script and drag a shortcut to your desktop
  3. Rename the shortcut to "Silent Hunter 5 (HIGH PRIORITY)"
  4. Right click shortcut once again and choose properties and change icon and go to sh5 dir to find icon
  5. Done. When you launch using this shortcut it will start with higher priority automatically

your link doesnt work ... can u give anther one ?

dottore 09-07-12 07:06 AM

Script link
 
I can make one to you :).

0rpheus 09-07-12 07:08 AM

Quote:

Originally Posted by blkdimnd (Post 1931264)
The links seem to be broken.

Dose anyone have the files and are willing to share?


Or the running SH5 in High Priority not needed?
I'm experiencing Mouse Courser Lag.

Quote:

Originally Posted by hitmanuw (Post 1931337)
your link doesnt work ... can u give anther one ?

I'd highly suggest NOT doing this guys - setting SH5 to realtime priority (or any other program, for that matter) is not recommended. For several explanations why, go here:

http://www.tomshardware.co.uk/forum/...ocess-priority

If you're having graphics stutter, get the D3D Antilag mod :up:

dottore 09-07-12 07:40 AM

I agree. Use at your own risk. Mod: It can make your system instable if you run third party softwares in real time depends on what softwares you already run in memory and your system specs. Even can cause BSOD. You drain resources from your system.

Download here:
High priority:
http://www.mediafire.com/?mrb8b3z71hmg0c0

Realtime priority:
http://www.mediafire.com/?brnyzuw4b6l20e5

Put it in your Silent Hunter 5 directory. Change your start exe to this batch file in your Desktop icon.


All times are GMT -5. The time now is 01:02 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.