-
Active Member
[v7.2] [INTERNATIONAL] [Dark] ShrineAlertPlugin (Shrine TTS)
Supported TurboHUD version: 9.0
This plugin tells you via Text-To-Speech when a shrine is near you!
Download:
place in plugins/Dark/ShrineAlertPlugin.cs (updated 17 Nov 2017)
Customization:
If you want custom shrine names or want to disable shrines/pools also use and customize the following file:
place in plugins/Dark/ShrineAlertConfig.cs (updated 11 May 2017)
-- OR --
paste the following code into your Customize() method of plugins\User\PluginEnablerOrDisablerPlugin.cs
Code:
Hud.RunOnPlugin<Dark.ShrineAlertPlugin>(plugin =>
{
// Shrine Alerts Examples
// null = use localized name for that shrine
// "" = no TTS for that shrine
plugin.UseCustomNames = true;
plugin.ShrineCustomNames[ShrineType.BlessedShrine] = "damage reduction shrine";
plugin.ShrineCustomNames[ShrineType.EnlightenedShrine] = "XP shrine";
plugin.ShrineCustomNames[ShrineType.FortuneShrine] = null;
plugin.ShrineCustomNames[ShrineType.FrenziedShrine] = null;
plugin.ShrineCustomNames[ShrineType.EmpoweredShrine] = null;
plugin.ShrineCustomNames[ShrineType.FleetingShrine] = null;
plugin.ShrineCustomNames[ShrineType.PowerPylon] = null;
plugin.ShrineCustomNames[ShrineType.ConduitPylon] = "Zapper pylon";
plugin.ShrineCustomNames[ShrineType.ChannelingPylon] = null;
plugin.ShrineCustomNames[ShrineType.ShieldPylon] = null;
plugin.ShrineCustomNames[ShrineType.SpeedPylon] = null;
plugin.ShrineCustomNames[ShrineType.BanditShrine] = "Bandit shrine! Get reinforcement!";
plugin.ShrineCustomNames[ShrineType.PoolOfReflection] = "XP pool";
plugin.ShrineCustomNames[ShrineType.HealingWell] = "";
});
Changelog:
Update 17 Nov 2017:
- updated to TurboHUD v7.6
Update 4 Nov 2017:
- updated to TurboHUD v7.4
Update 11 May 2017:
- added Config file
Update 7 Apr 2017:
- bug fix (thanks, Jack)
Update 4 Apr 2017:
- added healing well and pool of reflection
- updated customisation
Inspired by Psychos ShrineLabelsPlugin
Last edited by Darkblader24; 03-27-2019 at 06:07 AM.
-
Post Thanks / Like - 12 Thanks
bobbydigital12,
Gh0sT_89,
FullmetalEnvy,
cherouvim13,
ADV2015,
TobiaSBooN,
Roman NMSK,
(Sarge),
Stormreaver,
RNN,
profredseries,
imnotabotuser (12 members gave Thanks to Darkblader24 for this useful post)
-
Member
Thanks!
Gonna give this a shot
-
Member
Didn't realize how useful TTS was for goblins. Going to try this one out right now too.
-
Active Member
This is just bs - the code duplication is real. For god's sake check other plugins - there literally already is this here: [v7.2][INTERNATIONAL][Psycho] ShrineLabelsPlugin
Ask the dev to add TTS to the current plugin - if he refuses: Write it on your own. Or write a customization onto of his plugin.... a different user already made exactly this, ontop of the existing plugin.
I won't give any support (or answer requests) via private messaging. Ask your questions about a plugin within its thread!
-
Active Member
I made this for myself but then I thought why not sharing it? If Psycho adds this to his plugin then I am glad to link to his plugin.
The solution that user provided in the comments doesn't offer custom names for shrines which I wanted. Furthermore, not everybody reads comments and not everybody knows how to do that kind of stuff so this is an easy solution. And I don't see how I could write this plugin different from what I have other than just renaming the variables.
-
Contributor
I already add TTS to Psycho plugin (3 data ago) look last post, there is my solution.
-
Active Member
I know. But your solution doesn't allow custom names which I wanted. Also, everybody talks about not modifying default files, so an external plugin is better and easier. And because there wasn't any TTS plugin for shrines I made this one.
Last edited by Darkblader24; 04-03-2017 at 05:42 AM.
-
Savvy ? 🐒
Not ready to be released yet but here is how i do it myself :
PHP Code:
Hud.RunOnPlugin<ShrinePlugin>(plugin =>
{
plugin.AllShrineDecorator.Add(SoundAlertFactory.Create<IShrine>(Hud, (shrine) => shrine.SnoActor.NameLocalized));
plugin.PoolOfReflectionDecorator.Add(SoundAlertFactory.Create<IShrine>(Hud, (shrine) => "pool"));
});
-
Member
Thank you for this, very helpful and easy to use
Last edited by Noobz; 04-03-2017 at 08:22 PM.
-
Member
I see you have pool of reflection in the code but it is not saying pool when I am around one. I tried adding it to your custom list as well, no exception, just no sound:
plugin.ShrineCustomNames[ShrineType.PoolOfReflection] = "Pool";
-
Active Member
I updated the plugin:
- added healing well and pool of reflection
- updated customisation
-
Active Member
Originally Posted by
JackCeparou
Not ready to be released yet but here is how i do it myself :
PHP Code:
Hud.RunOnPlugin<ShrinePlugin>(plugin =>
{
plugin.AllShrineDecorator.Add(SoundAlertFactory.Create<IShrine>(Hud, (shrine) => shrine.SnoActor.NameLocalized));
plugin.PoolOfReflectionDecorator.Add(SoundAlertFactory.Create<IShrine>(Hud, (shrine) => "pool"));
});
Ok, I see it's possible to do differently.
-
Member
Updated and got lots of these errors:
2017.04.04 16:24:35.769 minimap draw error (System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Turbo.Plugins.Dark.ShrineAlertPlugin.PaintWorld(WorldLayer layer)
at **************.********** *.*********()
at **************.********* *(IPlugin , String , Action )
at **************.************ *(Object , EventArgs )
at Turbo.Basic.Overlay.DrawMinimapLayer())
2017.04.04 16:24:35.778 overlay paint error (System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at Turbo.Plugins.Dark.ShrineAlertPlugin.PaintWorld(WorldLayer layer)
at **************.**** *.************()
at **************.********* *(IPlugin , String , Action )
at **************.***** *(Object , EventArgs )
at Turbo.Basic.Overlay.********())
I was fine in town, started when i was in other areas. Tried several times with same results
-
Active Member
This is weird. Are you sure that your ShrineAlertPlugin.cs exactly matches my uploaded file?
-
Member
i will verify again and check