Results 1 to 3 of 3

Thread: Problem compiling AshamanPowerminer V1.7

  1. #1
    Join Date
    Aug 2013
    Posts
    105
    Mentioned
    0 Post(s)
    Quoted
    43 Post(s)

    Default Problem compiling AshamanPowerminer V1.7

    So I started AshamanPowerminer V1.7 today about 6 hours ago. Was working fine no issues. I went for my dinner so decided I'd just shut my computer down. I've now came back and tried to compile the powerminer again however I'm now getting this Error: Unknown declaration "isSlotVaild" at line 524.

    I tried to force SRL update but it still isn't compiling. I've tried redownloading the script in case I accidentally deleted something in the script but still nothing. So how does a script go from being able to be compiled to not being able to be compiled when nothing has changed other than me shutting my computer down and starting it back up again.

    Any help is appreciated.

    Line of code where the error is : if (self.isSlotVaild(slotArr[i])) and (self.isItemInSlot(slotArr[i])) then
    Last edited by Antonio; 01-14-2015 at 08:27 PM.

  2. #2
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Code tagged for anyone else reading:
    Simba Code:
    if (self.isSlotVaild(slotArr[i])) and (self.isItemInSlot(slotArr[i])) then //line 524

    Quote Originally Posted by Nice Balance Bro View Post
    So how does a script go from being able to be compiled to not being able to be compiled when nothing has changed other than me shutting my computer down and starting it back up again.

    Any help is appreciated.
    SRL was updated to revision 1050 yesterday, some changes were made to several function parameters that broke a very small number of scripts.

    Edit: Just downloaded the script and it seems like the error is local, Ashaman has some custom functions in there for TRSTabBackpack. I'm attempting to resolve the issue now...

    Edit again: Ah, I see. The function identifiers for .isSlotValid() were misspelled as .isSlotVaild() in the include. Revision 1050 corrected this, but the calls are still spelled the same in the script, and thus don't exist.

    Change the offending line to this, and you'll be good to go.

    Simba Code:
    if (self.isSlotValid(slotArr[i])) and (self.isItemInSlot(slotArr[i])) then
    @Ashaman88;
    Last edited by KeepBotting; 01-14-2015 at 11:34 PM.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  3. #3
    Join Date
    Aug 2013
    Posts
    105
    Mentioned
    0 Post(s)
    Quoted
    43 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    Code tagged for anyone else reading:
    Simba Code:
    if (self.isSlotVaild(slotArr[i])) and (self.isItemInSlot(slotArr[i])) then //line 524


    SRL was updated to revision 1050 today (yesterday?), some changes were made to several function parameters that broke a very small number of scripts.

    Edit: Just dl'd the script and it seems like the error actually is local, Ashaman has some custom functions in there for TRSTabBackpack. I'm attempting to resolve the issue now...

    Edit again: Ah, I see. The function identifiers for .isSlotValid() were misspelled as .isSlotVaild() in the include. Revision 1050 corrected this, but the calls are still spelled the same in the script, and thus don't exist.

    Change the offending line to this, and you'll be good to go.

    Simba Code:
    if (self.isSlotValid(slotArr[i])) and (self.isItemInSlot(slotArr[i])) then
    @Ashaman88;
    Thank you very much sir! I never even noticed Valid wasn't spelled correctly.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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