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 01-18-17, 10:12 AM   #1
OldCoder
Sparky
 
Join Date: Mar 2016
Posts: 150
Downloads: 25
Uploads: 0
Default

Hi,

I've made an exe to try out, which spawns the ubisoft osi.exe at the realtime priority. If it works and the install steps could be automated by the patcher, it would simplify the fix process so no steps required by the user.

Manual steps that would need automating:
1. Rename the original osi.exe to osi_ubisoft.exe
2. Copy my replacement osi.exe into the same folder as osi_ubisoft.exe, along with a file called subsim.args

Then when SH5 starts, it runs my osi.exe instead of theirs.

My exe spawns the exe that we renamed and creates the task at the priority specified by a line in the subsim.args file (by default real time).

The comm pipe between SH5 and the listener still works (verified with DbgView).

One caveat is that I've compiled it and tested it on Windows 7 64 bit. It would need some testing on other platforms and also by users who aren't by default 'administrator'.

I don't know how to attach files to the forum, so guidance needed if this is something that people would like to try.
OldCoder is offline   Reply With Quote
Old 01-20-17, 11:00 AM   #2
OldCoder
Sparky
 
Join Date: Mar 2016
Posts: 150
Downloads: 25
Uploads: 0
Default

Anyone still have this tonnage bar issue want to try this? Somebody who can easily reproduce the problem I mean.
OldCoder is offline   Reply With Quote
Old 01-20-17, 11:54 AM   #3
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,095
Downloads: 587
Uploads: 13


Default

Work with the Man people! His solution can also solve sporadically problematic campaign transfers which are caused by the same issue...

Hi is trying ti give you the simplest solution so far for the long standing issue , yet no one seems to care.

Last edited by vdr1981; 01-20-17 at 12:03 PM.
vdr1981 is offline   Reply With Quote
Old 01-21-17, 08:21 AM   #4
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by OldCoder View Post
Hi,

I've made an exe to try out, which spawns the ubisoft osi.exe at the realtime priority. If it works and the install steps could be automated by the patcher, it would simplify the fix process so no steps required by the user.

Manual steps that would need automating:
1. Rename the original osi.exe to osi_ubisoft.exe
2. Copy my replacement osi.exe into the same folder as osi_ubisoft.exe, along with a file called subsim.args

Then when SH5 starts, it runs my osi.exe instead of theirs.

My exe spawns the exe that we renamed and creates the task at the priority specified by a line in the subsim.args file (by default real time).

The comm pipe between SH5 and the listener still works (verified with DbgView).
Brilliant

Quote:
Originally Posted by OldCoder View Post
One caveat is that I've compiled it and tested it on Windows 7 64 bit. It would need some testing on other platforms and also by users who aren't by default 'administrator'.
I run SH5 on Winodws 8 as administrator, but I don't have time to play the game. If there is a quick way to check that your method is working on my system (one which doesn't require starting a campaign), I will be glad to help

Quote:
Originally Posted by OldCoder View Post
I don't know how to attach files to the forum, so guidance needed if this is something that people would like to try.
You need uploading privileges for hosting mods on subsim. If you want, I can upload your tweak for you, or you can PM Neal Stevens asking your profile to be upgraded for mod uploading, but most users here use Mediafire for sharing their WIP stuff
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 01-21-17, 08:48 AM   #5
OldCoder
Sparky
 
Join Date: Mar 2016
Posts: 150
Downloads: 25
Uploads: 0
Default

Cheers gap, Vecko is giving it a first pass (I used mediafire in the end); will see how he gets on.
OldCoder is offline   Reply With Quote
Old 01-21-17, 10:02 AM   #6
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by OldCoder View Post
Cheers gap, Vecko is giving it a first pass (I used mediafire in the end); will see how he gets on.
Okay, good. Fingers crossed!
__________________
_____________________
|May the Force be with you!|
...\/
gap is offline   Reply With Quote
Old 01-21-17, 11:32 AM   #7
vdr1981
Navy Seal
 
Join Date: May 2010
Location: Србија
Posts: 6,095
Downloads: 587
Uploads: 13


Default

Quote:
Originally Posted by OldCoder View Post
Cheers gap, Vecko is giving it a first pass (I used mediafire in the end); will see how he gets on.
I'll try to create a test patch for TWoS which will allow to number of people with different setups to test campaign transfer triggering.

Just a few more question" Is there any way to make things even more simple somehow? Maybe to avoid renaming files or something?

Also, will any afterwards user Uplay updates somehow interfere with your fix?
vdr1981 is offline   Reply With Quote
Old 01-21-17, 12:17 PM   #8
OldCoder
Sparky
 
Join Date: Mar 2016
Posts: 150
Downloads: 25
Uploads: 0
Default

"I'll try to create a test patch for TWoS which will allow to number of people with different setups to test campaign transfer triggering."

Fantastic, thanks.

"Is there any way to make things even more simple somehow? Maybe to avoid renaming files or something? "

I guess included in the zip file could be a .bat file to perform the copy/renames for the user. Since I know nothing about the patcher, does it have any ability to run an external batch file when performing its work?

"Also, will any afterwards user Uplay updates somehow interfere with your fix?"

I can't be sure, though my uplay folders and the osi.exe file are dated March last year which is probably when I installed them.
OldCoder is offline   Reply With Quote
Old 01-25-17, 04:33 PM   #9
Choum
Sparky
 
Join Date: Aug 2012
Posts: 157
Downloads: 344
Uploads: 3
Default

On Windows 10, the Osi_ubisoft.exe will be launch with High process priority, not realtime don't know if this is normal thing.
Choum 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 07:42 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.