Page 1 of 2 12 LastLast
Results 1 to 20 of 21
  1. #1
    Community Member SpartanKiller13's Avatar
    Join Date
    Jan 2014
    Posts
    3,644

    Default Cannith Deconstuction Script

    I wrote a script to speed the agonizing process of deconstruction, and wanted some forum input on it as well as to make it available for anyone who doesn't already have one. I'm not quite sure where I'm supposed to put this, but if there's a proper spot please let me know. I figured here I'd get the most views and flames

    Devs have stated that they are fine with scripts that improve QoL, as long as you aren't using them to do things that aren't possible normally.

    It's written in AutoHotKey (hereafter AHK) which is a tool for easily creating macros. If you don't already have it I would suggest looking into it.

    To use the script:
    1) Make sure you have AHK downloaded.
    2) Copy the code below into Notepad etc.
    3) Save it as WhateverYouWant.ahk (mine is named Deconstructor).
    4) Run the script.
    5) In DDO, go to the Item Deconstruction Device, open the interface.
    6) Shift+Right Click on the left-most grey box in the "Your Ingredients" tab (see image below). This sets the target location for the current usage.
    7) Shift+Left Click on items you want gone. Repeat as necessary.
    8) Press Escape to close script.



    Repeat steps 4-8 the next time you go to deconstruct.

    Code:
    #SingleInstance Force				; prevents multiple instances of script
    CoordMode, Mouse, Screen			; sets coordinates to absolute
    
    SetupX :=  	  				; X position of drop point
    SetupY := 	 				; Y position of drop point
    DissX := 	  				; X position of dissolve point
    DissY := 	  				; Y position of dissolve point
    DecoX := 	 	 			; X position of deconstruct point
    DecoY := 		  			; Y position of deconstruct point
    
    +RButton:: 					; Shift-Right Click on left box of drop point to set up
    MouseGetPos, SetupX, SetupY			; get current mouse position for setup
    DissX := SetupX + 30				
    DissY := SetupY - 190
    DecoX := SetupX + 200
    DecoY := SetupY + 30
    return
    
    +LButton::					; Shift+Left Click on item to be deconstructed
    MouseGetPos, VarX, VarY				; get current mouse positon
    BlockInput On					; prevent user input
    MouseClickDrag, L, , , %SetupX%, %SetupY% 	; click and drag to drop point
    Sleep 200 					; wait, not always long enough
    Click %DissX%, %DissY%				; click on dissolve
    Sleep 50					; brief delay
    Click %DecoX%, %DecoY%				; click on deconstruct
    MouseMove, %VarX%, %VarY%			; move mouse to start location 
    BlockInput Off					; allow user input
    return
    
    ^D:: 						; Ctrl-D displays your current variables
    MsgBox %SetupX%, %SetupY% Setup X/Y		; drop point
     ,`n%DissX%, %DissY% Diss X/Y			; dissolve point
     ,`n%DecoX%, %DecoY% Deco X/Y			; deconstruct point
    return
    
    Esc::         					; Escape closes this
    ExitApp
    Return

    If you keep your Item Deconstruction Window in a set location, you can edit the default locations so you can skip step 6. Simply run it as normal, and after step 6 alt-tab to the script, press Ctrl+D, and enter the variables found there into the variable section at the start of the script (example below). It's possible to do this automatically through use of a .ini or similar file, but I wanted to keep this script as simple and user-friendly as possible (which is why the comments are so detailed).

    Code:
    SetupX := 2160
    The current issue I'm having is that the time between when you drop your item in and when the Dissolve option appears is variable. If you are patient feel free to edit that sleep longer and always hit it, but I find that 0.2s is long enough for ~95% of my deconstruction and you can just shift-click again if it misses the first time.

    Code:
    MouseClickDrag, L, , , %SetupX%, %SetupY% 	; click and drag to drop point
    Sleep 1000 				; for those of you patient people
    I considered color matching etc but that's hard without adding a lot of complexity especially if you consider different monitor settings etc.

    TL;DR: OP is a nerd who spent way too long writing a tool to save ~5 actions per deconstruction.

    I'd really appreciate any input. Thank you!
    Last edited by SpartanKiller13; 05-10-2017 at 10:04 AM.
    -Khysiria of Cannith
    Quote Originally Posted by zehnvhex View Post
    Warlock is basically a ghetto Shiradi Sorc. You gives up some of the damage and self sustain for the ability to just hold down left click and yolo blast your way to victory.
    Quote Originally Posted by Lynnabel View Post
    It's DDO. There are probably 6 different types of Evil damage.

  2. #2
    Community Member Deathlylife's Avatar
    Join Date
    May 2014
    Posts
    95

    Smile Thank you

    Thank you for an amazing solution to the continuous drag and drop that happens after every few quests. It is simple to learn and use (took only 2 minutes to figure out).

    The only issue I have run into is that it will not work if the dissolver is in your shared ingredients bank. If the dissolver is in the shared ingredients bank, it stays populated in the item deconstruction window. This will force the "dissolve shard" option to be the first and only option rather then the second option in the window. The script currently will only try and click the location of the second non-existant option, causing your item to not be deconstructed and nothing happen.
    The easiest solution is to just keep the dissolver somewhere other than your shared ingredient bank (inventory and ingredient bag both work fine). This is not much of an issue as a large ingredient bag is easy to obtain and stacks the dissolver up to 2500. I am only mentioning it in case others happen to have this issue and want a quick fix without changing the code.

    Again, this code is awesome and is a must if you like to deconstruct everything you loot when your inventory fills up like mine does every few quests...

    Deathly of Thelanis
    Deathlytime, Deathlysoul, Deathlylife, Deathfists
    Thelanis

  3. #3
    Community Member SpartanKiller13's Avatar
    Join Date
    Jan 2014
    Posts
    3,644

    Default :) Glad to help!

    Quote Originally Posted by Deathlylife View Post
    Thank you for an amazing solution to the continuous drag and drop that happens after every few quests. It is simple to learn and use (took only 2 minutes to figure out).

    The only issue I have run into is that it will not work if the dissolver is in your shared ingredients bank. If the dissolver is in the shared ingredients bank, it stays populated in the item deconstruction window. This will force the "dissolve shard" option to be the first and only option rather then the second option in the window. The script currently will only try and click the location of the second non-existant option, causing your item to not be deconstructed and nothing happen.
    The easiest solution is to just keep the dissolver somewhere other than your shared ingredient bank (inventory and ingredient bag both work fine). This is not much of an issue as a large ingredient bag is easy to obtain and stacks the dissolver up to 2500. I am only mentioning it in case others happen to have this issue and want a quick fix without changing the code.

    Again, this code is awesome and is a must if you like to deconstruct everything you loot when your inventory fills up like mine does every few quests...

    Deathly of Thelanis
    Thanks for the feedback! I just noticed the typo in the title

    I wrote a quick and dirty version then spent a while making it user-friendly, happy that the results show.

    I didn't think about dissolvers working from Shared Bank, because they only stack in 100s there which is a huge waste when I have 800 in my bag.

    I'll look into that later, as well seeing if I can change the setup so that you only need the first coordinates.
    I guess there could be one script for each? Otherwise you'd have to edit the code, or have a toggle option on startup (both of which are a pain).

    Did you have any issues with timing? I found that occasionally an item would get dropped in but wouldn't deconstruct (the window took too long to load) but you can just shift-click again to fix that.

    Possibly having Dissolvers in Shared Bank will stop that because the dissolve option would be auto-populated, so it might actually be faster that way.
    -Khysiria of Cannith
    Quote Originally Posted by zehnvhex View Post
    Warlock is basically a ghetto Shiradi Sorc. You gives up some of the damage and self sustain for the ability to just hold down left click and yolo blast your way to victory.
    Quote Originally Posted by Lynnabel View Post
    It's DDO. There are probably 6 different types of Evil damage.

  4. #4
    Community Member Deathlylife's Avatar
    Join Date
    May 2014
    Posts
    95

    Default

    Quote Originally Posted by SpartanKiller13 View Post
    Did you have any issues with timing? I found that occasionally an item would get dropped in but wouldn't deconstruct (the window took too long to load) but you can just shift-click again to fix that.
    I had no issues with the timing as given. It went well and I even decreased sleep 200 to 50 without any problems. From what I can tell it is most dependent on the computer RAM and processing power. While using sleep 50 I watched task manager and saw spikes in RAM and processing. Not sure of the exact numbers so I will do more tests once I obtain more loot.

    Deathly of Thelanis
    Deathlytime, Deathlysoul, Deathlylife, Deathfists
    Thelanis

  5. #5
    Community Member SpartanKiller13's Avatar
    Join Date
    Jan 2014
    Posts
    3,644

    Default

    Quote Originally Posted by Deathlylife View Post
    I had no issues with the timing as given. It went well and I even decreased sleep 200 to 50 without any problems. From what I can tell it is most dependent on the computer RAM and processing power. While using sleep 50 I watched task manager and saw spikes in RAM and processing. Not sure of the exact numbers so I will do more tests once I obtain more loot.

    Deathly of Thelanis
    Thanks for the testing!

    I started at 50 but DDO wasn't happy. Maybe I should turn my settings down from Ultra

    You're not going to benefit much from below 50, that's already 1/20th of a second.
    -Khysiria of Cannith
    Quote Originally Posted by zehnvhex View Post
    Warlock is basically a ghetto Shiradi Sorc. You gives up some of the damage and self sustain for the ability to just hold down left click and yolo blast your way to victory.
    Quote Originally Posted by Lynnabel View Post
    It's DDO. There are probably 6 different types of Evil damage.

  6. #6
    Community Member Deathlylife's Avatar
    Join Date
    May 2014
    Posts
    95

    Default Testing

    I have done some testing.

    Each test consisted of deconstruction of 20 items all in the same inventory bag. I deconstructed as fast as the script would allow me for each trial. The values are all averaged over the total deconstruction time.

    Sleep RAM (GB) CPU (%) FPS Latency (ms) Hiccups
    No Script 4.6 5% 115 70 N/A
    Script Inactive 4.6 6% 110 70 N/A
    50 4.7 12% 110 71 2
    100 4.7 11% 110 70 1
    150 4.7 9% 111 70 1
    200 4.7 8% 110 71 0

    Note: Hiccups is the number of items I had to click on an item again. In my case, the hiccups were the item not even populating the deconstruction window. This is most likely caused by server lag or bad internet. I never once experienced the item populating the window but not being deconstructed as was stated by OP, leading me to believe it is not my machine but rather the server or internet.

    After the testing it seems clear that for my computer it is only affected by my processor. I can assume that weaker processors would require a longer sleep time to avoid hiccups.
    Even then I believe internet connection is also a large factor (refer to note). If you have a good processor and good internet I would suspect little to no hiccups at low sleep values.

    If anyone is wondering about the computer specs used for testing:
    DDO Graphics: Ultra High with DirectX11
    RAM: 16GB + 2GB VRAM
    Processor: i7-6700HQ overclocked at 3.24 GHz
    Internet: 12MB down, 4MB up (router frequently drops internet every few days for a few minutes and will randomly lose data fairly frequently causing internet suspect)

    Hope this helped.

    Deathly of Thelanis
    Deathlytime, Deathlysoul, Deathlylife, Deathfists
    Thelanis

  7. #7
    Community Member SpartanKiller13's Avatar
    Join Date
    Jan 2014
    Posts
    3,644

    Default

    Quote Originally Posted by Deathlylife View Post
    I have done some testing.

    In my case, the hiccups were the item not even populating the deconstruction window. This is most likely caused by server lag or bad internet. I never once experienced the item populating the window but not being deconstructed as was stated by OP, leading me to believe it is not my machine but rather the server or internet.

    After the testing it seems clear that for my computer it is only affected by my processor. I can assume that weaker processors would require a longer sleep time to avoid hiccups.
    Even then I believe internet connection is also a large factor (refer to note). If you have a good processor and good internet I would suspect little to no hiccups at low sleep values.

    If anyone is wondering about the computer specs used for testing:
    DDO Graphics: Ultra High with DirectX11
    RAM: 16GB + 2GB VRAM
    Processor: i7-6700HQ overclocked at 3.24 GHz
    Internet: 12MB down, 4MB up (router frequently drops internet every few days for a few minutes and will randomly lose data fairly frequently causing internet suspect)

    Hope this helped.

    Deathly of Thelanis
    I haven't had nearly that much stuff to deco recently (I'm farming heart seeds) so thank you for your testing. Looks like ~100 is the sweet spot for speed, or 200 for accuracy. I assumed errors were server lag, as even when you manually operate the deco machine the time before the recipes change is visibly variable; your testing seems to indicate this as well.

    DDO Graphics: Ultra High with DirectX11
    RAM: 8 GB
    Processor: i7-4720HQ @2.60 GHz
    Internet: 10MB down, 3MB up (usually works fairly well)

    I'm usually ~10% CPU and 5.4 GB RAM (1.1 for DDO) but I do think the graphics card has a lot to do with the load b/c my fans get a bit worked up at UHD (Laptop).

    I don't know that good internet and processor will help, if it's server side it doesn't matter lol.

    Either way, it seems to be working pretty well, so glad you're getting some good use out of it

    Thank you again!
    -Khysiria of Cannith
    Quote Originally Posted by zehnvhex View Post
    Warlock is basically a ghetto Shiradi Sorc. You gives up some of the damage and self sustain for the ability to just hold down left click and yolo blast your way to victory.
    Quote Originally Posted by Lynnabel View Post
    It's DDO. There are probably 6 different types of Evil damage.

  8. #8
    The Hatchery
    2015 DDO Players Council
    2017-2021 PC Member
    LrdSlvrhnd's Avatar
    Join Date
    Sep 2009
    Posts
    0

    Default

    Having just discovered this script recently, and used it for the first time... wow! I just deconned ~150 items in just a few minutes, and that's including a trip to grab more loot out of the shared bank! Very impressive.
    "Ignorance killed the cat, sir; curiosity was framed."
    Tripoint, C.J. Cherryh

  9. #9

    Default

    Any chance you can ask Cordovan to move this to the Crafting forums? Much easier to find there...

  10. #10
    Community Member SpartanKiller13's Avatar
    Join Date
    Jan 2014
    Posts
    3,644

    Default

    Quote Originally Posted by LrdSlvrhnd View Post
    Having just discovered this script recently, and used it for the first time... wow! I just deconned ~150 items in just a few minutes, and that's including a trip to grab more loot out of the shared bank! Very impressive.
    Thanks! Glad to help out, I really like how well it works. Seems nobody has any problems yet, but it's a small sample size :P
    Do you have any comments/recommendations or things you want changed?

    Quote Originally Posted by EllisDee37 View Post
    Any chance you can ask Cordovan to move this to the Crafting forums? Much easier to find there...
    Certainly! Although TBH I don't think I've ever used the Crafting forums :P I put it here in hopes it would get more response, but that's apparently not the case.

    Did you try it out? Any feedback? Do you have any advice as to where/how to post a compiled .exe file? That might be easier for people (don't have to download AHK) but I'm always dubious about running random .exe files from the internet which is why I formatted it as such.

    @Cordovan, if you're willing to move this to the Crafting forums that would be greatly appreciated. Thanks in advance!
    -Khysiria of Cannith
    Quote Originally Posted by zehnvhex View Post
    Warlock is basically a ghetto Shiradi Sorc. You gives up some of the damage and self sustain for the ability to just hold down left click and yolo blast your way to victory.
    Quote Originally Posted by Lynnabel View Post
    It's DDO. There are probably 6 different types of Evil damage.

  11. #11
    Senior Member
    Join Date
    Sep 2011
    Posts
    0

    Default

    Tested it just now - it works like a charm. Thanks for sharing.

    I could even see extending it to deconning a full page in the inventory rather than just one item. Maybe shift+ctlr+lclick on the top left item on a page to start deconning the entire page
    Member of Spellswords on Ghallanda

  12. #12
    Community Member SpartanKiller13's Avatar
    Join Date
    Jan 2014
    Posts
    3,644

    Default

    Quote Originally Posted by mikarddo View Post
    Tested it just now - it works like a charm. Thanks for sharing.

    I could even see extending it to deconning a full page in the inventory rather than just one item. Maybe shift+ctlr+lclick on the top left item on a page to start deconning the entire page
    Glad to help!

    I could look into adding that, but my immediate concern is if our icons are the same size - especially if we're at different resolutions. Could possibly set it up so that you click once at the top left one, and once on the bottom right one, and it uses those to grab the dimensions of your inve.

    I rarely have a full page nicely laid out, which is why I didn't even think about it. Usually I have a few swap items thrown into the mix (I usually keep them on page 5 but when I swap back they often end up somewhere in the middle).

    Also that would likely add a bit of complexity to the script, which makes it harder for people to understand. Hmm.

    I'll look into it though, that could be very useful - set it to run, then click and then grab a sandwich or something
    -Khysiria of Cannith
    Quote Originally Posted by zehnvhex View Post
    Warlock is basically a ghetto Shiradi Sorc. You gives up some of the damage and self sustain for the ability to just hold down left click and yolo blast your way to victory.
    Quote Originally Posted by Lynnabel View Post
    It's DDO. There are probably 6 different types of Evil damage.

  13. #13
    The Hatchery
    2015 DDO Players Council
    2017-2021 PC Member
    LrdSlvrhnd's Avatar
    Join Date
    Sep 2009
    Posts
    0

    Default

    I would just like to reiterate, make SURE to close the script when you're done. Otherwise funky things can happen when you try to, say, shift-leftclick to highlight a bunch of files in Windows Explorer...
    "Ignorance killed the cat, sir; curiosity was framed."
    Tripoint, C.J. Cherryh

  14. #14
    Community Member
    Join Date
    Aug 2013
    Posts
    652

    Default

    Ty for script you have awesome skills.

  15. #15
    Community Member SpartanKiller13's Avatar
    Join Date
    Jan 2014
    Posts
    3,644

    Default

    Moved by Cordovan, thanks!

    Quote Originally Posted by capsela View Post
    Ty for script you have awesome skills.
    Thank you and glad to help!
    -Khysiria of Cannith
    Quote Originally Posted by zehnvhex View Post
    Warlock is basically a ghetto Shiradi Sorc. You gives up some of the damage and self sustain for the ability to just hold down left click and yolo blast your way to victory.
    Quote Originally Posted by Lynnabel View Post
    It's DDO. There are probably 6 different types of Evil damage.

  16. #16
    Community Member
    Join Date
    Dec 2019
    Posts
    1

    Default Thanks!

    New DDO player here, some friends roped me in. I was going to write an AHK script myself, but boy am I glad I searched first. Yours is probably more elegant than mine would have been too. Thanks for posting this!

  17. #17
    The Emperor Mornyngstar's Avatar
    Join Date
    Jan 2014
    Posts
    0

    Default

    Quote Originally Posted by Deathlylife View Post
    Thank you for an amazing solution to the continuous drag and drop that happens after every few quests. It is simple to learn and use (took only 2 minutes to figure out).

    The only issue I have run into is that it will not work if the dissolver is in your shared ingredients bank. If the dissolver is in the shared ingredients bank, it stays populated in the item deconstruction window. This will force the "dissolve shard" option to be the first and only option rather then the second option in the window. The script currently will only try and click the location of the second non-existant option, causing your item to not be deconstructed and nothing happen.
    The easiest solution is to just keep the dissolver somewhere other than your shared ingredient bank (inventory and ingredient bag both work fine). This is not much of an issue as a large ingredient bag is easy to obtain and stacks the dissolver up to 2500. I am only mentioning it in case others happen to have this issue and want a quick fix without changing the code.

    Again, this code is awesome and is a must if you like to deconstruct everything you loot when your inventory fills up like mine does every few quests...

    Deathly of Thelanis
    As a note (not sure if they fixed it) but if the dissolver is in your shared then you will get no Platinum out of dissolving the item(s). The dissolver has to be in your inventory/ingredient bag for you to get Platinum out of the process.
    My 2 mains are Mornyngstar and Seldissan on Thelanis but I also have toons on all servers with those names. Any toon that has Mornyngstar Clan as their last name is most likely me.

  18. #18
    Community Member SpartanKiller13's Avatar
    Join Date
    Jan 2014
    Posts
    3,644

    Default

    Quote Originally Posted by Graxxx View Post
    New DDO player here, some friends roped me in. I was going to write an AHK script myself, but boy am I glad I searched first. Yours is probably more elegant than mine would have been too. Thanks for posting this!
    Welcome to DDO! Didn't see this until now, but thanks for your kind words! My original was definitely less elegant than the final result lol. Glad it's still helping people
    -Khysiria of Cannith
    Quote Originally Posted by zehnvhex View Post
    Warlock is basically a ghetto Shiradi Sorc. You gives up some of the damage and self sustain for the ability to just hold down left click and yolo blast your way to victory.
    Quote Originally Posted by Lynnabel View Post
    It's DDO. There are probably 6 different types of Evil damage.

  19. #19
    Community Member zehnvhex's Avatar
    Join Date
    Apr 2010
    Posts
    1,420

    Default

    I haven't played in quite a while.

    Did they break this at some point? It no longer drags items to the slot to deconstruct nor clicks buttons.
    https://www.reddit.com/r/ddo
    Building a Better DDO

  20. #20
    The Hatchery
    2015 DDO Players Council
    2017-2021 PC Member
    LrdSlvrhnd's Avatar
    Join Date
    Sep 2009
    Posts
    0

    Default

    Quote Originally Posted by zehnvhex View Post
    I haven't played in quite a while.

    Did they break this at some point? It no longer drags items to the slot to deconstruct nor clicks buttons.
    I know it's several months later, but I haven't had any problems using it at all (just used it this weekend, maybe late last week). Pretty sure I wasn't having problems in February, either.
    "Ignorance killed the cat, sir; curiosity was framed."
    Tripoint, C.J. Cherryh

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

This form's session has expired. You need to reload the page.

Reload