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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 05-21-08, 05:25 PM   #1
lurker_hlb3
Admiral
 
Join Date: Apr 2005
Location: San Diego Calif
Posts: 2,290
Downloads: 187
Uploads: 12
Default “Divide by 0”

Gentlemen

The root cause of the “huge” save data files is what we call here at work a “Divide by 0” problem. When the software is doing “number crunching”, it can some times run into a problem were the software cannot resolve a number conversion and the software starts “throwing” software exceptions to “standard out”. That why the save files are so big, because their full of these “error messages”.

I the case of the TypeVIIC, the cause was the submerge range in the NSS_xxxx.sim file

As a friend of mine said “this most ancient of all bugs", has been in the SH4 code since day “one” and I would not be surprised if it is also in SH3. Therefore, any mod maker that makes changes to values in the .sim file be forewarned, test your changes for this bug.

To quickly recreate the problem, create a “quick mission” with only a sub in it. Place to subs location somewhere remote (I use the coast of South America) then launch the mission. Once the mission is up and running, plot a random course covering about 12 hours of travel. Set TC to 2048 and let it run for about 30 seconds, then check the size of the save.tmp file in C:\Documents and Settings\xxxx\My Documents\SH4\data\

Last edited by lurker_hlb3; 05-21-08 at 07:23 PM.
lurker_hlb3 is offline   Reply With Quote
 

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 06:50 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.