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, 08:35 AM   #1
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   #2
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   #3
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   #4
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:38 PM   #5
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Trevally. View Post
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
Those files are for storing the position information of the draggable items for each page. I then read these at game start to reposition the items back to where you had them when you ended the game
TheDarkWraith is offline   Reply With Quote
Old 08-13-10, 05:14 PM   #6
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

TDW I have updated to v4.02 and this has fixed all they problems listed above

I still however have a blank automation screen. I checked the reg as you discribed but it was correct.
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 08-13-10, 05:20 PM   #7
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Trevally. View Post
TDW I have updated to v4.02 and this has fixed all they problems listed above

I still however have a blank automation screen. I checked the reg as you discribed but it was correct.
with the mod enabled:

check to see if you have a folder labeled 'Automation' under your \Silent Hunter 5 folder. If you do then open it up. Are there any files inside it?

What was the value of the installdir in that reg key? Does it match your actual Silent Hunter 5 installation?
TheDarkWraith is offline   Reply With Quote
Old 08-13-10, 04:35 PM   #8
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 07:21 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.