Results 1 to 19 of 19

Thread: Fixing an old script.

  1. #1
    Join Date
    Aug 2007
    Location
    Indiana
    Posts
    63
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Fixing an old script.

    I'm trying to fix the old Ultra Cut And Bank from Shuttleu. I'm just trying to get it running so I can use it, and to help further my scripting skills. But, in the debug it keeps saying

    Code:
    ** Warning in GameTab: Tab 4 is not a valid tab number.**
    ** Warning in GameTab: Tab 5 is not a valid tab number.**
    Does anyone know of a way to fix this? I was thinking maybe the DTMs for the axes were bad, but I wasn't sure.
    I have searched but couldn't find anything, any help or a shove in the right direction would be greatly appreciated. Thank you in advance.

  2. #2
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by quiescent_87 View Post
    I'm trying to fix the old Ultra Cut And Bank from Shuttleu. I'm just trying to get it running so I can use it, and to help further my scripting skills. But, in the debug it keeps saying

    Code:
    ** Warning in GameTab: Tab 4 is not a valid tab number.**
    ** Warning in GameTab: Tab 5 is not a valid tab number.**
    Does anyone know of a way to fix this? I was thinking maybe the DTMs for the axes were bad, but I wasn't sure.
    I have searched but couldn't find anything, any help or a shove in the right direction would be greatly appreciated. Thank you in advance.
    I think you should definitely update your SRL first. That was an error a long time ago.
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  3. #3
    Join Date
    Aug 2007
    Location
    Indiana
    Posts
    63
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I have the newest version of SRL. I looking in Gametab.scar but everything matched up.

  4. #4
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by quiescent_87 View Post
    I'm trying to fix the old Ultra Cut And Bank from Shuttleu. I'm just trying to get it running so I can use it, and to help further my scripting skills. But, in the debug it keeps saying

    Code:
    ** Warning in GameTab: Tab 4 is not a valid tab number.**
    ** Warning in GameTab: Tab 5 is not a valid tab number.**
    Does anyone know of a way to fix this? I was thinking maybe the DTMs for the axes were bad, but I wasn't sure.
    I have searched but couldn't find anything, any help or a shove in the right direction would be greatly appreciated. Thank you in advance.
    You will find that now you have to do GameTab(Tab_Inv) etc, rather than GameTab(5);.

    Check the GameTab.scar and you will see

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  5. #5
    Join Date
    Aug 2007
    Location
    Indiana
    Posts
    63
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by rogeruk View Post
    You will find that now you have to do GameTab(Tab_Inv) etc, rather than GameTab(5);.

    Check the GameTab.scar and you will see
    Well that did it, thank you. I guess I should have paid more attention. Now it's still not finding my axes... I am guessing that the DTMs are bad. I'm just going to make one for a rune axe and replace it and see if it works.

    Edit: The new DTM works and it found the axe. But, there is something wrong with the level check. I have level 70 cutting, but it says my level isn't high enough.
    Last edited by quiescent_87; 10-21-2009 at 12:30 AM.

  6. #6
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by quiescent_87 View Post
    Edit: The new DTM works and it found the axe. But, there is something wrong with the level check. I have level 70 cutting, but it says my level isn't high enough.
    I'm pretty sure that function in SRL is broken at the moment. I took it right out of my Woodcutting scripts.

  7. #7
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    In the Dev SRL I believe it is fixed.
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  8. #8
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by rogeruk View Post
    You will find that now you have to do GameTab(Tab_Inv) etc, rather than GameTab(5);.

    Check the GameTab.scar and you will see
    HAVE to? Oh thats going to piss me off...

  9. #9
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by MylesMadness View Post
    HAVE to? Oh thats going to piss me off...
    You don't HAVE to I don't think. After all, the gametabs are only set as integer constants, therefore you can still use the integer.

    If you use the constants, after a RS update to the gametabs, only the constants need to be changed, rather than everyone's script. It's up to you which method you choose to use.

  10. #10
    Join Date
    Aug 2007
    Location
    Indiana
    Posts
    63
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Nava2 View Post
    In the Dev SRL I believe it is fixed.
    I updated my SRL to the latest Dev version, but now I can't get it to work at all.

  11. #11
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by quiescent_87 View Post
    I updated my SRL to the latest Dev version, but now I can't get it to work at all.
    What's the problem?

  12. #12
    Join Date
    Aug 2007
    Location
    Indiana
    Posts
    63
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    My SCAR keeps closing everytime I try to start any script.

  13. #13
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by quiescent_87 View Post
    My SCAR keeps closing everytime I try to start any script.
    That's a bug in SCAR, and has happened to me plenty of time. I just restart SCAR and everything works fine. If it's closing for you every time, then try reinstalling everything. That seems to solve a lot of people's problems.

  14. #14
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Don't you need permission to edit someone's(elses) script?

  15. #15
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by Junkj View Post
    Don't you need permission to edit someone's(elses) script?
    I would think you need permission if you were to take credit for it, or post it on the forums., but he's using it for private use. I personally wouldn't have a problem with it.

  16. #16
    Join Date
    Aug 2007
    Location
    Indiana
    Posts
    63
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes it was doing it to me on ever script every time. I finally got it working after the third or fourth time of reinstalling. And it is going to be for private use only if I ever get it working again.

  17. #17
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by quiescent_87 View Post
    Yes it was doing it to me on ever script every time. I finally got it working after the third or fourth time of reinstalling. And it is going to be for private use only if I ever get it working again.
    Alright, glad to see you got it working. Also, if you ever want to post your fixed version, you HAVE to get permission otherwise isn't possible you'll get banned and you'll lose the respect of a lot of people, whether they know you or not.

    Coh3n

  18. #18
    Join Date
    Aug 2007
    Location
    Indiana
    Posts
    63
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    Alright, glad to see you got it working. Also, if you ever want to post your fixed version, you HAVE to get permission otherwise isn't possible you'll get banned and you'll lose the respect of a lot of people, whether they know you or not.

    Coh3n
    Yes I am aware of this. I do not plan on posting it anywhere, and if I did I don't think Shuttleu is even around anymore to even ask.

  19. #19
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by quiescent_87 View Post
    Yes I am aware of this. I do not plan on posting it anywhere, and if I did I don't think Shuttleu is even around anymore to even ask.
    Okay good, just making sure. Have a good one!

    Coh3n

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
  •