Page 2 of 4 FirstFirst 1 2 3 4 LastLast
Results 11 to 20 of 38

Thread: Modified mushroom script to produce 3rd +4th gen crop

  1. #11

    Default Re: Modified mushroom script to produce 3rd +4th gen crop

    I'll do you one better. Here's my script that does 8 gloomy and 2 rounds of level 3 mushrooms (if people want me to put this in a different topic so it's easier to find, that's fine).

    I had to do this by hand, because the mushroom layout doesn't do 16 days, so I may be off on it. I was actually inspired to make it when I saw this post, and I haven't been able to test it yet. ::crosses fingers::

    If anyone wants to use this, be my guest.

    EDIT: I suppose it would help if I told people how to use this. Because it's a 16-day script, it can't be run directly from KoLMafia's mushroom layout tool. You must either call the script from the CLI or edit your user preferences and set "plantingScript" to "MaxShrooms". It wouldn't be a bad idea to delete the rest of the planting* variables, just for cleanliness -- this script will initialize them on first run. Once it has been run once, having the "plant mushrooms" box checked in your breakfast settings will ensure the script gets called on breakfast.

    EDIT 2: I added a 'notify' line to the script. I figure if people are actually using this, it would be cool to know.

    EDIT 3: Updated the script to version 0.2; the script should now run correctly for days 8-16.
    Attached Files

  2. #12

    Default Re: Modified mushroom script to produce 3rd +4th gen crop

    Wow very nice Sandi, I'll be sure to give this a trial run on the next muscle day. Thanks for the breakfast and checks so that it doesn't run more than once, very nice and impressive.

  3. #13
    Senior Member
    Join Date
    Aug 2008
    Posts
    125

    Default Re: Modified mushroom script to produce 3rd +4th gen crop

    I recently tested the OP's script on a multi, the initial 11 days (from the first muscle day) were successful, and today I harvested my 8 gloomies. When mus days roll around again, I'll also test Sandiman's script and indicated adjustments.

    Thanks much for your efforts, both of you!

  4. #14

    Default Re: Modified mushroom script to produce 3rd +4th gen crop

    Sandi, I seem to run into problems when ticking the "Plant mushrooms" for breakfasting. I get this error:

    No available namespace with function: planting/MaxShrooms.ash

  5. #15

    Default Re: Modified mushroom script to produce 3rd +4th gen crop

    Is the MaxShrooms.ash file in the "planting" directory, or did you download it somewhere else?

  6. #16

    Default Re: Modified mushroom script to produce 3rd +4th gen crop

    Ooh, I just put it in scripts

    I'll try sticking it in that Dir.

  7. #17

    Default Re: Modified mushroom script to produce 3rd +4th gen crop

    Should the script be picking the mushrooms today?

    August 25, 2008 - Starch 2

    Ronald: waxing crescent
    Grimace: new moon

    All the gloomies are there, but the script isn't picking them.

    In gCLI:

    plantingDate => 1
    plantingDay => 0
    Moon phase is not correct for running this script. Try again tomorrow.
    plantingDay => -1
    plantingDate => -1
    Initializing chat interface...

  8. #18

    Default Re: Modified mushroom script to produce 3rd +4th gen crop

    Actually, the script failed yesterday, too. It was supposed to plant mushrooms to start the second 3rd-generation cycle, and it failed to do so.

    For those of you wanting a learning experience, take a look at line 53 of the original script.

    Incorrect (and current) code:
    Code:
    int offsetDate = index + 8 % 16;
    Correct code:
    Code:
    int offsetDate = (index + 8) % 16;
    Turns out 8 % 16 is always 8. Who knew?

    For those of you running my script, sorry for screwing up one of your moon loops. If you manually edit your user preferences and set the following values, then run the script, it will pick all your gloomy mushrooms:
    Code:
    plantingDate=0
    plantingDay=8
    I would suggest that those choosing to go this route manually clear our their mushroom fields on the first Muscle day; while the script will continue to run every day, it will no longer be breeding the correct mushrooms (it was supposed to plant mushrooms yesterday to start the second 3rd-generation cycle). If the field is not cleared on the first Muscle day, it will not produce the desired mushrooms.

    Those of you who do NOT want to continue planting mushrooms in this cycle (after all, it won't be 3rd-gen mushrooms) should install the new version and pick your gloomy mushrooms manually.

    For all parties involved, the script will automatically "restart" its planting cycle on the first Muscle day, so you should be good to go provided you a) have the new version installed and b) have a blank mushroom plot by the first Muscle day.

    I hope that answered everyone's questions. If not, please let me know.
    Attached Files

  9. #19

    Default Re: Modified mushroom script to produce 3rd +4th gen crop

    haha, awesome, thanks sandy :P

  10. #20
    Senior Member
    Join Date
    Aug 2008
    Posts
    125

    Default Re: Modified mushroom script to produce 3rd +4th gen crop

    I also encountered the same situation, thanks for the fix, Sandiman! Also, I've posted a link to this thread in our clan forum, hope you don't mind

Similar Threads

  1. auto_mushroom: the perfect mushroom-growing script
    By rlbond86 in forum Item Handling Scripts
    Replies: 37
    Last Post: 03-05-2018, 05:39 AM
  2. 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
  3. 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
  4. Replies: 0
    Last Post: 01-02-2013, 09:30 PM
  5. Knoll Mushroom Script
    By L33t Masta in forum Scripting Discussion
    Replies: 1
    Last Post: 06-09-2006, 03: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
  •