Textual Reflexions

30/7/2008

PackRat Helper (version 0.10)

Filed under: Packrat — Piotr P. Karwasz @ 12:41 pm

[This version of the script is obsolete. For more informations check the PackRat Helper category.]

After some changes in the Facebook application the ‘popup’ module of this script stopped working properly. This new version corrects this bug and adds two new modules: ‘highlight’ and ‘grinding’.

Changelog

  • Corrected the malfunction in the ‘popup’ module.
  • Added a way to specify the standard delay for actions (in the preferences).
  • Added a menu command (accessible via Tools > GreaseMonkey > Script Commands) that resets the database and is totally equivalent to reinstalling the script.
  • Added a ‘highlight’ module like in the 0.4 series: missing cards from selected collections are highlighted and moved in front of the pack.
  • Added a ‘Delete cards from completed collections’, that cleans the markets and friend packs from collection that we already finished.
  • Added a ‘grinding’ module. When active it will automatically steal cards from friends packs and drop the same card instead. It can be useful for low level characters to level up.
  • (Version 0.10.3) From this version you have to go to Your Friends page at least once to give the script the chance the read the list of your friends.

PackRat Helper: version 0.10.5

Also available at UserScripts.org, where you find a short manual.

For more informations about the installation process please check the FAQ.

[Update: in version 0.10 the 'highlight' module updated the 'credit' preferences...

Version 0.10.2 corrects other minor bugs,

Version 0.10.3 corrects not recognized cards (like 'roulette=wheel')

Version 0.10.4 corrects grinding of mismatched cards.

Version 0.10.5 corrects another "In the Oven" problem.]

73 Comments »

  1. Thank you for this recent update which has sorted out the popup malfunction. However I cannot seem to set the preferences ie. the Collect Credits to “yes” and Highlighting to “no” as it reverts back to the other way around each time I click the update my preferences. Not sure if others have the same problem.

    Comment by Chris — 30/7/2008 @ 3:13 pm

  2. I am having the same problem as Chris.

    Comment by Diva — 30/7/2008 @ 3:17 pm

  3. Fixed in 0.10.1. Thank you for reporting the problem. I should check things more thoroughly before releases.

    Comment by Piotr P. Karwasz — 30/7/2008 @ 3:26 pm

  4. Thanks, Piotr! This script is really wonderful :)

    Comment by Mordy — 30/7/2008 @ 4:40 pm

  5. i really love this. nice new touches!

    Comment by Erin — 30/7/2008 @ 5:11 pm

  6. Love it! Thanks for continually updating this for us, it’s fantastic!

    And now some advice/a question - one of the collections that I’ve completed and have the feat card for (Rat Pack) is not being recognized by the script as completed. I completed it awhile back, so it’s not a new feat. Any suggestions on how to get the completion recognized?

    Comment by Janey — 30/7/2008 @ 9:25 pm

  7. Is it the Rat Pack feat, Janey? Because I’m having the same problem with that set.

    Comment by Mordy — 30/7/2008 @ 10:59 pm

  8. i downloaded the script (which I can’t wait to try) and it says its installed on greasemonkey, but script status us resting and when I click on script preferences the screen that pops up is blank. Any help??

    Comment by Chris — 31/7/2008 @ 12:40 am

  9. i upgraded to your newest version (LOVE the additions by the way!) and i wanted to mention that the newest set isn’t on the list. i also have the same issue with the highlight options reverting to the default when i open preferences up again.

    Comment by bab — 31/7/2008 @ 4:17 am

  10. also wanted to add that i have grinding on and it tried to grind a gravity lock that i’m currently using with someone else’s gravity lock, but it’s stuck on my pack now b/c it can’t choose my lock to drop.

    Comment by bab — 31/7/2008 @ 4:22 am

  11. Janey: The script looks at the page with “Current collections” to know how many cards are there in every set, then at your vault and if you have as many different cards from a certain collection as the maximum possible it considers the collection completed.

    Now either the script didn’t get a chance to look at the cards in your vault, or for some reason one of the cards didn’t get counted. You can go to about:config, look for a key like ‘packrat*profile’, copy its value and set it to me to see which card was not counted (or just read the value itself, the data after ‘vault:’ are collection names and the cards from that collection).

    bab: I should disable grinding for locks, it’s somewhat problematic. The solution to highlighting problem is version 0.10.1.

    Comment by Piotr P. Karwasz — 31/7/2008 @ 4:11 pm

  12. Those are some pretty nice additions! The grinding feature is very welcome by those that do it. Do you think it would be feasible to only grind the highest card in each collection, i.e. Jet Pack, Jackpot… Or even one better, indicate which card you want to grind, i.e. only Jackpots… The only reason I mention this is because some folks get super sensitive when you grind other cards in their pack…

    I found a work around for this was to lock any cards in your pack that you do not want considered when grinding… But then I stumbled on the problem noted above in comment #10. The script attempts to grind a lock in a friend’s pack but cannot select the same lock in your pack because it is in use…

    Thanks for fixing the highlight and delete radio buttons… nice!

    Comment by crazymodo — 31/7/2008 @ 6:12 pm

  13. i wanted to let you know that i do have the latest version you mentioned and the highlight preferences still reverts. also there is no option to choose the enchanted forest collection. thanks for all your hard work!

    Comment by bab — 31/7/2008 @ 6:14 pm

  14. crazymodo: Version 0.10.2 does not grind locks. I thought to let users specify the minimum value of the cards that are grinded, don’t know if it’s of any use: a grind is a grind and since it’s done automatically and does not change any of the packs, it shouldn’t bother anyone. When I have time to write a ’steal’ module (stealing cards, from Rats only) I’ll let users choose which card is “dropable”. This choice will also apply to grinding.

    bab: Thanks, actually there where two problems with the preferences. I fixed the first in 0.10.1, the second is fixed in the new 0.10.2.

    Comment by Piotr P. Karwasz — 31/7/2008 @ 7:18 pm

  15. wow, thanks for the fixes bro! Ya, grinding shouldn’t matter as it’s the same card, but the reason people get hopped up is usually because they were able to get a low numbered card… Personally, I couldn’t care less, but I had some smack talk comments asking why I grind’ed somebody’s card that wasn’t on their “grindable” list… Oh the trials and tribulations of playing co-op… LOL

    Thanks again!

    Comment by crazymodo — 31/7/2008 @ 8:45 pm

  16. Oh snap, did you update the header information in the script… As of 0.10.1 it still showed up as 0.9.1 and 07/26/08

    Comment by crazymodo — 31/7/2008 @ 8:46 pm

  17. spoke too soon i think… it looks like the grinding isn’t working for some reason… it attempts to grind, but the script window disappears and then it sits at the steal screen waiting for you to select what you want to steal with. So i manually select a Jackpot, click steal and succeed. The script does kick back in until I click to the next friend…

    Comment by crazymodo — 31/7/2008 @ 8:53 pm

  18. Hmmm, and it’s also matching up any card in my pack… If I have a Chipmunk in my pack and it’s locked, the script will still try to grind a Chipmunk in someone else’s pack… just trying to give some feedback… hope that’s cool… ;)

    Comment by crazymodo — 31/7/2008 @ 8:55 pm

  19. Help! I installed the update and now as soon as it browses past my first friend I get this error:

    Error in module ‘browse’ on line 1412: div is undefined

    I have uninstalled and reinstalled. What else can I do?

    Comment by Lisa — 1/8/2008 @ 1:27 am

  20. Mordy - yep, it’s Rat Pack that’s giving me the problem.

    Piotr - thank you! I’m on a Mac, and went to about:config — here’s what it has listed for rat-pack (and it sounds like I’m not the only one having this problem with the Rat Pack set):

    ‘rat-pack’:["jackpot", "vegas-baby", "the-heist", "the-strip", "100-chip", "the-vault", "the-rat-pack", "casino", "fountain", "elvis-impersonator", "wedding-chapel", "25-chip", "unknown", "safe", "million-dollar-diva", "stretch-limo", "security-cam", "lounge-singer", "slot-machine", "strong-box", "5-chip", "showgirl", "smoking-jacket", "boxing-gloves", "martini", "1-chip", "dice"],

    Looks like that “unknown” is the problem?

    Comment by Janey — 1/8/2008 @ 2:52 am

  21. firefox 3 error during popups:

    Error in module ‘popup’ on line 1031: name is null

    Comment by Brian E — 1/8/2008 @ 4:00 am

  22. just completed lucha libre and visited my vault and the its still highlighting and showing those cards

    Comment by Brian E — 1/8/2008 @ 5:19 am

  23. Fantastic stuff Piotr. You have outdone yourself. :-)

    Comment by Ryan — 1/8/2008 @ 8:40 am

  24. crazymodo: The grinding feature uses all cards available (and does not check at the moment for locks). Since grinding concerns only low level players, it’s not in my priorities right now.

    Lisa: The script looks for a link to the next friend and does not find it, you can go to a Rat’s pack to start browsing. Anyway as of version 0.10.3 the script does not rely any more on the “Next friend” link, so please upgrade.

    Brian: Do you remember which card triggered the error. For the completed collections 0.10.3 should work fine.

    Comment by Piotr P. Karwasz — 1/8/2008 @ 1:42 pm

  25. Updated to 10.3

    Error in module ‘browse’ on line 1439: friend is undefined… next friend would be a RAT

    Comment by Brian E — 1/8/2008 @ 2:19 pm

  26. err 10.4… i again deleted all my keys and it appears everything is working pretty good… empty packs scrolll so much faster with deleted cards!!!

    thanks for all the hard work :)

    Comment by Brian E — 1/8/2008 @ 2:28 pm

  27. Fabulous helper this thing. However, the latest update (0.10.4) made the browsing cycle stop on packs where cards are in the oven again. This problem existed earlier, but was then fixed. It now appears to be back?

    Comment by RAZ — 1/8/2008 @ 3:06 pm

  28. RAZ: Done.

    Comment by Piotr P. Karwasz — 1/8/2008 @ 3:45 pm

  29. wow, amazing bro… thanks for the updates!

    Comment by crazymodo — 1/8/2008 @ 3:56 pm

  30. installed the updated 0.10.5 version

    “Error in module ‘browse’ on line 1446: friend is undefined”

    Comment by crazymodo — 1/8/2008 @ 4:01 pm

  31. @Piotr

    Thanks a lot.. You work quickly! Your boss must be pleased with you ;)

    Comment by RAZ — 1/8/2008 @ 4:04 pm

  32. Resolved the error I was getting:

    It looks like I just had to go my my Friends’ tab first so the script could pick up the list…

    Comment by crazymodo — 1/8/2008 @ 4:08 pm

  33. I’m having the problem where the script is stopping on packs with cards in the oven. I have to manually get past them.

    Comment by maddy — 1/8/2008 @ 4:30 pm

  34. 10.5:

    all seems to work good

    i have but one more suggestion at this time… when packrat craps out and throws an error loading server or something of that nature and the status box says it cant find the right divs caus the code isnt there… cant the script refresh the page after 10 seconds or so that way if you let it go overnight, it doesnt die 5 minutes after you’ve gone to bed…

    on a lighter note… completed toys toys toys this morning!!!

    Comment by Brian E — 1/8/2008 @ 4:37 pm

  35. Just installed the new version and I am getting this error.. “Error in module ‘browse’ on line 1446: friend is undefined”

    I have to manually advance from friend to friend.

    Comment by Sara — 2/8/2008 @ 5:09 am

  36. Sara: Look at comment 32 e.g. You just have to go to the list of your Packrat friends.

    Comment by Piotr P. Karwasz — 2/8/2008 @ 9:15 am

  37. I installed the newest version, but the old problems that .10.1 to .10.4 were supposed to fix are back… Any ideas?

    Comment by sarah — 2/8/2008 @ 9:15 am

  38. sarah: Can you be more precise?

    Comment by Piotr P. Karwasz — 2/8/2008 @ 9:18 am

  39. It’s randomizing again, the grinding mismatched cards is back. I tried uninstalling the script then reinstalling, and it didn’t help.

    Comment by sarah — 2/8/2008 @ 8:06 pm

  40. any chance of a port for GM 4 IE… http://www.gm4ie.com/

    Comment by Brian E — 2/8/2008 @ 8:58 pm

  41. Oh yeah, it’s also not recognizing cards from packs I don’t have checked. Meaning, I’ve finished Rat pack and toys and no longer have them checked, but they’re still showing up after “delete unneeded cards” is checked. Does that make sense?

    Comment by sarah — 2/8/2008 @ 11:53 pm

  42. sarah i had that issue… make sure u goto tools > greasmonkey > user scripts > reset database

    Comment by Brian E — 3/8/2008 @ 3:43 am

  43. Brian, I don’t see a “user scripts” option. I’ve looked in the manage and new scripts, but I don’t see a reset option… Am I in the wrong place?

    Comment by sarah — 3/8/2008 @ 4:40 am

  44. Brian, I figured it out. It solved the card recognition. I’m still being randomized though. Which isn’t the end of the world.

    Comment by sarah — 3/8/2008 @ 6:07 am

  45. I mean to add thanks brian. :_

    Comment by sarah — 3/8/2008 @ 6:07 am

  46. bug:

    if i pause the script and come across a pack that has grindable cards, it still grinds

    Comment by Brian E — 3/8/2008 @ 2:28 pm

  47. also, IDK if this is due to greasemonkey or the script… but if i pause the script and manually scroll through my cards… after about 5 minutes firefox 3 just crashes with an unknown error…. but if i leave it go overnight with no manual intervention it runs like a charm…

    any logs or debug in the scrip that i could provide?

    Comment by Brian E — 3/8/2008 @ 2:31 pm

  48. Brian - I think all the features of the script still work (popup collection, credit gathering, grinding) even when it is paused. The only difference is that it does not go to the next pack for you. If you need to avoid this behavior try either turning greasemonkey off (by clicking the little monkey head icon on the bottom right of the browser) or resetting your script preferences when manually going through packs. Worked for me. :)

    Comment by HLM — 4/8/2008 @ 9:29 pm

  49. I don’t think the pop-up pick-upper is working any longer.

    Comment by Mordy — 5/8/2008 @ 7:06 am

  50. yap the pop-up seem don’t work anymore since the new collection

    Comment by Michael Wood — 5/8/2008 @ 8:42 am

  51. sarah: It’s not randomizing, it browses friends in the order in which they appear on the ‘Your Friends’, which for some reason is not the same order given by the right/left neighbor links on the user pages.

    This change was necessary to allow browsing of all friends an not only those who are reachable following the links on user pages. For some reason new friends are not in the main browsable cycle.

    Comment by Piotr P. Karwasz — 5/8/2008 @ 10:19 am

  52. Brian: Grinding is not affected by the pause feature, like HLM said. You have to disable it explicitly if you don’t want it to run.

    Mordy and Michael: Which collection it doesn’t pick up? Or you just didn’t have any pop-ups lately. Anyway the list of pop-ups detected is available in about:config if you look for ‘packrat*stat’.

    Comment by Piotr P. Karwasz — 5/8/2008 @ 10:26 am

  53. Everybody: I decided to play again for a while and I am finishing the Quest of Montezuma collection. Hence I began work on a market stalking feature to collect the 67 Maizes needed to complete the collection…

    Comment by Piotr P. Karwasz — 5/8/2008 @ 10:30 am

  54. Piotr. The most noticeable for me, it didn’t pick up alfgar the wise from ancient realm. I don’t take every pop-up just the one I collected, and that’s one I choose to pick but don’t get it

    Comment by Michael Wood — 5/8/2008 @ 10:57 am

  55. Michael: So you’ve seen (either on the page or in the list of pop-ups detected) Alfgar the Wise pop-up and the script didn’t collect it? It’s very strange since it worked for me (same card, same preferences). I’ll look into it.

    Comment by Piotr P. Karwasz — 5/8/2008 @ 11:00 am

  56. Yap I seen it on the page, and in the packrat*stat “ancient-realms/alfgar-the-wise” and the script didn’t collect it. My setting is take collection from games of summer, enchanted forest and ancient realms. It happen since I reset the database

    Comment by Michael Wood — 5/8/2008 @ 11:31 am

  57. Yeah, I hadn’t been getting any pop-ups for awhile, so I set it to pick-up all. Then I watched it. A sun popped up, then disappeared and then the script moved on. But when I checked my pack, it wasn’t there.

    Comment by Mordy — 5/8/2008 @ 12:58 pm

  58. No popups collected here, either. I also have returned to find that the scripts behavior has somehow landed me on the facebook home screen a few times. The only cause for that in the past has been linking to a page that no longer exists, such as a discussion thread that has been deleted. Has anyone else experienced this?

    I’m glad you decided to play, Piotr. It’s a fun game and having someone in the trenches with us will make a big difference. :)

    Comment by HLM — 5/8/2008 @ 6:40 pm

  59. I reinstalled and now it seems to be working again. Just fyi.

    Comment by HLM — 5/8/2008 @ 8:25 pm

  60. Thanks for clearing up the random thing. :)
    I’ve been able to pick up popups just fine. I did have a problem a few days ago, but when I closed my browser and re-opened it the script ran fine. I just assumed I needed a “reset.”

    Comment by sarah — 6/8/2008 @ 1:16 am

  61. Error in module ‘grinding’ on line 1334: steal is undefined

    Comment by Brian E — 6/8/2008 @ 1:27 am

  62. I have also seen the ‘Error in module grinding’ and have seen it pop over to the main facebook page for no apparent reason. And I have seen a small bug that I found no way around. I had it set to grind and on the first pack I saw that it was grinding a 1000 point card and I knew there were a ton of Executives in my packs so I stopped everything, reset the db, then manually upgraded my 1000 point card to an executive. Then I started everything back up. Now it keeps trying to steal the 1000 point card and since I don’t have that card any more it stops in it’s tracks. I tried many times to delete the db and it keeps trying to steel the wrong card. How can I fix this?

    Comment by Jim — 6/8/2008 @ 5:46 am

  63. Well about collecting pop-up. I do uninstall and install, it’s work fine now.

    Comment by Michael Wood — 6/8/2008 @ 7:33 am

  64. I have a follow-up to post #62, it seems that the only time that it pops back to the main facebook page is when I have ’steal’ enabled. It did it a couple of times while I was watching it, there were no errors or anything it just went to the facebook page. Once I disabled stealing the script has been running for a couple of hours now without any issues.

    Comment by Jim — 6/8/2008 @ 8:20 am

  65. I want just to let you know that I am working on the not recognized cards. It seems to me that dyslexia is widespread in Alamofire (about 5% of cards are misspelled).

    Comment by Piotr P. Karwasz — 6/8/2008 @ 2:17 pm

  66. Error in module ‘grinding’ on line 1333: steal has no properties

    Comment by http://dulcedosa.blogspot.com/ — 6/8/2008 @ 4:12 pm

  67. @Jim: I have found the best way to rectify the grind module trying to work with cards you no longer have is to visit your pack and refresh the page… this way the script rebuilds what you have

    Thanks for all your hard work Piotr!

    Comment by Brian E — 6/8/2008 @ 5:39 pm

  68. Brian- I tried it but it didn’t work. I am going to reset the databases again and see if I can get this to update.

    Piotr- I see that when I get the “Error in module ‘grinding’ on line 1334: steal is undefined” error, if I hit the Preferences button, the preferences popup is completely blank except for a header. Don’t know if this will help you.

    Comment by Jim — 7/8/2008 @ 6:20 am

  69. Mordy and Michael: Be aware that if you set the delay parameters too low it misses credits and pop-ups. It’s a server problem. I think that the delay varies with the server charge. Anyway I corrected some problems with the pop-ups in the new version.

    Brian E: I’ll add something like “if there are any errors, reload after 30 seconds” to the final 1.0 release.

    Everybody: Your problems were probably corrected in the new release. I change quite a lot of code.

    Comment by Piotr P. Karwasz — 7/8/2008 @ 3:45 pm

  70. Brian: GreaseMonkey 4 IE seems to be at a very early development stage. A better choice would be IE 7 Pro that also has a similar API to GreaseMonkey.

    With the exception of 3 or 4 recurrences of the Mozilla-specific method .toSource(), the rest of the script uses standard functions. The problem with IE is that it doesn’t respect the standards, so that scripts must be rewritten especially for IE, it doesn’t support XPath (a quite standard specification) and has a lot of bugs.

    Anyway I don’t have IE on any of my machines, I cannot install it (Windows-only), hence I can not test what I write.

    Comment by Piotr P. Karwasz — 7/8/2008 @ 9:04 pm

  71. The RC2 version is working very well except for two specific issues I have found:
    1) If you tell it to purchase Wedding Dresses only, nothing else, while viewing your pack it tells you to go to Markets to begin. But when you go to the markets it says ‘resting’. It does not want to actually purchase Wedding Dresses. I have had no trouble with any other item.
    2) If you have both ‘Auto Grind’ turned on and ’steal higher value cards’ turned on, it puts a precedence on grinding. I had told it that I wanted 3 of the Eastern Fortress which are normally dropdown cards. It had gotten me one as a dropdown then one showed up in a Rat Pack. Instead of stealing the Fortress, since I still needed 2 more, it used the one I had and did a grind with the one in the pack. I saw it do this twice, instead of stealing the card I needed it grinded the one that I had. I think it should steal the card first (and I did have a high card that easily could have been used to steal the card.

    Thanks for all your hard work on this excellent script!

    Jim

    Comment by Jim — 2/9/2008 @ 12:14 am

  72. Jim: The database didn’t have information on how to buy dresses, thanks for reporting it.

    For the order of the modules you are right: I’ll correct it in the next release.

    Comment by Piotr P. Karwasz — 3/9/2008 @ 12:35 pm

  73. hey they did packrat diff ..they update it ….

    Comment by amy — 15/10/2008 @ 5:15 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment

Powered by WordPress