Net-7 Account Vault Filters

Adds visual filters to the Account Vault page for the Earth & Beyond emulator run by net-7.

< Opiniones de Net-7 Account Vault Filters

Pregunta o comentario

§
Publicado: 11/03/2024

I just had another thought for this script; I thought about just trying to add it myself but I don't see any way to open a PR here, etc. and you might know off the top of your head whether this is possible or not as I still haven't dabbled with user scripts.

One thing that often annoys me is that I find I often want to transfer more than 12 items between the same two characters on a regular basis, or transfer items from several characters to one character... would it be possible to have the page re-fill the "transfer from" and "transfer to" drop downs with the same names that were in there before after clicking "Start Transfer" after each 12 items so it remembers which characters you're working with? This way if I want to transfer things from several different characters to one I only need to change the "transfer from" each time, and if I want to do a sequence of transfers between the same two characters it's much more seamless?

The character loads are very fast so even if you didn't want to do those same characters again it doesn't seem like it would be annoying?

EnB-DoctorAutor
§
Publicado: 04/04/2024

Look on the net-7 forums, at my 'get_missing_item.php' script. That contains the code for logging in and saving/re-using a session via a cookie. You might be able to replicate that behavior in Python (I'm using cygwin and it doesn't work, or I'm dumb, but pretty sure it's a cygwin-ism). Anyway, the 'right' solution to this, that I would use for mining, would be to:

1. Copy the Items and MinableItems tables from the DB dump for the Better Map tool (this gets you a list of ores and refined items).
2. Write the curl needed to login, get a cookie, save that cookie, check if the cookie is valid, and issue queries to the site (all of this is in get_missing_item.php)
3. Press F12 to bring up Developer Tools in your browser
4. Go to the Network tab, and move some items to generate the Request/Response data used to actually move items (it's basically a JSON blob with slot IDs and item IDs iirc)
5. Have your code issue the appropriate request to load a character's inventory, parse and save the inventory data. Also parse out all character IDs from the page (they'll be in the object)
6. Generate the JSON object for moving items
7. Issue the command to move your items, 12 at a time.
8. Handle errors for out of space / other problems
9. Implement rate-limiting so it looks like a human is sending the requests / you don't attract ire for issuing 20 commands in 1 second.
10. Profit

It is entirely possible to fully automate moving ores. There's no reason to do it by hand. I have not done this, and may never do it, but from a technical standpoint, there is 0 reason it can't work. It's going to be a PITA to parse the Response objects from the net-7 site because, as I've mentioned, they are sending a clusterfuck of data. HTML, JSON, and Javascript, all in the same response object. Because...fuck if I know why. Half of why I even *made* the better map project was to see if it was really that hard to work with JSON request/responses. Shocker: It's tedious, but easy. And the tedious bit is probably why there's 100 billion JS frameworks all designed to make certain bits of pages with minimal code. Whereas I'm the madlad who does everything himself to learn.

As far as resetting the characters for multiple transfers, in theory it's possible. And I have thought about doing it, but I could never find a way to make it work that was less tedious than what we have now. Sure, if I was moving 48 ore slots from one char to a vault, then yeah, one checkbox to enable 'persist' mode, would be easy and save a few clicks. But then you'd have to toggle it off at other times and that would be about as annoying as not having it. At least for me.

I'm still on the fence about this feature. If I actually sat down and wrote it I'd probably enjoy having it. But I also need it so rarely...

Publicar respuesta

Inicia sesión para responder.