Need help at scripting

Hi guys,
I like to make statistics of different farming methods and currently
I track every item (rare/unique name, currency amounts) in Excel-sharts and
compare different areas to see which ones are more profitable.

Collecting all the data manually is a huge time input and
I'm looking for a script that saves every itemname that I loot into
a .txt file.

My Questions:

- Where can I read out the informations, is there a local file saving parts of the item names?
- Could this be done without harming the rules?

tyvm
Crazy Miners Fire Nova Mines:
https://www.pathofexile.com/forum/view-thread/1595627
The Savage, Endgame cleaner:
https://www.pathofexile.com/forum/view-thread/1613272
As far as I know, there is no information about your items locally available.

One thing you could do, although I'm not familiar with any of it, would be to use GGG's web APIs to monitor your stash/inventory and save that data to your computer and then go on processing it in what ever way you need. (Tools like Acquisition and Looty do stuff like that)

The other - somewhat more manual, albeit easier to program - method would be to ctrl-c every item you pick up and have a script read out the clipboard and get your information from there.
In a similar fashion you could link the item to global chat and read out the chatlog.
Crit happens.
All the item info macros I've seen use the clipboard data, so you would hover over the item in inventory and press the macro key, and then it would ctrl+C to grab it. I supposed having a macro to quickly grab all the items from your inventory at the end of each instance (Or beginning of each instance, looking for changes) would be possible. The only thing the client really logs are things like chat messages and connecting to an instance.
If item pick-up was recorded in the log files (or even recorded in the message box, ie: toggle to enable/disable it), this would be possible. You'd just parse the local logs...

For GGG installed PoE on Windows...
%USERPROFILE%\Documents\My Games\Path of Exile

For Steam installed PoE on Windows...
Steam Library\SteamApps\common\Path of Exile\logs

However, this doesn't happen. It has been requested before.

So the only way to record item pick up is to do screen caps and some image processing logic to grab what you really want. And that's probably more trouble to code and tweak than it is to just manually do your item tracking for farming methods.

Another option when doing it manually is to have a pre-built database of items gathered from GGG's item section on their site (since 3rd-party poedb site no longer works). You could create a database with prefix/suffix separate, then allow a quick selection of the items you picked up much easier. But that's a lot of up-front work.

The best bet would be to record less data, specifically how many items of each general category, rarity, and level difference from your character you get. That would be easy to tick off manually.

Sorry there's no easy scripting or API solution that I know of. Best of luck!
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▒▒▒▒░░░░░ cipher_nemo ░░░░░▒▒▒▒ │ Waggro Level: ♠○○○○ │ 1244
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Last edited by cipher_nemo on Nov 11, 2015, 1:31:17 PM
I FOUND A WAY! :-D

I researched this a little more since it piqued my interest, and found a way to generate text of your inventory via a Google Chrome extension a community member made that queries the PoE website in regards to your logged in account and active character.

Example...



Steps

1.) Use Google Chrome and visit this link to add the extension.

2.) Go to pathofexile.com site and make sure you're logged in with the "remember me" check box checked.

3.) Switch to the character for the inventory you want to grab.

4.) Click on the Home button on the page, then choose "Stash Management".

5.) From the Inventory menu, choose "Copy as CSV" or "Export to File".

The CSV is more readable, copied to your clipboard, but it's a brief summary of item names. The exported file is less user friendly, but easier to parse with a script, and contains COMPLETE info of each item. The exported file is saved with the ".bin" extension which doesn't make sense since it's not a binary file, just a text file.

The author's thread for this extension is here: https://www.pathofexile.com/forum/view-thread/42272

Notes

* This will also grab everything from your stash.

* If you have Premium tabs in your stash, it will also grab the tab's name to help organize. So if you're farming a lot, just save some empty tabs, name them for the specific run, then dump everything into those tabs. Viola, farming item tracking made easy.

* The Chrome extension has a nice option to show exactly where the item exists in the grid of both your inventory and your stash tabs. To view, go to Inventory -> Configure Display -> and enable "Show Location Table"


This should hopefully give you a way to do exactly what you want to do. :-)

CSV Output example:
Spoiler
"Tab","Item","Tab","Item"
"Ciphariel Equipped",">>>Agony Knuckle Ironscale Gauntlets"
"Ciphariel Equipped",">>>Blood Carapace Light Brigandine"
"Ciphariel Equipped",">>>Bramble Goad Ringmail Boots"
"Ciphariel Equipped",">>>Dread Knuckle Paua Ring"
"Ciphariel Equipped",">>>Entropy Thirst Carved Wand"
"Ciphariel Equipped",">>>Rage Refuge Fir Round Shield"
"Ciphariel Equipped",">>>Storm Tether Heavy Belt"
"Ciphariel Equipped",">>>Torment Crown Iron Mask (17%)"
"Ciphariel Equipped",">>>Viper Braid Paua Amulet"
"Ciphariel Equipped",">>>Panicked Grand Mana Flask of Gluttony"
"Ciphariel Equipped",">>>Surgeon's Greater Life Flask of Steadiness"
"Ciphariel Equipped",">>>Coral Ring of the Lynx"
"Ciphariel Equipped","Greater Life Flask"
"Ciphariel Equipped","Quicksilver Flask"
"Ciphariel Equipped","Superior Greater Life Flask (7%)"
"Ciphariel Equipped*","Flame Dash"
"Ciphariel Equipped*","Flame Totem"
"Ciphariel Equipped*","Increased Critical Strikes"
"Ciphariel Equipped*","Magma Orb"
"Ciphariel Equipped*","Fireball"
"Ciphariel Equipped*","Riposte"
"Ciphariel Inventory","Portal Scroll (hide)"
"Ciphariel Inventory","Scroll of Wisdom (hide)"
"Ciphariel Inventory","Scroll Fragment (hide)"
"Standard Gems","Fire Trap (hide)"
"Standard Gems","Added Lightning Damage (hide)"
"Standard Gems","Cleave (hide)"
"Standard Gems","Cold Snap (hide)"
"Standard Gems","Rejuvenation Totem (hide)"
"Standard Gems","Firestorm (hide)"
"Standard Gems","Melee Splash (hide)"
"Standard Gems","Ground Slam (hide)"
"Standard Gems","Minion Life (hide)"
"Standard Gems","Molten Strike (5%) (hide)"
"Standard Gems","Infernal Blow (hide)"
"Standard Gems","Ethereal Knives (hide)"
"Standard Gems","Double Strike (hide)"
"Standard Gems","Puncture (hide)"
"Standard Gems","Static Strike (hide)"
"Standard Gems","Stun (hide)"
"Standard Gems","Summon Raging Spirit (hide)"
"Standard Gems","Vaal Spectral Throw (hide)"
"Standard Orbs","Armourer's Scrap (hide)"
"Standard Orbs","Chaos Orb (hide)"
"Standard Orbs","Blacksmith's Whetstone (hide)"
"Standard Orbs","Alteration Shard (hide)"
"Standard Orbs","Chromatic Orb (hide)"
"Standard Orbs","Alchemy Shard (hide)"
"Standard Orbs","Orb of Chance (hide)"
"Standard Orbs","Orb of Alchemy (hide)"
"Standard Orbs","Orb of Augmentation (hide)"
"Standard Orbs","Glassblower's Bauble (hide)"
"Standard Orbs","Jeweller's Orb (hide)"
"Standard Orbs","Orb of Alteration (hide)"
"Standard Orbs","Orb of Fusing (hide)"
"Standard Orbs","Orb of Regret (hide)"
"Standard Orbs","Orb of Transmutation (hide)"
"Standard Orbs","Transmutation Shard (hide)"
"Standard Orbs","Vaal Orb (hide)"
"Standard Scrolls","Portal Scroll (hide)"
"Standard Scrolls","Scroll of Wisdom (hide)"
"Standard Scrolls","Scroll of Wisdom (hide)"


Partial exported file example (square brackets replaced with parentheses):
Spoiler
({"rawItem":{"verified":false,"w":1,"h":1,"icon":"https://p7p4m6s5.ssl.hwcdn.net/image/Art/2DItems/Currency/CurrencyIdentification.png?scale=1&stackSize=20&w=1&h=1&v=1b9b38c45be95c59d8900f91b2afd58b3","support":true,"league":"Standard","sockets":(),"name":"","typeLine":"Scroll of Wisdom","identified":true,"corrupted":false,"lockedToCharacter":false,"properties":({"name":"Stack Size","values":(("20/40",0)),"displayMode":0}),"explicitMods":("Identifies an item"),"descrText":"Right click this item then left click an unidentified item to apply it.\nShift click to unstack.","frameType":5,"x":10,"y":4,"inventoryId":"MainInventory","socketedItems":()},"location":{"section":"Ciphariel","page":"Inventory","tabIndex":0}},{"rawItem":{"verified":false,"w":1,"h":1,"icon":"https://p7p4m6s5.ssl.hwcdn.net/image/Art/2DItems/Rings/Ring2.png?scale=1&w=1&h=1&v=ea80f60b4a8ead920044707ed65698493","support":true,"league":"Standard","sockets":(),"name":"","typeLine":"<<set:MS>><<set:M>><<set:S>>Coral Ring of the Lynx","identified":true,"corrupted":false,"lockedToCharacter":false,"requirements":({"name":"Level","values":(("8",0)),"displayMode":0}),"implicitMods":("+26 to ...
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▒▒▒▒░░░░░ cipher_nemo ░░░░░▒▒▒▒ │ Waggro Level: ♠○○○○ │ 1244
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Well, if you have free stash tabs to drop items into, why not.
And worst change is putting almost all bosses in new version of maps into fucking small areas, where you can't kite well or dodge stuff. What a terrible idiot invented that I want say to him: dude flick you, seriously flick you very much.
"
silumit wrote:
Well, if you have free stash tabs to drop items into, why not.


One can always buy more. But this process works for the regular inventory too.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▒▒▒▒░░░░░ cipher_nemo ░░░░░▒▒▒▒ │ Waggro Level: ♠○○○○ │ 1244
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Or you could write AHK script to hook Ctrl+C and write copied info somewhere. The downside is you'd have to Ctrl-C on each item you wanted to be processed.
And worst change is putting almost all bosses in new version of maps into fucking small areas, where you can't kite well or dodge stuff. What a terrible idiot invented that I want say to him: dude flick you, seriously flick you very much.
"
silumit wrote:
Or you could write AHK script to hook Ctrl+C and write copied info somewhere. The downside is you'd have to Ctrl-C on each item you wanted to be processed.


Indeed.

And if the OP uses AutoHotKey, they could take it one step further and have inventory from the Chrome extension automatically refresh and copy that data or export its file on a key press. So have an AHK script running all the time and have it cycle through a section of code when you press a specific key. That way the OP could get their entire inventory in one keypress. They'd just need to add a datetime stamp to the file name so they're not overwriting the same file each time.

I use AutoHotKey for other scripting. Example of a key press script...

Spoiler

#NoEnv
SendMode Input
//activate when the * key on the number pad is pressed
$NumpadMult::
{
IfNoWinExist, PoE Helper
MsgBox Please launch PoE Helper within Chrome before continuing.
return
else
{
WinActivate
WinGetPos, PoEHelperX, PoEHelperY
Click % 360 + %PoeHelperX%, % 80 + %PoeHelperY%
Sleep, 50
// ... rest of commands here to copy or export file ...
}
}
return
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▒▒▒▒░░░░░ cipher_nemo ░░░░░▒▒▒▒ │ Waggro Level: ♠○○○○ │ 1244
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

Report Forum Post

Report Account:

Report Type

Additional Info