Results 1 to 6 of 6

Thread: Cant Free bitmaps and DTM's when login screen detected

  1. #1
    Join Date
    Mar 2013
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default Cant Free bitmaps and DTM's when login screen detected

    Hi, I am receiving this error message in the debug whenever a script hits the login screen causing the script to stop.
    Welcome to Runescape.
    Error: Exception: Invalid variant type cast at line 475
    The following DTMs were not freed: [SRL - Lamp bitmap, SRL - Book of Knowledge]
    The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Minimap Mask bitmap, 3, 4]

    After that the Login Script will open in a new tab to line 475 but its a blank line so I'm kinda stumped and cant figure out what to do. Most other problems using the search button and a little bit of effort ive managed to get passed but this one I can't find any solution using search. Any help at all would be appreciated. Thank you

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

    Default

    What are the few lines above/below line 475?
    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
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by Fitted Range View Post
    Hi, I am receiving this error message in the debug whenever a script hits the login screen causing the script to stop.
    Welcome to Runescape.
    Error: Exception: Invalid variant type cast at line 475
    The following DTMs were not freed: [SRL - Lamp bitmap, SRL - Book of Knowledge]
    The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Minimap Mask bitmap, 3, 4]

    After that the Login Script will open in a new tab to line 475 but its a blank line so I'm kinda stumped and cant figure out what to do. Most other problems using the search button and a little bit of effort ive managed to get passed but this one I can't find any solution using search. Any help at all would be appreciated. Thank you
    Make sure your interpreter is set to pascal: Script -> Interpreter -> PascalScript

  4. #4
    Join Date
    Mar 2013
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    Make sure your interpreter is set to pascal: Script -> Interpreter -> PascalScript
    Interpreter is set to Pascal as I had issue before starting it because I had it on Lape before. That took me about a hour to realize that was my problem after solving like 3 other issues lol.

    Quote Originally Posted by KeepBotting View Post
    What are the few lines above/below line 475?
    begin
    ActivateClient;

    if (LoggedIn) then Exit;

    Wait(100 + Random(200));
    TypeByte(vk_Escape);
    Wait(200 + Random(200));

    {Check for lobby screen already open/ already logged in}

    That is lines 467-476.

    It should be noted that these lines are in that login script that opens up that I was talking about, which is where my error is occurring from.
    Last edited by Fitted Range; 07-16-2014 at 01:58 AM.

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

    Default

    Quote Originally Posted by Fitted Range View Post
    Interpreter is set to Pascal as I had issue before starting it because I had it on Lape before. That took me about a hour to realize that was my problem after solving like 3 other issues lol.



    begin
    ActivateClient;

    if (LoggedIn) then Exit;

    Wait(100 + Random(200));
    TypeByte(vk_Escape);
    Wait(200 + Random(200));

    {Check for lobby screen already open/ already logged in}

    That is lines 467-476.

    It should be noted that these lines are in that login script that opens up that I was talking about, which is where my error is occurring from.
    I'd chalk this up to a scripter error, seems like someone's script is throwing a violation that causes the script to end improperly, thus failing to free DTMs upon shutdown.
    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

  6. #6
    Join Date
    Mar 2013
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    I'd chalk this up to a scripter error, seems like someone's script is throwing a violation that causes the script to end improperly, thus failing to free DTMs upon shutdown.
    Checked out other scripts and it wasn't the script. could anybody possible just upload their login.simba for me to download so that I can try replacing it that way?

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
  •