![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|||||||||
![]() |
|
|
Thread Tools | Display Modes |
|
|
07-07-13, 12:24 AM
|
#1 |
|
Black Magic
![]() |
Going by what's defined in it's cfg file:
[AirGroup 1] StartDate=19380101 EndDate=19410601 Squadron1Class=FHurricaneMkI Squadron1No=48 Squadron2Class=TBBeaufort Squadron2No=24 Squadron3Class=FBBeaufighter Squadron3No=24 Squadron4Class=LBSAnson Squadron4No=12 Squadron5Class=SSunderland Squadron5No=6 I see a potential problem I was looking over all the land based unit's sensors and none of them have anything for visual, radar, or radar warning This could be a problem...
|
|
|
07-07-13, 01:25 AM
|
#2 | ||
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
![]() Since we are at it, have you checked the relation between engine RPMs and their maximum theoretical speed in game? The knots / RPM gradient calculated by me should be about 0.0357-0.0375 for surface propulsion (both diesel and electric) and 0.0262-0.0280 for submerged propulsion. Most silent propulsion @ ca. 90 RPM. See the following posts by me for further detail and info sources: http://www.subsim.com/radioroom/show...postcount=1672 http://www.subsim.com/radioroom/show...postcount=1677 http://www.subsim.com/radioroom/show...postcount=1683 Quote:
Quote:
|
||
|
|
07-07-13, 03:16 AM
|
#3 | |
|
Black Magic
![]() |
Quote:
v1.0.124.0 released. See post #1 Starting with v1.0.124.0 Added a new patch to the SH5.exe, SHSim.exe, and SimData.dll: Electric engine properties. This patch will add a new section to the sub's .cfg files named [ElectricEngineProperties]. It allows you to define the engine ratios for the electric engines. See the Notes= of the patch for more info and an example. @gap - this will allow you to test your graphs and/or develop the correct electric engine ratios now For the airbases I will be looking into them in depth tomorrow to see what their capabilities are and whether they can use sensors or not. |
|
|
|
07-07-13, 03:36 AM
|
#4 |
|
Captain
![]() Join Date: May 2011
Posts: 489
Downloads: 106
Uploads: 0
|
Great to see another update!
![]() @TDW: As always, apologies if this has been discussed before. Is there any chance that the randomized distance reported in the message box could be replaced with the words "long", "medium distance", "short distance" (or whatever the proper terminology might be)? The randomized number is a great idea, but is there perhaps a chance you might be able to make the sighting report more similar to the one from SH3/4? |
|
|
07-07-13, 04:24 AM
|
#5 |
|
Ace of the deep .
|
At least now , some aircraft carriers placed strategically in some enemy ports will give better defence .
|
|
|
07-07-13, 04:53 AM
|
#6 | |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
Code:
DIESEL PROPULSION RPM RATIO ________________________________________________________ German British Average SPEED ORDER source source ________________________________________________________ AheadSlow 0.37 0.33 0.35 AheadOneThird 0.57 0.54 0.56 AheadStandard 0.71 0.64 0.68 AheadFull 0.91 0.97 0.94 AheadFlank 0.98 1.00 0.99 BackSlow -0.37 - -0.37 BackStandard -0.43 - -0.43 BackFull -0.52 - -0.52 BackEmergency -0.82 - -0.82 ELECTRIC PROPULSION RPM RATIO ________________________________________________________ German British Average SPEED ORDER source source ________________________________________________________ AheadSlow 0.18 0.20 0.19 AheadOneThird 0.37 0.37 0.37 AheadStandard 0.53 0.53 0.53 AheadFull 0.83 0.78 0.81 AheadFlank 0.95 0.93 0.94 BackSlow -0.18 - -0.18 BackStandard -0.37 - -0.37 BackFull -0.53 - -0.53 BackEmergency -0.83 - -0.83 Knots / RPM gradients interpolated over data reported by each source are summarized below: Code:
DIESEL PROPULSION KNOTS/RPM RATIO ________________________________________ German British Condition source source ________________________________________ Condition "A" 0.0374 Condition "B" 0.0366 Calm weather 0.0357 ELECTRIC PROPULSION KNOTS/RPM RATIO ________________________________________ German British Condition source source ________________________________________ surfaced 0.0375 submerged 0.0280 0.0262 |
|
|
|
07-07-13, 06:04 AM
|
#7 | |
|
Ocean Warrior
![]() |
Quote:
![]() Can I use this data to modified my edited u-boats .cfg files? is it true? (honestly, I'm already doing it right now
__________________
. Where does human stupidity end? . ![]() ![]() El sueño de la razón produce monstruos © - and for some people awakening will be cruel |
|
|
|
07-07-13, 06:25 AM
|
#8 |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
|
|
|
07-07-13, 06:38 AM
|
#9 |
|
Ocean Warrior
![]() |
Let me think a little
![]() No, so far.. but everything someday happens for the first time
__________________
. Where does human stupidity end? . ![]() ![]() El sueño de la razón produce monstruos © - and for some people awakening will be cruel |
|
|
07-07-13, 10:53 AM
|
#10 | |
|
Black Magic
![]() |
Quote:
![]() Yes it's a very simple measure to add sensors to them via their .sns file. The question is will the game recognize them? There are many strange things coded in SH5, this could be one of them. I tracked down why the type 500 units (subnets and minefields) aren't recognized by the game and it's because the game doesn't store a list of them (the devs coded it so the game reads the files in but does nothing with them). That is why the mission editor says platform x not found in platforms library
|
|
|
|
07-07-13, 12:14 PM
|
#11 | ||
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
![]() Quote:
|
||
|
|
07-07-13, 12:36 PM
|
#12 |
|
Black Magic
![]() |
I setup a single mission with an airbase, one victory cargo, and one VIIC sub (me). Hit a bookmark in the code where it iterates over all the units in the game. I was thrilled to see that the there were 3 units in the list (all 3 I had defined in the single mission) and upon investigating the second one (the airbase) I saw it was missing a pointer in one of it's memory addresses (it's a pointer to a type of Commanders controller). Without this pointer it will never use any sensors it has (any of them defined in the .sns file) and it will probably never fire any weapons given to it in it's .eqp file because this controller is missing (this controller is responsible for detecting contacts). I opened up it's .dat file and sure enough there is no commander controller specified in the .dat file. That explains why this pointer is missing
![]() I let the game continue running till it hit the bookmark for checking for airstrikes. This is where I'm at currently and seeing if I can make the airbase spawn aircraft based on units in the area within a certain radius of the airbase having a contact. If the unit within the radius of the airbase has a contact then I'm going to try and make the airbase spawn a unit to investigate the contact. |
|
|
07-07-13, 01:10 PM
|
#13 |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
|
|
|
07-07-13, 02:04 PM
|
#14 | |
|
Black Magic
![]() |
Quote:
) and there is a LOT of memory eaten up by each commanders controller (over 200 bytes each + bytes for the support stuff it creates)I've come up with a clever solution! When the game checks for airstrikes it iterates over all the units and finds those units with airgroups defined. Every unit it finds that has an airgroup is added to a list. Then that list is iterated over and each item of that list is checked to every unit in the game: - comparing sides - comparing distances between them If they meet the parameters then the game unit is added to the unit with airgroup's defined list of units to do airstrike against. Then the unit with airgroup list of unit's to do airstrikes against is iterated over and airstrikes commence. I'm inserting some code in here that will check to see if unit with airgroup is an airbase. If so then each game unit to commence airstrike on will be checked against all units in game to see if any of them have this unit as a contact. If so then each one will be checked to see if it radioed about it's contact (random number). If the game finds it did radio about it's contact then an airstrike will commence on the unit (plane(s) will be spawned from the airbase and given the waypoint of the unit). If not then the normal airstrike will be done (which spawns a unit in a random location around the contact and gives it random waypoints). Elegant, simple, and brilliant if I do say so myself
|
|
|
|
07-08-13, 09:59 AM
|
#15 |
|
Black Magic
![]() |
For electric 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 submerged thus using electric 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 electrics this is 3.913995) 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 electrics this is 559500.0) multiply XMM0 by engine type in use value (for electrics this is 7432.328) 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 electrics this was 30.99133) XMM0 contains theoretical maximum speed for ordered bell (for this it was 7.56) for that engine (done for each engine) Actual speed attained ~ 1.5 knots I'll post a reverse bell on electrics in next post Last edited by TheDarkWraith; 07-08-13 at 10:19 AM. |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
