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 01-15-13, 07:50 AM   #1
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Rongel View Post
Good news, I think! Now it seems that all the different malfunction values work in different dates, even TDW's duds. If this is true, we don't need to clone the torpedoes.


Quote:
Originally Posted by Rongel View Post
I couldn't find any difference in custom missions concerning the different time periods. But when I tried my malfunction mod in campaign, there was a clear difference. Could it be that I don't know how to set the right date in the mission editor? I get the right date in the custom mission menu, but when in mission I click the log, it always reads first of june 1940 or something like that. And I always get the same radio message about mines being planted on British coasts. It's like the game is using year 1940 to simulate radio messages, maybe also torpedo loadouts? Similiar experiences?
Yes, from what you are saying, it seems you alway tested the same date

There are 3 start date parameters which can be set in ME2. The first one is set from the 'add new mission' menu. The second start date box is found on the top bar and gets available for editing after adding a new mission, and the last one is accessed from menu Mission => Parameters.

I Ignore what is the exact meaning of these apparently similar parameters, but in order to avoid surprises I usually set the three of them to the same date
gap is offline   Reply With Quote
Old 01-15-13, 08:04 AM   #2
Trevally.
Navy Seal
 
Join Date: Apr 2007
Location: AN1536 (Orkney)
Posts: 5,448
Downloads: 166
Uploads: 28


Default

Quote:
Originally Posted by volodya61 View Post
want to make a complete revision of the weapon files for my mod-pack..


Glad to hear you are still working on it Volodya
__________________
Trevally Mods for SH5
Trevally. is offline   Reply With Quote
Old 01-15-13, 02:48 PM   #3
Rongel
Grey Wolf
 
Join Date: Jan 2009
Location: Finland
Posts: 857
Downloads: 174
Uploads: 0
Default

Quote:
Originally Posted by gap View Post
There are 3 start date parameters which can be set in ME2. The first one is set from the 'add new mission' menu. The second start date box is found on the top bar and gets available for editing after adding a new mission, and the last one is accessed from menu Mission => Parameters.

I Ignore what is the exact meaning of these apparently similar parameters, but in order to avoid surprises I usually set the three of them to the same date
I tried this again, changed all three parameters with my own date, but when I open the .misge file there is again this mysterious year:

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.
Rongel is offline   Reply With Quote
Old 01-15-13, 03:26 PM   #4
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by Rongel View Post
I tried this again, changed all three parameters with my own date, but when I open the .misge file there is again this mysterious year:

CurrentYear=1940
CurrentMonth=1
CurrentDay=1
CurrentHour=0
CurrentMinute=0
weird...

Quote:
Originally Posted by Rongel View Post
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.
...but who cares:
now it is time to celebrate your outstanding news
gap is offline   Reply With Quote
Old 01-15-13, 07:43 PM   #5
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

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.
gap is offline   Reply With Quote
Old 01-15-13, 08:08 PM   #6
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

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
volodya61 is offline   Reply With Quote
Old 01-15-13, 09:05 PM   #7
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,160
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by volodya61 View Post
Well.. can you explain it again, but now, like for child in kindergarten? maybe with numbers will be clearer..
Okay

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.
gap is offline   Reply With Quote
Old 01-15-13, 09:19 PM   #8
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

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
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 04:04 PM.


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.