Quantcast
Download
(6 Kb)
Download
Updated: 08/06/20 08:23 PM
Compatibility:
Greymoor (6.0.5)
Updated:08/06/20 08:23 PM
Created:06/15/20 08:51 PM
Monthly downloads:87
Total downloads:754
Favorites:4
MD5:
Aldanga's Lazier Writ Precrafter
Version: 1.7.0
by: Aldanga [More]
If you want to pre-craft daily writs, you've come to the right place! You can pre-craft daily writs of any level (or any combination of levels) and save yourself precious minutes while hopping between toons for dailies.

First up, this addon would not be possible without Dolgubon and LibLazyCrafting. Many thanks to him for his help in getting this addon (particularly the multicrafting) off the ground.

Commands
/scq without any parameters will queue the maximum number of rotations that will fit in your inventory.

/scq [multipler] will craft items for selected daily writs for the desired number of rotations. A rotation is a 3-day cycle for a particular profession. With all supported professions enabled, /scq will craft 37 total items. Crafting a set of 3 rotations (via /scq 3) would queue up 111 items to be crafted, so keep that in mind when queuing up rotations.

/clearqueue will clear the current character's queue.

Settings
You can enable (or disable) professions in the settings menu.

UI
There is currently no GUI, but I am open to suggestions.

Caveats
Things may get funky if you have autocraft enabled for Dolgubon's Lazy Writ Crafter while using Precrafter. I recommend disabling LWC autocraft if you're wanting to precraft.

Queued items are NOT saved to variables, so if you crash or otherwise log out, your queue will be gone.

If you enter a station without sufficient mats to craft the entirety of that station's queue, you will force-leave the station without crafting all of the items and without any obvious messaging from the addon. I intend to add messaging support (errors and warnings) in a future update, but I figured I might as well release this to the public since it's proved so useful to myself and my wonderful testers.

Support
If you run into problems or have suggestions not covered here, please provide feedback and I will try to be as helpful as possible.
[1.7.0] - 2020-08-06
----------
Added
- /scq command now will craft the max number of items based upon your current available inventory slots (passing a number will still limit crafting to that many rotations) Thanks, @Dolgubon!
- Ability to craft in any known style, thanks to LazyWritCrafter's free style choice option Thanks, @Dolgubon!
- Warning if you try to queue more rotations than you have available inventory slots
- /scqf command in case you want to force queuing without enough available inventory slots
- Basic chat messaging when you queue a rotation (or are prevented due to available slots)

[1.6.1] - 2020-06-16
----------
Fixed
- Missing LibAddonMenu-2.0 dependency declaration

[1.6.0] - 2020-06-15
----------
First public release
Archived Files (2)
File Name
Version
Size
Uploader
Date
1.6.1
6kB
Aldanga
06/16/20 08:57 PM
1.6.0
6kB
Aldanga
06/15/20 08:51 PM


Post A Reply Comment Options
Unread 06/16/20, 06:11 AM  
Baertram
 
Baertram's Avatar
AddOn Author - Click to view AddOns

Forum posts: 3097
File comments: 3720
Uploads: 63
Hey thanks for the addon!
A hint:
I recommend disabling LWC autocraft if you're wanting to precraft.
As the settings are stored in the global SavedVariables tables, you are able to access them from your addon as well.
So maybe check the global table mentioned in DolgubonsLazyWritCrafter.txt at the ## SavedVariables: entry.
You are to inspect it via mer Torchbug ingame e.g. and see what entries are in there.
Depending on if they are characater settings, global account wide settings, settings for each server, etc. there are some subtables in the SV table, like

--Non server dependent
["default"] =
{
--subtables here
}


--Server dependent
["NA Megaserver"] =
{
--subtables here
}

and at the --subtables here entry there are tables for the current accountName e.g. ["@AccountName"] and below something like ["$AccoutnWide"] settings, or maybe something like ["81231312312321"] which is the unique character name, or if an old way of storing characters via their name is still used, you'll see ["Your character name"] there.

Below this there are stored the settings then where one would be the "Auto craft" setting. You can lookup the name of this var in Dolgubons LAM settings setFunc of this "Auto craft" entry e.g.

You would be able to use GetWorldName() for the server name, GetDisplayName() for the @AccountName, GetCurrentCharacterId() for the logged in characterId or GetUnitName("player") for your current character name (maybe you need to remove the gender specific stuff at the end of the character name! There sometimes exists a suffix like ^m or ^f for masculin or feminin. So use ZO_CachedStrFormat("<C:1>", GetUnitName("player")) to clean those up!

Maybe ask Dolgubon if this is allowed or if he provides an easy way to change the settings from your addon.
Else, if this is allowed, read the value, change it to false if true, do your addon stuff and rechange it back to true afterwards
Report comment to moderator  
Reply With Quote
Unread 06/16/20, 06:15 AM  
Baertram
 
Baertram's Avatar
AddOn Author - Click to view AddOns

Forum posts: 3097
File comments: 3720
Uploads: 63
You say
Settings
You can enable (or disable) professions in the settings menu.
But there is no settings menu via LibAddonMenu mentioned in the dependencies. You should add it as an optional info in your description!

It is referenced though inside your settings.lua file via the global library variable LibAddonMenu2.
This way it will fail to load properly as you do not assure the library, even IF present, was loaded BEFORE your addon was loaded!

To solve this you must add libraries, which CAN be loaded but MUSTN't, to the ## OptionalDependsOn: tag :

Code:
## DependsOn: LibLazyCrafting>=2996
## OptionalDependsOn: LibAddonMenu-2.0>=28
Version 2r28 was the one which introduced the global variable LibAddonMenu2
Last edited by Baertram : 06/16/20 at 06:17 AM.
Report comment to moderator  
Reply With Quote
Unread 06/16/20, 08:15 PM  
Aldanga
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 159
Uploads: 5
Originally Posted by Baertram
You say
But there is no settings menu via LibAddonMenu mentioned in the dependencies. You should add it as an optional info in your description!

*snip*
Thanks for letting me know about the missing dependency declaration. It was an unfortunate oversight as I added settings later in development and forgot to add the dependency to the manifest. I'll get that fixed.

While I appreciate your good intentions and thorough explanations, I'm well aware of how dependencies and the global table work. Given I have written or maintain relatively popular addons, I'd hope you'd give me the benefit of the doubt before spending time writing a rudimentary explanation of how to navigate through saved variables and modify them.

Sometimes other factors come into play when choosing features to include, like having a family with young children, a job, a farm, and other responsibilities. I decided, rather than to ignore the potential problems people might face or not release the addon, to simply let them know how they can work around them as my time is a very limited and precious resource, particularly during the summer months.

I appreciate all that you do on ESOUI, your libs, and how you respond to so many (sometimes ridiculous) posts on the forums here. You've been an invaluable resource to addon authors. Maybe just take your foot off the pedal a bit when dealing with experienced developers.
Last edited by Aldanga : 06/16/20 at 08:16 PM.
Report comment to moderator  
Reply With Quote
Unread 06/16/20, 09:40 PM  
Rhyono
AddOn Author - Click to view AddOns

Forum posts: 655
File comments: 1260
Uploads: 19
Baertram never tries to be insulting to other devs; he just tends to look at how things could be better and strives to steer it towards happening. I doubt he checks what people have been involved with before giving advice on the specific addon at hand.
Report comment to moderator  
Reply With Quote
Unread 06/17/20, 05:03 AM  
Baertram
 
Baertram's Avatar
AddOn Author - Click to view AddOns

Forum posts: 3097
File comments: 3720
Uploads: 63
Maybe just take your foot off the pedal a bit when dealing with experienced developers.
Thanks for the feedback.

Please don't take my posts as an attack on your coding! It was not meant to harm you or your experience
I don't know you or your experience and actually I don't even care (sounds more rude than it's meant I guess).
It just makes no difference for me at all. Please take my post "as information".

If you knew this info already, ignore it. I'm totally fine with that and do not expect any positive feedback or thank you at all.
And most probably I wont ignore other feedback, to clear things up. As one does not get an notification here about posts in addo comments etc. it might be better to personally write me a PM, so I'm able to notice and answer.
If you din't know the info yet: Either use it, maybe even improve it with your experience, or ignore it

I just saw your "Caveats" entry and thought this might be a valuable info for you, without knowing if you did already or not (about the SavedVariables).

btw:
My time is limited as well and this is also a reason I do not check whom I'm writing the information to in advance.
Some names are known to me, others aren't/weren't yet.

Nor am I able to know, from the amounts or addons e.g., if a developer is experienced, and experienced within ESO lua especially.
I'm not scanning the whole code (exception: see below at LibStub), nor do I expect this to happen with my addons (as the code is awfull , and I'm no experienced developer myself, just a hobby developer).

Checking code for "LibStub"
My "windmills I'm fighting against" are old addon templates and LibStub usages. So all I do is check the txt file and the library calls in the addons, to hint the authors about the obsolete library LibStub.
And sometimes I find such missing lines like LibAddonMenu etc. while checking for LibStub.
Last edited by Baertram : 06/17/20 at 06:20 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: