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

Reply
 
Thread Tools Display Modes
Old 05-10-13, 09:50 PM   #1
Bathrone
Ensign
 
Join Date: Jan 2007
Posts: 234
Downloads: 82
Uploads: 0
Default

TDW I played around with the no travelling through ocean floor setting. This works, but in shallow waters it causes the game to behave very unrealistically with the ship going up into the air and doing all sorts of physically impossible feats because of it. Im going to turn it off.
Bathrone is offline   Reply With Quote
Old 05-11-13, 05:18 AM   #2
Tonci87
Samurai Navy
 
Join Date: Jun 2012
Posts: 590
Downloads: 119
Uploads: 0


Default

Quote:
Originally Posted by Bathrone View Post
TDW I played around with the no travelling through ocean floor setting. This works, but in shallow waters it causes the game to behave very unrealistically with the ship going up into the air and doing all sorts of physically impossible feats because of it. Im going to turn it off.
Any chance to improve this TDW?
Tonci87 is offline   Reply With Quote
Old 05-11-13, 08:50 AM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Bathrone View Post
TDW I played around with the no travelling through ocean floor setting. This works, but in shallow waters it causes the game to behave very unrealistically with the ship going up into the air and doing all sorts of physically impossible feats because of it. Im going to turn it off.
I don't consider that patch complete yet. It's more in discovery phase to see/understand how the game reacts to my changes. Thanks for the feedback on it. I'll try and see why this would happen with that patch enabled
TheDarkWraith is offline   Reply With Quote
Old 05-11-13, 08:11 PM   #4
Bathrone
Ensign
 
Join Date: Jan 2007
Posts: 234
Downloads: 82
Uploads: 0
Default

Quote:
Originally Posted by TheDarkWraith View Post
I don't consider that patch complete yet. It's more in discovery phase to see/understand how the game reacts to my changes. Thanks for the feedback on it. I'll try and see why this would happen with that patch enabled
My apologies TDW as I did not fully report the situation. The issue I encounted occured after disabling a merchant in shallow waters. Because your patch works to stop them going through the ocean floor, the ship goes pivots around the ocean floor and ping pongs up and down erratically. I think the original devs never wrote proper physics into it because by letting the ships go through the floor none of these scenarios exist in the game.

What your doing assembly is simply amazing and is a real showcase for what can be done in such a low level language
Bathrone is offline   Reply With Quote
Old 05-12-13, 05:42 AM   #5
Tonci87
Samurai Navy
 
Join Date: Jun 2012
Posts: 590
Downloads: 119
Uploads: 0


Default

Well TDW you can easily spot the problems by looking at these screenshots

http://www.subsim.com/radioroom/show...postcount=1718

http://www.subsim.com/radioroom/show...postcount=1719

Screen 3&4 show some serious physic problems.
Tonci87 is offline   Reply With Quote
Old 05-12-13, 04:14 PM   #6
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

v1.0.92.0 released. See post #1

Starting with v1.0.92.0 Added a new patch to the SH5.exe that randomizes the nearest visual contact's distance returned. This new patch will take your sub's crew veterency level into account.

If you're curious to know how the distance gets randomized:

(1.0 - (sub's crew veterency level / 4)) * random number in range (0.0-1.0) - this is var1

max % error (0.1 or 10%) * random number in range (0.0-1.0) - this is var2

var3 = var1 + var2

nearest contact visual distance * var3 = var4

random number rolled to see if var4 becomes a negative number or not

nearest contact visual distance + var4 = new nearest contact visual distance

As you can see from the formula the greater the distance the contact is away the larger the error in distance that can be reported
TheDarkWraith is offline   Reply With Quote
Old 05-12-13, 04:17 PM   #7
Fifi
Navy Seal
 
Fifi's Avatar
 
Join Date: Dec 2012
Location: France
Posts: 6,254
Downloads: 510
Uploads: 0


Default

...seems VERY interesting patch!! Just WOW!
Going to test it with latest OH
Fifi is offline   Reply With Quote
Old 05-12-13, 04:18 PM   #8
THE_MASK
Ace of the deep .
 
THE_MASK's Avatar
 
Join Date: Jan 2006
Posts: 9,153
Downloads: 901
Uploads: 73


Default

This games getting harder , i mean more realistic by the day
THE_MASK is offline   Reply With Quote
Old 05-12-13, 04:24 PM   #9
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Fifi View Post
...seems VERY interesting patch!! Just WOW!
Going to test it with latest OH
Quote:
Originally Posted by sober View Post
This games getting harder , i mean more realistic by the day
No more precise distances to the hundreds of meter from the crew anymore when you ask for nearest visual contact That annoyed me to no end
TheDarkWraith is offline   Reply With Quote
Old 05-14-13, 03:57 PM   #10
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
v1.0.92.0 released. See post #1

Starting with v1.0.92.0 Added a new patch to the SH5.exe that randomizes the nearest visual contact's distance returned. This new patch will take your sub's crew veterency level into account.

If you're curious to know how the distance gets randomized:

(1.0 - (sub's crew veterency level / 4)) * random number in range (0.0-1.0) - this is var1

max % error (0.1 or 10%) * random number in range (0.0-1.0) - this is var2

var3 = var1 + var2

nearest contact visual distance * var3 = var4

random number rolled to see if var4 becomes a negative number or not

nearest contact visual distance + var4 = new nearest contact visual distance

As you can see from the formula the greater the distance the contact is away the larger the error in distance that can be reported
Just tested my "theory" with the numbers you have stated in the above post, but var1 multiplied by 0.1, so that perc error is ±20% in the worst case. I have put them on a spreadsheet with independent random functions for each variable.

For a veterancy level of 0, true ranges of 10,000, 9,500, 9,000, 8,500, 8,000 m, your functions returned the following results ("out of place" ranges in orange):

test#1: 9,185; 9,951; 8470; 9,160; 8,860
test#2: 9,044; 10,048; 9,801; 9,101; 8,649
test#3: 10,642; 8,268; 8,911; 8,927; 7,329
test#4: 10,778; 9,214; 8,850; 8,412; 8,402
test#5: 9,030; 8,773; 8,766; 8,598; 7,829

Indeed, I didn't select in any way the results, but I have just listed here the first 5 sets of numbers generated by the spreadsheet.

As you can see, there's a significant probability of illogical range estimations being generated
gap is offline   Reply With Quote
Old 05-14-13, 06:28 PM   #11
BigWalleye
Sea Lord
 
Join Date: Jul 2012
Location: On the Eye-lond, mon!
Posts: 1,973
Downloads: 465
Uploads: 0


Default

TDW, when you can clear your inbox, I have a PM for you.
BigWalleye is offline   Reply With Quote
Old 05-13-13, 04:45 PM   #12
SkyBaron
Lieutenant
 
Join Date: Mar 2010
Location: South Atlantic
Posts: 261
Downloads: 673
Uploads: 2
Default

Quote:
Originally Posted by TheDarkWraith View Post
v1.0.92.0 released. See post #1

Starting with v1.0.92.0 Added a new patch to the SH5.exe that randomizes the nearest visual contact's distance returned. This new patch will take your sub's crew veterency level into account.
Awesome! That always annoyed me. Can I make a suggestion since you're working with the "visual contact" part of the code? Would it be too complicated to turn off visual contacts until you leave port (ie. until the DOCK icon disappears)? It would avoid all the "ship spotted" messages from watching crew with X-Ray vision seeing through walls.

Thanks for all your work fixing the game!
__________________


SkyBaron is offline   Reply With Quote
Old 05-13-13, 05:10 PM   #13
finchOU
Samurai Navy
 
Join Date: Jan 2004
Posts: 571
Downloads: 77
Uploads: 0
Default

Quote:
Originally Posted by SkyBaron View Post
Awesome! That always annoyed me. Can I make a suggestion since you're working with the "visual contact" part of the code? Would it be too complicated to turn off visual contacts until you leave port (ie. until the DOCK icon disappears)? It would avoid all the "ship spotted" messages from watching crew with X-Ray vision seeing through walls.

Thanks for all your work fixing the game!

The only problem of that I would think would be a higher probability of collisions. I don't mind the harbor sequence as much....I actually take my time to enjoy the scenery while it lasts. Ships spotted does in/near port doesn't annoy me as it keeps my SA a bit higher in that critical phase of seamanship. Now seeing through walls? that has been a problem as long as I can remember (or DD's trying to sail through walls. Or Lights shining through walls/buildings.
__________________
Intel i7-2700K-3.50GHz, 16 GB RAM, 2 xGTX 560,2GB,SLI,2 TB HD
The Wolves of Steel 1.06
The Wolves of Steel 1.06 Update 05c
finchOU is offline   Reply With Quote
Old 05-13-13, 11:37 PM   #14
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by SkyBaron View Post
Awesome! That always annoyed me. Can I make a suggestion since you're working with the "visual contact" part of the code? Would it be too complicated to turn off visual contacts until you leave port (ie. until the DOCK icon disappears)? It would avoid all the "ship spotted" messages from watching crew with X-Ray vision seeing through walls.

Thanks for all your work fixing the game!
It probably would be possible but I'm still figuring out all the menu item stuff in the code. I can find menu items, find their parents, grab some data from them (command associated with them, offsets, etc.) but I don't have them completely mapped out yet. Once I do then I have to figure out how the warning icons are made
TheDarkWraith is offline   Reply With Quote
Old 05-14-13, 05:19 AM   #15
Gillian81
Watch
 
Join Date: Sep 2010
Posts: 20
Downloads: 12
Uploads: 0
Default

Question regarding patching.
Is it advisable to first disable al my mods, before patching, and then after patching enable all my mods again? Or doesn't it really matter?

Also do I still have to edit the menu.txt manually with the follwing:

Code:
Required menu.txt entries for versions >= v1.0.74.0:

Edit this line in your menu.txt file:
MaxStrings=11100

Add these to the end of your menu.txt file:

; Independent engine controls patch
10025=Shafts
10026=Click to enable/disable speed commands for the port shaft
10027=Click to enable/disable speed commands for the starboard shaft
; Contact report wolfpack patch
11000=Dispatching available submarines to your patrol area|Remain undetected and in a favorable position|Send status reports| |Bdu
11001=All available submarines have been dispatched to your patrol area
11002=Submarines in your area have received instructions to join your attack|Stay in front of contact/convoy, remain undetected, and send regular status reports| | |B.d.u
11003=Remain undetected and continue following contact/convoy|Available submarines are heading to your patrol area
11004=Attain favorable position and shadow contact/convoy until reinforcements arrive
; possible messages from Bdu when can not dispatch subs
11010=No boats are within your patrol area|Act as lone boat| |Bdu
11011=No support within range|Be more aggressive| |Bdu
11012=Contact report received|Act on own data| |BdU
11013=Be more aggressive!| |Bdu
11014=Attack contact| |Bdu
; Reports from dispatched subs
11020=Contact keeper continue to send bearing signals|Group act on own data|Take every opportunity to attack
11021=Convoy in sight|Signal bearing sent|Moving to attack port side
11022=I believe to have made contact with the convoy|Sending bearing signals|Act according to own data|Attacking at full speed
11023=Requesting bearing signal from contact keeper
11024=Beacon signals lie in the line of approach according to dead reckoning.|Attacking far side of convoy
Gillian81 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:57 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.