Quantcast
Download
(57 Kb)
Download
Updated: 04/23/20 06:06 AM
Pictures
File Info
Compatibility:
Harrowstorm (5.3.5)
Dragonhold (5.2.5)
Scalebreaker (5.1.5)
Elsweyr (5.0.5)
Updated:04/23/20 06:06 AM
Created:09/13/18 10:15 AM
Monthly downloads:595
Total downloads:28,114
Favorites:95
MD5:
Categories:Character Advancement, Bags, Bank, Inventory, Info, Plug-in Bars, TradeSkill Mods, Miscellaneous
Leo's Altholic  Popular! (More than 5000 hits)
Version: 1.8.0
by: LeandroSilva [More]
An AddOn that shows several informations about your alts. For minimum impact on the game performance, the toon data is only collected upon login and logout.

Dependencies (you need to install these libs):
* LibFeedback
* LibAddonMenu-2.0

Type "/leoalt" on your chat to open the main window or use the KeyBinding.
You can use "/leoalt checklist" to show/hide the checklist

You need to login with each character for them to appear in the addon.

Need some help with translations: link in forum

You can use Leo's Trainer to manage the skill training for all alts.

Included:
- Daily Checklist (riding training and crafting dailies for now), configurable per char
- Toolbar with inventory space, timers for riding training and researching and warning icon with important messages about your characters (like mount training or research done)
- Main window with:

* Bio
* Stats
* Skills
* Champion
* Inventory (bank, bag and equipped)
* Currency
* Research
* Chat and Center Screen messages when a research is completed (all alts)
* Track Dailies
* Settings
* Untrack dailies (just right click on one)
* Automatically track writ dailies and all dailies based on settings

My addons:
Leo's Altholic
Leo's Trainer
Leo's Guild Manager
Leo's Dolmen Runner
1.8.0:
- Update 26 Greymoor compatibility
- This version is compatible with both live (Harrowstorm) and PTS (Greymoor)

1.7.12:
- Added option to disable inventory/bank tracking
- Disabling keybind strip for tack daily quest for now

1.7.11:
- Added keybind to enable/disable toolbar

1.7.10:
- Fix "Completed" in research tab
- Prevent renamed/deleted char to generate research done messages

1.7.9:
- Fix lua error for unknown research status
- Added support function for Leo's Trainer

1.7.8:
- Removed LibStub

1.7.7:
- Added "/leoalt checklist" to show/hide the checklist
- Fix to previous behavior when the checklist is completely hidden when all is done

1.7.6:
- When deliver a quest from a previous day, the checklist still marks it as pending
- Fix minimize checklist when riding training with all done
- Fix restoring checklist status (minimize/maximize) when entering/exiting a menu

1.7.5:
- Fix riding icons on toolbar and checklist
- Fix checklist to start minimized upon login if all done

1.7.4:
- fix rare lua error

1.7.3: (many thanks to Teva!!!)
- add bank size
- visual refactor

1.7.2:
- Fix inventory lua error
- Fix max skills
- Show max skills on tooltip

1.7.1:
- Fix inventory quantity after changing a tab
- Show equipped gear (for bank, use the Bank entry in the list)

1.7.0:
- Update latest api
- Removed 3rd-party libraries from package

1.6.9:
- Research tab: If you have all traits researched for a skill, it no longer shows the counters or timers for that skill
- Research tab: Only show red label for researching counters (1/3) if still has traits to research, green otherwise
- Toolbar: Only show red label for researching counters (1/3) if still has traits to research, green otherwise

1.6.8:
- Fixed an issue with marking a writ quest as ready for deliver when you have pre-crafted items

1.6.6 - 1.6.7:
- Fixed an eventual lua error during initialisation os research data (Thanks Lyonidis)

1.6.5:
- Fixed an issue with marking a writ quest as ready for deliver when you have pre-crafted items
- Research tab: Not counting completed researches on other chars but not logged in yet
- Research tab: Not showing "0m" for completed researches
- Added AddOnVersion to Add-on manifest

1.6.4:
- Stats tab: Showing correct spent stamina point stat (thanks @megnin!)
- Stats tab: Showing correct maximum stats (thanks Kyndrith)
- Inventory tab: Fixing a lua error when open the add-on the first time with a char (thanks rodneyregis) before open the bank (soul gems counter)
- Feedback window: Correctly opening it on top of main window

1.6.3
- Inventory tab: Added total in inventory and total (inventory+bank)
- Fixed center screen alert for completed research/mount training
- Fixed small alignment on writs tab icons
- Fixed inventory title between Inventory and Bank

1.6.2
- Fixed writ tab to reflect the correct stage of quests
- Sync quest stage icons in writ tab/checklist/toolbar
- Correctly detect previously crafted requirements from just added writ quests and mark as ready for deliver or as updated if not all are ready.
- Sync toolbar inventory numbers in "real time"

1.6.1
- Inventory window: Increased width
- Inventory window: Item quantity over the icon for better view
- Fixed bank space numbers

1.6.0
- Added Bank on inventory tab
- Fixed checklist done writs checks
- Colorized icons on writs tab
- Improved german translations (Thanks Baertram!!)
- Hiding riding training timer if at maximum on bio tab
- Hiding riding training timer if at maximum on checklist and toolbar
- Fixed riding scale in checklist
- Fixed incompatibility with Wykkyd's Toolbar

1.5.1
- Fixing research timer. Need to log in with each char (sorry)
- Toolbar setting fix for Bump compass
- Checklist: saving open/close status
- Checklist: scaling all items and header (Thanks Baertram)
- Checklist: disabling and checklist overlaying the ESO ESC menu entries! (Thanks Baertram)
- Several translation fixes for non english clients
- Small improvements for string format (murkmire patch)

1.5.0
- Toolbar with timers for riding training and researching and checklist items
- Checklist settings to show only on toolbar (will hide the checklist window): Need to enable checklist on toolbar
- Toolbar inventory space used / total
- Toolbar auto-center if placed on top of screen
- Toolbar setting to bump the compass down if placed on top of screen
- Fixed max rank for Legerdemain and soul magic in Skills2 tab

1.4.2
- Checklist icon stages: not started (red X), started (gray -), updated (orange V), ready for delivery (yellow V), completed (green V)
- Checklist key binding (show/hide)
- Checklist new setting: scale
- Checklist new setting: upward or downward (default)
- Checklist new setting: icons or names (default)
- Checklist auto-hide when all items are done
- Update checklist icons on quest add, update, log in and reloadui
- Fixing research finishing chat announcement

1.4.1
- Fixing jittery Compass Bar
- Colorizing research timers

1.4.0
- Daily checklist (per char)
- Toolbar (account wide)
- Fixed /leoalt command
- Better data/settings structure (compatible with previous versions, no need to log in with char)
- Initial api for other add-ons
- Better time format

1.3.8
- Adding tooltip for skills
- Improving layout of skills tabs and other tables
- Improving translations for classes and races for german (and possible other languages). Thanks Baertram!
- Fixed inventory list button. Thanks tweva!

1.3.7
- Fixing track quest through key binding

1.3.6
- Fix error in tracked quests

1.3.5
- Fixing missing quest keys from any toon

1.3.4
- Fixing crafting dailies tracking
- Closing again the window on movement or open champion scene
- Compacting again the crafting dailies layout

1.3.3
- New crafting dailies layout
- Fixed timer updated consumption
- Fixed inventory capacity tooltip

1.3.2
- Fixing crafting skills order in skills tab

1.3.1
- Fixed updated timers, specially for research

1.3.0
- Completely new layout. More compact, now all toons are visible without scroll!
- DE translation. Thanks Baertram and Gamer1986PAN
- JP translation. Thanks Siegtime
- New tabs with new layout, like Crafting Dailies
- Preparing the API for addon integration. Developers can use collected data for use in their own addons.

1.2.5
- Showing tracked daily questing again (still hiding crafting dailies, but will refactoring to separate them internally and then visually)

1.2.4
- Translated daily writs quests

1.2.3
- Fixed missing daily writ icon

1.2.2
- New Daily tab for better view. For now, only crafting writs, soon other dailies like guilds, pledges, etc
- Translation ready, will ask for help on forum

1.2.1
- Fixed level width together with champion icon

1.2.0
- Added Settings Menu
- Untrack dailies (just right click on one)
- Automatically track writ dailies and all dailies based on settings
- Code refatoring
- Fixed the timer update (mount and research)
- Added center screen message for current char for completed research (settings)

1.1.1 - 1.1.2
- Fixing a bug during parse of tracked quests when none is found

1.1.0
- Saved data per server, so now you can change NA/EU/PTS and not loose the data
- Track daily quests (For now, only 10)

1.0.1
- Murkmire compatibility

1.0.0
- Added skills tab

0.9.9
- Closing inventory window together with main window

0.9.8
- Added two buttons on the inventory list to change between the bag and equipped gear

0.9.7
- Removing debug message

0.9.6
- In this release, i needed to reset some variables, so you need to log in with each character again. Sorry :(
- Champion skills and passives
- Inventory list
- Big code refactoring

0.9.5
- Fixed an issue where the Bio tab is shown when you enter the game

0.9.4
- Fixed an issue where sometimes the game enters "cursor mode" and you have to manually exit it (. key)

0.9.3
- Code cleaning and versioning git
Beta Files (1)
File Name
Version
Hits
Size
Author
Date
1.4.0
109
94kB
LeandroSilva
10/26/18 04:11 PM


Optional Files (0)


Archived Files (58)
File Name
Version
Size
Uploader
Date
1.7.12
57kB
LeandroSilva
04/10/20 04:21 PM
1.7.11
56kB
LeandroSilva
04/01/20 03:03 PM
1.7.10
56kB
LeandroSilva
03/23/20 10:35 AM
1.7.9
56kB
LeandroSilva
03/22/20 04:43 AM
1.7.8
56kB
LeandroSilva
03/19/20 03:47 AM
1.7.7
56kB
LeandroSilva
02/18/20 08:30 AM
1.7.6
56kB
LeandroSilva
02/17/20 08:45 AM
1.7.5
56kB
LeandroSilva
02/16/20 10:00 AM
1.7.4
56kB
LeandroSilva
02/15/20 05:02 PM
1.7.3
56kB
LeandroSilva
02/15/20 07:38 AM
1.7.2
53kB
LeandroSilva
02/03/20 07:57 AM
1.7.1
53kB
LeandroSilva
02/02/20 08:56 AM
1.7.0
53kB
LeandroSilva
01/18/20 04:27 PM
1.6.9
102kB
LeandroSilva
11/10/18 06:36 AM
1.6.8
102kB
LeandroSilva
11/06/18 04:14 AM
1.6.7
102kB
LeandroSilva
11/05/18 06:34 PM
1.6.6
102kB
LeandroSilva
11/05/18 05:56 PM
1.6.5
102kB
LeandroSilva
11/05/18 09:28 AM
1.6.4
102kB
LeandroSilva
11/04/18 12:25 PM
1.6.3
102kB
LeandroSilva
11/04/18 03:53 AM
1.6.2
101kB
LeandroSilva
11/03/18 05:01 AM
1.6.1
101kB
LeandroSilva
11/02/18 03:14 AM
1.6.0
101kB
LeandroSilva
11/01/18 08:27 AM
1.5.1
100kB
LeandroSilva
10/31/18 12:26 PM
1.5.0
99kB
LeandroSilva
10/31/18 05:52 AM
1.4.2
97kB
LeandroSilva
10/30/18 06:22 AM
1.4.1
94kB
LeandroSilva
10/27/18 12:06 PM
1.4.0
94kB
LeandroSilva
10/27/18 04:38 AM
1.3.8
88kB
LeandroSilva
10/22/18 12:00 PM
1.3.7
86kB
LeandroSilva
10/20/18 06:57 AM
1.3.6
86kB
LeandroSilva
10/19/18 05:03 PM
1.3.5
86kB
LeandroSilva
10/19/18 01:32 PM
1.3.4
86kB
LeandroSilva
10/19/18 01:08 PM
1.3.3
86kB
LeandroSilva
10/19/18 07:56 AM
1.3.2
88kB
LeandroSilva
10/18/18 05:11 AM
1.3.1
89kB
LeandroSilva
10/18/18 04:41 AM
1.3.0
91kB
LeandroSilva
10/17/18 06:28 PM
1.2.5
76kB
LeandroSilva
10/15/18 11:08 AM
1.2.4
76kB
LeandroSilva
10/15/18 05:05 AM
1.2.3
77kB
LeandroSilva
10/11/18 11:54 AM
1.2.2
76kB
LeandroSilva
10/11/18 08:41 AM
1.2.1
69kB
LeandroSilva
10/06/18 06:13 PM
1.2.0
69kB
LeandroSilva
10/05/18 03:40 PM
1.1.2
17kB
LeandroSilva
09/29/18 07:25 PM
1.1.1
17kB
LeandroSilva
09/29/18 06:17 PM
1.1.0
17kB
LeandroSilva
09/29/18 07:57 AM
1.0.1
15kB
LeandroSilva
09/27/18 04:44 PM
1.0.0
15kB
LeandroSilva
09/19/18 09:33 AM
0.9.9
14kB
LeandroSilva
09/18/18 06:55 PM
0.9.8
14kB
LeandroSilva
09/18/18 06:51 PM
0.9.7
14kB
LeandroSilva
09/18/18 06:02 PM
0.9.5
14kB
LeandroSilva
09/18/18 05:58 PM
0.9.5
18kB
LeandroSilva
09/14/18 03:39 AM
0.9.4
18kB
LeandroSilva
09/14/18 03:17 AM
0.9.3
18kB
LeandroSilva
09/13/18 05:28 PM
0.9.2
78kB
LeandroSilva
09/13/18 03:56 PM
0.9.1
14kB
LeandroSilva
09/13/18 02:47 PM
0.9.0
8kB
LeandroSilva
09/13/18 10:15 AM


Post A Reply Comment Options
Unread 05/13/21, 05:47 AM  
Keresthus

Forum posts: 2
File comments: 22
Uploads: 0
Thank you Aldanga and gabbo1928!
Report comment to moderator  
Reply With Quote
Unread 05/04/21, 12:44 AM  
JohnHenryUS

Forum posts: 0
File comments: 3
Uploads: 0
Originally Posted by Aldanga
I've updated the line numbers...
Hey, boss, I wanted to take the time and say thanks for getting this into the world. My error messages have disappeared and things are back to normal, other than what you already know (obv. no champion info).
Report comment to moderator  
Reply With Quote
Unread 04/27/21, 04:52 AM  
Mythril89

Forum posts: 0
File comments: 10
Uploads: 0
please update. need this add-on
Report comment to moderator  
Reply With Quote
Unread 04/14/21, 12:14 PM  
Sylvermoon

Forum posts: 4
File comments: 21
Uploads: 0
Originally Posted by MoonDancer
I'm trying to follow along to fix it, but I did something wrong and broke it even more so I had to uninstall it and reinstall it to put it back to default. Can the author just "update" that part of the code for us so we don't have to go and edit it ourselves?
@MoonDancer - I sent you a pm about letting me help you with this, please reply.
Report comment to moderator  
Reply With Quote
Unread 04/02/21, 10:12 AM  
MoonDancer

Forum posts: 0
File comments: 31
Uploads: 0
I'm trying to follow along to fix it, but I did something wrong and broke it even more so I had to uninstall it and reinstall it to put it back to default. Can the author just "update" that part of the code for us so we don't have to go and edit it ourselves?
Report comment to moderator  
Reply With Quote
Unread 03/16/21, 05:54 PM  
araminta

Forum posts: 0
File comments: 2
Uploads: 0
@Aldanga you are a god. Thank you. I didn't even realize how much I used this add-on until I couldn't.


Originally Posted by Aldanga
I've updated the line numbers so they should match everyone else's now. Like Caelian said, just make sure you put the double dash before the lines as shown, and that will disable those sections of code and allow the rest of the addon to function until support for CP 2.0 is added.

Originally Posted by Aldanga
Line numbers have been corrected to match the default formatting.

For anyone wanting to restore usage until the champion update is incorporated, you can comment out the following lines:

LeoAltholicUI.lua, lines 138-139:

Code:
    LeoAltholicUI.statsList = LeoAltholicStatsList:New(LeoAltholicWindowStatsPanelListScroll)
    LeoAltholicUI.statsList:RefreshData()

    -- LeoAltholicUI.championList = LeoAltholicChampionList:New(LeoAltholicWindowChampionPanelListScroll)
    -- LeoAltholicUI.championList:RefreshData()

    LeoAltholicUI.skillsList = LeoAltholicSkillsList:New(LeoAltholicWindowSkillsPanelListScroll)
    LeoAltholicUI.skillsList:RefreshData()

ui/champion.lua, line 15:

Code:
    self.currentSortKey = "name"
    self.currentSortOrder = ZO_SORT_ORDER_UP
    -- ZO_ScrollList_AddDataType(self.list, 1, "LeoAltholicChampionListTemplate", 32, function(control, data) self:SetupEntry(control, data) end)

    self.sortFunction = function(listEntry1, listEntry2)
LeoAltholic.lua, lines 494-508:
Code:
    for _, attribute in ipairs({ATTRIBUTE_HEALTH, ATTRIBUTE_MAGICKA, ATTRIBUTE_STAMINA}) do
        char.champion[attribute] = {}
        char.champion[attribute].spent = 0
        char.champion[attribute].unspent = GetNumUnspentChampionPoints(attribute)
        char.champion[attribute].disciplines = {}
    end

    -- for i = 1, GetNumChampionDisciplines() do
    --     local attribute = GetChampionDisciplineAttribute(i)
    --     char.champion[attribute].disciplines[i] = {
    --         spent = GetNumPointsSpentInChampionDiscipline(i),
    --         skills = {}
    --     }
    --     char.champion[attribute].spent = char.champion[attribute].spent + char.champion[attribute].disciplines[i].spent
    --     for j = 1, GetNumChampionDisciplineSkills(i) do
    --         if WillChampionSkillBeUnlocked(i, j) then
    --             char.champion[attribute].disciplines[i].skills[j] = true
    --         else
    --             char.champion[attribute].disciplines[i].skills[j] = GetNumPointsSpentOnChampionSkill(i, j)
    --         end
    --     end
    -- end

    char.inventory = {}
    char.inventory.size = GetBagSize(BAG_BACKPACK)
    char.inventory.used = GetNumBagUsedSlots(BAG_BACKPACK)
    char.inventory.free = GetNumBagFreeSlots(BAG_BACKPACK)
Hopefully that covers all of them.
Report comment to moderator  
Reply With Quote
Unread 03/10/21, 10:08 PM  
gabbo1928

Forum posts: 0
File comments: 12
Uploads: 0
Soul Magic Fix

As long as we're poking around the LUA files to disable Champion, I also fixed the Soul Magic skill line showing a max level of 10 instead of 6 and never turning green.

This is the section that needs to be replaced towards the beginning of LeoAltholic.lua:

Code:
local DARK_BROTHERHOOD = 118
local THIEVES_GUILD = 117
local LEGERDEMAIN = 111
local SOUL_MAGIC = 72

function LeoAltholic.GetMaxRank(skillType, skillLine)
    if skillType == SKILL_TYPE_AVA or
        skillType == SKILL_TYPE_GUILD then
        local _, _, _, skillLineId = GetSkillLineInfo(skillType, skillLine)
        if skillLineId == THIEVES_GUILD then
            return 12
        end
        if skillLineId == DARK_BROTHERHOOD then
            return 12
        end
        return 10
    end
    if skillType == SKILL_TYPE_WORLD then
        local _, _, _, skillLineId = GetSkillLineInfo(skillType, skillLine)
        if skillLineId == LEGERDEMAIN then
            return 20
        end
	if skillLineId == SOUL_MAGIC then
            return 6
        end
        return 10
    end
    return 50
end
Be sure to back up your file before making any changes. I tested this, and it shows Soul Magic 6/6 and turns them all green for me now.
Last edited by gabbo1928 : 03/10/21 at 10:09 PM.
Report comment to moderator  
Reply With Quote
Unread 03/09/21, 09:09 AM  
Lukaskiboss

Forum posts: 0
File comments: 10
Uploads: 0
Originally Posted by Aldanga
Basically what these changes do, is remove support for the CP tracking/displaying in the original LeoAltholic addon, which is the part that is currently broken, since it's incompatible with the new CP 2.0 system.

By removing the parts of the addon that try to still interface with the old CP 1.0 system, we essentially disable the broken bits, that cause the addon to misbehave, which allows the rest of the addon to work as originally intended again.

The code sections above are effectively the blueprint of what you need to remove/disable in which files (with some line numbers to indicate where in those files to find the broken bits).

The programming language the addons are written in (Lua) use -- to indicate anything after those characters until the end of the line, is considered a comment and not part of the actual program code.

So by prefixing any of the CP-related code parts with those -- characters, you're effectively disabling those parts of the addon's code.
Thanks for your answer. I understood that the -- disabled the codes thanks to Notepad++ previously but it was unclear to me whether I should edit/ add specifics from my characters or not. But it's not where my characters' data is stored to begin with so I'm an idiot xD

Thanks for clearing my doubts.
Last edited by Lukaskiboss : 03/09/21 at 09:15 AM.
Report comment to moderator  
Reply With Quote
Unread 03/09/21, 08:47 AM  
Aldanga
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 236
Uploads: 5
I've updated the line numbers so they should match everyone else's now. Like Caelian said, just make sure you put the double dash before the lines as shown, and that will disable those sections of code and allow the rest of the addon to function until support for CP 2.0 is added.

Originally Posted by Aldanga
Line numbers have been corrected to match the default formatting.

For anyone wanting to restore usage until the champion update is incorporated, you can comment out the following lines:

LeoAltholicUI.lua, lines 138-139:

Code:
    LeoAltholicUI.statsList = LeoAltholicStatsList:New(LeoAltholicWindowStatsPanelListScroll)
    LeoAltholicUI.statsList:RefreshData()

    -- LeoAltholicUI.championList = LeoAltholicChampionList:New(LeoAltholicWindowChampionPanelListScroll)
    -- LeoAltholicUI.championList:RefreshData()

    LeoAltholicUI.skillsList = LeoAltholicSkillsList:New(LeoAltholicWindowSkillsPanelListScroll)
    LeoAltholicUI.skillsList:RefreshData()

ui/champion.lua, line 15:

Code:
    self.currentSortKey = "name"
    self.currentSortOrder = ZO_SORT_ORDER_UP
    -- ZO_ScrollList_AddDataType(self.list, 1, "LeoAltholicChampionListTemplate", 32, function(control, data) self:SetupEntry(control, data) end)

    self.sortFunction = function(listEntry1, listEntry2)
LeoAltholic.lua, lines 494-508:
Code:
    for _, attribute in ipairs({ATTRIBUTE_HEALTH, ATTRIBUTE_MAGICKA, ATTRIBUTE_STAMINA}) do
        char.champion[attribute] = {}
        char.champion[attribute].spent = 0
        char.champion[attribute].unspent = GetNumUnspentChampionPoints(attribute)
        char.champion[attribute].disciplines = {}
    end

    -- for i = 1, GetNumChampionDisciplines() do
    --     local attribute = GetChampionDisciplineAttribute(i)
    --     char.champion[attribute].disciplines[i] = {
    --         spent = GetNumPointsSpentInChampionDiscipline(i),
    --         skills = {}
    --     }
    --     char.champion[attribute].spent = char.champion[attribute].spent + char.champion[attribute].disciplines[i].spent
    --     for j = 1, GetNumChampionDisciplineSkills(i) do
    --         if WillChampionSkillBeUnlocked(i, j) then
    --             char.champion[attribute].disciplines[i].skills[j] = true
    --         else
    --             char.champion[attribute].disciplines[i].skills[j] = GetNumPointsSpentOnChampionSkill(i, j)
    --         end
    --     end
    -- end

    char.inventory = {}
    char.inventory.size = GetBagSize(BAG_BACKPACK)
    char.inventory.used = GetNumBagUsedSlots(BAG_BACKPACK)
    char.inventory.free = GetNumBagFreeSlots(BAG_BACKPACK)
Hopefully that covers all of them.
Report comment to moderator  
Reply With Quote
Unread 03/09/21, 08:18 AM  
Sylvermoon

Forum posts: 4
File comments: 21
Uploads: 0
@Aldanga - thank you very much for the fix!
Report comment to moderator  
Reply With Quote
Unread 03/09/21, 08:03 AM  
Caelian

Forum posts: 0
File comments: 8
Uploads: 0
Originally Posted by Lukaskiboss
Hello, I don't really understand here. Are we supposed to manually add our character's info for each one of them or the lines there fixes it ? Because it seems identical to me.

Even If I were to put infos manually, I don't really understand how am I supposed to do.

Could you help me a bit ?


Originally Posted by TagCdog
Hi @Aldanga, your fix worked (although my line numbers didn't match yours so thanks for providing the actual code)!!!

Btw, this also makes LeoTrainer work again too.

Originally Posted by Aldanga
For anyone wanting to restore usage until the champion update is incorporated, you can comment out the following lines:

LeoAltholicUI.lua, lines 143-144:

Code:
    LeoAltholicUI.statsList = LeoAltholicStatsList:New(LeoAltholicWindowStatsPanelListScroll)
    LeoAltholicUI.statsList:RefreshData()

    -- LeoAltholicUI.championList = LeoAltholicChampionList:New(LeoAltholicWindowChampionPanelListScroll)
    -- LeoAltholicUI.championList:RefreshData()

    LeoAltholicUI.skillsList = LeoAltholicSkillsList:New(LeoAltholicWindowSkillsPanelListScroll)
    LeoAltholicUI.skillsList:RefreshData()

ui/champion.lua, line 12:

Code:
    self.currentSortKey = "name"
    self.currentSortOrder = ZO_SORT_ORDER_UP
    -- ZO_ScrollList_AddDataType(self.list, 1, "LeoAltholicChampionListTemplate", 32, function(control, data) self:SetupEntry(control, data) end)

    self.sortFunction = function(listEntry1, listEntry2)
LeoAltholic.lua, lines 575-589:
Code:
    for _, attribute in ipairs({ATTRIBUTE_HEALTH, ATTRIBUTE_MAGICKA, ATTRIBUTE_STAMINA}) do
        char.champion[attribute] = {}
        char.champion[attribute].spent = 0
        char.champion[attribute].unspent = GetNumUnspentChampionPoints(attribute)
        char.champion[attribute].disciplines = {}
    end

    -- for i = 1, GetNumChampionDisciplines() do
    --     local attribute = GetChampionDisciplineAttribute(i)
    --     char.champion[attribute].disciplines[i] = {
    --         spent = GetNumPointsSpentInChampionDiscipline(i),
    --         skills = {}
    --     }
    --     char.champion[attribute].spent = char.champion[attribute].spent + char.champion[attribute].disciplines[i].spent
    --     for j = 1, GetNumChampionDisciplineSkills(i) do
    --         if WillChampionSkillBeUnlocked(i, j) then
    --             char.champion[attribute].disciplines[i].skills[j] = true
    --         else
    --             char.champion[attribute].disciplines[i].skills[j] = GetNumPointsSpentOnChampionSkill(i, j)
    --         end
    --     end
    -- end

    char.inventory = {}
    char.inventory.size = GetBagSize(BAG_BACKPACK)
    char.inventory.used = GetNumBagUsedSlots(BAG_BACKPACK)
    char.inventory.free = GetNumBagFreeSlots(BAG_BACKPACK)
Hopefully that covers all of them.
Basically what these changes do, is remove support for the CP tracking/displaying in the original LeoAltholic addon, which is the part that is currently broken, since it's incompatible with the new CP 2.0 system.

By removing the parts of the addon that try to still interface with the old CP 1.0 system, we essentially disable the broken bits, that cause the addon to misbehave, which allows the rest of the addon to work as originally intended again.

The code sections above are effectively the blueprint of what you need to remove/disable in which files (with some line numbers to indicate where in those files to find the broken bits).

The programming language the addons are written in (Lua) use -- to indicate anything after those characters until the end of the line, is considered a comment and not part of the actual program code.

So by prefixing any of the CP-related code parts with those -- characters, you're effectively disabling those parts of the addon's code.
Report comment to moderator  
Reply With Quote
Unread 03/09/21, 07:16 AM  
Lukaskiboss

Forum posts: 0
File comments: 10
Uploads: 0
Hello, I don't really understand here. Are we supposed to manually add our character's info for each one of them or the lines there fixes it ? Because it seems identical to me.

Even If I were to put infos manually, I don't really understand how am I supposed to do.

Could you help me a bit ?


Originally Posted by TagCdog
Hi @Aldanga, your fix worked (although my line numbers didn't match yours so thanks for providing the actual code)!!!

Btw, this also makes LeoTrainer work again too.

Originally Posted by Aldanga
For anyone wanting to restore usage until the champion update is incorporated, you can comment out the following lines:

LeoAltholicUI.lua, lines 143-144:

Code:
    LeoAltholicUI.statsList = LeoAltholicStatsList:New(LeoAltholicWindowStatsPanelListScroll)
    LeoAltholicUI.statsList:RefreshData()

    -- LeoAltholicUI.championList = LeoAltholicChampionList:New(LeoAltholicWindowChampionPanelListScroll)
    -- LeoAltholicUI.championList:RefreshData()

    LeoAltholicUI.skillsList = LeoAltholicSkillsList:New(LeoAltholicWindowSkillsPanelListScroll)
    LeoAltholicUI.skillsList:RefreshData()

ui/champion.lua, line 12:

Code:
    self.currentSortKey = "name"
    self.currentSortOrder = ZO_SORT_ORDER_UP
    -- ZO_ScrollList_AddDataType(self.list, 1, "LeoAltholicChampionListTemplate", 32, function(control, data) self:SetupEntry(control, data) end)

    self.sortFunction = function(listEntry1, listEntry2)
LeoAltholic.lua, lines 575-589:
Code:
    for _, attribute in ipairs({ATTRIBUTE_HEALTH, ATTRIBUTE_MAGICKA, ATTRIBUTE_STAMINA}) do
        char.champion[attribute] = {}
        char.champion[attribute].spent = 0
        char.champion[attribute].unspent = GetNumUnspentChampionPoints(attribute)
        char.champion[attribute].disciplines = {}
    end

    -- for i = 1, GetNumChampionDisciplines() do
    --     local attribute = GetChampionDisciplineAttribute(i)
    --     char.champion[attribute].disciplines[i] = {
    --         spent = GetNumPointsSpentInChampionDiscipline(i),
    --         skills = {}
    --     }
    --     char.champion[attribute].spent = char.champion[attribute].spent + char.champion[attribute].disciplines[i].spent
    --     for j = 1, GetNumChampionDisciplineSkills(i) do
    --         if WillChampionSkillBeUnlocked(i, j) then
    --             char.champion[attribute].disciplines[i].skills[j] = true
    --         else
    --             char.champion[attribute].disciplines[i].skills[j] = GetNumPointsSpentOnChampionSkill(i, j)
    --         end
    --     end
    -- end

    char.inventory = {}
    char.inventory.size = GetBagSize(BAG_BACKPACK)
    char.inventory.used = GetNumBagUsedSlots(BAG_BACKPACK)
    char.inventory.free = GetNumBagFreeSlots(BAG_BACKPACK)
Hopefully that covers all of them.
Report comment to moderator  
Reply With Quote
Unread 03/08/21, 10:37 PM  
TagCdog

Forum posts: 17
File comments: 35
Uploads: 0
Hi @Aldanga, your fix worked (although my line numbers didn't match yours so thanks for providing the actual code)!!!

Btw, this also makes LeoTrainer work again too.

Originally Posted by Aldanga
For anyone wanting to restore usage until the champion update is incorporated, you can comment out the following lines:

LeoAltholicUI.lua, lines 143-144:

Code:
    LeoAltholicUI.statsList = LeoAltholicStatsList:New(LeoAltholicWindowStatsPanelListScroll)
    LeoAltholicUI.statsList:RefreshData()

    -- LeoAltholicUI.championList = LeoAltholicChampionList:New(LeoAltholicWindowChampionPanelListScroll)
    -- LeoAltholicUI.championList:RefreshData()

    LeoAltholicUI.skillsList = LeoAltholicSkillsList:New(LeoAltholicWindowSkillsPanelListScroll)
    LeoAltholicUI.skillsList:RefreshData()

ui/champion.lua, line 12:

Code:
    self.currentSortKey = "name"
    self.currentSortOrder = ZO_SORT_ORDER_UP
    -- ZO_ScrollList_AddDataType(self.list, 1, "LeoAltholicChampionListTemplate", 32, function(control, data) self:SetupEntry(control, data) end)

    self.sortFunction = function(listEntry1, listEntry2)
LeoAltholic.lua, lines 575-589:
Code:
    for _, attribute in ipairs({ATTRIBUTE_HEALTH, ATTRIBUTE_MAGICKA, ATTRIBUTE_STAMINA}) do
        char.champion[attribute] = {}
        char.champion[attribute].spent = 0
        char.champion[attribute].unspent = GetNumUnspentChampionPoints(attribute)
        char.champion[attribute].disciplines = {}
    end

    -- for i = 1, GetNumChampionDisciplines() do
    --     local attribute = GetChampionDisciplineAttribute(i)
    --     char.champion[attribute].disciplines[i] = {
    --         spent = GetNumPointsSpentInChampionDiscipline(i),
    --         skills = {}
    --     }
    --     char.champion[attribute].spent = char.champion[attribute].spent + char.champion[attribute].disciplines[i].spent
    --     for j = 1, GetNumChampionDisciplineSkills(i) do
    --         if WillChampionSkillBeUnlocked(i, j) then
    --             char.champion[attribute].disciplines[i].skills[j] = true
    --         else
    --             char.champion[attribute].disciplines[i].skills[j] = GetNumPointsSpentOnChampionSkill(i, j)
    --         end
    --     end
    -- end

    char.inventory = {}
    char.inventory.size = GetBagSize(BAG_BACKPACK)
    char.inventory.used = GetNumBagUsedSlots(BAG_BACKPACK)
    char.inventory.free = GetNumBagFreeSlots(BAG_BACKPACK)
Hopefully that covers all of them.
Report comment to moderator  
Reply With Quote
Unread 03/08/21, 06:48 PM  
Aldanga
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 236
Uploads: 5
Line numbers have been corrected to match the default formatting.

For anyone wanting to restore usage until the champion update is incorporated, you can comment out the following lines:

LeoAltholicUI.lua, lines 138-139:

Code:
    LeoAltholicUI.statsList = LeoAltholicStatsList:New(LeoAltholicWindowStatsPanelListScroll)
    LeoAltholicUI.statsList:RefreshData()

    -- LeoAltholicUI.championList = LeoAltholicChampionList:New(LeoAltholicWindowChampionPanelListScroll)
    -- LeoAltholicUI.championList:RefreshData()

    LeoAltholicUI.skillsList = LeoAltholicSkillsList:New(LeoAltholicWindowSkillsPanelListScroll)
    LeoAltholicUI.skillsList:RefreshData()

ui/champion.lua, line 15:

Code:
    self.currentSortKey = "name"
    self.currentSortOrder = ZO_SORT_ORDER_UP
    -- ZO_ScrollList_AddDataType(self.list, 1, "LeoAltholicChampionListTemplate", 32, function(control, data) self:SetupEntry(control, data) end)

    self.sortFunction = function(listEntry1, listEntry2)
LeoAltholic.lua, lines 494-508:
Code:
    for _, attribute in ipairs({ATTRIBUTE_HEALTH, ATTRIBUTE_MAGICKA, ATTRIBUTE_STAMINA}) do
        char.champion[attribute] = {}
        char.champion[attribute].spent = 0
        char.champion[attribute].unspent = GetNumUnspentChampionPoints(attribute)
        char.champion[attribute].disciplines = {}
    end

    -- for i = 1, GetNumChampionDisciplines() do
    --     local attribute = GetChampionDisciplineAttribute(i)
    --     char.champion[attribute].disciplines[i] = {
    --         spent = GetNumPointsSpentInChampionDiscipline(i),
    --         skills = {}
    --     }
    --     char.champion[attribute].spent = char.champion[attribute].spent + char.champion[attribute].disciplines[i].spent
    --     for j = 1, GetNumChampionDisciplineSkills(i) do
    --         if WillChampionSkillBeUnlocked(i, j) then
    --             char.champion[attribute].disciplines[i].skills[j] = true
    --         else
    --             char.champion[attribute].disciplines[i].skills[j] = GetNumPointsSpentOnChampionSkill(i, j)
    --         end
    --     end
    -- end

    char.inventory = {}
    char.inventory.size = GetBagSize(BAG_BACKPACK)
    char.inventory.used = GetNumBagUsedSlots(BAG_BACKPACK)
    char.inventory.free = GetNumBagFreeSlots(BAG_BACKPACK)
Hopefully that covers all of them.
Last edited by Aldanga : 03/09/21 at 08:46 AM.
Report comment to moderator  
Reply With Quote
Unread 03/08/21, 06:01 PM  
Random

Forum posts: 0
File comments: 31
Uploads: 0
I took a peek at the error vs the code.
It's running afoul of the CP rework. Several of the key functions changed. Also, the addon is trying to work out what perks you had unlocked in each line, which is completely irrelevant now.
Basically, looks like it's going to take a meaningful amount of work to repair. And doesn't looks like author has made an update to any of their mods in close to a year. Let's hope they come back soon.

Anyone know of any other like minded addons?
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.