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 08-13-10, 07:51 AM   #1
Schultzy
Commander
 
Join Date: Dec 2001
Location: Großbritannien
Posts: 452
Downloads: 48
Uploads: 0
Default

Quote:
Originally Posted by Captain Joe View Post
If anyone is having this problem it could be due to moving the games original position and some files in TDW's Mod is still looking in that location.
I moved mine too, so that could well be what's up with my installation too. I won't be able to mess with it as I'm not going to be back home until Sunday, <grumble, grumble> but I do think you may just have found the problem.

So, a big tentative thank you. Can't wait to see if it works.
__________________
Quote:
Originally Posted by placoderm
SH5 is to history what Star Trek is to science...it is exciting and inspiring, but eventually you have to come home from the convention, take off the pointy ears, and come to the realization that it was all just pretend and make-believe.
Schultzy is offline   Reply With Quote
Old 08-13-10, 07:58 AM   #2
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Schultzy View Post
I moved mine too, so that could well be what's up with my installation too. I won't be able to mess with it as I'm not going to be back home until Sunday, <grumble, grumble> but I do think you may just have found the problem.

So, a big tentative thank you. Can't wait to see if it works.
There's an underlying problem here though. One should be able to move their game to whatever folder they want whenever they reinstall AND the registry should be updated to reflect this. It appears that the step of updating the registry is not being performed by the installer (.exe file). Sober's post is an excellent example of this.
It appears that the very first time you install the game the installer writes the correct value to your computer's registry. The next time, and it appears every other time, you re-install it doesn't update the registry. So if you move the game to a new folder it's going to cause problems with my mod. Not because I'm looking for specific places for files but because I use the registry to tell me where to find those files - and the registry is wrong.
TheDarkWraith is offline   Reply With Quote
Old 08-13-10, 08:19 AM   #3
Captain Joe
Seaman
 
Join Date: Apr 2010
Posts: 32
Downloads: 619
Uploads: 0
Default Did Fault Finding

TDW I did a bit of testing myself last night and cant tell you what the problem but can pinpoint where it is maybe for you. I installed ver 4.0.0 a little bit at a time and eventually installed Scripts\Menu\Page Default Hud and bunker gave the problem of officers being injured, so I knew problem was in there, then I used win merge to see what you changed in it, noticed you changed(added near inbunker this line: " GetAutomation().StopAllScripts()"

I took it out to see what happens and installed ver 4.0.0 without it and could talk to officer in bunker perfectly.

Sorry for just editing your files without your permission but just tried to help. Hope this can help you sort it out as this is first time I have found game not finding my game files.
Captain Joe is offline   Reply With Quote
Old 08-13-10, 08:34 AM   #4
Nufsed
Sparky
 
Join Date: Aug 2005
Posts: 151
Downloads: 500
Uploads: 0
Default

I think Capt jo might have cracked it, I also noticed that the HUD was present in the bunker, and when you click for a new mission it just comes up with the box which says "injured", also the only way to exit is to click on the outside view button, this then allows you to use esc to bring up the exit menu. I'll use 3.9.3 until this is sorted, cheers mate.
__________________
Mike Collins
Nullius in Verba

Nufsed is offline   Reply With Quote
Old 08-13-10, 08:35 AM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Captain Joe View Post
TDW I did a bit of testing myself last night and cant tell you what the problem but can pinpoint where it is maybe for you. I installed ver 4.0.0 a little bit at a time and eventually installed Scripts\Menu\Page Default Hud and bunker gave the problem of officers being injured, so I knew problem was in there, then I used win merge to see what you changed in it, noticed you changed(added near inbunker this line: " GetAutomation().StopAllScripts()"

I took it out to see what happens and installed ver 4.0.0 without it and could talk to officer in bunker perfectly.

Sorry for just editing your files without your permission but just tried to help. Hope this can help you sort it out as this is first time I have found game not finding my game files.
no problem editing the files to help determine cause of problem You may have just figured out the root cause. That function call may be causing problems IF the mod didn't find any automation files at game start Anyways, error handling code should've been placed around that function call by me

Just looked up Dictionary in the MSDN documentation again. I now know why there are problems. The function call of GetAutomation().StopAllScripts() does the following:

- gets a list of all keys contained in the dictionary
- then using those keys it finds the scripts active and tells them to stop

Now from the MSDN documentation:
Getting the value of this property is an O(1) operation.

What this means is that if there are no keys nothing is returned. Well one can not iterate over None - exception is caused by this. So those users that moved their game to a new folder, coupled with registry not updating correctly, coupled my no error checking code on my part results in crew dialog problem At least I know why it's happening now.
I'll have a fix for it soon. Have to do some work today in downtown Chicago but will be home later.
TheDarkWraith is offline   Reply With Quote
Old 08-13-10, 11:22 AM   #6
PL_Andrev
Grey Wolf
 
Join Date: Feb 2009
Posts: 995
Downloads: 91
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
That function call may be causing problems IF the mod didn't find any automation files at game start Anyways, error handling code should've been placed around that function call by me
Many mods for SH3 create a problem if user installs mods non at the port...

TDW, I have a idea,
MAybe you should reorganize your mod do better problem detection:
3.9.4 as version 3.9.3 with all new fixes
4.0.0 as add-on with automation scripts
...
__________________

PL_Andrev is offline   Reply With Quote
Old 08-13-10, 03:23 PM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Antar View Post
Many mods for SH3 create a problem if user installs mods non at the port...

TDW, I have a idea,
MAybe you should reorganize your mod do better problem detection:
3.9.4 as version 3.9.3 with all new fixes
4.0.0 as add-on with automation scripts
...
There's no need to do. I figured out the problem from posts here by others and I've been able to duplicate the problem (which is always good) I've changed the code to account for the fact that folders may not be there that it's looking for (registry bug from game installer). v4.0.2 will be releasing here shortly
TheDarkWraith is offline   Reply With Quote
Old 08-13-10, 04:29 PM   #8
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

TDW I am having the same problems with this new version as others.

Hud in the bunker, icons in wrong place, automation screen is blank and cant talk to officer in bunker.

I have not moved my sh5 folder like others are reporting. I am using vista.

I have also noticed that there are files being created in my ubisoft folder. "Pagelayout_Draggables.TDW" and others. I have not noticed this until v4.0
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 08-13-10, 04:35 PM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

v4.0.2 released. This is a bugfix version for v4.0.0. It fixes the problem of crew dialog box not functioning correctly when in the bunker by some users. See post #1 for details.

NOTE: if you open up Automation in game and nothing is in the boxes (categories, available scripts, activated scripts) then you have re-installed your game at some point and changed where you had originally installed it. This is an installer bug present in the game's installer. What the game installer fails to do when you do this is to update the registry with the new path. You'll have to update this registry key with the correct path to your SH5 folder: HKEY_LOCAL_MACHINE\Software\Ubisoft\Silent Hunter 5\GameUpdate. I read this key to get to the game files I need to read.
TheDarkWraith is offline   Reply With Quote
Reply

Tags
dbrn, favorite, new ui

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 12:27 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.