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 06-05-11, 02:25 PM   #1
Blaz
Swabbie
 
Join Date: Mar 2011
Location: Warsaw, Poland
Posts: 11
Downloads: 32
Uploads: 0
Version problem

I have a problem.

I can`t patch my sh3.exe - wrong checksum error. Patch_sh3.bat can`t find compatibile version od sh3

I use Polish/German Box SH3 1.4 version (sh3.exe has 1.4.0.1 version).

Any ideas what to do? I would really love to use Your mod..
Blaz is offline   Reply With Quote
Old 06-06-11, 06:12 AM   #2
SquareSteelBar
Sea Lord
 
Join Date: May 2006
Location: U-73
Posts: 1,635
Downloads: 632
Uploads: 0
Default

Quote:
Originally Posted by Blaz View Post
I have a problem.

I can`t patch my sh3.exe - wrong checksum error. Patch_sh3.bat can`t find compatibile version od sh3

I use Polish/German Box SH3 1.4 version (sh3.exe has 1.4.0.1 version).

Any ideas what to do? I would really love to use Your mod..
Welcome aboard!


What's the MD5 checksum of your sh3.exe? To get the checksum you need a tool like this


Cheers,
SquareSteelBar
SquareSteelBar is offline   Reply With Quote
Old 06-06-11, 08:36 AM   #3
Stiebler
Fuel Supplier
 
Stiebler's Avatar
 
Join Date: Oct 2005
Location: London, UK
Posts: 1,235
Downloads: 29
Uploads: 4


Default U-boat Surrender.

It is desirable to introduce the option of ‘surrender’ of the U-boat when conditions are sufficiently severe. This was a feature of the old Aces of the Deep, which gave a small chance of being rescued by U-boat and returned to active service. SH3 lacks this feature, and other players in the past have requested this option as a mod.

Currently, whenever the U-boat is sunk in SH3, all the crew is killed, and players who play ‘Dead is Dead’ might as well remained submerged and take their chances when a real crew would certainly surface in order to try to save their lives. So it would be desirable to introduce this feature, partly to encourage the ‘dead-is-dead’ players to surface in the hope of being ‘rescued by another U-boat’, and partly to save some or all of the crew.

So what actually is required from this mod?
1. The U-boat must have suffered sufficient hull damage to want to surrender.
2. The U-boat must be on the surface.
3. It is not necessary that the U-boat be under attack when it surrenders. For example, several commanders had to abandon their U-boats after an air attack caused serious damage, even though the aircraft had long departed.
4. There must be a way of communicating the surrender to the program code.
5. The program code must then compute a chance (say 20%) that you will be rescued and returned to active service. (I.e., you can legitimately start a new career a few months after your U-boat was sunk, with a new boat and a new crew.) Otherwise, the program will compute how many crew are killed and how many survive.

I tried the idea of intercepting the ‘Pressure’ message when the U-boat is sunk, in deep diving tests when U-boat is ‘destroyed by pressure’, but the code which calls the text ‘pressure’ is obviously a general purpose message handling piece of code centred around two consecutive subroutines, of which the first begins at 0x0050DCC0. This code is called very frequently, so not much hope for using it.

It seems to me, however, that most of what is needed in already in place for coding:
1. Must have sufficient hull damage to surrender. H.sie and I have already found a way of including hull-damage in our other code (eg, for the U-tanker repairs).
2. Must be on the surface. This is a tricky problem, and I haven’t been able to find the flag (there must be a simple flag, and it seems to be only one or two bytes judging by my trials to locate it.) But see (3) below.
3. Must be able to communicate the surrender to the program code. Now here there is a solution. Status messages sent to BdU from the U-boat can be intercepted, so the program just has to make one test: Is hull damage sufficiently severe? If so, set a ‘Surrender’ flag to true. And the great attraction of this method is that status messages can only be sent when you are on the surface, and it does not matter whether or not you are under attack! I have now implemented and tested this part of the code completely. Also this is realistic! The ocean is large! If you want to abandon ship and be rescued, you really had better send a message about it.
4. And now the tricky bit. When you finally sink, the code must intercept the message in the code around 0x0050DCC0 that ‘U-boat destroyed by ...’ and substitute the message ‘U-boat abandoned at sea with heavy damage’. At the same time it can calculate how many crew survived (a random figure related to degree of hull damage), and whether the 20% probability of being rescued applies. (If so, supply the message ‘U-boat abandoned at sea, crew rescued’.) This last part, I am attempting now.

In summary then, what I am proposing is this:
a) When your U-boat is severely damaged, then you can send a distress signal - but you must be on the surface to do it.
b) Then you sink your U-boat deliberately. It is called ‘scuttling your boat’ to prevent it from falling into enemy hands.
c) Finally you get a message saying that you and some/most of your crew have survived, and there is a 20% chance that you will be rescued by another U-boat. Otherwise you become a prisoner-of-war.

All OK? Does anyone have any problems with this as a working principle?

Stiebler.
Stiebler is offline   Reply With Quote
Old 06-06-11, 08:46 AM   #4
irish1958
Ocean Warrior
 
Join Date: Apr 2005
Location: Carmel, Indiana
Posts: 3,248
Downloads: 320
Uploads: 11
Default

This would be a great addition to the game; I can't think of anything to improve these ideas.
SH3CMDR does have an option to surrender if on the surface.
__________________
Irish1958
irish1958 is offline   Reply With Quote
Old 06-06-11, 09:14 AM   #5
Aces
Ace of the Deep
 
Join Date: Apr 2005
Location: London, UK
Posts: 1,129
Downloads: 211
Uploads: 0


Default

Hi mate,

I noticed once in S3ditor that StatemachineClass has a possible value of "Is_Underwater" which might help you find id the u-boat is surfaced, I'm guessing that if "Is_Underwater" is false then the u-boat is on the surface, just an idea.

Best regards

Aces
Aces is offline   Reply With Quote
Old 06-06-11, 09:16 AM   #6
JeromeHeretic
Machinist's Mate
 
Join Date: Jun 2011
Location: N 50 4 E 14 25
Posts: 127
Downloads: 269
Uploads: 0
Default

I have problem with V15F3. Everything works well in game, but I can't load saved games, because everytime game crash even if i'm submerged even if not.
When i got save from a port, not at all time, bat often the game crashes on start of new mission too. When i use non patched sh3.exe, everything is OK.

IMPORTANT!
I'm not a windows user! I'm running SH3 on linux in Wine 1.3.19 environment, so it is possible, that this is realy specific problem!

I have in computer 2G RAM and when i want to run game, there is about 1.7G of free memory for wine and the game. What happens in case that game crash is, that ANYTIME the game run out of memory and linux kernel at this moment do OOM kill of that process.
In real it looks as save is loading, i see normaly progress bar, at the end screen starts to be black, it's in the moment, when normaly message "Not so long ago..." is displayed. At this moment, HDD LED start shine continuously, which mean, that in this moment kernel try to free all caches and moving processes in background to swap, because SH3 is requesting more memory pages for alocating and try free more memory to the moment, when there's no more memory and kernel must kill this process.

I can do some closer look for that problem (for example i'm playing with IID submarine, which is surely not often situation) if you want. At this case tell me things TO DO, I'll try and tell you results.
JeromeHeretic is offline   Reply With Quote
Old 06-06-11, 10:01 AM   #7
Hitman
Pacific Aces Dev Team
 
Hitman's Avatar
 
Join Date: Sep 2002
Location: Spain
Posts: 5,991
Downloads: 109
Uploads: 2


Default

Quote:
All OK? Does anyone have any problems with this as a working principle?
But how is SH3 going to recognize that, when you want to continue the career? Currently, when you are killed at sea, you get when you try to restart the career a last save with the description "Gefallen" ("Fallen"? I'm using only german language text) and that save game is locked -although you can reload a previous save-.

How are you going to change that status in the game? Maybe tricking the game into rolling a dice, and if luck strikes, you are set as "returned to base" some months later but with new uboat assigned? And if no luck, then you would still be dead at sea? Is that the idea?

In any case, IIRC you can already simulate that with SH3 Commander, i.e. you might die but Commander allows you to resurrect the Kaleun as if he had abandoned and scuttled the boat, then been rescued.

Aditional note: It could be of interest to increase the chance of being rescued depending on the area, if possible. Near Norway, France and in the Mediterranean a crew had obviously much more chances of surviving.
__________________
One day I will return to sea ...
Hitman is offline   Reply With Quote
Old 06-06-11, 12:49 PM   #8
Volk2
Medic
 
Join Date: Sep 2010
Posts: 160
Downloads: 25
Uploads: 0
Default

I see one problem - what if your radio is destroyed? You cannot send a message then. Beside that, really great idea.
__________________
Volk2 is offline   Reply With Quote
Old 06-07-11, 10:13 AM   #9
NGT
Lieutenant
 
Join Date: Sep 2006
Posts: 262
Downloads: 319
Uploads: 3
The option of ‘surrender’ + survived crew

Quote:
Originally Posted by Stiebler View Post

................................................

All OK? Does anyone have any problems with this as a working principle?

Stiebler.
@Stiebler

Hello Stiebler, h.sie and all captains

Obviously, this option of surrender and come back, is useful when ones likes to continue a carrier, even with some time gap (time to go back, recover etc), with some realism, and without "tweaking" the data inside "My Documents".

It is easy to take the same player name and start a new career with the old grad, but, the purpose is to give some more taste of "continuation".

I suggest to calculate how many of our crew will survive, by taking out from them an amount of renown points related to hull damage.

So, for 80 % hull damage, take out 80% of renown points from each one. If the remaining points are less than x [where x the number you suggest] then the sailor will be consider like dead.

Of course the finally alive crew will start next patrol with new U-boot with all the renown points, because the above calculation is virtual.

The logic is, because we like to continue career during the war, to keep some of the best elements. And the more renown one earn, the more chance to survive, because more experience.



An other idea: to ensure that: if surfacing for surrender, the destroyers and other warships should stop shooting against the U-boot. .. .

. . . and in case of scuttling, some lifeboats and debris ---8212;from the well know mod---8212; is not too much, I believe...



I would like to mention, especially after all this tweaks of SH3.exe, that the hull integrity is not the only one factor for surrender: end of oxygen stocks, destroyed hydrophones with 5 destroyers detected before hydrophone destruction, battery life down to almost 0, so we can surface only with blow ballast (but destroyers attacks us and we move at 0 knots---8230, major crew loss making U-boot impossible to manage, periscopes and pumps and rudders destroyed---8230;



During the war, one U-boot captain committed suicide during depth charging, but the first watch officer managed to take the boat back to the port.

I means by that, it is enough to introduce just a couple of button, and left to the player the decision of surrender, scuttling, dying, etc---8230; (I understand of course, is not to easy, I know...)

Thanks for hosting.

Thank you one more time for all your good will for improving this game

Last edited by NGT; 06-08-11 at 12:11 PM.
NGT is offline   Reply With Quote
Old 06-08-11, 03:13 PM   #10
fitzcarraldo
Argentinian Skipper
 
fitzcarraldo's Avatar
 
Join Date: Jul 2009
Location: Somewhere between Buenos Aires and the Bungo Suido
Posts: 5,381
Downloads: 3484
Uploads: 0


Default

It seems correct, those are good conditions for surrender.

Is it possible work on the SH3.EXE for this modification?

Best regards.

Fitzcarraldo
__________________



My subject is War, and the pity of War. The Poetry is in the pity - Wilfred Owen.
fitzcarraldo is offline   Reply With Quote
Old 06-08-11, 08:45 PM   #11
Wolfstriked
Grey Wolf
 
Join Date: Apr 2011
Posts: 756
Downloads: 238
Uploads: 0
Default

H.sie....possible to fix the raingear not coming out in storms unless you put each crew member inside the boat and back on deck again.You "could" just do a quick dive and before it has a chance to submerge you surface the boat and the crew will have rain gear on.But that is not fun....just wondering if thats doable?
Wolfstriked is offline   Reply With Quote
Old 06-09-11, 02:27 AM   #12
h.sie
Admiral
 
Join Date: Jul 2008
Posts: 2,192
Downloads: 135
Uploads: 0


Default

@Wolfstriked: Months ago I looked into that issue and already had a working solution. Shortly before release, I discovered that it had an unwanted side-effect which I couldn't solve, so that I put it back on the todo-list.

reminder: The main focus of my work is gameplay related fixes (I know that there are exceptins from that). The problem mentioned above does not belong into that category.
__________________
My Mediafire page: http://www.mediafire.com/hsie
h.sie is offline   Reply With Quote
Old 06-09-11, 08:42 AM   #13
Hitman
Pacific Aces Dev Team
 
Hitman's Avatar
 
Join Date: Sep 2002
Location: Spain
Posts: 5,991
Downloads: 109
Uploads: 2


Default

@Stiebler: Thanks anyway, I'll try to keep thinking about other improvements for the game

@H.Sie: No problem, as you wish. Any other thread maintenance thing you need for me, just call
__________________
One day I will return to sea ...
Hitman is offline   Reply With Quote
Reply

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