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 > Silent Hunter 4: Wolves of the Pacific
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 10-14-16, 09:00 AM   #1
Captain Smart
Nub
 
Join Date: Oct 2016
Posts: 2
Downloads: 0
Uploads: 0
Default SH 4 game crash

Hi all. Not sure where I should post this (sorry admin if it is in the wrong place) but have been playing SH from the very beginning and often see the thread about the game crashing.

Have worked through most of the suggestion in the forums and the thing that finally worked for me to apparently solve the issue was a mixture of the following.

1, Delete as many saved games as you can (including quick missions).

2, Avoid saving on the run up to an encounter and never save when in mid conflict/battle.

3, When you "periodically" save, give the new save a new name and then delete the last named save (making sure you really want to save your current status).

I have actually been able to replicate a game crash by creating lots of saves and overwriting a previous save therefore 1, 2 and 3 above does seem to help or (at least for me) solve the problem.

Of course, the game may crash due to hardware issues with your PC which as we all know can be helped by setting lower graphics etc but hope this helps someone to stop pulling their hair out.
Captain Smart is offline   Reply With Quote
Old 10-14-16, 09:58 AM   #2
Rockin Robbins
Navy Seal
 
Join Date: Mar 2007
Location: DeLand, FL
Posts: 8,844
Downloads: 136
Uploads: 50


Default

All of that is old wives' tales, having to do with SH3 but not SH4. There are crashes but almost universally these are due to not having run the Large Address Aware program on SH4 or fudgy files in mods.

That leaves a very small percentage of random crashes which have no identifiable cause. Corrupted saves can happen when the save file gets large, just like file corruption happens with any program saving a large data file. You should rename every new save or at least alternate between two names.

But where you save, what is happening when you save, whether or not you are on the surface, within x miles of shore, in contact or not in contact with friend or foe, whether you are facing Mecca or not, that's SH3 malarkey having nothing to do with SH4.

It keeps rearing its ugly head. I keep smashing it down. Superstition has no place when giving "advice."
Rockin Robbins is offline   Reply With Quote
Old 10-14-16, 08:44 PM   #3
jldjs
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Totally agree. RR your reply should be a "must read".
Nuff said!
  Reply With Quote
Old 10-14-16, 09:01 PM   #4
Aktungbby
Gefallen Engel U-666
 
Aktungbby's Avatar
 
Join Date: Jul 2013
Location: On a tilted, overheated, overpopulated spinning mudball on Collision course with Andromeda Galaxy
Posts: 17,662
Downloads: 24
Uploads: 0


Default Welcome aboard!

Captain Smart!
__________________

"The world is too rediculous to even live in!"- Little Big Man
Aktungbby is online   Reply With Quote
Old 10-15-16, 03:45 AM   #5
THEBERBSTER
Growing Old Disgracefully
 
THEBERBSTER's Avatar
 
Join Date: Dec 2012
Location: Hythe - Southampton
Posts: 9,424
Downloads: 1145
Uploads: 0


Default

A Warm Welcome To The Subsim Community > Captain Smart
Subsim <> How To Donate <> See The Benefits <> Support The Community
Highly Recommended SH4 > Webster’s GFO (Mini Mega Mod)
THEBERBSTER is offline   Reply With Quote
Old 10-15-16, 07:09 AM   #6
Rockin Robbins
Navy Seal
 
Join Date: Mar 2007
Location: DeLand, FL
Posts: 8,844
Downloads: 136
Uploads: 50


Default

Captain Smart: as we work on the 3.8 gigabyte monster soon to be Fall of the Rising Sun Ultimate Edition, we are finding out that JSGME becomes unreliable when working with large numbers of files. But JSGME has tools and you should have mechanisms to deal with that.

Your first line of defense is to uninstall SH4 altogether. Reinstall the stock game and then STOP. Don't play it. Now install JSGME, MultiSH4 (if you like multiple versions of SH4 available at the same time), and Large Address Aware. Immediately copy all files in the \Wolves of the Pacific directory to a new directory you'll call \SH4 Pristeen. Then write protect that whole directory right down to the toes, every single file. It's your safe spot. Never play that game!

Now go back to your \Wolves of the Pacific, apply Large Address Aware to the SH4.exe file. Make your desktop shortcut point to sh4.exe NOT gu.exe. As a matter of fact delete gu.exe so it never screws up your game. It was the worst idea Ubi ever had. Now run JSGME.

Don't install any mods. Just make a snapshot of the stock game. From now on, you can unload your mods and then compare what is left to the snapshot. When (not if) you find they are different, you'll delete everything from \Wolves of the Pacific except the \MODS directory.

Then you'll copy everything from your \SH4 Pristeen directory back to \Wolves of the Pacific. Reinstall your mods. Write enable everything in \Wolves of the Pacific and continue as if nothing had happened. No reinstalling necessary!

Possible wrinkles would be to do all the copying and write enabling in a command window, as Windows is terrible at handling these tasks quickly. I can to this procedure in a Linux GUI about five times quicker than I can in Windows and the command window gets close to that.

In any event, it's quicker and less hassle than reinstalling the game. Tracking game corruption caused by giant supermods and JSGME will prevent more crashes than anything else you can do other than Large Address Aware and exterminating the accursed gu.exe.

Did I get all the backslashes correct? If you see slashes instead it's because I primarily use Linux and it's much more sensible than Windows. Bill Gates had to invent a new character, the backslash, never before seen by man, because he had already used the slash. And there is no such thing as a "forward slash." There is a slash (legitimate character) and the backslash (illegitimate child of Bill Gates).
Rockin Robbins is offline   Reply With Quote
Old 10-15-16, 08:16 AM   #7
Jimbuna
Chief of the Boat
 
Jimbuna's Avatar
 
Join Date: Feb 2006
Location: 250 metres below the surface
Posts: 94,226
Downloads: 63
Uploads: 13


Default

^ Sound advice

Welcome to SubSim Smart
__________________
Wise men speak because they have something to say; Fools because they have to say something.
Oh my God, not again!!

Jimbuna is offline   Reply With Quote
Old 10-15-16, 10:51 AM   #8
Rockin Robbins
Navy Seal
 
Join Date: Mar 2007
Location: DeLand, FL
Posts: 8,844
Downloads: 136
Uploads: 50


Default

Interesting sidelight. I believe the copying problem could be Windows instead of JSGME. If you use command window commands your copying will be much quicker and more reliable than if you copy with the Windows GUI. I'd use xcopy and you won't believe how quick it is.

It's a shame that Windows is not an all inclusive GUI and some basic things still are best done by the shriveled and gnarly remains of what used to be DOS.
Rockin Robbins is offline   Reply With Quote
Old 10-15-16, 12:52 PM   #9
BigWalleye
Sea Lord
 
Join Date: Jul 2012
Location: On the Eye-lond, mon!
Posts: 1,973
Downloads: 465
Uploads: 0


Default

Quote:
Originally Posted by Rockin Robbins View Post
Bill Gates had to invent a new character, the backslash, never before seen by man, because he had already used the slash. And there is no such thing as a "forward slash." There is a slash (legitimate character) and the backslash (illegitimate child of Bill Gates).
RR, when I first began programming computers, back in 1962, the IBM 7030 had a backslash (called "backslash") as part of its character set. The backslash was needed to support some of the operations of the ALGOL programming language. The symbol was included in the original BCD character set, and has, AFAIK, always been a legal EBCDIC character.

Bob Bemer, a well-known software pioneer and one of the developers of the earliest ASCII symbol set, claimed credit for including the backslash character, as well as the ESC (Escape character) and curly brackets, in the ASCII standard released in November 1961. Check his own words here: http://www.bobbemer.com/BACSLASH.HTM I have no reason to doubt him.

Beyond ALGOL, the backslash has been used in TeX and in Unix v6 and the C language since at least 1973.

In 1961, Bill Gates was 6 years old, and neither MSDOS nor Windows were even a gleam in anyone's eye.
BigWalleye is offline   Reply With Quote
Old 10-15-16, 01:41 PM   #10
Rockin Robbins
Navy Seal
 
Join Date: Mar 2007
Location: DeLand, FL
Posts: 8,844
Downloads: 136
Uploads: 50


Default

Quote:
Originally Posted by BigWalleye View Post
RR, when I first began programming computers, back in 1962, the IBM 7030 had a backslash (called "backslash") as part of its character set. The backslash was needed to support some of the operations of the ALGOL programming language. The symbol was included in the original BCD character set, and has, AFAIK, always been a legal EBCDIC character.

Bob Bemer, a well-known software pioneer and one of the developers of the earliest ASCII symbol set, claimed credit for including the backslash character, as well as the ESC (Escape character) and curly brackets, in the ASCII standard released in November 1961. Check his own words here: http://www.bobbemer.com/BACSLASH.HTM I have no reason to doubt him.
Beyond ALGOL, the backslash has been used in TeX and in Unix v6 and the C language since at least 1973.

In 1961, Bill Gates was 6 years old, and neither MSDOS nor Windows were even a gleam in anyone's eye.
Interesting. Then Bill Gates only gets credit for introducing the backslash to PCs and their keyboards. I should have figured he wasn't smart enough to invent such an abomination!

What we those machines' use of the backslash? In Gates' case, he was busy ripping off tghe CPM operating system, which sensibly used slashes for directory separator nomenclature (c:/windows/system32). But Bill had already burned the slash as an operator for commands (attrib *.exe /r), where sensible OSes use the "-" character for that, and so couldn't use it for path notation. The solution was to switch over to that ugly, hideous backslash (booooo! booooo!). It all came from being a very bad copier. Of course, Bill Gates is rich now, and compared to the present management of Microsoft looks like a pristeen white knight so it all came out in the wash.........

You have to admit that Microsoft's redefinition of the "x" in the upper right corner of a window, which normally closes it without input, to an "install malware" button has a touch of dark genius to it. But I choose not to snicker. I switched to Linux and SH4 runs great!

Last edited by Rockin Robbins; 10-15-16 at 01:51 PM.
Rockin Robbins is offline   Reply With Quote
Old 10-15-16, 03:51 PM   #11
BigWalleye
Sea Lord
 
Join Date: Jul 2012
Location: On the Eye-lond, mon!
Posts: 1,973
Downloads: 465
Uploads: 0


Default

Quote:
Originally Posted by Rockin Robbins View Post
Interesting. Then Bill Gates only gets credit for introducing the backslash to PCs and their keyboards. I should have figured he wasn't smart enough to invent such an abomination!

What we those machines' use of the backslash? In Gates' case, he was busy ripping off tghe CPM operating system, which sensibly used slashes for directory separator nomenclature (c:/windows/system32). But Bill had already burned the slash as an operator for commands (attrib *.exe /r), where sensible OSes use the "-" character for that, and so couldn't use it for path notation. The solution was to switch over to that ugly, hideous backslash (booooo! booooo!). It all came from being a very bad copier. Of course, Bill Gates is rich now, and compared to the present management of Microsoft looks like a pristeen white knight so it all came out in the wash.........

You have to admit that Microsoft's redefinition of the "x" in the upper right corner of a window, which normally closes it without input, to an "install malware" button has a touch of dark genius to it. But I choose not to snicker. I switched to Linux and SH4 runs great!
Tim Paterson, the programmer who created (kludged?) MS-DOS from CP/M, was the one who decided to use the backslash. CP/M used the / as a designator for command-line switches. Paterson, who did the conversion in just 2 months (Design, code, test, release!) didn't want to change that. ("What part of 'kludge' did you miss?") So he used the backslash in filepath specs. There are several good sources that describe the whole development. Unfortunately, the story isn't as interesting as the legend.
BigWalleye is offline   Reply With Quote
Old 10-18-16, 10:35 AM   #12
Rockin Robbins
Navy Seal
 
Join Date: Mar 2007
Location: DeLand, FL
Posts: 8,844
Downloads: 136
Uploads: 50


Default

CP/M used the slash in path names, just like Linux and Internet URLs. Microsoft decided to use the backslash because having used the slash in command line switches, he couldn't use it in path names. It was change for the sake of change and so he had some deniability that he copied CP/M when DOS had to manage hard drives, not just floppies.

He was intimately familiar with CP/M from his marketing of a CP/M expansion card for the Apple ][. That is why development time for MS-DOS was so short. It is a warped adaptation of someone else's work. That is not to say that MS-DOS didn't work well, it did and still does, what's left of it, in the command window of Windows. Wonder how rich Tim Paterson is now? No matter how he did it, he changed the world. And I think we would have to agree that he changed it for the better.
Rockin Robbins is offline   Reply With Quote
Old 10-19-16, 05:00 AM   #13
Captain Smart
Nub
 
Join Date: Oct 2016
Posts: 2
Downloads: 0
Uploads: 0
Default Thoughts SH 4 crashing possible solution!

Quote:
Originally Posted by Rockin Robbins View Post
Captain Smart: as we work on the 3.8 gigabyte monster soon to be Fall of the Rising Sun Ultimate Edition, we are finding out that JSGME becomes unreliable when working with large numbers of files. But JSGME has tools and you should have mechanisms to deal with that.

Your first line of defense is to uninstall SH4 altogether. Reinstall the stock game and then STOP. Don't play it. Now install JSGME, MultiSH4 (if you like multiple versions of SH4 available at the same time), and Large Address Aware. Immediately copy all files in the \Wolves of the Pacific directory to a new directory you'll call \SH4 Pristeen. Then write protect that whole directory right down to the toes, every single file. It's your safe spot. Never play that game!

Now go back to your \Wolves of the Pacific, apply Large Address Aware to the SH4.exe file. Make your desktop shortcut point to sh4.exe NOT gu.exe. As a matter of fact delete gu.exe so it never screws up your game. It was the worst idea Ubi ever had. Now run JSGME.

Don't install any mods. Just make a snapshot of the stock game. From now on, you can unload your mods and then compare what is left to the snapshot. When (not if) you find they are different, you'll delete everything from \Wolves of the Pacific except the \MODS directory.

Then you'll copy everything from your \SH4 Pristeen directory back to \Wolves of the Pacific. Reinstall your mods. Write enable everything in \Wolves of the Pacific and continue as if nothing had happened. No reinstalling necessary!

Possible wrinkles would be to do all the copying and write enabling in a command window, as Windows is terrible at handling these tasks quickly. I can to this procedure in a Linux GUI about five times quicker than I can in Windows and the command window gets close to that.

In any event, it's quicker and less hassle than reinstalling the game. Tracking game corruption caused by giant supermods and JSGME will prevent more crashes than anything else you can do other than Large Address Aware and exterminating the accursed gu.exe.

Did I get all the backslashes correct? If you see slashes instead it's because I primarily use Linux and it's much more sensible than Windows. Bill Gates had to invent a new character, the backslash, never before seen by man, because he had already used the slash. And there is no such thing as a "forward slash." There is a slash (legitimate character) and the backslash (illegitimate child of Bill Gates).
Hi RR, thanks for all the info which is great advise. Over time I have tried different mods, ideas including your suggestions all of which appeared to improve things however, the suggestion I made in my post appears to have done the trick at least for me anyway. Once again, thank you.
Captain Smart is offline   Reply With Quote
Old 10-19-16, 07:34 AM   #14
Rockin Robbins
Navy Seal
 
Join Date: Mar 2007
Location: DeLand, FL
Posts: 8,844
Downloads: 136
Uploads: 50


Default

Superstition is a difficult thing to reason with. But one triumph of Silent Hunter 4 is that you can save submerged, in battle, in sight of land, with a dozen other save game files, with several contacts on many different sensors, not facing Mecca and with a torpedo halfway to its target and have confidence that your save game is good.

Silent Hunter 3 is the one with the problems requiring a laundry list of conditions before your save might be good. Silent Hunter 4 is rock solid, or at least as solid as Microsoft Excel.

I'm finding superstition a very tough thing to fight in myself when developing a mod. Sometimes you get infrequent effects without obvious cause and the human brain just latches onto a false idea and won't let go. So long as you retain the false idea you have no responsibility to look further. You have a feeling of accomplishment that you know the problem. But the problem remains unsolved until you dump the misconception and demand repeatable evidence that what you believe is true or false.

Many believe that if you dig a hole, whether you have enough dirt to fill the hole or have extra dirt after filling the hole is a function of the phase of the moon. Although that superstition is easily disproven, the believers of that are not dissuaded, and in fact, refuse to examine the evidence. Superstitions are very comforting somehow. Understanding, for reasons that completely escape me, seems to hold no comfort at all for superstitious people.

Cause and effect are connected by mechanism. Superstitions totally ignore mechanism and in fact never demonstrate any connection between supposed cause and supposed effect. Moon phase causes volume of dirt to change. How? Total silence. Sound the bullschnitzel buzzer.

Number of save game files (including quick missions) on a disk causes game crashes. How? The computer is filled with hundreds of thousands of files. None of them are loaded. None of the other save game files are loaded. If your superstition were correct it would require Silent Hunter to be the only software installation on the machine. Oh, Silent Hunter is comprised of thousands of files. It would have to be deleted too. Then your game won't crash.

I must be from Missouri. I demand evidence and repeatable results before I will believe, especially, the obvious. I have plenty of stories to illustrate the foolishness of believing the obvious.

Chasing glitches in Fall of the Rising Sun Ultimate has led us to over 200 errors in data files of stock Silent Hunter 4! These errors, in certain circumstances, could contribute to game instability. We are working on a game fix mod which will delete buckets of junk and inject necessary new files to the game. Unfortunately, those errors are so embedded that loading up mods can reintroduce the errors, leaving us with some testing to do. It may also be that fixing the game leaves it incompatible with major supermods without modification to the mods also. But separating superstition from knowledge is the beginning of wisdom. The bottom line here is that assuming the correctness of the stock game has been a mistake for ten years.

Last edited by Rockin Robbins; 10-19-16 at 08:03 AM.
Rockin Robbins is offline   Reply With Quote
Old 10-19-16, 04:42 PM   #15
BigWalleye
Sea Lord
 
Join Date: Jul 2012
Location: On the Eye-lond, mon!
Posts: 1,973
Downloads: 465
Uploads: 0


Default

Quote:
Originally Posted by Rockin Robbins View Post
CP/M used the slash in path names, just like Linux and Internet URLs. Microsoft decided to use the backslash because having used the slash in command line switches, he couldn't use it in path names. It was change for the sake of change and so he had some deniability that he copied CP/M when DOS had to manage hard drives, not just floppies.

He was intimately familiar with CP/M from his marketing of a CP/M expansion card for the Apple ][. That is why development time for MS-DOS was so short. It is a warped adaptation of someone else's work. That is not to say that MS-DOS didn't work well, it did and still does, what's left of it, in the command window of Windows. Wonder how rich Tim Paterson is now? No matter how he did it, he changed the world. And I think we would have to agree that he changed it for the better.
Erm, no, CP/M did not use the slash in path names, for the simple reason that there was no need for path names in the CP/M filespec. There were no directories in CP/M. "Note, CP/M 2.2 has no concept of directories, all files are in the "root" area of the disk. Other target disks can be selected, e.g., DIR C:*.* will list all files on drive C:" ( CP/M Console Command Processor Instructions, The Memotech MTX Series http://www.primrosebank.net/computers/cpm/cpm_commands.htm) "Filespec is an abbreviation of file specification, which is the full name of a file, its type, the disk drive on which it resides, and the password, if any, of the file." (Concurrent CP/M Users' Guide, copyright 1984 by Digital Research http://www.cpm.z80.de/manuals/ccpmug.pdf page 1-5). "The following example shows a file specification that contains all the possible elements: A:VENDORS.NAM;AMBER" (same, page 2-6)

When Tim Paterson developed QDOS from CP/M, one of the major changes he made was to replace the CP/M file structure with the FAT file structure. FAT Incorporates a hierarchical directory structure, with user-created subdirectory names, so it required a punctuation character to delimit the directory names. Paterson chose for this purpose the backslash, which had been added to the ASCII character set back in 1961. He did not replace the slash character with the backslash. The slash in CP/M served a completely different, unrelated purpose. "The slash and dollar sign specify options in the command line." (Concurrent CP/M Users' Guide, copyright 1984 by Digital Research http://www.cpm.z80.de/manuals/ccpmug.pdf page 2-8) It was a delimiter for command line options.

At the time he developed QDOS from CP/M, Paterson was employed by Seattle Computer Products. QDOS was released in August 1980. Microsoft hired Paterson in May 1981. Microsoft bought QDOS from Seattle Computer Products for $75000 in July 1981 and changed the name to MS-DOS. By the time Microsoft had any control over QDOS, the backslash was already a part of the QDOS filespec syntax which Paterson created. (MS-DOS: A Brief History, copyright 2006 by the Linux Project http://www.linfo.org/ms-dos.html)
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 04:46 PM.


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.