SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH5 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=249)
-   -   [REL] Multiple UIs for SH5 with TDC (https://www.subsim.com/radioroom/showthread.php?t=166093)

TheDarkWraith 05-07-10 11:40 AM

Quote:

Originally Posted by Krauter (Post 1385090)
Sorry to sound noobish..

But where do I find where to alter User Options?

For some reason when I hover my mouse over one of the officer options or anything for a tool tip the explanation doesn't come up..

data\Scripts\Menu\TheDarkWraithUserOptions.py
You can open it with Notepad.exe (windows notepad)

PL_Andrev 05-07-10 01:01 PM

Quote:

Originally Posted by TheDarkWraith (Post 1385059)
change log for v2.2.0 as of now:

v2.2.0
- removed hard coding of contact spotted/locked spotted and associated items for TAI and nav map. They now reference strings in the menu.txt file so that they can be translated to different languages.

:o
You're great, man!
Tell me, is it possible to do something similar for multiplayer missions?
Briefings (for me) are "hard coded" and is impossible to put special non-english characters for text like: ö ů ç ś č ø and other non-latin letters...

dougandtoni 05-07-10 05:05 PM

Quote:

Originally Posted by TheDarkWraith (Post 1385024)
there is a feature call follow target...look for the key in the options file.

Yes I can read bearing of target.

Hi. How do i asign a key to a feature in the options file.What i am looking for is if i am heading to a target in my periscope at 0% and then do a sharp turn i would like my periscope to stay locked onto the target. Is this possible

TheDarkWraith 05-07-10 05:15 PM

Quote:

Originally Posted by dougandtoni (Post 1385349)
Hi. How do i asign a key to a feature in the options file.What i am looking for is if i am heading to a target in my periscope at 0% and then do a sharp turn i would like my periscope to stay locked onto the target. Is this possible

read the options file. It is documented and tells you everything you need to know. Open it up with windows notepad. There is a default key already setup for that (and that feature is called follow target)

TheBeast 05-07-10 05:16 PM

Quote:

Originally Posted by dougandtoni (Post 1385349)
Hi. How do i asign a key to a feature in the options file.What i am looking for is if i am heading to a target in my periscope at 0% and then do a sharp turn i would like my periscope to stay locked onto the target. Is this possible

Use NOTEPAD to edit the data\Scripts\Menu\TheDarkWraithUserOptions.py file.
Search for FollowSelectedTargetHotKey = [ True, MenuKeyManagerWrapper.Keys.X ]
Change the X to the key you want to use.:salute:

TheDarkWraith 05-07-10 07:02 PM

updated v2.2.0 change log:

v2.2.0 - redid the draggable compasses so that the inner ring is bigger and the outer rotatable ring is closer to the inner ring for better readings.
- added a new user option that allows you to specify the TC level above which the clock will not appear (it will stay hidden). The behavior can be overridden if the user manually toggles the clock on (AboveThisTCLevelDoNotShowClock)
- added new dial to TDC. This dial is a Mast height dial. This has to be set to the mast height of the selected contact before taking your range readings if you want accurate range readings (overcomes stock bug of mast always being set to 20m).
- removed hard coding of contact spotted/locked spotted and associated items for TAI and nav map. They now reference strings in the menu.txt file so that they can be translated to different languages.
- added new user option that allows the end user to specify the depth below which the sub does not receive radio messages/contacts. Your current sub depth has to be greater than the depth chosen to not receive radio (BelowThisDepthDontReceiveRadio)
- added new user option that allows the end user to specify the max range from their sub that they can receive radio contact reports. If TC1OnNewRadioNavMapContact is enabled and the contact is less than the distance specified then TC will be set to 1. If outside the range then TC remains at current value (MaxRadioContactRange)


will be trying to implement speed determination into notepads of UZO, attack, and obs tomorrow
Antar gave me formulas from SH3 and SH4

SeamanStaines 05-07-10 11:28 PM

righto, finally got this working. silly me, i was copying the higher level folder into the sh5 mods folder, instead of the embedded mods folder into the sh5 mods folder.

Looks good.

Getting four events though that are reported twice on each relevant click, both in audio and on the notepad:
Switching to magnetic detonation
Switching to impact detonation
Switching to salvo shooting
Switching to single tube shooting

Anyway to stop that?

PL_Andrev 05-08-10 02:00 AM

Quote:

Originally Posted by TheDarkWraith (Post 1385411)
will be trying to implement speed determination into notepads of UZO, attack, and obs tomorrow
Antar gave me formulas from SH3 and SH4

Check the result of SIN(30).
If the result is 0.5 then main unit is degree, if not - radian.
For radians you should recalculate degrees for radians first:
http://en.wikipedia.org/wiki/Radian#Conversions

Second thing:
If for SH3 you have result smaller than zero it is correct - the player mistakes for general direction of target course, fe. put AoB "at left" but the target move "at right".

reaper7 05-08-10 06:15 AM

Quote:

Originally Posted by SeamanStaines (Post 1385512)
righto, finally got this working. silly me, i was copying the higher level folder into the sh5 mods folder, instead of the embedded mods folder into the sh5 mods folder.

Looks good.

Getting four events though that are reported twice on each relevant click, both in audio and on the notepad:
Switching to magnetic detonation
Switching to impact detonation
Switching to salvo shooting
Switching to single tube shooting

Anyway to stop that?

Yes, I had that problem when developing my UI Mod. If you use another salvo switch or Torp type button it basically act like 2 switches each causing a report.
In the end I had to use the default buttons from the Torpedoes, which meant I could not use the TDC Page (Or other Pages) for those buttons.
Nothing I tried worked Its prob HardCoded that was, as If you use another swtitch it uses a different ID.

TheDarkWraith 05-08-10 06:18 AM

What exactly does fast travel do and what is it's purpose?

reaper7 05-08-10 06:21 AM

Quote:

Originally Posted by TheDarkWraith (Post 1385650)
What exactly does fast travel do and what is it's purpose?

Its stops time droping down to 8x when near friendly units.

TheDarkWraith 05-08-10 06:38 AM

Quote:

Originally Posted by reaper7 (Post 1385651)
Its stops time droping down to 8x when near friendly units.

That's it? It does nothing else?

Ragtag 05-08-10 07:04 AM

Quote:

Originally Posted by TheDarkWraith (Post 1385659)
That's it? It does nothing else?

It stops time drops from many things, even enemys and shallow waters. Its very nice to have when leaving harbours and friendly areas. No more time drops because of passing airplanes, ships, shallow waters and things like that. It's one of the new features i really like in this game.

reaper7 05-08-10 07:05 AM

Quote:

Originally Posted by TheDarkWraith (Post 1385659)
That's it? It does nothing else?

I think so, but extremly handy when returning to Port. Otherwise it would take ages to enter friendly Ports.

Ragtag beat me to it. :)

TheDarkWraith 05-08-10 07:07 AM

is it working correctly with the set TC to 1 items I've added? I mean if you have Fast Travel enabled am I causing you to kick to TC 1 when it shouldn't be?


All times are GMT -5. The time now is 10:13 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.