Quantcast
Download
(5 Kb)
Download
Updated: 01/18/22 12:06 PM
Pictures
File Info
Compatibility:
Deadlands (7.2.5)
Updated:01/18/22 12:06 PM
Created:01/14/22 10:06 AM
Monthly downloads:167
Total downloads:193
Favorites:2
MD5:
7.2.5
FOB  New this week!
Version: 2.0.0
by: FlatBadger [More]
FOB is a companion mod to prevent accidental companion interaction.

Ever clicked to loot something only to find your companion conversation starting because Bastian or Mirri has leapt in front of you to grab all your attention? Annoying isn't it? (Well, I find it annoying).

This addon prevents any companion interactions from happening and moves the main ones to keybinds instead.

When you move the reticle over a companion, nothing will happen. Click the action button over a companion, nothing will happen. Bliss.

To toggle the original functionality, access the companion menu or to dismiss your companion, FOB adds three keybinds for you to configure.

In addition there is an option to ignore flying insects when Mirri is out (requires translations for your language - currently only English and German will work), and another option to prevent criminal interactions when Bastian is out.

Now, if I could only get them to shut up too...

Requires:
  • LibChatMessage
Version: 2.0.0 ---------------
Added option to ignore flying insects when Mirri is summoned (requires translations)
Added option to prevent criminal interactions when Bastian is summoned
Added German translations for flying insects
Correct localisation issue for Companion detection in non-English languages
Added /fob

Version: 1.0.3 ---------------
Corrected localisation issue

Version: 1.0.2 ---------------
German translations added (thanks again Baertram)
Companion ids obtained through different method

Version: 1.0.1 ---------------
Various code improvements (thanks Baertram)
Added a keybind to toggle the default interaction behaviour

Version: 1.0.0 ---------------
Initial Release
Optional Files (0)


Archived Files (4)
File Name
Version
Size
Uploader
Date
 FOB
1.0.3
3kB
FlatBadger
01/15/22 10:45 AM
 FOB
1.0.2
39kB
FlatBadger
01/15/22 10:02 AM
 FOB
1.0.1
3kB
FlatBadger
01/14/22 01:18 PM
 FOB
1.0.0
3kB
01/14/22 10:06 AM


Post A Reply Comment Options
Unread Today, 06:47 AM  
Bolsen945
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 8
Uploads: 1
[quote=FlatBadger]
Originally Posted by Bolsen945
Originally Posted by FlatBadger
Yes, this is the Russian locale, others are very good.
Version 2.0.0 should hopefully resolve this problem.
Now everything doesn't work ):
Report comment to moderator  
Reply With Quote
Unread Yesterday, 12:04 PM  
FlatBadger
 
FlatBadger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 12
Uploads: 3
Originally Posted by Bolsen945
Originally Posted by FlatBadger
Originally Posted by Bolsen945
Just don't be alarmed, it doesn't work with Mirri Elendis for me.)
Odd - works fine for me.

I'll change the way I get the companion names for the next release, see if that helps.

What language client are you using out of interest?
Yes, this is the Russian locale, others are very good.
Version 2.0.0 should hopefully resolve this problem.
Report comment to moderator  
Reply With Quote
Unread 01/15/22, 12:12 PM  
Bolsen945
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 8
Uploads: 1
Originally Posted by FlatBadger
Originally Posted by Bolsen945
Just don't be alarmed, it doesn't work with Mirri Elendis for me.)
Odd - works fine for me.

I'll change the way I get the companion names for the next release, see if that helps.

What language client are you using out of interest?
Yes, this is the Russian locale, others are very good.
Report comment to moderator  
Reply With Quote
Unread 01/15/22, 10:36 AM  
FlatBadger
 
FlatBadger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 12
Uploads: 3
Originally Posted by Baertram
Yes, there aren't any notifications
Only for forum threads and posts will notify you, but not for addon comments.
You need to check via menu -> Author -> My Addons list if there are new comments

Edit:
Please do not include the .git folders etc. files in the addon zip! thanks Only addon related files should be included

And the German texts do not show for the keybindings?
You need to use $(language) in your txt not ${language}
https://wiki.esoui.com/Addon_manifes...able_Expansion


Originally Posted by FlatBadger
Originally Posted by Baertram
de.lua file contents for German translation:
Code:
-- German localisation
ZO_CreateStringId("FOB_DISMISS_COMPANION", "Aktiven Gefähten wegschicken")
ZO_CreateStringId("FOB_COMPANION_MENU", "Öffne Gefährten Menü")
ZO_CreateStringId("FOB_TOGGLE", "De- / Aktiviere FOB temporär")
ZO_CreateStringId("FOB_DISABLED", "FOB ist temporär deaktiviert")
ZO_CreateStringId("FOB_ENABLED", "FOB ist temporär aktiviert")
Thanks for that - I'll add them to the next release. Any idea why I'm not receiving email notifications for posts here?
Whoops - let me sort that now.
Report comment to moderator  
Reply With Quote
Unread 01/15/22, 10:05 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 3815
File comments: 4700
Uploads: 69
Yes, there aren't any notifications
Only for forum threads and posts will notify you, but not for addon comments.
You need to check via menu -> Author -> My Addons list if there are new comments

Edit:
Please do not include the .git folders etc. files in the addon zip! thanks Only addon related files should be included

And the German texts do not show for the keybindings?
You need to use $(language) in your txt not ${language}
https://wiki.esoui.com/Addon_manifest_(.txt)_format#Variable_Expansion


Originally Posted by FlatBadger
Originally Posted by Baertram
de.lua file contents for German translation:
Code:
-- German localisation
ZO_CreateStringId("FOB_DISMISS_COMPANION", "Aktiven Gefähten wegschicken")
ZO_CreateStringId("FOB_COMPANION_MENU", "Öffne Gefährten Menü")
ZO_CreateStringId("FOB_TOGGLE", "De- / Aktiviere FOB temporär")
ZO_CreateStringId("FOB_DISABLED", "FOB ist temporär deaktiviert")
ZO_CreateStringId("FOB_ENABLED", "FOB ist temporär aktiviert")
Thanks for that - I'll add them to the next release. Any idea why I'm not receiving email notifications for posts here?
Last edited by Baertram : 01/15/22 at 10:23 AM.
Report comment to moderator  
Reply With Quote
Unread 01/15/22, 09:47 AM  
FlatBadger
 
FlatBadger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 12
Uploads: 3
Originally Posted by Bolsen945
Just don't be alarmed, it doesn't work with Mirri Elendis for me.)
Odd - works fine for me.

I'll change the way I get the companion names for the next release, see if that helps.

What language client are you using out of interest?
Report comment to moderator  
Reply With Quote
Unread 01/15/22, 09:45 AM  
FlatBadger
 
FlatBadger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 12
Uploads: 3
Originally Posted by Baertram
de.lua file contents for German translation:
Code:
-- German localisation
ZO_CreateStringId("FOB_DISMISS_COMPANION", "Aktiven Gefähten wegschicken")
ZO_CreateStringId("FOB_COMPANION_MENU", "Öffne Gefährten Menü")
ZO_CreateStringId("FOB_TOGGLE", "De- / Aktiviere FOB temporär")
ZO_CreateStringId("FOB_DISABLED", "FOB ist temporär deaktiviert")
ZO_CreateStringId("FOB_ENABLED", "FOB ist temporär aktiviert")
Thanks for that - I'll add them to the next release. Any idea why I'm not receiving email notifications for posts here?
Report comment to moderator  
Reply With Quote
Unread 01/15/22, 09:30 AM  
Bolsen945
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 8
Uploads: 1
Just don't be alarmed, it doesn't work with Mirri Elendis for me.)
Report comment to moderator  
Reply With Quote
Unread 01/15/22, 09:22 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 3815
File comments: 4700
Uploads: 69
de.lua file contents for German translation:
Code:
-- German localisation
ZO_CreateStringId("FOB_DISMISS_COMPANION", "Aktiven Gefähten wegschicken")
ZO_CreateStringId("FOB_COMPANION_MENU", "Öffne Gefährten Menü")
ZO_CreateStringId("FOB_TOGGLE", "De- / Aktiviere FOB temporär")
ZO_CreateStringId("FOB_DISABLED", "FOB ist temporär deaktiviert")
ZO_CreateStringId("FOB_ENABLED", "FOB ist temporär aktiviert")
Report comment to moderator  
Reply With Quote
Unread 01/14/22, 02:51 PM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 3815
File comments: 4700
Uploads: 69
Interesting.
In the past (PTS as companions were introduced) I've tested about the same and the whole companion inventory and skills show up but nohing could be chnaged. It always threw error messages that the companion is not interacted with and nothing dragged & dropped, equipped, skills etc. was updated properly.

ZosDanBatson told me this is normal as you manually need to run to the companion and talk (chatter) + initiate the interaction via that chatter menu as else the server internal interaction is not registered.

If this is working without the actual interaction now they changed the server code, nice.

Originally Posted by FlatBadger
Originally Posted by FlatBadger
Did you try this? Does it really work? ZOs told us there is no workaround so your scenegroup showing should also be just "visual".
Actually both myself and a friend have just tried this and it appears to work just fine.
Report comment to moderator  
Reply With Quote
Unread 01/14/22, 01:20 PM  
FlatBadger
 
FlatBadger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 12
Uploads: 3
Originally Posted by FlatBadger
Did you try this? Does it really work? ZOs told us there is no workaround so your scenegroup showing should also be just "visual".
Actually both myself and a friend have just tried this and it appears to work just fine.
Report comment to moderator  
Reply With Quote
Unread 01/14/22, 12:31 PM  
FlatBadger
 
FlatBadger's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 12
Uploads: 3
Awesome - thanks for the comments. I'll take them on board. I couldn't possibly comment on what FOB stands for

To be honest, I didn't actually try the interacting with the .. er .. interaction, so my bad there - I just made quite a big assumption. I may just add an option to reenable the default behaviour temporarily.

The _G is purely for checking globals as you say - I use luacheck to help me out.
Report comment to moderator  
Reply With Quote
Unread 01/14/22, 11:50 AM  
Baertram
Super Moderator
 
Baertram's Avatar
ESOUI Super Moderator
AddOn Author - Click to view AddOns

Forum posts: 3815
File comments: 4700
Uploads: 69
F**k Off Bastian?
Thanks for the addon!

Attention: But I guess the show companion menu does not work properly if you do not really interact with the companion!
It will show the scene etc. but everything you do will not have any effect afai was told by ZOs DanBatson!
You really need to interact with the companion manually via the default use keybind... Else the shown things are only visual but chnging skills, changing equiment and inventory does nothing as the interaction never "officially" started.

Did you try this? Does it really work? ZOs told us there is no workaround so your scenegroup showing should also be just "visual".




btw:
This is not needed as your addon's EVENT_ADD_ON_LOADED will fire after LibDebugLogger was loaded, due to your ## OptionalDependsOn: entry in your manifest txt
Code:
if (addonName == "LibDebugLogger") then
        zo_callLater(
            function()
                FOB.Logger = _G.LibDebugLogger(FOB.Name)
            end,
            2000
        )
    end
You can just move this after your code
Code:
if (addonName ~= FOB.Name) then
        return
    end
via e.g.
Lua Code:
  1. if LibDebugLogger ~= nil then
  2.    FOB.Logger = LibDebugLogger(FOB.Name)
  3.  end

And the explicitly call to _G is neither needed, but maybe on purpose for an easier global variable find?

And one idea for an imporvement if there might be added more companions to the game:
Add the companion names to a table with key = name and value = boolean true, and check the table then within your reticle checks:

Lua Code:
  1. local BASTIAN = GetCollectibleInfo(...)
  2. local MIRRI = GetCollectibleInfo(...)
  3. local companionNames = {
  4.  [BASTIAN] = true,
  5.  [MIRRI] = true,
  6. }
  7.  
  8. --In your reticel hook function
  9. ...
  10. local isCompanionAction = companionNames[interactableName] or false --the "or false" will be taken into account if there is no "interactableName" entry in the table "companionNames" -> so the return value would be nil -> changed to false
  11. if not isCompanionAction then return false end
  12.  
  13. -- companion detected - we don't want to talk to you, cancel the interaction
  14. local interactionType = GetInteractionType()
  15. EndInteraction(interactionType)
  16. return true
Last edited by Baertram : 01/14/22 at 12:03 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: