![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|||||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
07-08-13, 10:24 AM
|
#1 | |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
|
|
|
|
07-08-13, 10:43 AM
|
#2 |
|
Black Magic
![]() |
|
|
|
07-08-13, 10:46 AM
|
#3 |
|
Black Magic
![]() |
v1.0.126.0 released. See post #1
Starting with v1.0.126.0 Revised the Engine ratios patch to fix bug of AI sub's battery capacity being incorrectly reported to the game |
|
|
07-08-13, 10:49 AM
|
#4 |
|
Count Dracula
|
__________________
|
|
|
07-08-13, 10:53 AM
|
#5 |
|
Black Magic
![]() |
For diesel engines this is how the game calculates theoretical maximum speed for given bell:
XMM registers can be thought of floating point registers for this discussion My sub was a VIIC. I asked for a forward bell (ahead slow - 1). I was surfaced thus using diesel engines. Engine ratios patch disabled. XMM0 set to 0.0 load 1.0 into XMM2 load value into XMM1 dealing with current engine type in use (for diesels this is 8.857989) multiply XMM1 by ordered bell (engine ratio asked for) load XMM1 into XMM0 add XMM2 to XMM0 divide XMM0 by engine type in use value (for diesels this is 2387200.0) multiply XMM0 by engine type in use value (for diesels this is 3086.243) multiply XMM0 by XMM1 multiply XMM0 by XMM1 raise XMM0 to the power of 0.3333333 (XMM0^0.333333) multiply XMM0 by engine type in use value (for diesels this was 30.99133) XMM0 contains theoretical maximum speed for ordered bell (for this it was 11.26) for that engine (done for each engine) Actual speed attained ~ 3.25 knots Maybe the value in XMM0 is not theoretical maximum speed but rather RPM ![]() EDIT: can't be RPM because I went to external cam and the props are turning way faster than 11 RPM... Last edited by TheDarkWraith; 07-08-13 at 11:05 AM. |
|
|
07-08-13, 12:14 PM
|
#6 | |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
So here's the graph of the functions you have just described:
![]() As you can see, their curves are pretty similar, and they resemble a "flattened" sigmoid. I have some doubts about the last diesel constant you have stated though: Quote:
Something to note about the other constants: (3,913995+1)*7432,328*(3,913995)^2/559500≈(8,857989+1)*3086,243*(8,857989)^2/2387200≈1 Constants apart, what is weird about those routines is the absence of max_speed sim file setting as a parameter, and the big difference between the XMM0 values returned by them and actual speeds attained
|
|
|
|
07-08-13, 01:41 PM
|
#7 | |
|
Black Magic
![]() |
Quote:
You have to remember that I gave the function that does this calculation it's name. I have no clue whether the name I gave it corresponds to it's true meaning or is just a wild guess. I do know that it works with the engine ratio selected and the final value is used in the engines to determine speed of the sub. I haven't traced down where the actual max speed of the unit (as defined in .dat file) is used yet. When I do it will probably unlock the remaining mysteries about how speed is calculated. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
