Page 10 of 10 FirstFirst ... 8910
Results 226 to 229 of 229

Thread: ogLib

  1. #226
    Join Date
    Jul 2014
    Location
    California
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by mikargo View Post
    How do I make it work on the official client? There is no "{$DEFINE SMART}" which means whenever I start the scrip it will load the smart client.
    You can edit the includes to accomplish that. Isn't ogl.setup() the function? Since ogl is of type tOGL, search for tOGL.setup() in the git repository to find where the function is located within the include files and then remove the parts where it says to create a new client.


    On another note, I can't seem to get ogLib working. If I attempt to run idhighlighter.simba, it returns 'tSmart.create() failed', and that is from the second debug print instance below (../ogLib/lib/misc/smart.simba line 41). Note that regular scripts seem to work fine, just not any that use ogLib.

    Simba Code:
    self.target:=smartSpawnClient(self.getJavaPath(),replace(pluginPath,'\','/',[0]),funcParams[0],','+funcParams[1],funcWidth,funcHeight,'',self.getUserAgent(),'-XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=30','OpenGL32.dll');
        if self.target then
        begin
          try
            self.pid:=smartGetClientPID(self.target);
            setEIOSTarget('libsmartremote',toStr(self.pid));
            self.graphics.create(funcWidth,funcHeight,smartDebugArray(self.target));
            insert(@self,smartPointers);
          except
            ogl.debug('tSmart.create() failed');
            smartFreeClient(self.target);
            terminateScript();
          end;
        end else
        begin
          ogl.debug('tSmart.create() failed');
          smartFreeClient(self.target);
          terminateScript();
        end;

    Edit: Apparently, it was because of Simba's download location.
    Last edited by teigrgwyn; 05-08-2016 at 07:35 AM.
    The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge.

  2. #227
    Join Date
    Jun 2014
    Posts
    463
    Mentioned
    27 Post(s)
    Quoted
    229 Post(s)

    Default

    I'm pretty sure you have to hook the open gl plugin with nxt in order to do that
    Tsunami

  3. #228
    Join Date
    Feb 2012
    Location
    UK
    Posts
    909
    Mentioned
    10 Post(s)
    Quoted
    191 Post(s)

    Default

    Not sure if it matters, but the graphics.simba link goes to a 404.
    To save you checking the others, they all seem to work for me.
    Last edited by Solar; 07-09-2016 at 07:17 PM.
    Solar from RiD.

Page 10 of 10 FirstFirst ... 8910

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
  •