SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SH5 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 02-21-17, 09:17 AM   #1
Putera aditya
Nub
 
Join Date: Dec 2013
Posts: 4
Downloads: 30
Uploads: 0
Default

Quote:
Originally Posted by MaMa View Post
As told in my last post, here it is a detailed explanation about my discovery and the procedure to use for fixing this terrible bug .

Starting from the assumption that something was related to a missing response from the OSI application or the SH5 main game i first started looking inside the OSI executable but with no result. From my knowledge it looked all right and with no apparent problem at all . I excluded the game files since they were the same as ever and the only changes occurred were part of the UPlay updates frequently released (with no apparent communications with the users, it seems... changes to more important games were followed by news or changelogs, for Silent Hunter 5 no informations were given ).

Second important element was that not all users were experimenting this issue, thus leading me to a problem related to single computers with problems on Handling threads or processes flow. The OSI is at all effects an emulator of the old DRM system (or part of it at all, i don't know) and it send pings to the main game every few seconds before releasing further data to the game prior a game response. This timed procedure pointed me at looking at the running processes of my PC and there it came to my mind an old application dedicated on freeing resources of the PC as to have better performances for a game :

This application simply changed the process priority of the game launched and lowered all Others to allow the computer a dedicated amount of resources for the game. Usually a PC handles all the processes automatically aiming to a balanced performance of all the applications running and the priority assigned gives more resources (RAM, CPU usage and so on) to the main applications running... i wondered if it could be our case and there it came the discovery.

Coming to the problem, here is the bug : the OSI application, started each time with the SH5.exe file, is a background application and the PC usually gives little resources to it, however the SH5 game is instead a demanding one and is given a lot more resources than other running processes... now, it seems that this big difference from resources allocated to the SH5 main game and the ones allocated for the OSI is the responsible for the missing communication between the two running processes .

My first idea was to manually raise the priority of the OSI process and it worked !! The DBG Viewer helped me on checking the correct communications between SH5 and OSI and at the moment it works everything correctly . As everyone can note the DBG Viewer is only a tool to check if the game works properly and it is not needed to fix the bug. The only thing to do once is to set the OSI.exe file to be runned with administrator rights because only in this way it can be directed from the Windows Task Manager.

The file is located in the UPlay folder, this is the link where it is usually installed :

C:\Program Files (x86)\Ubisoft\Ubisoft Game Launcher\data\3\osis\13\OSI.exe

After that the procedure to follow is this :

- Start Silent Hunter 5;
- When the game finishes loading and you are in the main menu go to the desktop using Alt+TAB;
- Start the Windows task manager and go to the process list;
- Find the OSI.exe process and right click on it;
- Go to "manage priority" and set it to "real time";
- The computer will ask if you want to do it, click yes. It will then tell you that it cannot enable the real time and instead it will set it to "high", that's ok, click on it;
- Close the task manager and return to the game;
- Start or load a saved game and enjoy it !

That's all ! Be aware that the OSI process is killed each time you exit the main game and it is restarted at each SH5 launch, so it is necessary to raise the priority each time. Since it takes only 30 seconds or less to make the modify i don't think it will be too difficult or long to apply .

At the moment i tried more than 20 sessions with the vanilla game and a modded one and no more issues were found, all campaigns are updated regularly and the infamous tonnage bar is filling correctly . As said in my previous posts, every feedback would help on understanding if this bug can be considered solved or not, feel free to ask about it, i will help if i can !
I cant change OSI Priority to realtime, my Windows 7 says unable, any ideas?
Putera aditya is offline   Reply With Quote
Old 02-21-17, 11:03 AM   #2
THEBERBSTER
Growing Old Disgracefully
 
THEBERBSTER's Avatar
 
Join Date: Dec 2012
Location: Hythe - Southampton
Posts: 9,424
Downloads: 1145
Uploads: 0


Default

Hi Pa
Make sure your .exe applications are running as administrators.
Peter
THEBERBSTER is offline   Reply With Quote
Old 08-06-17, 03:39 PM   #3
m00d
Swabbie
 
Join Date: Aug 2017
Posts: 11
Downloads: 63
Uploads: 0
Default

I know this is a old thread but this saves me some time so I wanted to share it. Instead of setting the osi.exe each time I play the game I use this little program that permanently stores the priority settings in windows 10 so that osi.exe always starts in 'realtime' for me. You can choose 'high' as well. It's very easy, just like the task manager except you set it once and your done.

http://systemexplorer.net/

Thanks!
m00d is offline   Reply With Quote
Old 08-06-17, 04:16 PM   #4
THEBERBSTER
Growing Old Disgracefully
 
THEBERBSTER's Avatar
 
Join Date: Dec 2012
Location: Hythe - Southampton
Posts: 9,424
Downloads: 1145
Uploads: 0


Default

Hi m00d
You do not need to worry about that.
The only time of concern is when moving on the day from your current campaign to the next new one.
Peter
THEBERBSTER is offline   Reply With Quote
Old 08-08-17, 11:13 PM   #5
m00d
Swabbie
 
Join Date: Aug 2017
Posts: 11
Downloads: 63
Uploads: 0
Default

Ok thanks, I must have misunderstood the fix by MaMa. I thought we needed to keep osi.exe running at high priority in order for the tonnage bar to increase consistently. I figured I'd forget to Alt/tab out and manually do it so I used that lil program to keep osi.exe at real time without relying on my memory. Also thanks for all the great tutorials you have posted, they have helped me several times already and I'm sure I'll be back reading new ones very soon. Thx!

Last edited by m00d; 08-08-17 at 11:35 PM.
m00d is offline   Reply With Quote
Old 08-09-17, 04:02 AM   #6
THEBERBSTER
Growing Old Disgracefully
 
THEBERBSTER's Avatar
 
Join Date: Dec 2012
Location: Hythe - Southampton
Posts: 9,424
Downloads: 1145
Uploads: 0


Default

Hi m00d
The tonnage bar and campaign icons problems are all down to the Ubisoft Game Launcher.
When Ubisoft passed it over to Uplay a couple of years ago it as has never worked properly since.
Are you trying to play the stock game with the tonnage bar?
Peter
THEBERBSTER is offline   Reply With Quote
Old 08-11-17, 12:13 PM   #7
m00d
Swabbie
 
Join Date: Aug 2017
Posts: 11
Downloads: 63
Uploads: 0
Default

I was thinking of playing stock UI with just a few enviroment mods so the tonnage bar was showing then. Now I'm using Wolfes from the deep mega mod with the MagUI interface so no more tonnage bar issues. Thanks!
m00d is offline   Reply With Quote
Old 01-11-18, 05:36 PM   #8
Rockdent
Nub
 
Join Date: Mar 2016
Posts: 4
Downloads: 17
Uploads: 0
Default

Quote:
Originally Posted by Putera aditya View Post
I cant change OSI Priority to realtime, my Windows 7 says unable, any ideas?
Hi everyone

What I have done to get it work (Win10).

First I made a link of SH5.exe to desktop starting with admin rights.

Then like MaMa's workaround, Main Menu loaded I open Task Manager and set osi.exe(also in admin rights) to realtime.

Both sh5.exe and osi.exe set for all users to admin rights.
Rockdent is offline   Reply With Quote
Old 01-11-18, 07:14 PM   #9
THEBERBSTER
Growing Old Disgracefully
 
THEBERBSTER's Avatar
 
Join Date: Dec 2012
Location: Hythe - Southampton
Posts: 9,424
Downloads: 1145
Uploads: 0


Default

A Warm Welcome To The Subsim Community > Rockdent
Subsim <> Make A Donation <> See The Benefits <> Support The Community
Tutorials And Other Information Links In My Signature Below
If you are playing the stock game or your own modded game then you will find the tonnage bar and campaign icons are broken.
Apart from the SH5.exe with administrator rights which is recommended for all players the other changes you are trying to make will make no difference.
THEBERBSTER is offline   Reply With Quote
Old 01-12-18, 07:41 AM   #10
Jimbuna
Chief of the Boat
 
Jimbuna's Avatar
 
Join Date: Feb 2006
Location: 250 metres below the surface
Posts: 94,224
Downloads: 63
Uploads: 13


Default

Welcome Rockdent
__________________
Wise men speak because they have something to say; Fools because they have to say something.
Oh my God, not again!!

Jimbuna is offline   Reply With Quote
Old 01-12-18, 04:15 PM   #11
Rockdent
Nub
 
Join Date: Mar 2016
Posts: 4
Downloads: 17
Uploads: 0
Default

Quote:
Originally Posted by THEBERBSTER View Post
A Warm Welcome To The Subsim Community > Rockdent
Subsim <> Make A Donation <> See The Benefits <> Support The Community
Tutorials And Other Information Links In My Signature Below
If you are playing the stock game or your own modded game then you will find the tonnage bar and campaign icons are broken.
Apart from the SH5.exe with administrator rights which is recommended for all players the other changes you are trying to make will make no difference.
You´re right. Progress bar with OH2.5 mod works with Baltic Operations and Breaking the fortress. But mission British coastal Waters Tonnage isn´t counting (some kills do???). It sucks. Have a drink now
Rockdent is offline   Reply With Quote
Old 01-12-18, 05:06 PM   #12
THEBERBSTER
Growing Old Disgracefully
 
THEBERBSTER's Avatar
 
Join Date: Dec 2012
Location: Hythe - Southampton
Posts: 9,424
Downloads: 1145
Uploads: 0


Default

Hi R
Quote:
Tonnage isn´t counting (some kills do???
That is correct, that is how it works.
Specific ships to your current patrol on BCW will count others will not.
The TWOS mega mod removes this from the game so all ships count towards your totals.
Peter
THEBERBSTER is offline   Reply With Quote
Old 01-13-18, 07:34 AM   #13
Rockdent
Nub
 
Join Date: Mar 2016
Posts: 4
Downloads: 17
Uploads: 0
Default

Quote:
Originally Posted by THEBERBSTER View Post
Hi R
That is correct, that is how it works.
Specific ships to your current patrol on BCW will count others will not.
The TWOS mega mod removes this from the game so all ships count towards your totals.
Peter
Hi Peter

thx 4 info. Playing OH2.5 Mod now. Is TWoS a better Mod? Whats youre opinion?

Greetz Rock
Rockdent is offline   Reply With Quote
Old 01-13-18, 11:10 AM   #14
Aktungbby
Gefallen Engel U-666
 
Aktungbby's Avatar
 
Join Date: Jul 2013
Location: On a tilted, overheated, overpopulated spinning mudball on Collision course with Andromeda Galaxy
Posts: 17,658
Downloads: 24
Uploads: 0


Default welcome aboard!

Rockdent!
__________________

"The world is too rediculous to even live in!"- Little Big Man
Aktungbby is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:59 AM.


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