Originally Posted by
mikargo
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.