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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 10-21-09, 11:18 AM   #1
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 131
Uploads: 0


Default A potential reason for problems and CTD

While trying to get familiar with cameras.dat, I found a potential CTD reason if cameras.dat is edited with newer S3Ditor Versions (thanks, skywasjer for this great tool!) and if the player uses the Sabotage and Malfuntion - Option of Sh3-Commander (thanks, J.Jones for another great tool):

The Sabotage and Malfuntion-Option uses a file called RandomizedEvents.cfg which contains Hex-Pointers to the data positions in binary files like Cameras.dat. In a case of a sabotage, a binary value which is referred by such a Hex-pointer is changed in order to simulate sabotage. For example, the zoom of the periscopes is restricted to 1x.

When editing cameras.dat with a newer version of S3D, the AuthorInfo chunk is 71 bytes longer as is has been when editing with older versions of S3D. This means: All Hex-pointers point to wrong data positions, so that undesired data is changed. This can lead to a CTD (which in fact is perfect sabotage).

So if you change cameras.dat values with a newer version of S3D, the pointers in RandomizedEvents.cfg have to be adapted to prevent from unwanted side-effects like CTD in conjunction with sabotage & malfunction. Otherwise your cameras.dat is not compatible with Sabotage and Malfuntion.


excuse my bad english!
h.sie
__________________
My Mediafire page: http://www.mediafire.com/hsie
h.sie is offline   Reply With Quote
 


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 04:51 PM.


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.