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 04-30-13, 09:07 AM   #1
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Looking over the magnetic detonators again. I did make the same assumption about MSVCR90.rand returning 32bit number instead of 16bit number. I'm revising the code.

Another interesting thing has shown itself while looking over the code for magnetic detonators. Did you know that the torpedo could detonate upon firing if the magnetic detonator is active and the wave height is within the parameters of the premature chances defined in the torpedoes .sim file? I see the code for it but the devs 'dumbed it down' so it RARELY ever happens. Time to fix this This will make you think twice about switching to magnetic detonators with large wave heights
TheDarkWraith is offline   Reply With Quote
Old 04-30-13, 09:23 AM   #2
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
Another interesting thing has shown itself while looking over the code for magnetic detonators. Did you know that the torpedo could detonate upon firing if the magnetic detonator is active and the wave height is within the parameters of the premature chances defined in the torpedoes .sim file? I see the code for it but the devs 'dumbed it down' so it RARELY ever happens. Time to fix this This will make you think twice about switching to magnetic detonators with large wave heights


maybe give it an higher chance... but not 100%

P.S: any news on the RPM/boat's speed curve, and about separate speed ratios for diesel/electric propulsions?

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

Last edited by gap; 04-30-13 at 09:34 AM.
gap is offline   Reply With Quote
Old 04-30-13, 09:47 AM   #3
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post


maybe give it an higher chance... but not 100%
Actually I'm trying to fix a problem that doesn't really exist. The problem is the data entered in the torpedoe's .sim file If you look at the notes at the bottom for each entry some will say percentage but the value for it is a whole number Whoever made the .sim file for the torpedoes didn't know what they were doing A percentage is a value from 0.0 to 1.0. Some of the failure 'percentages' are 50 for example when they should be 0.5 What a freakin mess
TheDarkWraith is offline   Reply With Quote
Old 05-11-13, 09:04 AM   #4
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
P.S: any news on the RPM/boat's speed curve, and about separate speed ratios for diesel/electric propulsions?
Yes. I'm learning how to use the game's FileManager to read/write files Did you ever post the file that had all the subs headers and their new electric values? If so, can you post another link to it?
TheDarkWraith is offline   Reply With Quote
Old 05-11-13, 09:15 AM   #5
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
Yes. I'm learning how to use the game's FileManager to read/write files Did you ever post the file that had all the subs headers and their new electric values? If so, can you post another link to it?
Looking for them
gap is offline   Reply With Quote
Old 05-11-13, 09:25 AM   #6
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by gap View Post
Looking for them
Okay, I think you can copy/paste the seettings contained in this post

For forward speed orders I have listed two different sets of RPM ratios, based on the two sources I had available. Use one of them to your liking (there is no much difference among them anyway), or average them if you prefer.

They both refer to the type VII/C, but I suppose that for other Type VII boats, ratios would have been more or less the same.
gap is offline   Reply With Quote
Old 04-30-13, 09:59 AM   #7
Tonci87
Samurai Navy
 
Join Date: Jun 2012
Posts: 590
Downloads: 119
Uploads: 0


Default

Quote:
Originally Posted by TheDarkWraith View Post
Looking over the magnetic detonators again. I did make the same assumption about MSVCR90.rand returning 32bit number instead of 16bit number. I'm revising the code.

Another interesting thing has shown itself while looking over the code for magnetic detonators. Did you know that the torpedo could detonate upon firing if the magnetic detonator is active and the wave height is within the parameters of the premature chances defined in the torpedoes .sim file? I see the code for it but the devs 'dumbed it down' so it RARELY ever happens. Time to fix this This will make you think twice about switching to magnetic detonators with large wave heights



Oh ****....

Just out of interest, how deep should the torp run to prevent beeing triggered by the waves?
Tonci87 is offline   Reply With Quote
Old 04-30-13, 10:08 AM   #8
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by Tonci87 View Post


Oh ****....

Just out of interest, how deep should the torp run to prevent beeing triggered by the waves?
Actually I just decoded the whole function for this and it doesn't detonate the torpedoe upon firing. What it does is increase the arming distance and something else (not sure what the something else is - the something else replaces a HUGE number with a very small number in a memory address of the torpedo )
TheDarkWraith is offline   Reply With Quote
Old 04-30-13, 10:09 AM   #9
volodya61
Ocean Warrior
 
volodya61's Avatar
 
Join Date: Feb 2012
Location: Rostov-on-Don, local time GMT+4
Posts: 3,292
Downloads: 374
Uploads: 0


Default

Quote:
Originally Posted by TheDarkWraith View Post
I said it wasn't perfect yet...
I remember.. and therefore need to test it so you can make it better and better

Quote:
Originally Posted by gap View Post
Man, I will sponsor you for the "Beta Tester of the Century" Subsim Award, if ever they will introduce such a contest
__________________
.
Where does human stupidity end?

.


El sueño de la razón produce monstruos © - and for some people awakening will be cruel
volodya61 is offline   Reply With Quote
Old 04-30-13, 10:13 AM   #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
Oh this gets even better Has anyone ever seen torpedo gyro problems in game? I can answer that based on the code I see - NO! The torpedoe's .sim file's gyro problems chance says it's value is a percentage (and the value is a percentage - 0.3). This is fine. What isn't fine is the code gets a random number and scales the random number to a value between 0 and 100. Hmm, let's see....a value between 0 and 100 compared to a value between 0 and 1.0...almost will never happen This is one huge freakin mess

The solution is easy but it's not. The solution is to add code to check every entry in the torpedoe's .sim file to ensure it's a percentage (0.0 to 1.0). If it's > 1.0 then scale to 0.0 to 1.0. Then change code (where needed) when random number is retrieved to scale it to a value between 0.0 and 1.0. This way failure checks will actually work.
Wouldn't be easier if we corrected the wrong torpedo failure settings manually?
gap is offline   Reply With Quote
Old 04-30-13, 10:17 AM   #11
volodya61
Ocean Warrior
 
volodya61's Avatar
 
Join Date: Feb 2012
Location: Rostov-on-Don, local time GMT+4
Posts: 3,292
Downloads: 374
Uploads: 0


Default

Quote:
Originally Posted by gap View Post
Wouldn't be easier if we corrected the wrong torpedo failure settings manually?
Perhaps Rongel have already done this
__________________
.
Where does human stupidity end?

.


El sueño de la razón produce monstruos © - and for some people awakening will be cruel
volodya61 is offline   Reply With Quote
Old 04-30-13, 10:19 AM   #12
TheDarkWraith
Black Magic
 
Join Date: Jun 2007
Posts: 11,959
Downloads: 147
Uploads: 5


Default

Quote:
Originally Posted by gap View Post
Wouldn't be easier if we corrected the wrong torpedo failure settings manually?
Yes but that doesn't stop somebody from entering an incorrect value (because they don't read the notes). Adding code to anticipate end-user making errors is good programming. Ubisoft should take some notes here

Some of the code is incorrect also. Where the notes say the value is a percentage the code is checking against a value from 0 to 100. The code has to be corrected and code added to check for user mistakes.

Nothing pisses me off more than seeing 'kiddy code' There is 'kiddy code' all over the torpedo's code to reduce the % chance of failures. This has got to go
TheDarkWraith is offline   Reply With Quote
Old 04-30-13, 10:27 AM   #13
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
Nothing pisses me off more than seeing 'kiddy code' There is 'kiddy code' all over the torpedo's code to reduce the % chance of failures. This has got to go
I agree. I hope that Rongel is reading our discussion
gap is offline   Reply With Quote
Old 04-30-13, 03:21 PM   #14
volodya61
Ocean Warrior
 
volodya61's Avatar
 
Join Date: Feb 2012
Location: Rostov-on-Don, local time GMT+4
Posts: 3,292
Downloads: 374
Uploads: 0


Default

Revised circle runner patch test-report -


Weird thing happened to me today.. looks like revised patch is not working at all.. don't know what happened in Fifi's game, why he was still able to see circle runner torpedoes..

Okay..
single tube shooting - total 100 - circle runner 0
salvo shooting - total 100 - circle runner 0

(100 - because VIIA has 10 bow torpedoes)

PS: and I have checked four times.. patch was enabled..
__________________
.
Where does human stupidity end?

.


El sueño de la razón produce monstruos © - and for some people awakening will be cruel
volodya61 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 01:07 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.