PDA

View Full Version : [REL] Less Annoying TAI Map


gutted
03-13-10, 05:25 AM
Less Annoying TAI Map v1.2
(Corey "Gutted" Harwell)


Click to download:
http://www.subsim.com/radioroom/downloads.php?do=file&id=1592&act=down



WHAT DOES IT DO?


Three things actually.

1. Replaces the Hotkey behavior for the TAI Map.

Before:
TAB -> Cycles between Half Open, Maximized, & Minimized. (Too many freaking key presses to just look at it and close it!!!)
Shift+Tab -> Minmized


After:
TAB -> Toggles between Half Open & Minimized
Shift+Tab -> Toggles between Maximized & Minized.

Push Tab while it's maximized to get a Half Open TAI map.



2. When you the leave the Navigational Map, your TAI will no longer automatically pop up even if it was minimized.

What you get when leaving the navmap depends on how you got there.

If the TAI was closed, when you return from the NavMap.. it will still be closed.
If the TAI was Half Open, When you return it will be Half Open.
If the TAI was MAximized... two things may happen.

If you maximized the TAI while it was minimized, then go to the nav map.. when you return the TAI will be minimized.
It assumes you weren't really needing the TAI open anymore.

If you maximized the TAI while it was half open, then go to the nav map.. when you return the TAI will be half open.
It assumes you still wanted the TAI map, but since you just left a maximized map.. there's no need to return you to another one.


Strange? Not really. It's just smarter now.



3. Makes the Nav tools always extend whenever the map is open, not just when it's nearly maximzed.






------------------------------

INSTALL:
Put the "Less Annoying TAI Map" folder from the zipfile into your MODS folder, enable it with JSGME.

WARNING: Be sure to Use JSGME!!! To ensure there are no mod conflicts. Many mods may alter this same file.


------------------------------


GOT MOD CONFLICT?

If JSGME warns you this file has already been changed, you will have to do it by hand. Alternatively, you can use a program such as WinMerge to visually see whats different, and make the necessary adjustments much quicker (and safer)

Simply Follow the instructions in the readme to make the changes manually. Be careful to preserve the tabbing EXACTLY as it is in the readme.txt

Enjoy!

gutted
03-13-10, 05:32 AM
oh geez.. i meant to post this in the mods forum


:damn:

gutted
03-13-10, 05:34 AM
aaaanyway.

My next step is to make the TAI map stop opening when you leave the navmap.

Mondaiji
03-13-10, 05:41 AM
:yeah: thanks. Thats really usefull.

jimimadrid
03-13-10, 06:52 AM
Thanks.

Do you know a solution to move the postion of the closed maptools.
We have some nice dial solution, but the closed maptools should be on the bottom and not half on the image.

I'm trying since days but i do not get a solution.

gutted
03-13-10, 06:59 AM
I'll see what i can find.. no promises.

I've stopped the TAI map from opening when you leave the nav map. Initial pass was to simply commented out that line.

but...

I'm working on it remembering what state it was in before hand. .ie If it was open before you went, it will be open when you return.

I thought i had it working.. but it seemed it only returned it to the open state (if it was already open) when you left the nav map with the ESC key. If you left the nav map with another 'm' press it will just minimize it altogether.

Needs work before its ready.

In the meantime.. if you dont care if it's always minimized when you leave the nav-map:

search for:
def Menu_PageDeactivated( page ):


look down a few lines and put a # sign in front of this line
SetFeedBackMode( FeedBackModes.TAI, Instant.No )

gutted
03-13-10, 07:39 AM
After playing around with it some more, i've noticed a shortcomming.

I made it slightly more intuitive. Will upload as soon as i get the returning from the navigation map stuff sorted out.

piri_reis
03-13-10, 08:42 AM
TAI is useful but serves as a cheat, if you're playing manual targetting. So I normally want it minimized at all times. Thanks for the explanation in the scripts to how this works.. :up:

brandtryan
03-13-10, 09:32 AM
Thanks Gutted--nice work.

TAI is useful but serves as a cheat, if you're playing manual targetting. So I normally want it minimized at all times. Thanks for the explanation in the scripts to how this works.. :up:

A little confused here--how is it a cheat? Didn't they have maps on the real u-boats, and plotted solutions on them? Or are you talking about when the map contacts/updates option is enabled?

gutted
03-13-10, 09:36 AM
New & improved version up. See first post.

piri_reis
03-13-10, 10:00 AM
A little confused here--how is it a cheat? Didn't they have maps on the real u-boats, and plotted solutions on them? Or are you talking about when the map contacts/updates option is enabled?

Well I'm not accusing anybody of cheating. I play with map contacts on, with manual targetting, because I want the known contacts to be plotted on the map. But the TAI doesn't work like the NavMap in SH3. It gives you the speed of the contact if you click on it, and it will give you the type. At that point I haven't plotted a track to determine speed or identified the contact that's why it seems cheating for me to know that information. These will be modded out I'm sure, using generic colored contacts and no information about them would be nice.

gutted
03-13-10, 10:14 AM
But the TAI doesn't work like the NavMap in SH3. It gives you the speed of the contact if you click on it, and it will give you the type.

I dont follow your logic.

You get that same info on the navmap. And even with map contacts off.. you get that same info for radio reports.

So bascially, If you never open the TAI map, and only use the NavMap.. you are still getting the same info, but giving up having a map directly in your scope.

Makes no sense.


I play with contacts off btw.

gutted
03-13-10, 10:25 AM
Whoah, just realized i left out one important step on the hand editing instructions

Updated the instructions both on this page and in the included readme.

piri_reis
03-13-10, 10:28 AM
I dont follow your logic.
You get that same info on the navmap. And even with map contacts off.. you get that same info for radio reports.


You're right, NavMap displays the information about the contacts too. Which I hadn't noticed :doh:
In that case I should either switch to NoMapUpdates or try to mod the highly accurate information out. I kind of like to see the detected contacts plotted on the map, but want to do the information gathering myself.

gutted
03-13-10, 10:47 PM
each to his own i guess :salute:

co_kkie
03-13-10, 11:18 PM
CAn someone help me with somekind of this things?

13°50'E, Lat 36°19'N Course E

what should i do with that on map (TAI).

etheberge
03-13-10, 11:28 PM
Genius, thanks a lot gutted!

gutted
03-13-10, 11:52 PM
There's still one flaw. Just noticed it while i was playing around with something else.

It's very minor, and most people probably wont notice it.

gutted
03-14-10, 02:26 AM
Fixed it, Updated first post.

Also removed the manual install instructions from the first post. Instead copy paste from the readme file so that the tabbing is preserved as it is extremely important.


If you arleady have the mod and had to hand edit it... you can save yourself some effort by just changing the area that is in bold type below:


if args.Key == MenuKeyManagerWrapper.Keys.Tab:
if Menu.MenuKeyManager.IsKeyPressed( MenuKeyManagerWrapper.Keys.Shift ):
if FeedBackMode == FeedBackModes.Maximized:
SetFeedBackMode( FeedBackModes.Minimized, Instant.No )
TAIMaximized = False
else:
SetFeedBackMode( FeedBackModes.Maximized, Instant.No )
TAIMaximized = True
else:
if FeedBackMode == FeedBackModes.Minimized:
SetFeedBackMode( FeedBackModes.TAI, Instant.No )
TAIOpen = True
TAIMaximized = False
else:
if TAIMaximized:
SetFeedBackMode( FeedBackModes.TAI, Instant.No )
TAIOpen = True
else:
SetFeedBackMode( FeedBackModes.Minimized, Instant.No )
TAIOpen = False
TAIMaximized = False
args.Handled = True
return

etheberge
03-14-10, 04:51 AM
Thanks for the detailed manual instructions :up:

sergei
03-14-10, 06:40 AM
Very nice work Gutted.
The TAI continually resizing itself was something that, whilst not a gamebreaker, was beginning to really get on my tits.

spf69
03-14-10, 06:53 AM
i have winrar tool to open files but not sure where to install them can someone please help ive just got silent hunter 5 an want to add the mods to it ive never added a mod to agame b4 i downloaded winrar to open the mods just need to know what they go in to..please help..:wah::wah:

sergei
03-14-10, 08:22 AM
Use JSGME.
Fantastic Mod Enabler application.
Here is the user guide
http://www.subsim.com/radioroom/showthread.php?t=163447

Abd_von_Mumit
08-28-10, 01:55 PM
Downloading to apply tonight. Very god idea - TAI map drives me crazy especially when it opens upon entering UZO/scopes only to blind me in the night. Thanks.

TheDarkWraith
08-28-10, 02:51 PM
Downloading to apply tonight. Very god idea - TAI map drives me crazy especially when it opens upon entering UZO/scopes only to blind me in the night. Thanks.

if you're using my UIs mod there are options in the options file to control it.

Abd_von_Mumit
08-28-10, 03:04 PM
if you're using my UIs mod there are options in the options file to control it.

Yes, I'll have to find those, as this mod seems to be incompatible with your big one. Thanks for the tip.