Page 17 of 17 FirstFirst ... 7151617
Results 401 to 422 of 422

Thread: Smart-Overhaul

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

    Default

    Simba Code:
    {$DEFINE GLHOOK}
    {$DEFINE SMART}
    {$DEFINE CSMART}
    {$I GLHook/GLHook.Simba}

    begin
      Smart_Plugins := 'OpenGL32.dll'
      SetupSRL;

      if NOT GLHSetup(ToStr(SMART_CURRENTPROCESS)) then
      begin
        writeln('Fail');
        TerminateScript;
      end;

      GLHSetDebug(True, false, 3);
    end.

    "Unknown identifier 'Smart_Plugins' "
    hmmm

  2. #402
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    Helping Barbrady over Skype.

    Edit: In depth instructions (follow all even if you have installed a prior version):

    Close all SMART instances. Remove all SMART.xxxxx (where xxxxx is a series of numbers) files and remove your preferences.dat files wherever they are on your pc.

    Force update SRL to most recent version. Close all Simba instances.

    Next, make sure your path variable is setup. On a Windows machine, that means going to System Properties->Advanced System Settings -> Environment Variables. In this new screen, there will be a list of variables.
    Go to 'Path' and make sure your JRE is in it. Your Path variable should be a list of semicolon separate values. One of them should look similar to: 'C:\Program Files (x86)\Java\jre7\bin;' If that is not there, you will need to find where your JRE is installed (might be jre6 and might be in base Program Files instead of x86) and copy that full path to the bin into your path variable (make sure it is still ; separated in the Path variable). If you have a jdk in your Path variable, you will need to make sure your jre is before it!

    If you installed a prior version of OpenGL, you will need to open your plugins folder and remove all dlls unrelated to SPS or ODTM (this way running the installer will only leave you with the new ones and you won't have any old dlls in place).

    Download the installer here: https://mega.co.nz/#!ZJh0ibSR!IdAsY1...ECoMY6KW4sCEzk then run the .bat file. If your Simba installation is in the default location 'C:\Simba' then type 'y' (without the quotes) and hit enter. If your Simba installation is elsewhere, then type 'n' (without the quotes) and hit enter, then type the full path to your Simba folder.

    Open up a legitimate browser and go to www.runescape.com . Open up the game, set all settings as normal (low settings, Max brightness, fixed mode) then also set to OpenGL mode. Close completely out of your browser.

    Finally open up Simba again. Run the following script:
    Simba Code:
    {$DEFINE GLHOOK}
        {$DEFINE SMART}
        {$I GLHook/GLHook.Simba}
        {$I SRL/SRL/Misc/Debug.Simba}
         
        begin
          ClearDebug;
          SetupSRL;
          Writeln('Setting up GL hook');
          if (NOT GLHSetup(ToStr(SMART_CURRENTCLIENT))) THEN
          Begin
            Writeln('Failed to Setup GLHook. Please Check your Installation.');
          End;
          Writeln('debugging..');
          GLHSetDebug(True, true, 0);
          Writeln('Moving mouse..');
          while(true)do
          begin
            MMouse(Random(100), Random(100), 1, 1);
            sleep(10);
          end;
        end.

    The first run will likely error because you can't set the OGL debug mode in SAFE mode. You will have to manually change the opened SMART to OGL mode (top left of SMART). Then run the script again and verify it's working. I hope that helps some people out.

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

    Default

    Running this test script:

    Simba Code:
    {$DEFINE GLHOOK}
    {$DEFINE SMART}
    {$I GLHook/GLHook.Simba}
    {$I SRL/SRL/Misc/Debug.Simba}

    begin
      ClearDebug;
      SetupSRL;
      Writeln('Setting up GL hook');
      if (NOT GLHSetup(ToStr(SMART_CURRENTCLIENT))) THEN
      Begin
        Writeln('Failed to Setup GLHook. Please Check your Installation.');
      End;
      Writeln('debugging..');
      GLHSetDebug(True, true, 0);
      Writeln('Moving mouse..');
      while(true)do
      begin
        MMouse(Random(100), Random(100), 1, 1);
        sleep(10);
      end;
    end.

    Does not debug the models, instead I get the writeln error (after like 2-3 minutes) "Failed to Setup GLHook. Please Check your Installation." and then access violation at: GLHSetDebug(True, true, 0);
    Runescape is in Opengl mode and so is the smart -.- I manually installed the smart/opengl from the OP because the autoinstall gives me error (yes I run it as admin)

  4. #404
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    Quote Originally Posted by Officer Barbrady View Post
    I manually installed the smart/opengl from the OP because the autoinstall gives me error (yes I run it as admin)
    I think this is because you have other smart plugins in your folder. try deleting and trying again. i would include it in the updater but didnt wanna delete other plugins.

  5. #405
    Join Date
    Oct 2011
    Location
    Chicago
    Posts
    3,352
    Mentioned
    21 Post(s)
    Quoted
    437 Post(s)

    Default

    I keep getting this, all my folders "seem" correct (Looks like a simple error, but I can't find where I went wrong...)
    [Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(282:145): Type mismatch at line 281
    Compiling failed.

    I used a clean copy of simba (then updated) then checked my paths then installed ogl.




    Anti-Leech Movement Prevent Leeching Spread the word
    Insanity 60 Days (Killer workout)
    XoL Blog (Workouts/RS/Misc)

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

    Default

    Quote Originally Posted by Kasi View Post
    I think this is because you have other smart plugins in your folder. try deleting and trying again. i would include it in the updater but didnt wanna delete other plugins.
    Only plugins I have are smart, opengl, glhook32, and sps (I deleted all the smart ones before I re-installed the new smart to be sure)

    EDIT: I ran the Auto-Install and now it seems to work?

    But I am still having the same problems with opengl

  7. #407
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    :S I'd expect include problems from guys with the green name but not guys with the orange ones.. Oh well.

    If I edit the include, I get complaints about "not being able to install the include", "too many changes to the include", "too hard to figure out", "too many files to replace", "too many changes for SRL-6", "Not working in Lape". If I don't edit the include, I get complaints about "not loading", "compiling error at: 'some line here'", "Can't load plugins anymore", "Old include was better".

    All of the above is going to confuse me. I can't please devs and I can't please users and I can't please everyone at the same time.

    Now don't get me wrong. I have no problem replying to each and every problem or solving them at all. As shown previously. However, I don't like being confused.

    But here goes:

    If you want to load Smart v8.1, change SmartParams.simba LINE 294 to:

    Simba Code:
    Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '', '');

    If you want to load OpenGL or any plugin in Smart v8.1, change SmartParams.simba LINE 294 to:

    Simba Code:
    Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '', 'OpenGL32.dll');


    If you want to load multiple plugins in Smart v8.1, change SmartParams.simba LINE 294 to:

    Simba Code:
    Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '', 'OpenGL32.dll, DirectX.dll, SomePlugin.dll, etc.dll');

    So on and so forth. These were already mentioned by Benland100 and myself :l exactly 11 months ago..


    If you want the easy way out, then copy the following.. I only changed 1 line in Smart.Simba and added 2 variables; In SRL.Simba I only added a break.


    SmartParams.Simba:
    Simba Code:
    (*
    Smart Params
    ============

    .. contents::

    *)


    {$DEFINE SRL_SMART}
    {$DEFINE SMART}
    {$loadlib libsmartremote}


    var
      Smart_Plugins: String;

    {$IFDEF GLHOOK}
      const InitSeq = '';
    {$ELSE}
      const InitSeq = 's';
    {$ENDIF}

    (*
    GetSmartParams
    ~~~~~~~~~~~~~~

    .. code-block:: pascal

      function GetSmartParams: TStringArray;

    Grabs The Correct Parameters For passing to the SmartClient.

    .. note::

      By: Brandon.
      Modified By: Mormanman, Benland100.

    Example:

    .. code-block:: pascal

    *)

    function GetSmartParams: TStringArray;
    var
      Params: TStringArray;
      Page: String;
    begin
      Page := Between('<iframe id="game" src="', '"', GetPage('http://www.runescape.com/game.ws?j=1'));
      Params := Explode(',', Page);
      Result := Params;
    end;

    (*
    FixSmartSpeed
    ~~~~~~~~~~~~~

    .. code-block:: pascal

      procedure FixSmartSpeed;

    Fixes Smart's Loading Speed.
    Moves the Mouse & Adjusting the Canvas Refresh rate.

    .. note::

      By: Brandon.

    Example:

    .. code-block:: pascal

    *)

    procedure FixSmartSpeed;
    var
      T: Integer;
    begin
      T:= GetSystemTime + 2000;
      While (Not SmartEnabled) Do
      begin
        if (GetSystemTime >= T) Then
          Break;
        Wait(500);
      end;

      While (GetColor(382, 252) = 0) Do
      begin
        {$IFDEF GLHOOK}
          break;
        {$ENDIF}
        If RSReady then
          Break;
        SmartSetRefresh(SmartGetRefresh + 1);
        MMouse(4, 4, 0, 0);
        SmartSetRefresh(SmartGetRefresh - 1);
        if (GetSystemTime >= T) Then
          Break;
        Wait(500);
      end;
    end;

    (*
    SmartGetClientIDs
    ~~~~~~~~~~~~~~~~~

    .. code-block:: pascal

        function SmartGetClientIDs: TIntegerArray;

    Grabs All Client ID's of the current remote.

    .. note::

      By: Mormanman.

    Example:

    .. code-block:: pascal

    *)

    function SmartGetClientIDs: TIntegerArray;
    var
      I, Count: Integer;
    begin
      Count := SmartGetClients(True);
      SetLength(Result, Count);
      If (Count > 0) then
        For I:= 0 to (Count - 1) do
          Result[I] := SmartClientID(I);
    end;

    (*
    SmartKillClients
    ~~~~~~~~~~~~~~~~

    .. code-block:: pascal

        procedure SmartKillClients;

    Kills all Smart clients.

    .. note::

      By: Mormanman.

    Example:

    .. code-block:: pascal

    *)

    procedure SmartKillClients;
    var
      IDs: TIntegerArray;
      I: Integer;
    begin
      IDs := SmartGetClientIDs;
      For I := High(IDs) DownTo 0 Do
        If SmartKillClient(IDs[I]) Then
          Writeln('Killed Client: ' + ToStr(IDs[I]))
        else
          Writeln('Failed To Kill Client: ' + ToStr(IDs[I]));
    end;

    (*
    SixHourFix
    ~~~~~~~~~~

    .. code-block:: pascal

        procedure SixHourFix;

    Kills The Current Smart Client and Restarts it.
    Fixes the 6 hour login.

    .. note::

      By: Brandon.

    Example:

    .. code-block:: pascal

    *)

    procedure FreeSRL; Forward;
    procedure SetupSRL; Forward;
    procedure SixHourFix;
    var
      Trash: TVariantArray;
      Refresh: Integer;
    begin
      FreeSRL;
      Refresh := SmartGetRefresh;
      SmartKillClient(SmartCurrentClient);
      SetupSRL;

      try
        CallProc('SMART_FreeDebug', Trash);
        CallProc('SMART_SetupDebug', Trash);
      except
      end;

      SmartSetRefresh(Refresh);

      try
        if (not LoginPlayer) then
          srl_Warn('SixHourFix', 'Could not log in player', warn_Terminate);
      except
        srl_Warn('SixHourFix', 'Players not declared', warn_Terminate);
      end;
    end;


    (*
    PairSmart
    ~~~~~~~~~

    .. code-block:: pascal

        function PairSmart(ID: Integer): Boolean;

    Pairs A Client To The Current Controller.

    .. note::

      By: Benland100, Brandon.

    Example:

    .. code-block:: pascal

    *)

    function PairSmart(ID: Integer): Boolean;
    var
      I, Count: Integer;
      IDs: TIntegerArray;
    begin
      IDs := SmartGetClientIDs;
      Count := Length(IDs);
      If (Count > 0) then
        For I:= 0 To (Count - 1) Do
          If (IDs[I] = ID) and SmartPairClient(ID) then
          begin
            SetEIOSTarget('libsmartremote', ToStr(ID));
            Writeln('Paired with SMART[' + ToStr(ID) + ']');
            Result := True;
            Exit;
          end;
      Writeln('** Failed To Pair Client: ' + ToStr(ID) + '; Client Does Not exist **');
    end;

    (*
    InitSmart
    ~~~~~~~~~

    .. code-block:: pascal

        function InitSmart(ForceNew: Boolean): Integer;

    Initializes A Smart Remote Client.
    Terminates the current script upon failure.
    Terminates all clients of the current remote upon failure.
    ForceNew Creates a new client.

    .. note::

      By: Benland100, Mormanman, Brandon.

    Example:

    .. code-block:: pascal

    *)

    function InitSmart(ForceNew: Boolean): Integer;
    var
      I, Count: Integer;
      IDs: TIntegerArray;
      Params: TStringArray;
    begin
      If (Not ForceNew) then
      begin
        Ids := SmartGetClientIDs;
        Count := Length(IDs);
        If (Count > 0) then
          For I:= 0 To (Count - 1) Do
          begin
            If SmartPairClient(IDs[I]) then
            begin
              Result := IDs[I];
              SetEIOSTarget('libsmartremote', ToStr(Result));
              Writeln('Paired with SMART[' + ToStr(Result) + ']');
              Exit;
            end;
          end;
      end;

      Params := GetSmartParams;
      If (Length(Params) <> 2) then
      begin
        Writeln('** Failed To Grab Smart Parameters **');
        Writeln('** Please check your internet connection/firewall **');
        TerminateScript;
        Exit;
      end;
     
      {$IFDEF SMART8}
      Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, InitSeq, '', '');
      {$ELSE}
      Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, InitSeq, '', '', Smart_Plugins);
      {$ENDIF}
     
      If (Result > 0) Then
      begin
        try
          SetEIOSTarget('libsmartremote', ToStr(Result));
          Writeln('Loading SMART: ' + Params[0] + Params[1]);
        except
          WriteLn('** Fatal Error: Pairing Clients; Terminating Script **');
          TerminateScript;
        end;
      end else
        begin
          Writeln('** Smart Cannot Spawn Clients **');
          TerminateScript;
        end;
    end;

    (*
    SetupSmart
    ~~~~~~~~~~

    .. code-block:: pascal

        procedure SetupSmart(ForceNewClient: Boolean);

    Sets Up a new Smart Client and waits until it's on screen.
    Terminates The current script upon failure.

    .. note::

      By: Mormanman.
      Modified By: Brandon.

    Example:

    .. code-block:: pascal

    *)

    procedure SetupSmart(ForceNewClient: Boolean);
    var
      T: Integer;
    begin
      T:= GetSystemTime + 120000;
      Smart_CurrentClient:= InitSmart(ForceNewClient);
      if (Smart_CurrentClient <= 0) then
      begin
        writeln('*** Smart Failed To Load ***');
        TerminateScript;
      end;

      if (SRL_SixHourFix) then
        SRL_Procs[SRL_OnRSUpdate]:= @SixHourFix;

      While (GetColor(382, 252) <> 0) Do
      begin
        {$IFDEF GLHOOK}
          break;
        {$ENDIF}
        if RSReady then
          break;

        Wait(100);
        if (GetTimeRunning >= 120000) then
        begin
          Writeln('*** Failed To Detect Clients ***');
          TerminateScript;
        end;
      end;
    end;





    {*           Functions Below Here are From the Original Smart.Simba           *}


    {*
      By: Unknown Author.
      Finds a Windows by partial title and Sets it as the target.
    *}

    function FindAndSetTarget(TitlePrefix: String; SetAsTarget: Boolean): Boolean;
    var
      T : TSysProcArr;
      I : Integer;
    begin
      T := GetProcesses;
      for I := High(T) downto 0 do
        if Pos(TitlePrefix, T[I].Title) <> 0 then
        begin
          Result := True;
          if SetAsTarget then SetTarget(T[I]);
          Exit;
        end;
    end;

    {*
      By: Unknown Author.
      Gets the position of the actual mouse (Not Smart's Mouse).
    *}

    procedure GetRealMousePos(var X, Y : Integer);
    var
      KMTarget, ITarget: Integer;
    begin
      {$IFDEF LAPE}
      writeln('GetRealMousePos not implemented yet in SRL-5 Lape!');
      TerminateScript;
      {$ELSE}
      KMTarget := GetKeyMouseTarget;
      ITarget := GetImageTarget;
      FindAndSetTarget('SMART', True);
      GetTClient.IOManager.GetMousePos(X, Y);
      FreeTarget(GetImageTarget);
      SetKeyMouseTarget(KMTarget);
      SetImageTarget(ITarget);

      // These are not universial offsets, but works somewhat for some Windows themes.
      X := X - 8;
      Y := Y - 25;
      {$ENDIF}
    end;

    {*
      By: Unknown Author.
      Returns if the "Real Mouse" (Not Smart's Mouse) Is Within a given Box.
    *}

    function IsRealMouseInBox(B : TBox): Boolean;
    var
      P : TPoint;
    begin
      GetRealMousePos(P.X, P.Y);
      Result := PointInBox(P, B);
    end;


    SRL.Simba:
    Simba Code:
    //----------------------------------------------------------------------------//
    //--                    SRL Resource Library                                --//
    //----------------------------------------------------------------------------//
    //-- by: Azeroth, Bebe, BenLand100, benleegt, Boreas, c0de, Cheesehunk      --//
    //--   Coh3n, dakota, Dankness, driger1592, EvilChicken!, Flyboy,           --//
    //--   Freddy1990, Hobbit, IceFire908, inferno, Kernel Klink, Knightstreak, --//
    //--   Krazy_Meerkat, Krichevskoy, Liquid, Lorax, lordsaturn, Mad Cow,      --//
    //--   marpis, Markus, masquerader, mastaraymond, moparisthebest,           --//
    //--   Mutant Squirrle, n3ss3s, N1ke, Naum, Nava2, NCDS, nielsie95,         --//
    //--   phantombmx, pups, Pyro, RAM, Rasta Magician, realrune, Renax, Ron,   --//
    //--   RsN, SKy Scripter, solemn wishes, Spky, SRL, Starblaster100,         --//
    //--   Stupid3ooo,Sumilion, tarajunky, The Claw, The_Rs_Monkey, TRiLeZ,     --//
    //--   Wizzup?, WT-Fakawi, XxKanexX, Yakman, YoHoJo, ZephyrsFury, _ChArMz,  --//
    //--                                                                        --//
    //--                                ....... and the SRL Community.          --//
    //----------------------------------------------------------------------------//

    //----------------------------------------------------------------------------//
    //--                         SRL Level 1 Includes                           --//
    //--                                                                        --//
    //--        Low Level SCAR Math, Mouse Movement and Color routines.         --//
    //----------------------------------------------------------------------------//

    // For development:
    //{$DEFINE CompileSRL}

    {$DEFINE SRL5}

    {$IFDEF Lape}
    {$include SRLLape.simba}
    {$ENDIF}

    {$IFDEF SMART8}
      {$IFNDEF SMART}
        {$DEFINE SMART}
      {$ENDIF}
    {$ENDIF}

    {$IFDEF SMART}
    {$IFNDEF SRL_SMART}
      {$IFDEF SIMBAMAJOR980}
        {$I SRL/SRL/Misc/Smart.Simba}
      {$ELSE}
        Procedure ActivateClient; {$IFDEF LAPE}override;{$ENDIF} begin end;
      {$ENDIF}
    {$ENDIF}
    {$ENDIF}

    //{$include SRL/SRL/core/defines.simba}
    {$ifdef Simba}
    {$i SRL/SRL/core/simba.simba}
    {$endif}
    {$include SRL/SRL/core/globals.simba}
    {$include SRL/SRL/core/math.simba}
    {$include SRL/SRL/core/mouse.simba}
    {$include SRL/SRL/core/color.simba}
    {$include SRL/SRL/core/players.simba}

    //----------------------------------------------------------------------------//
    //--                         SRL Level 2 Includes                           --//
    //--                                                                        --//
    //--                     Interface and OCR routines.                        --//
    //----------------------------------------------------------------------------//

    {$include SRL/SRL/core/text.simba}
    {$include SRL/SRL/core/timing.simba}
    {$include SRL/SRL/core/SRLlog.simba}
    {$include SRL/SRL/core/chat.simba}
    {$include SRL/SRL/core/bitmaps.simba}
    {$include SRL/SRL/core/amount.simba}
    {$include SRL/SRL/core/gametab.simba}

    //----------------------------------------------------------------------------//
    //--                         SRL Level 3 Includes                           --//
    //--                                                                        --//
    //--   MapWalking, AntiRandoms, Objects, Bank, Symbol and many more...      --//
    //----------------------------------------------------------------------------//

    {$include SRL/SRL/core/animation.simba}
    {$include SRL/SRL/core/flag.simba}
    {$include SRL/SRL/core/worldswitcher.simba}
    {$include SRL/SRL/core/login.simba}
    {$include SRL/SRL/core/autocolor.simba}
    {$include SRL/SRL/core/mapwalk.simba}
    {$include SRL/SRL/core/object.simba}
    {$include SRL/SRL/core/inventory.simba}
    {$include SRL/SRL/core/bank.simba}
    {$include SRL/SRL/core/symbol.simba}
    {$include SRL/SRL/core/rc.simba}
    {$include SRL/SRL/core/cautorespond.simba}
    {$include SRL/SRL/core/antiban.simba}
    {$include SRL/SRL/core/globalstats.simba}

    {$include SRL/SRL/core/antirandoms/antirandoms.simba}

    {$IFDEF LoadExtraFonts}
    {$include SRL/SRL/misc/fontupdater.simba}
    {$ENDIF}

    {$IFNDEF SIMBAMAJOR980}
    {$IFDEF SMART}
      {$IFNDEF SRL_SMART}
        {$include SRL/SRL/misc/SmartParams.Simba}
      {$ENDIF}
    {$ENDIF}
    {$ENDIF}

    {$DEFINE SRL_OPENDEV}
    {*******************************************************************************
    procedure  FreeSRL;
    by: SRL Dev Team
    Description: Tries to free all the variables it allocated during runtime.
    *******************************************************************************}

    procedure FreeSRL;
    begin
      FreeSRLBitmaps;
      FreeSRLFonts;
    end;

    {*******************************************************************************
    procedure  SetupSRL;
    by: SRL Dev Team
    Last Edit: 22 June 2010 -- Nava2
    Description: Sets up all variables needed to run SRL.
    *******************************************************************************}


    procedure SetupSRL;
    var
      t: Integer;
    begin
      {$IFNDEF SMART}
        {$IFDEF SIMBA}
          if (not IsTargetValid) then
            srl_Warn('SetUpSRL', 'Target client is not valid! ' +
              'Drag the crosshairs over the target client.', warn_Terminate);
        {$ENDIF}
      {$ENDIF}
      SetupBoxes; //Sets up box variables in globals.simba
      t := GetTimeRunning;
      MouseSpeed := 15;
      {$IFDEF UseLaptopMouse}LMouse_MissChance := 75;{$ENDIF}
      CheckHPFirst := True;
      Reincarnate := False;
      TalkAfterRandoms := False;
      RoadColor := 0;
      WaterColor := 0;
      BankColor := 0;

      // these need to be removed eventually (no longer used)
      SRL_OnFindRandomCall := nil;
      LampSkill := 'mining';

      //SetUpSRLReport;
      LoadCosineArrays;
      SymbolAccuracy:= 0.8;
      LoadSRLBitMaps;
      LoadSRLFonts;
      {$IFNDEF SRL_RANDOMS_TEST}
      _SetRandoms();
      {$ENDIF}
      SetupSRLAutoResponder;
      SRL_RandomScreenShot := False;
      UseFindMod := True;
      LogoutOnMod := True;
      UseFindTrade := True;
      UseAutoResponder := True;
      GraphicsSet := False;
      AllowPVP    := False;
      SRL_DisableIPLog := false;
      SRL_SavePath := includePath + 'SRL/logs/';
      SRL_StartTime := theDate(DATE_MONTH)+' at '+theTime;
      WarnSensitivity := -2;
      SetupAutoColors;

    {$IFDEF LoadExtraFonts}
      srl_UpdateFonts(srl_FontsUp2date);
    {$ENDIF}

      AddOnTerminate('FreeSRL');
      SetSupressExceptions(true);
      Writeln ('SRL Compiled in '+  IntToStr(GetTimeRunning - t) + ' msec');

      {$IFDEF SRL_SMART}
        {$IFDEF SIMBAMAJOR980}
          if (Smart_Server = 0) then
          begin
            Smart_Server := RandomWorld(Smart_Members, False);
            Smart_Signed := True;
            Smart_SuperDetail := False;
          end;
          Writeln('SMART Initialized.' + #10 + 'Loaded: Server ' + IntToStr(Smart_Server) + ', Members: ' + BoolToStr(Smart_Members)
                         + ', Signed: ' + BoolToStr(Smart_Signed) + ', Super Detail: ' + BoolToStr(Smart_SuperDetail) + '.');
          SmartSetupEx(Smart_Server, Smart_Members, Smart_Signed, Smart_SuperDetail);
          SetTargetArray(SmartImageArray, 765, 553);
        {$ELSE}
          SetupSmart(Smart_ForceNew);
          if (SRL_SixHourFix) then
            SRL_Procs[srl_OnRSUpdate] := @SixHourFix;
        {$ENDIF}

      repeat
        {$IFDEF GLHOOK}
          break;
        {$ENDIF}
        {$IFNDEF SIMBAMAJOR980}
          {$IFDEF SMART}
          If Smart_FixSpeed then
            FixSmartSpeed;
          {$ENDIF}
        {$ENDIF}
        Wait(100);
        if (GetTimeRunning - t) > 120000 then
          Break;
      until(RSReady);
      {$ENDIF}

      SetupGauss;
      SRL_ResetNavBar;
      Proc_WorldSwitcherEnabled
    end;

    {$ifdef CompileSRL}
    begin
      SetupSRL;
    end.
    {$endif}

    {$ifdef LAPE}
    begin
      SetupSRL;
    end.
    {$endif}


    You can use the same old test scripts as before.
    Last edited by Brandon; 07-02-2013 at 02:22 AM.
    I am Ggzz..
    Hackintosher

  8. #408
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    With newest Java (also uninstalled all others, including jdk), newest SRL, newest GLHook, newest SMART v8.1, newest OpenGL dll plus replaced SRL.simba and SmartParams.simba with those you posted above, new preferences.dat and no unused smart.xxxxx files I still can't get this to work...

    After setting the (new) runescape preferences to opengl and all the other runescape settings (fixed, max brightness, etc), I then open up simba and type in this:
    Simba Code:
    {$DEFINE GLHOOK}
    {$DEFINE SMART}
    {$i GLHook/GLHook.simba}

    begin
      setupSRL;
    end.
    I click run, SMART opens up fine, runescape loads in SmartMode and I get a java.lang.RunTimeException whenever I try to change from SafeMode into OpenGL. RuneScape prompts me with an alert saying it can't use that display option and changes me back to SafeMode. Additional info: Changing from SafeMode into OpenGL or DirectX on the drop-down menu on the SMART user interface freezes the screen; clicking and sending keystrokes still get through, but the drawing of the client has stopped.
    Tried reinstalling java, restarting windows, reinstalling plugins, reupdating SRL and resetting preferences, but to no avail.

    It seems like a runescape preferences setting issue, but I'd love to be able to change between modes in SMART...
    Is there a way to force runescape into OpenGL mode? It doesn't seem to like loading in anything else but safemode when I'm opening it in smart

    E: I know it must be a bit frustrating to hear so many people having errors, but I guess most of us are just too stupid to get it to work properly
    Last edited by Zyt3x; 07-02-2013 at 07:26 AM.

  9. #409
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    With newest Java (also uninstalled all others, including jdk), newest SRL, newest GLHook, newest SMART v8.1, newest OpenGL dll plus replaced SRL.simba and SmartParams.simba with those you posted above, new preferences.dat and no unused smart.xxxxx files I still can't get this to work...

    After setting the (new) runescape preferences to opengl and all the other runescape settings (fixed, max brightness, etc), I then open up simba and type in this:
    Simba Code:
    {$DEFINE GLHOOK}
    {$DEFINE SMART}
    {$i GLHook/GLHook.simba}

    begin
      setupSRL;
    end.
    I click run, SMART opens up fine, runescape loads in SmartMode and I get a java.lang.RunTimeException whenever I try to change from SafeMode into OpenGL. RuneScape prompts me with an alert saying it can't use that display option and changes me back to SafeMode. Additional info: Changing from SafeMode into OpenGL or DirectX on the drop-down menu on the SMART user interface freezes the screen; clicking and sending keystrokes still get through, but the drawing of the client has stopped.
    Tried reinstalling java, restarting windows, reinstalling plugins, reupdating SRL and resetting preferences, but to no avail.

    It seems like a runescape preferences setting issue, but I'd love to be able to change between modes in SMART...
    Is there a way to force runescape into OpenGL mode? It doesn't seem to like loading in anything else but safemode when I'm opening it in smart

    E: I know it must be a bit frustrating to hear so many people having errors, but I guess most of us are just too stupid to get it to work properly
    thats because your not loading the plugin. this should replace everything for you. it has numbered instructions too.

    https://mega.co.nz/#!ocg0ACib!N-WCMj...xOYxcZo4BkPMd0

    look at the test.simba too.
    Last edited by Kasi; 07-02-2013 at 01:46 PM.

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

    Default

    @Zyt3x

    I had to make sure java was in my path, then load the browser with RS(not SMART close out of all smart and simba stuff) set it to openGL via RS browser, Load SMART, if it's not in OpenGL set it to OpenGL, then use the dropdown box at the top and set it to OpenGL

    Thats what Kevin told me to do and worked for me (well...stopped client freezing still can't debug stuff)

  11. #411
    Join Date
    Oct 2011
    Location
    Chicago
    Posts
    3,352
    Mentioned
    21 Post(s)
    Quoted
    437 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    His solution
    Thank you! I got it working for the most part now




    Anti-Leech Movement Prevent Leeching Spread the word
    Insanity 60 Days (Killer workout)
    XoL Blog (Workouts/RS/Misc)

  12. #412
    Join Date
    Nov 2011
    Posts
    1,268
    Mentioned
    17 Post(s)
    Quoted
    217 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    With newest Java (also uninstalled all others, including jdk), newest SRL, newest GLHook, newest SMART v8.1, newest OpenGL dll plus replaced SRL.simba and SmartParams.simba with those you posted above, new preferences.dat and no unused smart.xxxxx files I still can't get this to work...

    After setting the (new) runescape preferences to opengl and all the other runescape settings (fixed, max brightness, etc), I then open up simba and type in this:
    Simba Code:
    {$DEFINE GLHOOK}
    {$DEFINE SMART}
    {$i GLHook/GLHook.simba}

    begin
      setupSRL;
    end.
    I click run, SMART opens up fine, runescape loads in SmartMode and I get a java.lang.RunTimeException whenever I try to change from SafeMode into OpenGL. RuneScape prompts me with an alert saying it can't use that display option and changes me back to SafeMode. Additional info: Changing from SafeMode into OpenGL or DirectX on the drop-down menu on the SMART user interface freezes the screen; clicking and sending keystrokes still get through, but the drawing of the client has stopped.
    Tried reinstalling java, restarting windows, reinstalling plugins, reupdating SRL and resetting preferences, but to no avail.

    It seems like a runescape preferences setting issue, but I'd love to be able to change between modes in SMART...
    Is there a way to force runescape into OpenGL mode? It doesn't seem to like loading in anything else but safemode when I'm opening it in smart

    E: I know it must be a bit frustrating to hear so many people having errors, but I guess most of us are just too stupid to get it to work properly
    All scripts must have all of these components to run correctly in OGL:
    Simba Code:
    program Name;
    {$DEFINE SMART}
    {$DEFINE GLHOOK}
    {$I GLHook/GLHook.Simba}



    begin
      Smart_Plugins := 'OpenGL32.dll';
      SetupSRL;
      SmartSetOperatingMode(0); // Loads SMART in Safemode
      GLHSetup(ToStr(SMART_CURRENTCLIENT)); // Enables OGL
      SmartSetOperatingMode(1); // Changes into OGL mode
     
      //Enter Rest of Main Loop here
    end.

    Note SMART define has to go before GLHook now so make sure to reverse those, not sure if that matters but it fixed some problems for me. The Key part are the three lines after SetupSRL; If you installed correctly, it should work just fine.

  13. #413
    Join Date
    Jan 2012
    Posts
    85
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    As a casual user and not a scripter; is this worth updating to?
    <3

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

    Default

    Quote Originally Posted by Aph0tix View Post
    As a casual user and not a scripter; is this worth updating to?
    Maybe. People are updating to it for OpenGL TBH maybe I'm wrong though.. but there are no OpenGL scripts out so I wouldn't say it's "worth" updating to unless you really want to. If you tired of the random smart.xxxx files appearing around your computer then yes, definitely upgrade to this.

  15. #415
    Join Date
    Oct 2011
    Location
    Chicago
    Posts
    3,352
    Mentioned
    21 Post(s)
    Quoted
    437 Post(s)

    Default

    Quote Originally Posted by Aph0tix View Post
    As a casual user and not a scripter; is this worth updating to?
    Not yet, maybe in a few weeks.




    Anti-Leech Movement Prevent Leeching Spread the word
    Insanity 60 Days (Killer workout)
    XoL Blog (Workouts/RS/Misc)

  16. #416
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Kevin's Mega link no longer exists, and OP is outdated?

    E: Kasi's link worked.

    E2: Too hard
    Last edited by The Mayor; 07-05-2013 at 03:48 AM.

  17. #417
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    Kevin's Mega link no longer exists, and OP is outdated?

    E: Kasi's link worked.

    E2: Too hard

    How can the OP be outdated when it's a git source?
    Too hard? :S You install it the same way you would the regular smart plugins. Drag/Drop.
    Only annoying part should be the loading of plugins which no one seems to be able to do even after my last post.

    Meh just use the regular Smart I guess.. This is just an option. I read somewhere Smart 8 was added to Simba :S
    Last edited by Brandon; 07-05-2013 at 06:52 AM.
    I am Ggzz..
    Hackintosher

  18. #418
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    Kevin's Mega link no longer exists, and OP is outdated?

    E: Kasi's link worked.

    E2: Too hard
    Kevin's link was my link, i removed after i updated. if you think its too hard mention my name on skype for help

  19. #419
    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 Kasi View Post
    Kevin's link was my link, i removed after i updated. if you think its too hard mention my name on skype for help
    I managed to get it installed, Demise sent me her files

  20. #420
    Join Date
    Oct 2011
    Location
    England
    Posts
    401
    Mentioned
    10 Post(s)
    Quoted
    176 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    I managed to get it installed, Demise sent me her files
    Heya matey, any chance you could send them to me?

    Thanks
    Yer a wizard, 'oopi

  21. #421
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Brandon, is this still in dev? Couldn't find your git stuff.

  22. #422
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by footballjds View Post
    Brandon, is this still in dev? Couldn't find your git stuff.
    Uhh I gotta go through a lot of stuff to find the code. I don't remember which computer I coded this on. It isn't on git. I deleted the git after all the changes were added to the Smart v8.3. I got so used to Smart v8.3, I didn't even know I had these threads or projects existing..

    If anyone has sources, it'd most likely either be Demise (long time no see) or Kasi (long time no see either). I'll see if I can find it.

    Also, it isn't in dev anymore because Smart v8.3 added all the features this had except for the sockets (pairing) stuff and the sexy console. All the plugin loading and stuff, Smart does that better for sure.

    The OP says v8.1 was the last version uploaded to git but the pictures show v8.3. I remember I failed at using git at that time so I used to release them via mediafire links.

    EDIT:

    I could only find the Java source on my external HDD. I can't find the C code(Simba plugin):
    https://github.com/Brandon-T/Acid-Loader


    EDIT2:

    Yup.. the rest are on mediafire (in the trash) lol.. I'll restore them and sort it out later :l
    http://i.imgur.com/Si3VXkd.png

    So un-organized.. lol.


    EDIT3:

    Found my mega-upload account and the source to the very last version that I ever worked on: https://mega.co.nz/#!QUdHjBAR!UfiZvU...N9wQ2WhvQ_nykU
    Last edited by Brandon; 01-02-2014 at 09:16 PM.
    I am Ggzz..
    Hackintosher

Page 17 of 17 FirstFirst ... 7151617

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
  •