Page 79 of 79 FirstFirst ... 29 69 77 78 79
Results 781 to 788 of 788

Thread: Harvest A highly customisable farming script

  1. #781
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    4,185

    Default

    fronobulax- sorry did not mean to disparage eat drink. yours is another script that has been awesome over the years. I was poking around in the files trying to find where in the scripts where that file then tells eat drink to reach 15 spleen. if that can get turned off i suspect the spleen nerf will be a minor bump
    Originally Posted by Tom Sawyer View Post
    No apology needed. When the spleen nerf happened there were a whole lot of people who thought the problem was with eatDrink and not with the call to eatDrink. I thought the issue had been dealt with but maybe it wasn't Harvest.

    Lines 1095-1099 in Harvest

    Code:
    		if(my_fullness() < fullness_limit()-cookie_room || my_inebriety() < inebriety_limit() || my_spleen_use() < spleen_limit()) {
    			print(CONSUME_SCRIPT +" failed to fill your organs completely", "red");
    			print("Desired fullness: " + (fullness_limit()-cookie_room) + " food " + inebriety_limit() + " drunk " + spleen_limit() + " spleen", "red");
    			print("Attained fullness: " + my_fullness() + " food " + my_inebriety() + " drunk " + my_spleen_use() + " spleen", "red");
    		}
    If you delete the last clause "|| my_spleen_use() < spleen_limit()" that should stop Harvest from aborting because the spleen was not filled.

    Line 354 also uses spleen_limit() but I'm not sure the test has any practical effect.
    You just vehemently agreed with me
    Originally Posted by Veracity View Post
    I agree with frono.
    Originally Posted by Veracity View Post

  2. #782
    Senior Member Tom Sawyer's Avatar
    Join Date
    Jun 2007
    Posts
    120

    Default

    Fronbulax. That did not work but I believe the line 354 (not sure how to make word show line numbers) tinkering did. Took out the spleen use vs spleen limit - This section:

    Code:
    boolean finished_farming() {
    	/* Returns true if you have finished farming for the day, or false if you are still 
    	able to farm */
    	announce(2, "finished_farming");
    	
    	boolean result;
    	if(my_inebriety() > inebriety_limit())
    		result = true;
    	else if (my_fullness() < fullness_limit()-cookie_room || my_inebriety() < inebriety_limit() || my_spleen_use() < spleen_limit())
    			result = false;
    	else if (my_adventures() > 0)
    		result = false;
    	else
    		result = true;	
    	
    	announce(3, result);
    	
    	return result;
    	}
    When I run it tonight after rollover if it does a normal complete run without failing it will have passed the acid test. Thanks again!
    Last edited by lostcalpolydude; 04-17-2018 at 12:18 PM.

  3. #783
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    4,185

    Default

    Thanks. I only looked at the code, not tested it, so I am glad I pointed you in the right direction.

  4. #784
    Junior Member
    Join Date
    Sep 2018
    Posts
    3

    Default

    I think I finally got this working, but I am getting stuck at the Buff Items. I have a sauceror that is why I am a bit baffled at this:

    "You need 1 more Rock and Roll Legend to continue."

    I already found the post where you mentioned that: "
    Jun 2011
    Posts
    92
    Default
    I just pushed an update out that should disable the Mace of the Tortoise/Rock and Roll Legend check if you have an Ouija Board, Ouija Board and an antique accordion (both purchasable on non-ascended characters), so if you get those it shouldn't complain about the Mace any more. Let me know if you have any more issues!"

    I have both the Ouija Board, Ouija Board and an antique accordion in my inventory. When I manually equip the accordion, I cannot equip the Board because it is two handed. When I just equip the Board I get the "You need 1 more Mace of the Tortoise to continue" Warning again. any help would be greatly appreciated.

  5. #785

    Default

    Hmm, that should be fixed. Are you using the most recent version of the script?

  6. #786
    Junior Member
    Join Date
    Sep 2018
    Posts
    3

    Default

    Hmm, that should be fixed. Are you using the most recent version of the script?
    Originally Posted by coandco View Post
    I am, I did an update right before I posted (KOLmafia is also set to autoupdate). I did not play for a few days and when I started it this morning, it just worked again. That is so odd. I cannot see an update to the script but I did change some gear this morning before I started Harvest. I might have an a combination that broke the script at that point, sorry I did not keep track of what I had equipped overall. But the script did change to the items it needed on its own this morning, familiar, weapons etc.

    I just had a look at the script itself:

    Written by Banana Lord with much help from
    the KoL Mafia community

    \***********************************************/

    script "Harvest.ash";
    notify Banana Lord;
    import <EatDrink.ash>;
    import <canadv.ash>;
    import <OCD Inventory Control.ash>;
    import <zlib.ash>;

    check_version("Harvest", "Harvest", "2.0.9", 7015);

    I am not sure if there were updates between my post and today though.


    On a side note, I tried to figure out why the script always takes my meat and goes down to 100000 meat when it starts because it puts away meat. I did change the value of adventures and lowered the limit to 15000 in the eatdrink script as I know it is eatdrink, not Harvest that does the spending. Could you point me in the right direction?

  7. #787

    Default

    The "meat going down to 100000" thing is because Harvest keeps a budget and closets the rest of your meat before spending anything. The amount Harvest is allowed to spend is stored in the "har_gen_budget" zlib variable; to access it, type "zlib har_gen_budget" into KoLMafia's graphical CLI. It'll print out the current value and instructions for how to change it.

  8. #788
    Junior Member
    Join Date
    Sep 2018
    Posts
    3

    Default

    The "meat going down to 100000" thing is because Harvest keeps a budget and closets the rest of your meat before spending anything. The amount Harvest is allowed to spend is stored in the "har_gen_budget" zlib variable; to access it, type "zlib har_gen_budget" into KoLMafia's graphical CLI. It'll print out the current value and instructions for how to change it.
    Originally Posted by coandco View Post
    Thank you, I can take it from here. I triple checked the Harvest Script since my last comment and I was not able to reproduce the issue I originally mentioned. So odd. Thank you kindly for your help and the amazing work you do here.

Similar Threads

  1. JTN's All-In-One Farming Script
    By jtn2002 in forum Scripting Discussion
    Replies: 16
    Last Post: 05-09-2012, 06:00 PM
  2. The Neo-Cow Farming Script
    By Banana Lord in forum Turn-Burning Scripts
    Replies: 191
    Last Post: 07-07-2011, 10:08 AM
  3. First try at a farming script
    By AgnesM in forum Turn-Burning Scripts
    Replies: 7
    Last Post: 07-14-2008, 04:54 AM
  4. Daily Farming Script (Formerly Known As "Script Noob")
    By T-Unit in forum Turn-Burning Scripts
    Replies: 14
    Last Post: 07-26-2007, 11:50 PM
  5. Farming Script
    By mmo.stuff in forum Scripting Discussion
    Replies: 1
    Last Post: 11-29-2006, 09:09 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
  •