Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Commit

Permalink
zombpoe0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
zombodotcom committed Nov 9, 2019
1 parent 52cab77 commit f3711c4
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 33 deletions.
59 changes: 28 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,44 +1,45 @@


![Zombpoe Logo](/src/favicon.512x512.png)

[![Angular Logo](https://www.vectorlogo.zone/logos/angular/angular-icon.svg)](https://angular.io/) [![Electron Logo](https://www.vectorlogo.zone/logos/electronjs/electronjs-icon.svg)](https://electronjs.org/)

# Introduction

Zombpoe is a stash indexer for Path of Exile. it uses Poe.Ninja to get the current worth of items and your POESESSID to get stash data.
Welcome to Zombpoe
This is Zombpoe
You can do anything with Zombpoe,
Anything at all,
The only Limit... is yourself!


![Zombpoe Demo](/demoimages/zombpoe0.0.4_demo.gif)
Anything at all,
The only Limit... is yourself!

![Zombpoe Demo](/demoimages/zombpoe0.0.5_demo.gif)

# How to get the POESESSID?

### 1. OPEN

Official site : <https://www.pathofexile.com/>

### 2. LOG IN

# How to get the POESESSID?
Log in with your account.

### 1. OPEN
  Official site : <https://www.pathofexile.com/>
### 2. LOG IN
  Log in with your account.
### 3. GET YOUR POESESSID
  [Chrome](#chrome)

[Chrome](#chrome)
  [Firefox](#firefox)
  [IE11](#ie11)

### 4. INPUT
  Enter the SessionID to the Procurement.

***
Enter the SessionID to the Procurement.

---

## Chrome

1. Press the F12 key.
2. Select "Application".
3. Expand "Cookies", select the `https://www.pathofexile.com`.
3. Expand "Cookies", select the `https://www.pathofexile.com`.
4. Copy the value of the "POESESSID".

## Firefox
Expand All @@ -57,40 +58,36 @@ The only Limit... is yourself!
5. Select [DETAILS]-[Cookies].
6. Copy the value of "POESESSID".

***
---

# FAQ

### ・What is the POESESSID?
  It is a temporary ID generated by Path of Exile when you login. This is basically authenticating you to your stash items.
without this you can't get your stash info until I move to oauth.

### ・Can a steam account also get a POESESSID?
  Yes, when logging into the official site using steam, a POESESSID is generated which Procurement can use.


It is a temporary ID generated by Path of Exile when you login. This is basically authenticating you to your stash items.
without this you can't get your stash info until I move to oauth.

### ・Can a steam account also get a POESESSID?

Yes, when logging into the official site using steam, a POESESSID is generated which Procurement can use.

# It's not getting data 😢

If the program isnt getting data, Open the dev tools
![open dev tools](demoimages/opendevtools.png)
If you see something like this
If you see something like this
![big boi stash](demoimages/bigboistash.png)
Big boi is getting data. which is all of your items in a giant array!
Big boi is getting data. which is all of your items in a giant array!
If you don't see anything in the biggest poeninjaraaryever we now know ur not getting poeninja data.

This program works off of API calls and I haven't yet implemented API rate limiting with axios.

I will be soon though.

Currently to fix this I am just getting the first 40 tabs if you have over 40 tabs.

Try and post to issues with a screenshot of the issue.
you can alt+printscreen the dev tools window and then ctrl+v in a comment to post the image.
I will be soon though.

Currently to fix this I am just getting the first 40 tabs if you have over 40 tabs.

Try and post to issues with a screenshot of the issue.
you can alt+printscreen the dev tools window and then ctrl+v in a comment to post the image.

# Development Section

Expand Down
Binary file added demoimages/zombpoe0.0.5_demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 17 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ ipcMain.on("ping-async", async (event, message) => {
let sessionid = message[0];
let accountName = message[1];
let league = message[2];
event.sender.send("ping-async-stash", [
"got poeninja data, starting stash",
accountName,
league
]);
// const { net } = require("electron");
// let request = net.request(
// "https://www.pathofexile.com/character-window/get-stash-items?league=Blight&accountName=qqazraelz&tabs=0&tabIndex=1"
Expand Down Expand Up @@ -214,6 +219,7 @@ ipcMain.on("ping-async", async (event, message) => {
.then(responseArr => {
//this will be executed only when all requests are complete
// console.log("Currency: ", responseArr[0].data);

this.currencyDataResponse = responseArr[0].data; // currency
this.fragmentsDataResponse = responseArr[1].data; //frag
this.oilsDataResponse = responseArr[2].data; //oils
Expand Down Expand Up @@ -264,7 +270,12 @@ ipcMain.on("ping-async", async (event, message) => {
.catch(e => {
console.log("Error: POE NINJA GET ERROR", e.response.data);
});
await sleep(20000);
event.sender.send(
"ping-async-stash",
"backend poedata going to sleep for 2 seconds now",
this.poeNinjaResponseArray
);
await sleep(2000);
// .then(
// axios.spread(function(resp2, reposResponse) {
// //... but this callback will be executed only when both requests are complete.
Expand Down Expand Up @@ -321,6 +332,7 @@ ipcMain.on("ping-async", async (event, message) => {

// console.log("hello after sleep");
// await sleep(10000);
event.sender.send("ping-async-stash", "starting stash");
await axios
.get(
"https://www.pathofexile.com/character-window/get-stash-items?league=" +
Expand All @@ -340,7 +352,10 @@ ipcMain.on("ping-async", async (event, message) => {
// message = response.data as RootObject;
let stashdatatemp = [];
this.stashdata = response.data;
event.sender.send("ping-async-stash", [response]);
event.sender.send("ping-async-stash", [
response,
"got stash data" + "tab count " + Number(response.data.numTabs)
]);
await sleep(10000);
// get stash data
let responseNumTabsTotal = response.data.numTabs;
Expand Down

0 comments on commit f3711c4

Please sign in to comment.