Mount-Mini-Me addon alternative/replacement
This is an addon on CurseForge that has been abandoned for nearly a year. The July 2018 version is broken and was uploaded that way, with a promise to release a working version SOON(TM). I greatly miss this addon, and lack programming skills, so I was wondering if anyone either knew of an alternative, or was willing to make one, or could provide LUA I could cut/paste to get it working again.
The aforementioned addon lets you pair pets and mounts, so when you mount a particular mount, it summons the paired pet, too. Let's you opt whether to unsummon the pet when you dismount. Also has dismiss pet when stealthed option. Addon is: https://www.curseforge.com/wow/addons/mount-mini-me If anyone knows of an alternative, this addon is greatly missed!!! Thanks. |
How is it broken? Are there any LUA errors?
Make sure to activate the error output by entering Code:
/console scriptErrors 1 |
According to the author, it was BFA's API changes that broke the addon, and the changes were much bigger than anticipated. Syrae's last "update," Version 8.0.0.0, bumped the version number for BfA, but only summoning on dismount was working (is supposed to summon the pet when you mount).
Apparently, BFA's API changes were daunting enough it wasn't an easy fix, and then Syrae disappeared, whether because BFA was a disappointment and they quit the game, life became too busy, or the coding was more than they wanted to deal with. I stopped using the addon when it broke at the beginning of BFA, and have just kept checking to see if it was updated every week or two. I'll install it and try to see what errors it's throwing, thanks. |
So, I've been playing around with the addon. As promised by addon author, I can set a pet I want summoned when I dismount, but the pairing of pets with mounts is broken. Addon is throwing no errors. I use Bugsack, but I also ran the script. before starting. Nada.
Can an API break an addon but not throw errors? |
I had a quick look at the Addon.
First of all, I did in fact get an error because it tries to register the events LOOT_STARTED and LOOT_STOPPED which do not exist (any more?). See MountMiniMe.lua, line 95. It should probably be LOOT_OPENED and LOOT_CLOSED? https://wowwiki.fandom.com/wiki/Events/L I commented this out: Code:
-- self:RegisterEvent("LOOT_STARTED", Addon.LootStartedHandler); I tried to locate the code that is executed when you mount up and found it in event.lua, line 21: Code:
function Addon:HandleMountStart() Code:
AddonTable.DEBUG = true; In the last line of HandleMountStart() you see the call of SummonPet() taking as its argument the return value of Addon:FindPetIdForMountSpellId(mountSpellId). Beforehand, the variable mountSpellID gets assigned the return value of FindMountSpellId(). I checked to see what it returns by adding a print() command to the code: Code:
local mountSpellId = Addon:FindMountSpellId() To see what is wrong I located FindMountSpellId() in util.lua, line 39. Code:
function Addon:FindMountSpellId() I added the line Code:
print (name, spellId) Code:
function Addon:FindMountSpellId() This seems to have done the trick I guess...? I could have told you just the solution right away, but maybe by explaining how I found it you could see that it is not too difficult. "Give a man a fish and you feed him for a day; teach a man to fish and you feed him for a lifetime." :-) |
Sorry it took me so long to respond after your post (which was on my birthday - best. gift. ever!).
Thank you SOOOO much. I'm not sure why "bugsack" didn't catch that error. Sorry about that. I do appreciate your explaining everything. I don't know programming (beyond an HTML course in the 90s) - will be referencing this next time I'm stuck! Thank you again!!! |
Haha, happy birthday then!
Glad I could help! I was assuming that you did not know a lot of programming yourself. Just thought that getting some insights into how it can be done might rid you of possible inhibitions or whet your appetite. But never mind, not everybody needs to be a programmer. :-) |
All times are GMT -6. The time now is 10:27 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI