Page 3 of 4 FirstFirst 1 2 3 4 LastLast
Results 21 to 30 of 37

Thread: auto_mushroom: the perfect mushroom-growing script

  1. #21
    Senior Member
    Join Date
    Mar 2012
    Posts
    247

    Default

    Ah, I see what the problem is. You can't click "script layout" under the one-click planting. That saves over the script. You need to download a fresh copy and click "load layout" in the script generator.

    Doesn't the layout tab only support part of the schedule? I think for a 'good' auto-script (basically anything that will do the full 16 day schedule) you just set it as your script using the automation preferences tab (or gCLI), and leave it...
    Originally Posted by Theraze View Post
    The generator tab actually only displays some pictures. You can actually put any layout you want into the .txt file and it will show up there, that has nothing to do with the script operation. I just made it spell out "AUTO" in mushrooms, but it doesn't work well.
    Last edited by rlbond86; 06-28-2012 at 05:22 AM.

  2. #22
    Junior Member
    Join Date
    May 2010
    Posts
    9

    Default

    That worked. Thanks.

  3. #23
    Senior Member
    Join Date
    Mar 2012
    Posts
    247

    Default

    Updated to 2.0!

  4. #24
    Member T_E's Avatar
    Join Date
    Dec 2009
    Location
    Here
    Posts
    91

    Default

    I've been running this script during most of my aftercore stints for quite a while. Today, my first day of this particular aftercore, I noticed that I am getting this message in the CLI when I log in:
    AUTO_MUSHROOM already run today!

    Yet, when I check my mushroom plot there is nothing planted. As far as I can tell, I haven't changed any settings.
    I'm running auto_mushroom version: 2.0 (current) and KoLmafia-12227.
    Thanks in advance for any help/guidance.

    ETA- Lost suggested I do this:

    set plantingDate = -1

    and after doing so, I logged out, then back in, and the script planted my mushrooms successfully. Woo!
    Last edited by T_E; 06-20-2013 at 05:04 PM. Reason: fix (I hope)

  5. #25

    Default

    My script always does day 1 every day.

  6. #26
    Senior Member
    Join Date
    Mar 2012
    Posts
    247

    Default

    I've been running this script during most of my aftercore stints for quite a while. Today, my first day of this particular aftercore, I noticed that I am getting this message in the CLI when I log in:
    AUTO_MUSHROOM already run today!

    Yet, when I check my mushroom plot there is nothing planted. As far as I can tell, I haven't changed any settings.
    I'm running auto_mushroom version: 2.0 (current) and KoLmafia-12227.
    Thanks in advance for any help/guidance.

    ETA- Lost suggested I do this:

    set plantingDate = -1

    and after doing so, I logged out, then back in, and the script planted my mushrooms successfully. Woo!
    Originally Posted by T_E View Post
    I have tried to replicate this but can't. Either way, I'm glad that it got solved!

  7. #27
    Senior Member
    Join Date
    Mar 2012
    Posts
    247

    Default

    My script always does day 1 every day.
    Originally Posted by somebody1234 View Post
    If it's still doing this, can you show the CLI output?

  8. #28

    Default

    I've been running this script during most of my aftercore stints for quite a while. Today, my first day of this particular aftercore, I noticed that I am getting this message in the CLI when I log in:
    AUTO_MUSHROOM already run today!

    Yet, when I check my mushroom plot there is nothing planted. As far as I can tell, I haven't changed any settings.
    I'm running auto_mushroom version: 2.0 (current) and KoLmafia-12227.
    Thanks in advance for any help/guidance.

    ETA- Lost suggested I do this:

    set plantingDate = -1

    and after doing so, I logged out, then back in, and the script planted my mushrooms successfully. Woo!
    Originally Posted by T_E View Post
    This happens to me every once in a while. Here's what I think is going on: if you ascend and then don't buy a mushroom plot for 16 days (or 32, etc.), then the "plantingDate" is, by accident, the same as the last one on which the script was run. This makes the script's logic think it was already run that day, when really, it hasn't run for a couple of weeks. The easy way around this is manually resetting the plantingDate variable (which is what I've always done).

    The only way I can think of to handle it automatically is check if the field is empty before aborting, and run anyway if there's nothing planted; that won't catch every instance (if someone was manually planting before running the script, it won't work), but it should catch 99.9% of them.

  9. #29
    Senior Member
    Join Date
    Mar 2012
    Posts
    247

    Default

    This happens to me every once in a while. Here's what I think is going on: if you ascend and then don't buy a mushroom plot for 16 days (or 32, etc.), then the "plantingDate" is, by accident, the same as the last one on which the script was run. This makes the script's logic think it was already run that day, when really, it hasn't run for a couple of weeks. The easy way around this is manually resetting the plantingDate variable (which is what I've always done).

    The only way I can think of to handle it automatically is check if the field is empty before aborting, and run anyway if there's nothing planted; that won't catch every instance (if someone was manually planting before running the script, it won't work), but it should catch 99.9% of them.
    Originally Posted by Xande1 View Post
    That is odd though, plantingDate and plantingDay are reset after ascension I thought. I'd appreciate any help figuring that out. I should be ascending soon and will make sure to double-check.

    The only think I can think is maybe if you ascend and then buy a plot that same day?

  10. #30
    Senior Member
    Join Date
    Mar 2012
    Posts
    247

    Default

    Found the bug. It was because string_to_int("") == 0, so it always thought the last day was day 0 on a new ascension. This would mess up if it was day 1.

Similar Threads

  1. Script Request: Astral Mushroom optimizer
    By Czar of the 3rd Reich in forum Turn-Burning Scripts
    Replies: 1
    Last Post: 12-05-2014, 11:54 AM
  2. Bug - Fixed r13470 - Login script not running because of mushroom plot
    By Fluxxdog in forum Bug Reports
    Replies: 20
    Last Post: 01-09-2014, 04:05 AM
  3. Modified mushroom script to produce 3rd +4th gen crop
    By tebee in forum Item Handling Scripts
    Replies: 37
    Last Post: 09-07-2013, 08:50 PM
  4. My window is growing.
    By Pinky in forum Community Support
    Replies: 0
    Last Post: 12-19-2007, 03:21 PM
  5. Knoll Mushroom Script
    By L33t Masta in forum Scripting Discussion
    Replies: 1
    Last Post: 06-09-2006, 04:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •