Results 1 to 6 of 6

Thread: Scripting help needed, or bug, uncertain which.

  1. #1
    Senior Member
    Join Date
    Aug 2008
    Posts
    136

    Default Scripting help needed, or bug, uncertain which.

    KoLmafia v20.2 r19894

    Sorry y'all, I have *no* clue how to adjust .ash scripts if it isn't an extremely simple change. Got this error today on login, so, thread title!

    Function 'string_to_int( string )' undefined. This script may require a more recent version of KoLmafia and/or its supporting scripts. (MaxShrooms.ash, line 59)

  2. #2
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    4,628

    Default

    See https://kolmafia.us/showthread.php?2...388#post156388

    I think that means the author of MaxShrooms needs to make some changes.

  3. #3
    Senior Member
    Join Date
    Aug 2008
    Posts
    136

    Default

    Thanks for your help! I tried making the same adjustment, just got different errors. I probably did something wrong. Switched to an older version of mafia for the time being.

  4. #4
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    12,927

    Default

    There are two usages of string_to_int. I changed both to simply to_int and it worked. I'll probably post this in the MaxShrooms thread, since the script hasn't been updated since 2009, but, here it the script with that update:
    Attached Files

  5. #5
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    12,927

    Default

    By the way - you might want to consider using auto_mushroom, since that seems to be a superior script. That, too, is no longer maintained by the script author - but he just gave me commit access, so I fixed the undefined function errors and you can get the latest version from the Script Manager.

  6. #6
    Senior Member
    Join Date
    Aug 2008
    Posts
    136

    Default

    Thanks a ton, Veracity!

Posting Permissions

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