Results 1 to 25 of 25

Thread: Script freeze?

  1. #1
    Join Date
    Aug 2014
    Posts
    93
    Mentioned
    2 Post(s)
    Quoted
    36 Post(s)

    Default Script freeze?

    Hello,
    It looks like my script is freezing, after a break-handler it wont login back, ive had this issue more times with standing afk after login or not even logging in...

    Anyone know whatsup? its been on this screen for the past 9 hours
    Attached Images Attached Images

  2. #2
    Join Date
    Apr 2015
    Location
    FireFox
    Posts
    528
    Mentioned
    10 Post(s)
    Quoted
    227 Post(s)

    Default

    Any chance you could post the code up? It would make it much easier to find your problem!
    Scripting with ogLib

  3. #3
    Join Date
    Aug 2014
    Posts
    93
    Mentioned
    2 Post(s)
    Quoted
    36 Post(s)

    Default

    Quote Originally Posted by srlMW View Post
    Any chance you could post the code up? It would make it much easier to find your problem!
    I can give parts :P

    I never had this before lol, also seen on another script that its just afking, no script bugging or whatever, when i restarted it worked perfectly. After login it just got stuck in the loop for no reason.

    Maybe it has to do something with locPlayer.isLoggedIn or isLoggedIn or something that i switch wrong?? I have no clue,

    Loop:
    Code:
    begin
      initAL;
      Reflect.Setup;
      StartRare;
      RareDisguise;
      SetupDaPlayer;
      EditMouseSpeed;
      if not IsLoggedIn then LoginPlayer(False);
      LoadBMPS;
      Addonterminate('FreeBMPS');
      CheckBrightness;
      SetRetOn;
      repeat
       if not IsLoggedIn then LoginPlayer(False);
      locPlayer.Create;
        Report;
        Antiban;
        if (GetCurrentTab <> TAB_INV) then GameTab(TAB_INV);
    a procedure:

    Code:
    Procedure ClickDoorBack(Tile: TPoint);
    var
      P: TPoint;
    begin
    if not isLoggedIn then Exit;
    
    if not Reflect.Tiles.NearTile(point(DoorX, DoorY), 5) then
         begin
         writeln(InfoMsg, 'Distance is bigger then 5, moving there!');
         walkControlPoints([Point(DoorX, DoorY)],200,4);
         end;
    
         while (locPlayer.IsMoving = true) do RareInteractWait;
    
        setCompass('N');
      P := Reflect.Tiles.TileToMS(Tile);
      Reflect.Mouse.Move(P, 4, 4);
      If Reflect.Text.IsUpText('Open', 60+random(50)) then
      begin
      writeln(InfoMsg, 'Found Trapdoor!');
        fastclick(mouse_left);
        RareMidWait;
        while (locPlayer.IsAnimating = True) do RareHumanWait;
        WalkControlPoints([Point(2649, 3231), Point(2642, 3237), Point(2636, 3244), Point(2637, 3251), Point(2640, 3256), Point(2644, 3265), Point(2645, 3277), Point(2653, 3284)],200,4);
    end else
    begin
    setangle(ANGLE_HIGH);
    setCompass('N');
    end;
    
     end;

  4. #4
    Join Date
    Aug 2014
    Posts
    93
    Mentioned
    2 Post(s)
    Quoted
    36 Post(s)

    Default

    Still having this problem Anyone knows whatsup??

  5. #5
    Join Date
    Aug 2014
    Location
    Australia
    Posts
    932
    Mentioned
    53 Post(s)
    Quoted
    495 Post(s)

    Default

    As usual, Baws, without the whole script we can't tell you what's wrong because we can't see enough of the code. Neither of those tiny snippets gives us anything to go on, so you're really on your own.



    New to scripting? Procedures & Functions for Beginners
    Do you use your computer at night? Just get f.lux

  6. #6
    Join Date
    Aug 2014
    Posts
    93
    Mentioned
    2 Post(s)
    Quoted
    36 Post(s)

    Default

    Quote Originally Posted by Incurable View Post
    As usual, Baws, without the whole script we can't tell you what's wrong because we can't see enough of the code. Neither of those tiny snippets gives us anything to go on, so you're really on your own.
    The login or breakhandler has nothing to do with the script, i only call login functions on the lines i just gave.
    There is no need to post a whole private script when all procedures etc are the same.

  7. #7
    Join Date
    Jan 2012
    Posts
    1,596
    Mentioned
    78 Post(s)
    Quoted
    826 Post(s)

    Default

    anyone, correct my if im wrong here, but...
    no full script = no full help ?

    Maybe thats not the best way to put it. imagine a function, f(x).
    Now f(x) represents the quality of the help you receive. (quality being both amount, promptness, completeness, etc)
    Now lets say x is the ratio of code given to code in a script that you desire help on. (ie 50/250 lines gets you x=.2)

    Now, In my experience, it seems like a complete linear relationship between f(x) and x.
    (see the graph below for an idea)
    Progress Report:
     f(x)
      ^
      |                       /
      |                     /
      |                   /
    q |                 / 
    u |               /  
    a |             /   
    l |           /    
    i |         /     
    t |       /      
    y |     /       
      |   /        
      | /         
    0 + - - - - - + - - - - - + x
      0           .5          1
         ratio of code given


    So from this, we may say that f(x) is proportional to x, or, mathematically, f(x) = A*x, where A is some constant.
    (i tried to use proportionality symbol, but it didnt work)

  8. #8
    Join Date
    Oct 2006
    Posts
    6,752
    Mentioned
    95 Post(s)
    Quoted
    532 Post(s)

    Default

    That's what happens when you sell private scripts and still want to get help from us at villavu @Rare Scripts;.. I would suggest you learn to fix the problems on your own if you continue to sell scripts without fully understanding scripting on simba, as I doubt you will receive much help from us here..
    Not trying to be mean, just saying the truth..
    “The long-lived and those who will die soonest lose the same thing. The present is all that they can give up, since that is all you have, and what you do not have, you cannot lose.” - Marcus Aurelius

  9. #9
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    Quote Originally Posted by Rare Scripts View Post
    The login or breakhandler has nothing to do with the script, i only call login functions on the lines i just gave.
    There is no need to post a whole private script when all procedures etc are the same.
    The whole point being that it's unlikely the login or breakhandler are exploding your script if they're not affecting anyone else. If you want someone to review why your script blows up, you have to provide the whole script. If you just want to mooch and then sell the outcome of our free support, you should probably go elsewhere for the help.

    Or you can pay me and I'll review the script in full and allow you to sell the script after you've given credit to me.

    (Dear Admin: JK)

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  10. #10
    Join Date
    Aug 2014
    Posts
    93
    Mentioned
    2 Post(s)
    Quoted
    36 Post(s)

    Default

    I sell fully functional working scripts, none of them are buggy. Yes somethimes i have some trouble but thats kinda normal i guess?? Unless ur a scripting god that never ever make a mistake.

    Anyways this one is not even for sale, its for myself.
    Please dont act like im the only one selling scripts, most scripters here do.

  11. #11
    Join Date
    Oct 2006
    Posts
    6,752
    Mentioned
    95 Post(s)
    Quoted
    532 Post(s)

    Default

    Quote Originally Posted by Rare Scripts View Post
    I sell fully functional working scripts, none of them are buggy. Yes somethimes i have some trouble but thats kinda normal i guess?? Unless ur a scripting god that never ever make a mistake.

    Anyways this one is not even for sale, its for myself.
    Please dont act like im the only one selling scripts, most scripters here do.
    Not even close to "most" sell scripts, yes of course a few do, and those that are selling them don't post asking about help on them, and if they do, they can expect a similar response.
    “The long-lived and those who will die soonest lose the same thing. The present is all that they can give up, since that is all you have, and what you do not have, you cannot lose.” - Marcus Aurelius

  12. #12
    Join Date
    Aug 2014
    Posts
    93
    Mentioned
    2 Post(s)
    Quoted
    36 Post(s)

    Default

    Quote Originally Posted by 3Garrett3 View Post
    The whole point being that it's unlikely the login or breakhandler are exploding your script if they're not affecting anyone else. If you want someone to review why your script blows up, you have to provide the whole script. If you just want to mooch and then sell the outcome of our free support, you should probably go elsewhere for the help.

    Or you can pay me and I'll review the script in full and allow you to sell the script after you've given credit to me.

    (Dear Admin: JK)
    Normally my break handler works perfectly.

  13. #13
    Join Date
    Aug 2014
    Posts
    93
    Mentioned
    2 Post(s)
    Quoted
    36 Post(s)

    Default

    Quote Originally Posted by elfyyy View Post
    Not even close to "most" sell scripts, yes of course a few do, and those that are selling them don't post asking about help on them, and if they do, they can expect a similar response.
    Oh dont act so innocent Eflyyy, you know.
    Its not me not knowing how to scripts its a issue that works fine with all other scripts.
    ]

    Edit:

    If idunno how to script please explain me how ive made this?

    Breakhandler used to work fine, then it does then it bugs, its randomly. Never happend before


  14. #14
    Join Date
    Oct 2006
    Posts
    6,752
    Mentioned
    95 Post(s)
    Quoted
    532 Post(s)

    Default

    Quote Originally Posted by Rare Scripts View Post
    Oh dont act so innocent Eflyyy, you know.
    Its not me not knowing how to scripts its a issue that works fine with all other scripts.
    I know what exactly? That I have sold scripts in the past? That's true, I have sold some.. I definitely never posted asking for help if that's what you're implying?
    “The long-lived and those who will die soonest lose the same thing. The present is all that they can give up, since that is all you have, and what you do not have, you cannot lose.” - Marcus Aurelius

  15. #15
    Join Date
    Aug 2014
    Posts
    93
    Mentioned
    2 Post(s)
    Quoted
    36 Post(s)

    Default

    Quote Originally Posted by elfyyy View Post
    I know what exactly? That I have sold scripts in the past? That's true, I have sold some.. I definitely never posted asking for help if that's what you're implying?
    "some". You know most scripters on here also have private customers. They dont have threads becoz they are sneaky bastards claiming to dont make money off simba.

  16. #16
    Join Date
    Feb 2015
    Posts
    422
    Mentioned
    41 Post(s)
    Quoted
    226 Post(s)

    Default

    Quote Originally Posted by Rare Scripts View Post
    "some". You know most scripters on here also have private customers. They dont have threads becoz they are sneaky bastards claiming to dont make money off simba.
    I dont mean to butt in, but I think his point isn't that people sell scripts, it is that they don't ask for help on those private scripts that they sell! Which is what you are doing now!

  17. #17
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by Rare Scripts View Post
    "some". You know most scripters on here also have private customers. They dont have threads becoz they are sneaky bastards claiming to dont make money off simba.
    OK so theoretically we can say most scripters here have private customers.

    They still don't ask for help on said scripts

  18. #18
    Join Date
    Aug 2014
    Posts
    93
    Mentioned
    2 Post(s)
    Quoted
    36 Post(s)

    Default

    Quote Originally Posted by fady View Post
    I dont mean to butt in, but I think his point isn't that people sell scripts, it is that they don't ask for help on those private scripts that they sell! Which is what you are doing now!
    Nah, its for myself. Dont blame if you dont know.

  19. #19
    Join Date
    Mar 2013
    Posts
    1,010
    Mentioned
    35 Post(s)
    Quoted
    620 Post(s)

    Default

    Ok... Rare, either PM the script to someone or give up. There is no issue with AeroLibs break handler and it's an issue within your script. Or you could always debug it and find out the function/procedure having the error and only post that.
    #slack4admin2016
    <slacky> I will build a wall
    <slacky> I will ban reflection and OGL hooking until we know what the hell is going on

  20. #20
    Join Date
    Aug 2014
    Posts
    93
    Mentioned
    2 Post(s)
    Quoted
    36 Post(s)

    Default

    Quote Originally Posted by rj View Post
    OK so theoretically we can say most scripters here have private customers.

    They still don't ask for help on said scripts
    Sure.

  21. #21
    Join Date
    Aug 2014
    Posts
    93
    Mentioned
    2 Post(s)
    Quoted
    36 Post(s)

    Default

    Quote Originally Posted by Hawker View Post
    Ok... Rare, either PM the script to someone or give up. There is no issue with AeroLibs break handler and it's an issue within your script. Or you could always debug it and find out the function/procedure having the error and only post that.
    Then its a small problem in my script, many thanks ill check it out cuz it works for all other scripts ive made. (not only for sales) didnt know for sure if it was the breakhandler or the script itself.

    Kinda funny ur the only one responding normally after all those rages.

    -Rare.

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

    Default

    If this script is for your personal use, then you should have no problem with posting it here or at least sending it to someone in a PM. Nobody is going to leak your stuff.

    Quote Originally Posted by Rare Scripts View Post
    most scripters on here also have private customers.
    Just because others do it, doesn't mean it's okay. And it doesn't excuse what you're trying to do here.

    Bottom line: we need to see the entirety of the code to provide support. This is for two reasons.

    • It's morally wrong of you to request help from our community in regards to a script that will never be shared with said community.
    • We honestly can't provide support unless you show us the majority of the code.


    Rarely (pun intended), by dumb luck, one of the small snippets that a help-seeker posts will reveal the problem and lead to a fix.
    But this is generally not the case, and the help-seekers are asked to post the entirety of their scripts anyway -- for at least one of the reasons I've stated.
    Last edited by KeepBotting; 07-22-2015 at 05:40 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

  23. #23
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    Quote Originally Posted by Rare Scripts View Post
    Then its a small problem in my script, many thanks ill check it out cuz it works for all other scripts ive made. (not only for sales) didnt know for sure if it was the breakhandler or the script itself.

    Kinda funny ur the only one responding normally after all those rages.

    -Rare.
    I literally said that

    Quote Originally Posted by 3Garrett3 View Post
    The whole point being that it's unlikely the login or breakhandler are exploding your script if they're not affecting anyone else. If you want someone to review why your script blows up, you have to provide the whole script.
    There's clearly a logic flaw in your script causing problems because nobody else is reporting problems with the break handler. If you want someone to review your logic you'll have to post the whole script.

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  24. #24
    Join Date
    Aug 2014
    Location
    Australia
    Posts
    932
    Mentioned
    53 Post(s)
    Quoted
    495 Post(s)

    Default

    Quote Originally Posted by Rare Scripts View Post
    Then its a small problem in my script, many thanks ill check it out cuz it works for all other scripts ive made. (not only for sales) didnt know for sure if it was the breakhandler or the script itself.

    Kinda funny ur the only one responding normally after all those rages.

    -Rare.
    Put it this way mate, the SRL community has spent literally thousands of combined hours over several hundred people over the last decade to create the SRL include, Simba, SMART, the OGL and DirectX plugins, website and file hosting, forum moderation, tutorials, help posts, and more, all for the benefit of the world as a whole. Anyone and everyone is welcome here, no matter the level of melanin in their skin, their sex, sexuality, political leanings, programming experience, religion or creed, and encouraged to take from the community and learn everything they can, so long as they contribute something in return.

    You, on the other hand, have contributed literally nothing to SRL while making scripts that you learned how to write by reading free tutorials written by SRL community members in their spare time with the pure intention of teaching others, using a piece of software and plugins that took multiple hours to write, hosted on servers that cost actual money to run, and then go even further by asking for help on scripts that you (usually, I'll give you the benefit of the doubt this time) intend to sell! And you wonder why you're met with "rages" after this is how you treat the gifts that you've been given?

    You're the worst kind of leecher. Not only do you come here and steal everything like a thief in the night, you come back the next day and ask us to help you fix the TV that broke while you were manhandling it out the window. In the words of @WT-Fakawi, this is a non-leeching community. Participate or leave, please.
    Last edited by Incurable; 07-22-2015 at 09:39 PM.



    New to scripting? Procedures & Functions for Beginners
    Do you use your computer at night? Just get f.lux

  25. #25
    Join Date
    Feb 2013
    Location
    Rimmington
    Posts
    319
    Mentioned
    33 Post(s)
    Quoted
    183 Post(s)

    Thumbs up

    Quote Originally Posted by Rare Scripts View Post
    Unless ur a scripting god that never ever make a mistake.
    Maybe I am?


    On a more serious note,
    Rare scripts - As I tried to explain to you on skype is that the developers are getting tired of doing hours upon hours of developing and just seeing how we make actual real money by their creation.



    However, in your case it's mostly the fact that they have helped you in the past and that would result in a script that you would later on sell for 07 gold. The gold has value and therefor it's quite unfair in the eyes of the developer. I know you have contributed to the community as well, and would very much like to do so in the future, but just remember that these guys do these projects out of the goodness of their hearts, not for us to make IRL money.

    In the more recent month I've started to donate more and more, taking turns on whoever gets the donations. It's the very least I can do.

    I recommend you to focus on the part of villavu that is not about the IRL money for the near future, maybe try to become an SRL member? Try to contribute more in all possible fashions that other members can't connect to your script sales


    Moving into the real problem,
    • Try not to .create in each loop, it's a bad habbit!
    • (GetCurrentTab <> TAB_INV) <- You don't need that as it's already called in GameTab();
    • After reading what you posted, it seems like a memory issue? As there's nothing wrong with the code. Maybe try to look for bitmaps being created over and over without being free'd?
    • I strongly suggest you to try to fix your standards, not only does the code look better, it's easier for us to read in order to help you A perfect guide for standards can be found here.


    Hope I helped you at least a little bit, cheers!





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
  •