Results 1 to 10 of 10

Thread: OpenGL scripting error

  1. #1
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default OpenGL scripting error

    Heya, tried to run a basic script... but there's a problem.

    After it popped up a message that it couldn't find C:\Program Files (x86)\Java\jre1.7\bin\javaw.exe. I went to the Variables area and setup the following line there:

    C:\Program Files (x86)\Java\jre1.8.0_31\bin

    6455969771.png

    3768f6e5cf.png

    And when I did that, it gave me this:

    Error: "0.26179938779915" is an invalid float at line 773

    Any leads?
    Last edited by Yush Dragon; 05-30-2015 at 02:23 PM.

  2. #2
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    My script:

    program ogLibScript;
    {$i ogLib\lib\core\core.simba}

    begin
    ogl.setup();
    end.

  3. #3
    Join Date
    Dec 2011
    Posts
    445
    Mentioned
    26 Post(s)
    Quoted
    256 Post(s)

    Default

    You have to change the Java path manually in oglib/lib/misc/smart.simba on line 41: Self.__Target := SmartSpawnClient('Java Path here',


    I'd re-download ogLib again, delete the ogLib folder completely, then extract it, and change the Java Path again.

    Then just try

    Simba Code:
    program new;
    {$i ogLib\lib\core\core.simba}

    begin
      ClearDebug();
      ogl.setup(0, 0, false);
    end.

  4. #4
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Tried that, still gave me this:
    Compiled successfully in 922 ms.
    Error: "0.26179938779915" is an invalid float at line 773
    Execution failed.
    Quote Originally Posted by Twinki View Post
    You have to change the Java path manually in oglib/lib/misc/smart.simba on line 41: Self.__Target := SmartSpawnClient('Java Path here',


    I'd re-download ogLib again, delete the ogLib folder completely, then extract it, and change the Java Path again.

    Then just try

    Simba Code:
    program new;
    {$i ogLib\lib\core\core.simba}

    begin
      ClearDebug();
      ogl.setup(0, 0, false);
    end.

  5. #5
    Join Date
    Dec 2011
    Posts
    445
    Mentioned
    26 Post(s)
    Quoted
    256 Post(s)

    Default

    Quote Originally Posted by Yush Dragon View Post
    Tried that, still gave me this:
    Compiled successfully in 922 ms.
    Error: "0.26179938779915" is an invalid float at line 773
    Execution failed.
    and what file does it error to? It should open a file where the error occurred. If not, it might be a Simba issue. Try a script for SRL-6?

  6. #6
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Alright, the previous shizzle is solved.

    Now it gives me this:

    ** Smart Cannot Spawn Clients **
    Successfully executed.

  7. #7
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Loading SMART: http://world48.runescape.com/
    Error: Access violation at line 784
    Execution failed.
    The following bitmaps were not freed: [0]

    This is the line of code' glxSetColourCapture(false); '

  8. #8
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Ok, problems solved.

    I had the last error because the ogl.setup(0, 0, false) cannot be used. It's better to leave the 'false' away.

    Thank you for the help!

  9. #9
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    New problem occured.

    Error: Access violation
    Execution failed.
    The following bitmaps were not freed: [0]

    Any idea's?

    program new;
    {$i ogLib\lib\core\core.simba}

    procedure trying();
    begin
    Writeln('Keep trying nub.');
    end;

    begin
    ClearDebug();
    ogl.setup();
    ogl.setDebugMode('models');
    repeat
    trying();
    until(false);
    end.

  10. #10
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Ok works. No idea what I'm doing but it worked xD

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
  •