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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 08-13-10, 08:35 AM   #11
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
 

Tags
dbrn, favorite, new ui


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:29 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.