Download
(43 Kb)
Download
Updated: 09/11/18 01:07 PM
Pictures
File Info
Compatibility:
Wolfhunter (4.1)
Summerset (4.0)
Dragon Bones (3.3)
Clockwork City (3.2)
Horns of the Reach (3.1)
Morrowind (3.0)
Homestead (2.7)
One Tamriel (2.6)
Shadows of the Hist (2.5)
Dark Brotherhood (2.4)
Thieves Guild (2.3)
Updated:09/11/18 01:07 PM
Created:05/04/14 02:41 AM
Monthly downloads:292
Total downloads:43,797
Favorites:110
MD5:
CDG Bank Stacker  Popular! (More than 5000 hits)
Version: 1.14
by: CrazyDutchGuy, Garkin
CDG Bank Stacker:
CDG Bank Stacker is an Elder Scrolls Online addon that banks all your items that are in your backpack into your bank.

How does it work :
  1. Visit a bank NPC.
  2. Talk to the NPC and open your bank.
  3. For any item in your backpack it searches in your bank for a similar item.
  4. If more items can be stacked on the item in the bank, then CDGBankStack will add the item in your backpack onto the item in the bank
  5. For each item stacked into the bank it sends a message to the chat (optional)

What does it not do :
  • Create new stacks in the bank, it only fills existing stacks
  • Does not stack for the guild bank, it only works on your personal bank.
Updates :

Version 1.14 :
  • Updated for Wolfhunter
Version 1.11 :
  • API Bump and Lib Update
Version 1.10 :
  • API Bump
Version 1.9 :
  • API Bump
  • Libs Update
Version 1.8 :
  • Fixed bug with disabled option to don't move marked items
  • Items which should be always kept in player inventory won't be moved to the bank (food, drinks, potions, soul gems, lockpicks)
Version 1.7 :
  • Added option to don't move items marked by ItemSaver, FCO ItemSaver and Circonians FilterIt.
Version 1.6 :
  • Rewritten main function, it should be faster and cause smaller lag when you open bank
  • Stolen items are ignored as they can't be stored in bank
Version 1.5 :
  • API BUMP
  • Updated LibAddonMenu library
Version 1.4 :
  • API BUMP
  • Updated libraries
Version 1.3 :
  • API BUMP
Version 1.2 :
  • API 10008
Version 1.1 :
  • Fixed spacing in messages
Version 1.0 :
  • Updated for 1.2.3 : Veteran Crypt of Hearts
Version 0.7 :
  • Libraries fix
Version 0.6 :
  • Fix for sometimes not stacking item in bank when there are multiple stacks of the same kind
  • Update to LibAddonMenu-2.0
  • Don't spam addon presence to chat, there is enough spam allready in the world ...
Version 0.5 :
  • Craglorn version bump
  • Unreg from some events that were only used for initial load
Version 0.4 :
  • Dependency fix and update
Version 0.3 :
  • Bags start counting at 0 ...
  • Removed unused code, and deregister unused events.
  • When updating a stack, reevaluate the bankstack to see if we can add more.
Version 0.2 :
  • By popular demand you can now toggle the chat messages :)
  • Fixed the control characters in the itemlinks
Version 0.1 :
  • Initial release
Archived Files (16)
File Name
Version
Size
Uploader
Date
1.13
43kB
CrazyDutchGuy
08/18/16 12:39 PM
1.12
43kB
CrazyDutchGuy
06/01/16 11:51 AM
1.11
38kB
CrazyDutchGuy
03/20/16 12:44 PM
1.10
37kB
CrazyDutchGuy
11/07/15 09:01 AM
1.9
37kB
CrazyDutchGuy
09/06/15 04:58 AM
1.8
31kB
Garkin
04/12/15 10:51 PM
1.7
31kB
Garkin
04/11/15 06:26 AM
1.6
31kB
Garkin
04/10/15 05:55 AM
1.5
31kB
Garkin
03/04/15 05:46 AM
1.4a
27kB
Garkin
12/07/14 11:10 AM
1.4
27kB
Garkin
12/03/14 10:14 AM
1.3
25kB
CrazyDutchGuy
09/25/14 02:54 PM
1.2
25kB
CrazyDutchGuy
08/04/14 12:47 PM
1.1
25kB
CrazyDutchGuy
06/26/14 11:49 AM
1.0
25kB
CrazyDutchGuy
06/25/14 12:25 PM
0.7
25kB
CrazyDutchGuy
06/21/14 01:56 AM


Post A Reply Comment Options
Unread 05/05/14, 09:13 PM  
Flak

Forum posts: 0
File comments: 46
Uploads: 0
Hows about an option to disable chat display if you have your loot addon installed so it only displays to the loot window?
Report comment to moderator  
Reply With Quote
Unread 05/06/14, 01:29 AM  
CrazyDutchGuy
 
CrazyDutchGuy's Avatar
AddOn Author - Click to view AddOns

Forum posts: 89
File comments: 187
Uploads: 9
Originally Posted by Flak
Hows about an option to disable chat display if you have your loot addon installed so it only displays to the loot window?
I kinda should add a few options to it, being it barebone as it is now
Report comment to moderator  
Reply With Quote
Unread 05/08/14, 11:51 AM  
Garkin
 
Garkin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 832
File comments: 1097
Uploads: 33
Originally Posted by CrazyDutchGuy
- Fixed the control characters in the itemlinks
I have used your first version with this modification to the code:
Lua Code:
  1. --msg = "Banked " .. quantity.."/"..bagStack .. " " ..bagItemLink
  2. msg = zo_strformat("Banked <<2[1/$d]>>/<<3>> <<tm:1>>", bagItemLink, quantity, bagStack)

If you use zo_strformat("<<t:1>>", s) instead of your StripControlCharacters(s) you can display item links in the same way as all other links in game.

Code <<1>> is replaced by arguments that follows the format string.
You can also use control chracters, for example if you make it:
<<t:1>> - it means that first letter will be capitalized (this format is used by default for item links)
<<2[1/$d]>> <<m:1>> - this controls plural, so:
Code:
zo_strformat("<<2[1/$d]>> <<m:1>>", "item", 1)
returns "1 item"
Code:
zo_strformat("<<2[1/$d]>> <<tm:1>>", "item", 5)
returns "5 Items"

There are other control characters like X:, C: but there is no documentation...
Report comment to moderator  
Reply With Quote
Unread 05/08/14, 12:55 PM  
CrazyDutchGuy
 
CrazyDutchGuy's Avatar
AddOn Author - Click to view AddOns

Forum posts: 89
File comments: 187
Uploads: 9
Originally Posted by Garkin
Originally Posted by CrazyDutchGuy
- Fixed the control characters in the itemlinks
I have used your first version with this modification to the code:
Lua Code:
  1. --msg = "Banked " .. quantity.."/"..bagStack .. " " ..bagItemLink
  2. msg = zo_strformat("Banked <<2[1/$d]>>/<<3>> <<tm:1>>", bagItemLink, quantity, bagStack)

If you use zo_strformat("<<t:1>>", s) instead of your StripControlCharacters(s) you can display item links in the same way as all other links in game.

Code <<1>> is replaced by arguments that follows the format string.
You can also use control chracters, for example if you make it:
<<t:1>> - it means that first letter will be capitalized (this format is used by default for item links)
<<2[1/$d]>> <<m:1>> - this controls plural, so:
Code:
zo_strformat("<<2[1/$d]>> <<m:1>>", "item", 1)
returns "1 item"
Code:
zo_strformat("<<2[1/$d]>> <<tm:1>>", "item", 5)
returns "5 Items"

There are other control characters like X:, C: but there is no documentation...
Thanks for this info, i will merge it into the next version. So many code to dig to, and documentation is near none
Report comment to moderator  
Reply With Quote
Unread 05/17/14, 03:48 AM  
Garkin
 
Garkin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 832
File comments: 1097
Uploads: 33
Bug

I have found bug:
One of items is not moved to the bank.

It is because slotIndex starts from 0 and not from 1, so you have to change 2 lines of code:
Lua Code:
  1. for bankSlot = 0, bankSlots do
and
Lua Code:
  1. for bagSlot = 0, bagSlots do

Another comments:
Function CDGBS:EVENT_ADD_ON_LOADED will never print anything to the chat, because when this function is called, chat is not loaded yet.

It is good practise to unregister events when you do not need them, so you should add:
Lua Code:
  1. EVENT_MANAGER:UnregisterForEvent(CDGBankStack.general.addonName, EVENT_ADD_ON_LOADED)
Report comment to moderator  
Reply With Quote
Unread 05/17/14, 06:26 AM  
CrazyDutchGuy
 
CrazyDutchGuy's Avatar
AddOn Author - Click to view AddOns

Forum posts: 89
File comments: 187
Uploads: 9
Fixing ... Thanks for pointing out Garkin
Report comment to moderator  
Reply With Quote
Unread 05/17/14, 01:27 PM  
Garkin
 
Garkin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 832
File comments: 1097
Uploads: 33
Libraries

Originally Posted by CrazyDutchGuy
Fixing ... Thanks for pointing out Garkin
I have found Another bug
You do not have reference to libraries in addon manifest (.txt).
If your addon is loaded first or if you do not use another addon with LibStub and LibAddonMenu libraries, you will get an error message.

Fixed manifest:
Code:
## APIVersion: 100003
## Title: |cFF2222CrazyDutchGuy's|r Bank Stack |c0066990.3|r
## Version: 0.3
## Author: CrazyDutchGuy
## SavedVariables: CDGBankStack_SV 
## OptionalDependsOn: LibStub LibAddonMenu-1.0

LibStub/LibStub.lua 
LibAddonMenu-1.0/LibAddonMenu-1.0.lua
 
CDGBankStack.lua
CDGBankStack.xml
(btw update your LibAddonMenu-1.0 to the latest version)
Report comment to moderator  
Reply With Quote
Unread 05/17/14, 03:09 PM  
CrazyDutchGuy
 
CrazyDutchGuy's Avatar
AddOn Author - Click to view AddOns

Forum posts: 89
File comments: 187
Uploads: 9
You keep my attention away from developing my new addon Anyways, you are right. I'll fix it
Report comment to moderator  
Reply With Quote
Unread 06/20/14, 03:47 PM  
Mira
 
Mira's Avatar

Forum posts: 0
File comments: 25
Uploads: 0
Stacks

Does this addon start new stacks or just complete stacks that aren't full? Sorry wasn't clear to me in the info page.
Report comment to moderator  
Reply With Quote
Unread 06/20/14, 03:51 PM  
CrazyDutchGuy
 
CrazyDutchGuy's Avatar
AddOn Author - Click to view AddOns

Forum posts: 89
File comments: 187
Uploads: 9
Re: Stacks

Originally Posted by Mira
Does this addon start new stacks or just complete stacks that aren't full? Sorry wasn't clear to me in the info page.
It only fills up existing stacks, it doesn't create new ones
Report comment to moderator  
Reply With Quote
Unread 06/20/14, 03:54 PM  
Mira
 
Mira's Avatar

Forum posts: 0
File comments: 25
Uploads: 0
Re: Re: Stacks

Originally Posted by CrazyDutchGuy
Originally Posted by Mira
Does this addon start new stacks or just complete stacks that aren't full? Sorry wasn't clear to me in the info page.
It only fills up existing stacks, it doesn't create new ones
Good, and thanks for the quick reply.
Report comment to moderator  
Reply With Quote
Unread 06/20/14, 07:32 PM  
dominoid
AddOn Author - Click to view AddOns

Forum posts: 34
File comments: 276
Uploads: 2
I get a too many anchors error and the following error on load with the new version:

https://www.dropbox.com/s/3i5i88f2co...620_213011.JPG

I have a ton of addons, so it's possible there's a conflict, but the prior version(s) worked perfectly fine for me.


Edit: Looks like your problem is in your packaging. I moved your included "libs" to an actual "libs" sub folder as per your configuration file and it solved the problem. Also in your configuration file you reference a "Libs/LibMapPins-1.0/LibMapPins-1.0.lua". It's not included and seems unnecessary. Not sure if that harms anything though.

Thanks
Last edited by dominoid : 06/20/14 at 07:39 PM.
Report comment to moderator  
Reply With Quote
Unread 06/21/14, 01:40 AM  
CrazyDutchGuy
 
CrazyDutchGuy's Avatar
AddOn Author - Click to view AddOns

Forum posts: 89
File comments: 187
Uploads: 9
Originally Posted by dominoid
I get a too many anchors error and the following error on load with the new version:

https://www.dropbox.com/s/3i5i88f2co...620_213011.JPG

I have a ton of addons, so it's possible there's a conflict, but the prior version(s) worked perfectly fine for me.


Edit: Looks like your problem is in your packaging. I moved your included "libs" to an actual "libs" sub folder as per your configuration file and it solved the problem. Also in your configuration file you reference a "Libs/LibMapPins-1.0/LibMapPins-1.0.lua". It's not included and seems unnecessary. Not sure if that harms anything though.

Thanks
Hmm i'll fix this, was a bit lazy and made a copy/paste from another addon of mine, which uses LibMapPins ...
Report comment to moderator  
Reply With Quote
Unread 06/21/14, 12:02 PM  
Homm

Forum posts: 0
File comments: 42
Uploads: 0
Nice and clean, thanks. I suppose you won't be expanding this to autostore items based on filters? (for example I keep all runes on one mule, and autostoring them would be nice).
Report comment to moderator  
Reply With Quote
Unread 06/21/14, 12:59 PM  
CrazyDutchGuy
 
CrazyDutchGuy's Avatar
AddOn Author - Click to view AddOns

Forum posts: 89
File comments: 187
Uploads: 9
Originally Posted by Homm
Nice and clean, thanks. I suppose you won't be expanding this to autostore items based on filters? (for example I keep all runes on one mule, and autostoring them would be nice).
How do you mean this ?

Is it that you have a secondary account to store items in the bank ?
Do you have a character that stores it in his backpack, and you don't want stuff to be banked ?

The amount of filters would just be too much i guess. You can just manually create a new stack in the bank if some items don't get pushed onto the bank, cause the stack is filled or there is nothing in the bank.
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.