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 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 08-24-11, 05:12 PM   #1
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
Default

Cheers LGN1. Another question is there a list of Dial types anywhere ?
I'm looking in the dial.cfg file

eg:

Type=1; DIAL_SPEED
Type=4; DIAL_THROTTLE
......
.........
Type=42; DIAL_TGT_ANG_ON_BOW

There is no dial type 2 or 3 and many more are not listed.
Anyway to find out if all values are hardcoded and if so can these be used?
I'm trying to find a dial type thats not used ingame to use for the Impact Angle Dial.
reaper7 is offline   Reply With Quote
Old 08-25-11, 02:55 AM   #2
makman94
Hellas
 
Join Date: Jul 2008
Posts: 2,294
Downloads: 184
Uploads: 7


Default

Quote:
Originally Posted by reaper7 View Post
Cheers LGN1. Another question is there a list of Dial types anywhere ?
I'm looking in the dial.cfg file

eg:

Type=1; DIAL_SPEED
Type=4; DIAL_THROTTLE
......
.........
Type=42; DIAL_TGT_ANG_ON_BOW

There is no dial type 2 or 3 and many more are not listed.
Anyway to find out if all values are hardcoded and if so can these be used?
I'm trying to find a dial type thats not used ingame to use for the Impact Angle Dial.
actually ,there is type 2 and 3 dials (type 2 = port engine RPM , type 3 = starb engine RPM).
ALL types (till type 80) for dials exists.you can view the whole list of them and what each one does through the super tool s3d . open ,for example,the
NSS_Uboat7_CR .sim (in interior folder) and go at a dial and clic on its type (look at pic).
see all types listed there (with each 'number' in front and what it does after) . the dial for track angle is the type 66 BUT the code for this dial doesn't exist in sh3's code (must be added in order to make this dial type fuctional for sh3)

__________________
Knowledge is the only thing that nobody can ever take from you...



Mediafire page:http://www.mediafire.com/folder/da50.../Makman94_Mods
makman94 is offline   Reply With Quote
Old 08-25-11, 11:49 AM   #3
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
Default

Quote:
Originally Posted by makman94 View Post
actually ,there is type 2 and 3 dials (type 2 = port engine RPM , type 3 = starb engine RPM).
ALL types (till type 80) for dials exists.you can view the whole list of them and what each one does through the super tool s3d . open ,for example,the
NSS_Uboat7_CR .sim (in interior folder) and go at a dial and clic on its type (look at pic).
see all types listed there (with each 'number' in front and what it does after) . the dial for track angle is the type 66 BUT the code for this dial doesn't exist in sh3's code (must be added in order to make this dial type fuctional for sh3)

Makman, you are a wealth of information. Thankyou my friend
So the dial type is there already, I'm going to see what I can achieve with this new info.
I believe I will be able to bring you a working solution to the non existent Impact Angle dial in Sh3
Still its just theory in my head for the moment - but using what I've learnt with my current project I think I can make it reality


EDIT:

Well no go on my Idea - Can't get the needle to rotate at all. Seems that the dialtype has no memory location assigned to that variable, never mind not having code for it.
So no way for me to hook onto its value, even if I got code working to calculate the Impact Angle - there's nowhere to put the value for the dial to read

Last edited by reaper7; 08-25-11 at 02:58 PM.
reaper7 is offline   Reply With Quote
Old 08-25-11, 05:19 PM   #4
Pisces
Silent Hunter
 
Join Date: Dec 2004
Location: AN9771
Posts: 4,839
Downloads: 309
Uploads: 0
Default

Judging by the German text labels (I'm of Dutch origin so it's not my native language, but I think it's enough):

1 is indeed impact-angle (auftreffwinkel= angle of collision)

2 is some sort of vernier dial (feinanzeige= fine display) of an angle that represents a bearing, or AOB. Hitman I think once said that (based on his extensive studies) "lage" was used often in both contexts of bearing on ownship, or AOB on the target. I'm betting on AOB. The dictionary that I have at home translates "Lage" as: situation, location, pose, position, state. The dial to the right of 2 seems to be the AOB dial (Gegner = opponent ), as the 2 dials on the far right can be clearly translated to be to be the crude and fine dial for the target bearing (Schiffspeilung= Ship bearing ) Dial 2 shows a value of 30, which could mean 30 minutes of arc, or halve of a degree. The same fractional value as is shown on the small inset dial of "Gegnerlage". 4.5 degrees starboard AOB ("Bug Rechts" = Bow Right)

3 seems to me to be the gyro angle or lead angle. (Schusswinkel= shooting angle) It makes no sense if this is the spread angle. How is a red (port) spread of 2 degrees any different than a green (starboard) spread. Spreads are symmetric. Besides ...

The 2 dials below 3 are probably the torpedo course (Torp. Kurs) and spread dial ("spreizung" means spread, and my dictionary says "Fächer" means "fan") But "Kurs" means course, so it is probably the "True" shooting bearing. IOW, there might be a compass correction involved that is hard to notice on this dial.
__________________
My site downloads: https://ricojansen.nl/downloads
Pisces is offline   Reply With Quote
Old 08-26-11, 03:11 AM   #5
makman94
Hellas
 
Join Date: Jul 2008
Posts: 2,294
Downloads: 184
Uploads: 7


Default

Quote:
Originally Posted by reaper7 View Post
.....

EDIT:

Well no go on my Idea - Can't get the needle to rotate at all. Seems that the dialtype has no memory location assigned to that variable, never mind not having code for it.
So no way for me to hook onto its value, even if I got code working to calculate the Impact Angle - there's nowhere to put the value for the dial to read
read the OP of the thread that LGN1 pointed to you .

the code for track angle is allready written in sh4's and in sh5's code . as i am not familiar with executables at all, i am only guessing here that MAYBE all that is needed is to copy the code lines for TrackAngle from sh4's code to sh3's code (if possible).
this dial (track angle) is ONLY for reading (i mean that player is not interacting with it) so MAYBE the code will not be so extensive or hard to locate.

just guessing...no idea at all about the code
__________________
Knowledge is the only thing that nobody can ever take from you...



Mediafire page:http://www.mediafire.com/folder/da50.../Makman94_Mods
makman94 is offline   Reply With Quote
Old 08-26-11, 08:29 AM   #6
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
Default

Quote:
Originally Posted by makman94 View Post
read the OP of the thread that LGN1 pointed to you .

the code for track angle is allready written in sh4's and in sh5's code . as i am not familiar with executables at all, i am only guessing here that MAYBE all that is needed is to copy the code lines for TrackAngle from sh4's code to sh3's code (if possible).
this dial (track angle) is ONLY for reading (i mean that player is not interacting with it) so MAYBE the code will not be so extensive or hard to locate.

just guessing...no idea at all about the code
Hi Mate, afraid that is out of my area of expertise - That would be a job for a Reverse Engineer in Code (H.Sie or TDW would be the experts there).
But I have another idea, going to test now to see if it works

Last edited by reaper7; 08-26-11 at 08:47 AM.
reaper7 is offline   Reply With Quote
Old 08-26-11, 01:45 PM   #7
reaper7
sim2reality
 
Join Date: Jun 2007
Location: AM 82
Posts: 2,288
Downloads: 262
Uploads: 31
Default WIP Impact Angle

I have managed to find a dial in SH3 that does not appear to be used in the TDC operation to my knowledge (Please let me know if this is not the case).

I'm using this dial

Code:
[Dial44]
Name=Impact_Angle
Type=42; DIAL_TGT_ANG_ON_BOW
Cmd=Set_tgt_sel_value
Dial=0x3BBF0002 
CrtVal=0x3BBF0001
NewVal=0x0
DialVal=0,360
RealVal=0,360; degrees
Circular=Yes
I have not noticed any ill effect on using this dial type - but I've not done any real in-dept testing as of yet.

Ok so what have I done:
Basically I have external code that is hijacking that particular dial that is setting it to the position that I've coded.
At the moment It is basically taking the Gyroangle from the game and subtracting 180 from it (In essence mirroring the gyroangle).
I need to work out what the actual code for the Impact Angle needs to be and replace my current code with that maths.

Here you can see it in action:





What calculation will be needed to do this. Is it just the AOB plus the gyro subtracted from 360?


Last edited by reaper7; 08-26-11 at 02:38 PM.
reaper7 is offline   Reply With Quote
Old 08-26-11, 02:43 PM   #8
Wolfstriked
Grey Wolf
 
Join Date: Apr 2011
Posts: 756
Downloads: 238
Uploads: 0
Default

Looks kool Reaper.I do not know how accurate it is modeled in Sh3 the angle on impact.Since we are gonna now have this tool to calculate will there be changes to make off angle hits dud out even more?
Wolfstriked is offline   Reply With Quote
Old 08-27-11, 05:05 AM   #9
makman94
Hellas
 
Join Date: Jul 2008
Posts: 2,294
Downloads: 184
Uploads: 7


Default

Quote:
Originally Posted by reaper7 View Post
......

What calculation will be needed to do this. Is it just the AOB plus the gyro subtracted from 360?

hello Reaper ,

i told you at my previous message what angles are involving for calculating the impact angle.(read it again more...carefull).
at your figure ...you have drawn wrong the impact angle (it is not the 'x'and forget the Aob) .look at pic :




now, generally speaking the formula for getting the impact angle is :

(ImpactAngle) = (AoB at bearing 0) + (Gyroangle)

OR

(ImpactAngle) = (AoB at bearing 0) - (Gyroangle)

depending if you shoot right or left of your bearing 0 and depending if you are on a port or on a starboard attack.

the rule is this : when your gyroangle = 0 then the (ImpactAngle) is equal to (AoB at bearing 0).NOW, if you shoot with gyro NOT 0 degrees the needle of Impact angle dial will 'follow' the GYROANGLE dial and either will add or abstract the gyro angle .look at the following pics to understand how the impact angle dial works.

ps: your idea by using one of the existing types for dial and use it for the needle of impact angle will go nowhere . the only thing that you will manage is to make the needle just moving around but it will never show the impact angle .you need the code ,without the code it will be very complicated to show the impact angle (and this will not be directly shown).
LGN1 has managed to 'appear' the impact angle(without the code) but it is so complicated that only advanced player will be able to 'read'.

port attack :







starboard attack :








===============
__________________
Knowledge is the only thing that nobody can ever take from you...



Mediafire page:http://www.mediafire.com/folder/da50.../Makman94_Mods

Last edited by makman94; 08-27-11 at 05:15 AM.
makman94 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 10:17 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.