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 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 01-10-14, 09:37 PM   #1
radcapricorn
Helmsman
 
Join Date: Jun 2011
Posts: 105
Downloads: 181
Uploads: 0
Default

Use the auto rollback feature, it's invaluable

Glad you've sorted it out. Happy hunting
radcapricorn is offline   Reply With Quote
Old 01-11-14, 07:54 AM   #2
BigWalleye
Sea Lord
 
Join Date: Jul 2012
Location: On the Eye-lond, mon!
Posts: 1,987
Downloads: 465
Uploads: 0


Default

Auto Rollback works great - except, what happens if you experience a CTD? CTD does not exit via Commander. Are you now rolled back, or not? Does Commander know how to cope with this situation? If you restart Commander, it recognizes that Auto Rollback is enabled, and does not give you the option to manually roll back. If you then restart SH3 from Commander, it overwrites a new copy of the Commander changes, and saves the "old" files - which already contained the Commander changes. Then, when you exit Commander after this session, it "rolls back" - to the changed files.

So Auto Rollback is a fine idea, as long as you never experience an in-game CTD. A while back, I got myself wrapped around the axle this way. Had to do a complete reinstall. (I know, I know! I should have saved a snapshot! Din't.) Now I use Manual Rollback and always roll back before exiting Commander. If anyone knows a way to avoid this, I'd love to hear about it.
BigWalleye is offline   Reply With Quote
Old 01-11-14, 08:09 AM   #3
Delta Wolf
Engineer
 
Join Date: Apr 2013
Posts: 209
Downloads: 155
Uploads: 0
Default

Quote:
Originally Posted by BigWalleye View Post
Auto Rollback works great - except, what happens if you experience a CTD? CTD does not exit via Commander. Are you now rolled back, or not? Does Commander know how to cope with this situation? If you restart Commander, it recognizes that Auto Rollback is enabled, and does not give you the option to manually roll back. If you then restart SH3 from Commander, it overwrites a new copy of the Commander changes, and saves the "old" files - which already contained the Commander changes. Then, when you exit Commander after this session, it "rolls back" - to the changed files.

So Auto Rollback is a fine idea, as long as you never experience an in-game CTD. A while back, I got myself wrapped around the axle this way. Had to do a complete reinstall. (I know, I know! I should have saved a snapshot! Din't.) Now I use Manual Rollback and always roll back before exiting Commander. If anyone knows a way to avoid this, I'd love to hear about it.

Thanks for the info Bigwalleye, ill keep that in mind
Delta Wolf is offline   Reply With Quote
Old 01-11-14, 08:24 AM   #4
radcapricorn
Helmsman
 
Join Date: Jun 2011
Posts: 105
Downloads: 181
Uploads: 0
Default

Quote:
Originally Posted by BigWalleye View Post
Auto Rollback works great - except, what happens if you experience a CTD? CTD does not exit via Commander.
Are you absolutely sure that is the case? I never experienced problems with rollbacks after a CTD. And I wouldn't expect it since (from a programmer's point of view), Commander should wait for sh3 process to exit and perform a rollback no matter how that exit occured. Now in exceptional cases (like complete computer freezes, power outages, etc.) this wouldn't happen, and I am not sure if Commander accounts for that.
radcapricorn is offline   Reply With Quote
Old 01-11-14, 10:22 AM   #5
BigWalleye
Sea Lord
 
Join Date: Jul 2012
Location: On the Eye-lond, mon!
Posts: 1,987
Downloads: 465
Uploads: 0


Default

Quote:
Originally Posted by radcapricorn View Post
Are you absolutely sure that is the case? I never experienced problems with rollbacks after a CTD. And I wouldn't expect it since (from a programmer's point of view), Commander should wait for sh3 process to exit and perform a rollback no matter how that exit occured. Now in exceptional cases (like complete computer freezes, power outages, etc.) this wouldn't happen, and I am not sure if Commander accounts for that.
No, I am not absolutely sure. But I'm not sure what Win7 does when a program has a pathological termination. I do know this: With Manual Rollback selected, I start SH3 from Commander. If SH3 terminates normally, Commander is restarted, displays updated patrol information, and gives me the option to do a Manual Rollback. But if SH3 terminates via a CTD, Commander is NOT restarted. I go straight back to the desktop. (CTD) I can manually relaunch Commander, and it shows no update to patrol data (expected, of course) and Commander gives me the option to manually roll back. That is, Commander knows that it has altered files and written those altered files to the active game folder, and that it has not replaced those altered files with the originals which it saved.

If a CTD with Manual Rollback selected caused Commander to resume, with the option to roll back available, I would believe you were probably correct. But that is not what happens. While I am not sure that Auto Rollback does not work after a CTD, I prefer to err on the side of caution and only use Manual Rollback. This became an issue at a time when I was having a lot of CTDs and trying to troubleshoot the problem. The CTDs are gone, but I still use Manual Rollback. Of course, I could do an examination of the files that Commander alters and see if they were restored after a CTD. But honestly, I just haven't bothered.
BigWalleye is offline   Reply With Quote
Old 01-11-14, 10:36 AM   #6
radcapricorn
Helmsman
 
Join Date: Jun 2011
Posts: 105
Downloads: 181
Uploads: 0
Default

Hmm. Well, I guess to be absolutely sure we'd have to ask JScones
radcapricorn is offline   Reply With Quote
Old 01-11-14, 11:00 AM   #7
BigWalleye
Sea Lord
 
Join Date: Jul 2012
Location: On the Eye-lond, mon!
Posts: 1,987
Downloads: 465
Uploads: 0


Default

Quote:
Originally Posted by radcapricorn View Post
Hmm. Well, I guess to be absolutely sure we'd have to ask JScones
Actually, there is another way, as I mentioned above, and it is more reliable than asking the programmer to remember what he did 4 years ago. (I know from experience how reliable that is!)

We know (can look in the Commander files and see) what changes Commander makes to text files before overwriting them. Start Commander. Start SH3. Pause SH3. Go to the altered files and look at them, to verify that the files have been altered. Unpause SH3. Now force a CTD. (Your choice of methods....) Now check the altered files to see if they have been restored. You will know unequivocally whether they are or not. Neither documentation nor programmer memory is ever a guarantee of what a program is actually doing. The only sure way to know what a program is doing is to see what it does.

Personally, I have had my share of CTDs. I don't want to create one intentionally, even to further human knowledge. YMMV.
BigWalleye is offline   Reply With Quote
Reply


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:52 AM.


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