View Full Version : 3rd gen mushrooms using 7.8
efilnikufecin
06-09-2006, 03:13 AM
Updated to use the new features in 7.8 (i know 7.9 was just released.)
- ASH provides the ability to save and retrieve settings in the character-specific .kcs file.
* * *string get_property(string)
* * *void set_property(string,string)
the original scripts can be found in outdated scripts http://kolmafia.us/index.php/topic,57.msg196.html#msg196* because the methods (using an external batch file) are not needed anymore.
Based on pastafresco's Mushroom Field Scripts, this file will help you grow 3rd generation mushrooms without manually editing your scripts each day. There is always the potential for error in that the user may run this file twice in one day which will throw everything out of whack. I am still working on the cure for that problem, and will upload a new version once I have completed it.
This file has not been tested because I am currently using my mushroom fields for other things. This file contains an error which Presto Ragu has fixed in the third post down. AlternateShrooms.ash should work. There is no need for cycle.ash Thanks Presto Ragu.
Editting again: I uploaded the wrong file totally. That was a backup copy of the file while I was still writing it. (the file loaded in outdated scripts had the same problem and is also invalid. since no-one used it it went un-noticed. Here is the correct file.
L33t Masta
06-09-2006, 06:27 PM
Updated to use the new features in 7.8 (i know 7.9 was just released.)
the original scripts can be found in outdated scripts http://kolmafia.us/index.php/topic,57.msg196.html#msg196* because the methods (using an external batch file) are not needed anymore.
Based on pastafresco's Mushroom Field Scripts, this file will help you grow 3rd generation mushrooms without manually editing your scripts each day. There is always the potential for error in that the user may run this file twice in one day which will throw everything out of whack. I am still working on the cure for that problem, and will upload a new version once I have completed it.
This file has not been tested because I am currently using my mushroom fields for other things.
When I run the script I get
File cycle.ash not found at line 1 in file C:\Documents and Settings\L33t Masta\My Documents\scripts\shrooms.ash. Debug log printed.
net.sourceforge.kolmafia.KoLmafiaASH$AdvancedScrip tException: File cycle.ash not found at line 1 in file C:\Documents and Settings\L33t Masta\My Documents\scripts\shrooms.ash
at net.sourceforge.kolmafia.KoLmafiaASH.parseScope(Un known Source)
at net.sourceforge.kolmafia.KoLmafiaASH.validate(Unkn own Source)
at net.sourceforge.kolmafia.KoLmafiaASH.execute(Unkno wn Source)
at net.sourceforge.kolmafia.KoLmafiaCLI.executeScript Command(Unknown Source)
at net.sourceforge.kolmafia.KoLmafiaCLI.executeComman d(Unknown Source)
at net.sourceforge.kolmafia.KoLmafiaCLI.executeLine(U nknown Source)
at net.sourceforge.kolmafia.KoLMenuBar$LoadScriptMenu Item.run(Unknown Source)
at net.sourceforge.kolmafia.RequestThread.run(Unknown Source)
Presto Ragu
06-09-2006, 06:50 PM
That is because this script requires a sub script that efilnikufecin had in his original thread.
I have loaded the file here, and I hope there aren't any changes to it....
Otherwise, we will need to wait for efilnikufecin to help us out.
EDIT:: Actually, looking over it again, it looks like you can remove the first line of the script and have it work...
I have uploaded that as well, and renamed it AlternateShrooms.ash.
NOTE: I have not tested these files at all. Use anything I post here at your own risk - at least until efilnikufecin gives his blessing. ;)
EDIT 2:: I removed the unnecessary files.
efilnikufecin
06-09-2006, 07:43 PM
I took out the requirement, but failed to take out the import oops, will fix now.
Edit: Actually Presto Ragu caught it first. I'll just edit the top post to reflect.
a funny little note, when I modified the script to not use cycle.ash, I ran it while not logged on, and the import statement found cycle.ash because I hadn't deleted the file. I always test modified scripts for typos by attempting to run them, but sometimes errors like this one will pass un-noticed. Silly me :P
L33t Masta
06-10-2006, 05:24 PM
I took out the requirement, but failed to take out the import oops, will fix now.
Edit: Actually Presto Ragu caught it first. I'll just edit the top post to reflect.
a funny little note, when I modified the script to not use cycle.ash, I ran it while not logged on, and the import statement found cycle.ash because I hadn't deleted the file. I always test modified scripts for typos by attempting to run them, but sometimes errors like this one will pass un-noticed. Silly me* :P
K. I did what you said to and now I get:
Script parsing error at line 101 in file scripts\alternateshrooms.ash. Debug log printed.
net.sourceforge.kolmafia.KoLmafiaASH$AdvancedScrip tException: Script parsing error at line 101 in file scripts\alternateshrooms.ash
Presto Ragu
06-10-2006, 05:44 PM
That is because one of the functions that this script uses is not yet implemented in a public release.
You will have to wait for the next mafia release, sorry.
efilnikufecin
06-10-2006, 09:08 PM
That is because one of the functions that this script uses is not yet implemented in a public release.
You will have to wait for the next mafia release, sorry.
actually, I just found yet another typo in the file.
Line 101:
int incloop(int start);
should have been
int incloop(int start)
I make that mistake constantly.
On looking the script over, that file was not intended to be the one I uploaded. That was a backup saved in the process of writing the code. once that error got fixed, there were 50million more silly "you forgot the (insert char here)" or "that char don't belong" errors to be found. The fact that I write in other languages is the cause of this problem. Try loading a program into the pascal compiler written in kolmafia scripting format. I've done that one too.
Anyway, here is the file I had meant to upload, and I will replace the top version, and edit yet again.
Powered by vBulletin® Version 4.1.12 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.