-
Member
Ok redid the .cs file and also the customization for the plugin file and all seems to be well now. Not sure which one it was but working fine now. Thanks again for the plugin and help.
-
Active Member
No problem, I'm glad that you got it working.
-
Savvy ? 🐒
Originally Posted by
Darkblader24
This is weird. Are you sure that your ShrineAlertPlugin.cs exactly matches my uploaded file?
This come probably because he have not defined each shrine type.
Use this instead :
PHP Code:
public void PaintWorld(WorldLayer layer)
{
var shrines = Hud.Game.Shrines.Where(x => x.DisplayOnOverlay);
foreach (var actor in shrines)
{
if ((actor.LastSpeak == null) && Hud.LastSpeak.TimerTest(5000))
{
string shrineName;
if (!UseCustomNames || !ShrineCustomNames.TryGetValue(actor.Type, out shrineName))
{
shrineName = actor.SnoActor.NameLocalized;
}
Hud.Speak(shrineName);
actor.LastSpeak = Hud.CreateAndStartWatch();
}
}
}
-
Active Member
Thank you! I added it to the plugin.
-
Member
how do i just get rid of healing pool from the TTS? i'm so confused. sorry and thank you for your help
-
Active Member
Default theme customization 101
Simply paste the customisation snippet from my first post into your Customize() method of \plugins\User\PluginEnablerOrDisablerPlugin.cs. Rename to .cs if it's a .txt.
You can then edit the shrine names to your liking. In my example, the healing pool has no name so TTS is disabled for it. If you need further help let me know.
-
Member
where do I add the custom name code add?
-
Active Member
Originally Posted by
SlushieNator
where do I add the custom name code add?
Look at my answer above.
But if you want an easier way: I added a config file which you can download and put into the same folder as the plugin. In this file, you can customize every shrine name.
-
Member
Hi Dark !
Just for qay one little thing since last update of TH
2017.11.04 01:02:29.503 error while initializing plugins
2017.11.04 01:02:29.505 ...\Plugins\Dark\ShrineAlertPlugin.cs(29,54) : error CS1061: 'Turbo.Plugins.IController' ne contient pas une définition pour 'LastSpeak' et aucune méthode d'extension 'LastSpeak' acceptant un premier argument de type 'Turbo.Plugins.IController' n'a été trouvée (une directive using ou une référence d'assembly est-elle manquante*?)
2017.11.04 01:02:29.505 ...\Plugins\Dark\ShrineAlertPlugin.cs(36,25) : error CS1061: 'Turbo.Plugins.IController' ne contient pas une définition pour 'Speak' et aucune méthode d'extension 'Speak' acceptant un premier argument de type 'Turbo.Plugins.IController' n'a été trouvée (une directive using ou une référence d'assembly est-elle manquante*?)
2017.11.04 01:03:14.030 error while initializing plugins
2017.11.04 01:03:14.031 ...\Plugins\Dark\ShrineAlertPlugin.cs(29,54) : error CS1061: 'Turbo.Plugins.IController' ne contient pas une définition pour 'LastSpeak' et aucune méthode d'extension 'LastSpeak' acceptant un premier argument de type 'Turbo.Plugins.IController' n'a été trouvée (une directive using ou une référence d'assembly est-elle manquante*?)
2017.11.04 01:03:14.033 ...\Plugins\Dark\ShrineAlertPlugin.cs(36,25) : error CS1061: 'Turbo.Plugins.IController' ne contient pas une définition pour 'Speak' et aucune méthode d'extension 'Speak' acceptant un premier argument de type 'Turbo.Plugins.IController' n'a été trouvée (une directive using ou une référence d'assembly est-elle manquante*?)
Thaks for ur job !!
-
Member
hi,
i have exeptions :
ShrineAlertPlugin.cs(29,54) : error CS1061: 'Turbo.Plugins.IController' enthält keine Definition für 'LastSpeak', und es konnte keine Erweiterungsmethode 'LastSpeak' gefunden werden, die ein erstes Argument vom Typ 'Turbo.Plugins.IController' akzeptiert (Fehlt eine Using-Direktive oder ein Assemblyverweis?).
ShrineAlertPlugin.cs(36,25) : error CS1061: 'Turbo.Plugins.IController' enthält keine Definition für 'Speak', und es konnte keine Erweiterungsmethode 'Speak' gefunden werden, die ein erstes Argument vom Typ 'Turbo.Plugins.IController' akzeptiert (Fehlt eine Using-Direktive oder ein Assemblyverweis?).
can you help me pls
a very good plugin
-
Member
update all plugins to v7.4 by KJ
Guys, please update your plugins to v7.4 because the following breaking changes occured:
- BREAKING CHANGE: speak and sound related methods are moved from IController to ISoundController
- BREAKING CHANGE: tracker related properties are moved from IController to ITrackerController
also please follow the versioning rules:
Versioning for plugins
Non-updated plugin threads will be archived at 2017.11.20
Here we go !
Last edited by ADV2015; 11-04-2017 at 06:09 AM.
-
Contributor
Change
Code:
if ((actor.LastSpeak == null) && Hud.LastSpeak.TimerTest(5000))
{
string shrineName;
if (!UseCustomNames || !ShrineCustomNames.TryGetValue(actor.Type, out shrineName) || ShrineCustomNames[actor.Type] == null)
{
shrineName = actor.SnoActor.NameLocalized;
}
Hud.Speak(shrineName);
actor.LastSpeak = Hud.CreateAndStartWatch();
}
to
Code:
if ((actor.LastSpeak == null) && Hud.Sound.LastSpeak.TimerTest(5000))
{
string shrineName;
if (!UseCustomNames || !ShrineCustomNames.TryGetValue(actor.Type, out shrineName) || ShrineCustomNames[actor.Type] == null)
{
shrineName = actor.SnoActor.NameLocalized;
}
Hud.Sound.Speak(shrineName);
actor.LastSpeak = Hud.CreateAndStartWatch();
}
Now should work perfect with 7.4.
Last edited by MrOne; 11-04-2017 at 08:20 AM.
Reason: Because i post wrong CODE ;)
-
Post Thanks / Like - 3 Thanks
-
Member
-
Member
thanks - it works -
-
Active Member
@MrOne Thank you, I just updated the plugin. Had no time to look into it yet so thanks for the help