Textual Reflexions

19/9/2008

PackRat script: version 1.1 “The Server Relief”

Filed under: Packrat — Piotr P. Karwasz @ 9:01 pm

[This version of the script is OBSOLETE. For more informations and newer versions check the PackRat Helper category.]

As I mentioned in my previous post the PackRat servers are undergoing a great strain due to the number of people playing the game and (which most concerns me) the number of people that use this script 24 hours a day. The developers of the game has gently asked to make some modifications to the script to limit the abuses. Since their proposal was reasonable enough, I have decided to adopt it (with some changes).

Changelog:

  • Stalking works again.
  • You can automatically buy only one card of each kind from the new collections every 24 hours (currently “Green Scene”, “High Seas Century” and “Trick or Treat). For the rest of them you’ll get a confirmation pop-up).
  • After collecting 2000 credits or discovering 10 pop-ups since your last visit to Your Pack, the script will pause.
  • After 2 hours since your last visit to Your Pack, the script will browse the pages at a much slower pace.
  • The minimum delay for browsing is 3 seconds, while for market stalking it is 30 seconds.

Download PackRat Helper: version 1.1

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

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

42 Comments »

  1. Personally those sound more than reasonable IMHO. Will there be a database update anytime soon? :)

    Comment by Joseph — 20/9/2008 @ 12:52 am

  2. Are these errors something to do with my computer settings or is it a bug in the script ?

    Error in module ‘page’ on line 53: div is null
    Error in module ‘card’ on line 176: div is undefined

    Comment by confuzzled — 21/9/2008 @ 3:28 am

  3. can’t even get this latest version to scan my vault keep getting errors

    Comment by confuzzled — 21/9/2008 @ 3:34 am

  4. Your collections database file has an error in it.


    'green-home':{name:"Green Home", make:["solar-panel", "cfl-bulb", "reduce"]},

    ‘reduce-reuse-recycle’:{name:”Reduce, Reuse, Recycle”, make:["aluminum-cans", "plastic-bottles", "old-newspapers"]},

    The “reduce” should be “reduce-reuse-recycle”.

    Comment by Samuel Wood — 22/9/2008 @ 8:10 pm

  5. I think the changes you’ve implemented are more than fair. The complaints I see are so selfish, I would much rather have the game be fair to everyone. I’ve always used a 30 second market refresh since I don’t want to lose my facebook account and have never had a problem purchasing new items. I even have one of the first bridesmaid cards. It will not interfere with anyone who interacts with the script while it’s running. Kudos to you for implementing the changes and making the game more playable for all.

    Comment by Hannah — 22/9/2008 @ 8:24 pm

  6. I believe I found another spelling error
    I did a check for unknown cards and got this…

    green-scene/nuclear-power-plane

    pretty sure it should be green-scene/nuclear-power-plant

    I have feated Green scene and the computed shopping list still says I need 3 atoms and 1 nuclear power plant so the above error is probably why i’m getting this

    Comment by Mike — 23/9/2008 @ 3:36 am

  7. Sounds reasonable to me

    Comment by Carey — 23/9/2008 @ 4:46 pm

  8. The old version stopped working about 3 hours ago, and even the new version doesn’t work right. I noticed it wasn’t working when it kept browsing my husband’s rats. Is there something going on?

    Comment by Amy Williams — 24/9/2008 @ 12:47 am

  9. Hi, Can I ask for you help? When I click on prefrences, the page scolls right to the bottom and I can’t change the amount of credits and collections etc,. I had it working properly at one time but it just starting doing this. Any Suggestions? I don’t understand why its locked in a certain position on the screen.
    Please help

    Comment by douglas — 24/9/2008 @ 3:56 am

  10. I have been getting the same errors as the above people, but now I am not able to scroll up to the top and make changes to what popups I want it to be on the look for or change the credits that I would like it to get and so on. I have tried to uninstall and reinstall and it still occurs is it an issue with the script or something else. I also was trying to download this to my mac and I constantly had errors on that as well and wouldnt let me download it at all. Do you have any suggestions about all the above? It used to be working pretty well, but the last few days have just gotten tons of errors and now the inability to scroll to the top of the preferences.

    Hope to hear from you soon,

    Comment by Sunshine80 — 24/9/2008 @ 9:33 am

  11. i click on scrip & it shows the bottom part only wont scroll up to the top please help

    Comment by john finlay — 24/9/2008 @ 11:25 am

  12. Obviously the DEVs saw fit to change the code… AGAIN… to render the script inoperable. If they aren’t going to play nice, why should we?

    Comment by HLM — 24/9/2008 @ 3:24 pm

  13. Precisely. It’s telling that within a couple of days of the script being modified to suit their complaints, they change the coding AGAIN to screw up the script. Why bother opening a line of dialogue with them, if they’re only going to screw us over again?

    Comment by Janey — 24/9/2008 @ 5:15 pm

  14. I *strongly* suspect that the current errors related to the script are due to facebook’s surrounding chrome changing rather than the packrat devs doing something. The reason I suspect this is because the facebook ‘quickbar’ at the bottom keeps getting moved to the middle of my page, etc. If the devs of packrat had wanted to bread the script there are much better ways to do that rather than screwing up the display of the preferences screen too.

    BTW, for those having problems with the script preferences, at least for me, both on FF2 and FF3 if you select a text field and then tab between fields you’ll be able to get to all of the fields you need to modify/select. Yes, it’s more tedious than it should be and it should be fixed for certain, but it’s not the end of the world and the script still works correctly.

    Comment by Joseph — 24/9/2008 @ 7:01 pm

  15. Mine stopped working yesterday also, but just updated Firefox to new version and it is working fine.

    Comment by Jeff — 25/9/2008 @ 4:54 am

  16. hi it wont let me browse the packs it just said resting can someone help

    Comment by john finlay — 25/9/2008 @ 5:24 am

  17. About the scrolling problem: The preferences window is in reality just a part of the main window, so if you can scroll the page, you should be able to scroll the preferences. Unless something weird happens…

    john: In the preferences you should have one of the grinding/credits/browsing options active (i.e. “Browsing in an infinite loop” or grinding active and max level > your current level or credits collection active and a positive quantity of credits to find).

    Comment by Piotr P. Karwasz — 25/9/2008 @ 10:19 pm

  18. Piotr- When the preferences dialog goes weird, it ‘floats’ on top of the page and scrolling the page via the scroll bar does not move the dialog window. I did find that using the up/down arrow keys does scroll the page AND the dialog. This is how I got around the problem. But then as suddenly as it appeared, the problem went away for me. I think facebook was tweaking things for a short time. At this point, the dialog is working for me.

    As for priority in tasks that the script performs: Please check to see if Pausing for pop-ups is higher or lower in priority then trading up of cards. The reason I mention this is because I have it set to pause on pop-ups because I am looking for the new Trick or Treat piece, and I am looking for one older card so I have told it to trade up one of my cards to get high enough to steal the card I am looking for. It was moving right alog, if upgraded my card a few times, then I saw a popup that I was interested in show up. Before I could move the mouse over to pick it up, the script instantly did a trade which makes the popup go away. After the trade was made, the script went into ‘resting’ mode waiting for me to deal with the now non-existent popup. I feel it should wait first, then do trades so that you don’t loose valuable popups.

    Comment by Jim — 26/9/2008 @ 12:03 am

  19. I am getting errors in the automatic calculation of which cards I need to complete a set. For instance I have everything but two cards in Green Scene (2 Winds to create 1 Turbine Farm & 1 CFL Bulb) but the script says I need 3 Atoms, 1 Nuclear Power Plant, 3 Winds, 1 Turbine Farm, 1 CFL Bulb.

    Comment by Kriis — 26/9/2008 @ 1:06 am

  20. its not loading the new cards in tt theres 3 new cards 2 of which r pop ups but it doesnt show up in the script

    Comment by john finlay — 1/10/2008 @ 2:18 am

  21. The steal feature doesn’t recognise Great Walls. I happened to be glancing at the screen when it opened the rat’s pack, displayed a Great Wall, then scrolled on without attempting to steal it. I killed the script, and went back and stole manually.

    Comment by G — 1/10/2008 @ 10:28 am

  22. I keep getting tons of Page Load Errors. I’ve adjusted my settings to just look for popups, but every time I try to use the script it can’t find any Facebook application pages, including some other games that I play that don’t even involve Packrat. Are they blocking me because I’m using the script?

    Comment by Donna — 2/10/2008 @ 7:17 pm

  23. Oh, and one more thing. I can access the pages with IE, just not Firefox, so that means it’s not a server issue, right?

    Comment by Donna — 2/10/2008 @ 7:28 pm

  24. Ok, I knew as soon as I complained, it would fix itself, and it has. I haven’t had any more problems with it. (Is there some way we can delete our useless posts??) :)

    Comment by Donna — 2/10/2008 @ 9:15 pm

  25. I can’t get it to work at all!
    It says:

    Error in module ‘page’ on line 53: div is null

    Status:
    Resting…
    Notes:

    * Go to ‘Steal from Friends’ page to start browsing cycle

    And I keep going to ‘Steal from Friends’, and it says the same thing…

    Comment by Selene — 4/10/2008 @ 11:19 am

  26. Anybody help with this?

    Error in module ‘page’ on line 52: div has no properties

    Comment by Steve — 4/10/2008 @ 12:21 pm

  27. I am also getting the error:

    Error in module ‘page’ on line 53: div is null

    Status:
    Resting…
    Notes:

    * Go to ‘Steal from Friends’ page to start browsing cycle

    Even when I’m on a rats page. Is it something I’m doing or something wrong with Script or with PackRat?

    Comment by Fred — 4/10/2008 @ 4:16 pm

  28. maybe the devs of PackRat have developed the system to block it????????

    Comment by Steve — 4/10/2008 @ 5:46 pm

  29. It seems that stylish was also having some problems today too - you know the firefox app that moves over the credits and cards. I bet the two problems are connected.

    Comment by Fred — 4/10/2008 @ 6:27 pm

  30. It’s not just this script with issues; Mob Wars Helper is also having issues (although that one was easy to fix, by just editing the script to take out the “new” where there is “new.facebook.com.” The Packrat one is a tougher nut to crack, though - I get stuck when starting PR and it goes to check vaulted cards. I’ve looked at the script source, and I don’t see problems with URLs or divs/classes in the chunk of code for checking the vault, although I’ve admittedly not spent a great deal of time on it.

    Apparently FB has done some code munching over night.

    Comment by Packratter — 4/10/2008 @ 9:50 pm

  31. Facebook seems to have completely switched to the new design, and therefore removed the word “new” in the URL to the “new” format.

    All that needs to be done to fix the script is go to line 53, there is an if statement
    Remove the entire if statement (2 lines, number 53 and 54) and put
    Page.fnew = true;

    there instead.

    Realistically the entire logic for old vs new can be ripped out, but it’s harder if you don’t know what you are doing. This change can be done by anyone who knows how to open the script in wordpad.

    Comment by also a developer — 4/10/2008 @ 10:17 pm

  32. also a developer-I was just about to post the very same fix as I have also discovered it at the same time you did. I guess brilliant minds think alike.

    Comment by Jim — 5/10/2008 @ 12:59 am

  33. Thanks for the info on how to fix the error “also a developer” and Jim.. :-) Fixed it no problem. :-)

    Comment by Ryan — 5/10/2008 @ 4:18 am

  34. mine keeps going to check vault but does do anything error 53 please please help

    Comment by john finlay — 5/10/2008 @ 5:15 am

  35. Hi Piotr!
    I finished the script to autocreate the collection file.
    Send me a mail then i can send the script to you.

    Comment by Pedro — 5/10/2008 @ 7:46 am

  36. when i go to edit my code there are no line numbers!!!

    Comment by Steve — 5/10/2008 @ 1:14 pm

  37. The vault is the same problem as I described above. It’s unable to move thru the vault, and is getting stuck.

    As for line numbers, just count to 53 :)
    Actually just replace lines
    if (url.indexOf(’apps.new.facebook.com’) != -1) Page.fnew = true;
    else Page.fnew = false;

    with
    Page.fnew = true;

    and you’ll be fine.

    Comment by also a developer — 5/10/2008 @ 6:11 pm

  38. I think i must be the only person who can’t seem to find that line.

    Comment by lee — 5/10/2008 @ 7:53 pm

  39. where do i find the script & to change the wording

    Comment by john finlay — 6/10/2008 @ 4:39 am

  40. Mine isn’t working at all. The box is on the left of my screen instead of the right and all it wants to do is check my vault, which it then scans the same vault page over and over.

    Am I the only one having this problem?

    Comment by Lisa — 6/10/2008 @ 3:05 pm

  41. I am having that exact problem as well, Lisa

    Comment by Carey — 6/10/2008 @ 5:14 pm

  42. About the new Facebook layout: Facebook changed the default layout to the new one. Hence all the problems. In the new version 1.1.1 everything should work (also the Menu box should be right).

    Comment by Piotr P. Karwasz — 6/10/2008 @ 10:31 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment

Powered by WordPress