![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
|
|
01-15-13, 02:48 PM
|
#1 | |
|
Grey Wolf
![]() Join Date: Jan 2009
Location: Finland
Posts: 857
Downloads: 174
Uploads: 0
|
Quote:
CurrentYear=1940 CurrentMonth=1 CurrentDay=1 CurrentHour=0 CurrentMinute=0 So I changed that also to my liking, and a vot! Everything works like it should, there is a correct date on the mission log, and all the torpedo malfunctions work like they should, no question about it! Only thing that I don't know if it works or not is the low speed malfunction reduction... well soon find out, after that it's just putting the data in right places.
|
|
|
|
01-15-13, 03:26 PM
|
#2 | ||
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
![]() Quote:
![]() now it is time to celebrate your outstanding news
|
||
|
|
01-15-13, 07:43 PM
|
#3 |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
I think I have finally understood how the two start_index and end_index parameters (trav/elev gun_anim groups) are working for sub guns. Their format is in seconds, and they determine the actual min/max training and elevation angles.
Imagine that gun's animation, as previewed in Goblin Editor, was as a movie. We see it in a loop, but in reality it got a start and an end. If we wanted to set gun's min elevation, we should set as start_index the offset in second from the start of the movie corresponding to the desired minimum elevation angle. Likewise for maximum elevation. We should then set the min and max elevation parameters according to the agles that start and end idexes are pointing to in the animation. For what I've seen min/max settings, determine the aiming of the gun when manned by the crew, whereas the trajectory of the fired shells is aligned with muzzle's z axis. If min/max settings are not matched with start/min index settings to represent the same (or very similar) angles, the gun gets crazy, because AI sees a different elevation than actually is. If for example, end_index points to an elevation in the animation which is lower than the one set as max gun's elevation, our gunner will aim regularly below the target. Likewise, if max elevation is lower than what would be expected after compairing end_index with gun's animation, AI will aim on top of the target, no matter what is crew's experience. ![]() This explains why, if we reduce max elevation without adjusting end_index, we obtain an opposite result than expected: far from having a reduced max elevation, the gun will be always over-elevated by the crew, whereas its elevation range will remain unchanged Last edited by gap; 01-15-13 at 07:53 PM. |
|
|
01-15-13, 08:08 PM
|
#4 |
|
Ocean Warrior
![]() |
Well.. can you explain it again, but now, like for child in kindergarten? maybe with numbers will be clearer..
__________________
. Where does human stupidity end? . ![]() ![]() El sueño de la razón produce monstruos © - and for some people awakening will be cruel |
|
|
01-15-13, 09:05 PM
|
#5 | |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
Imagine gun's animation as a movie. Let's say that its duration is 5 seconds and that the first and last photograms are equal respectively to -20 and +80 deg. If we wanted our gun to have an in-game elevation range of -10/+30, we should set accordingly elevation start_index and end_index. Since animation's angular range is equal to 80 - (-20) = 100 deg, we would calculate index settings as follows: start_index = [-10 - (-20)] deg * 5 sec / 100 deg = 0.5 sec end_index = [30 - (-20)] deg * 5 sec / 100 deg = 2.5 sec These settings will determine the visual min/max elevation of the gun, and therefore the trajectory followed by its rounds. Now we have to set min and max elevation accordingly: min = -10 max = 30 This is the elevation range seen by the AI, when aiming the gun. If we missed to match the visual/balistic range (start_index and end_index), and the aiming range (min and max), the mismatch would lead to wrong aiming, so simple ![]() The only problem is that with the currently available tools, we cannot read from file neither animation's duration nor min/max elevation angles set in the animation. We can only estimate them or desume them from stock settings, provided that the latter are not wrong (btw: they are in many cases Last edited by gap; 01-15-13 at 09:43 PM. |
|
|
|
01-15-13, 09:19 PM
|
#6 |
|
Ocean Warrior
![]() |
Thanks.. more clearly..
PS: I feel like a boy with Down syndrome.. perhaps it's time to go to sleep..
__________________
. Where does human stupidity end? . ![]() ![]() El sueño de la razón produce monstruos © - and for some people awakening will be cruel |
|
|
01-15-13, 09:41 PM
|
#7 | |
|
Navy Seal
![]() Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
|
Quote:
![]() P.S: tomorrow I will start testing with crew experience settings. I want to see wether/how they are applied to guns. Have you started testing the effects of tolerance factors? |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
