OK, so moving the important stuff up to the first post:
you can find a Chrome extension that helps a bit with ocd: Empyrion HWS OCD Helper
and here’s a sample picture of how things will look when using it:
no need for the hack below anymore
hey guys,
earlier today Reverendmeat was asking something about OCD and i mentioned to him how he could use a bit of code to make getting from OCD easier, so here it is for anyone who’s interested in some simple hacks
just open hws connect, go to your OCD and wait for it to load, then load up chrome’s console and run the code below.
once you run it, you should be able to click on the OCD Slot numbers (1,2,3,…) and highlight them with a red border as marked, this will also cause a textbox to appear at bottom of page writing out the ocd get command for you automatically and updating it as you choose/unchoose items…
i could probably make this into a tidier chrome plugin & add a few more features if people show interest…
lol yeh i was gonna go nuts on it a couple of weeks ago and make it drag-drop sortable and stuff but then i read you were adding all these things in v5, so i am now waiting patiently
Yep, I mean it will take awhile to code but I’m super hyped about the new coming REST API and new UX.
If all works out you can do your own cool stuff with your own API Key.
Let’s see. For now I must sadly do POI stuff etc.
It means that you or someone else could write an external app which would do some additional things with HWS - for example your Economy Utility Tool instead of being simple excel spreadsheet could be a webpage which would automatically get all the data from HWS
Since it may take a while, i’ve spent a few hours today and packaged / published this new extension for chrome so RexXxus can focus on the important stuff we’re all really waiting for!
check it out at: Empyrion HWS OCD Helper
and here’s a screenshot
It’s hastily done and may contain bugs
Will fix / add features if you guys reports stuff here!
this has nothing to do with HWS officially or Rexxxus, it’s a standalone Crhome extension that i created and published under my own account on google… you can click the link and install the extension to try it out, it just injects some code over the website to add the functionalities you see in the picture…
I checked your code and tested it out. Quite awesome!
If you have 100 slots and swap only the 99 slot it will check all slots and send quite a lot XHR requests but I think Jascha blocked it anyways, if you are not online.
Maybe add a little higher delay per XHR send command though?
I still haven’t figured out a perfect PHP-FPM children handler
And maybe you can add the slot numbers near your placeholder images or a hover text explaining?
A lot better than my version though
Thanks man i usually have to work with C and wireshark and decoding networking packets and crap that makes me blind… so this is pretty easy and cool stuff for me to do in my spare time!
I didn’t quite get your meaning, which slots have you moved? it’s supposed to check exactly which items changed positions and send as few XHR commands as possible, delaying the commands using the Patron level appropriately + 500ms, i can throttle it more ofcourse, just let me know!
haven’t worked with FPM myself to be honest, i only use Apache + standard php… (and sometimes nodejs)
yeh i’ll add that in next update the hover currently shows item name + type only…
Glad you like it, hope community finds it useful
if you need help with any of the front-end code please just let me know, wouldn’t mind at all to help out a bit with that.
PS: i wanted to make the backpack thing directly send the ocd:get, but it seems the current xhr call would only take 1 by 1, so instead i stuck with the copy to clipboard thing!
You go fix those POIs! been a blast finding all those hidden secrets
just mostly drag and drop the icons to swap positions / send them to backpack space on the right side to auto generate an ocd:get string for you to paste ingame and receive the items from OCD.
I tried to reproduce and didn’t work. I dragged some stuff crazy around and clicked then apply.
Instead of only swapping the swapped items the script somehow ran through all 100 slots = 100 xhr post request.
Thank! Will do
Jquery-ui is not my taste. I wanted to go with that
Interesting, the only way i can imagine this happened is if the drag/drop thing glitched and instead of switching 2 items, it simply moved the 1 you were dragging, thus pushing everything out of its slot by at least 1 spot and causing all the XHR’s… would your level happen to be 5 so no wait was done between calls?
Aye, i have been away from web dev a long time and that’s why i just used jqueryui in haste… definitely should look into something new… this Muuri seems interesting, will look into it more
If there was just some means to fake commands on behalf of user from web side, then u can just send any command from gui… but i guess that may not be too safe in some cases…