PackRat Helper (version 0.10)

[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.]

This entry was posted in Packrat and tagged , , , , , , . Bookmark the permalink.

73 Responses to PackRat Helper (version 0.10)

  1. Chris says:

    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.

  2. Diva says:

    I am having the same problem as Chris.

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

  4. Mordy says:

    Thanks, Piotr! This script is really wonderful :)

  5. Erin says:

    i really love this. nice new touches!

  6. Janey says:

    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?

  7. Mordy says:

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

  8. Chris says:

    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??

  9. bab says:

    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.

  10. bab says:

    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.

  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.

  12. crazymodo says:

    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!

  13. bab says:

    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!

  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.

  15. crazymodo says:

    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!

  16. crazymodo says:

    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

  17. crazymodo says:

    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…

  18. crazymodo says:

    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… ;)

  19. Lisa says:

    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?

  20. Janey says:

    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?

  21. Brian E says:

    firefox 3 error during popups:

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

  22. Brian E says:

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

  23. Ryan says:

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

  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.

  25. Brian E says:

    Updated to 10.3

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

  26. Brian E says:

    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 :)

  27. RAZ says:

    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?

  28. crazymodo says:

    wow, amazing bro… thanks for the updates!

  29. crazymodo says:

    installed the updated 0.10.5 version

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

  30. RAZ says:

    @Piotr

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

  31. crazymodo says:

    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…

  32. maddy says:

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

  33. Brian E says:

    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!!!

  34. Sara says:

    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.

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

  36. sarah says:

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

  37. sarah: Can you be more precise?

  38. sarah says:

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

  39. Brian E says:

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

  40. sarah says:

    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?

  41. Brian E says:

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

  42. sarah says:

    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?

  43. sarah says:

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

  44. sarah says:

    I mean to add thanks brian. :_

  45. Brian E says:

    bug:

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

  46. Brian E says:

    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?

  47. HLM says:

    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. :)

  48. Mordy says:

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

  49. Michael Wood says:

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

  50. 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.

  51. 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’.

  52. 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…

  53. Michael Wood says:

    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

  54. 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.

  55. Michael Wood says:

    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

  56. Mordy says:

    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.

  57. HLM says:

    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. :)

  58. HLM says:

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

  59. sarah says:

    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.”

  60. Brian E says:

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

  61. Jim says:

    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?

  62. Michael Wood says:

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

  63. Jim says:

    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.

  64. 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).

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

  66. Brian E says:

    @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!

  67. Jim says:

    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.

  68. 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.

  69. 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.

  70. Jim says:

    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

  71. 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.

  72. amy says:

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

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>