Results 1 to 2 of 2

Thread: irokiplugin

  1. #1
    Join Date
    Oct 2011
    Posts
    805
    Mentioned
    21 Post(s)
    Quoted
    152 Post(s)

    Default irokiplugin

    I'm working now on leo random ,and I wanted to use irokiplugin.

    In my script I have (what I copied from old version):
    Simba Code:
    typ := Leo_AnalyzeGraveStone2(ExportImageTarget);
    ,but I'm not sure I use it right. I'm getting acces violation on this line ,and error log file is created:
    Code:
    Program exception! 
    Stacktrace:
    
    Exception class: EAccessViolation
    Message: Access violation
      $00668895
    Simba Version: 990

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

    Default

    Well AFAIK none of the SRL functions use this :S

    But if I had to take a wild guess I'd probably start off with the IOManager like:

    Simba Code:
    Function dgsdgas: Boolean;
    var
      X: TClient;
    begin
      X:= GetTClient;
      X.IOManager.ActivateClient;
      X.IOManager.ExportImageTarget;    //This will crash your Simba.. Dunno why YET.
    end;

    And the Exporting you want is actually declared here:

    https://github.com/MerlijnWajer/Simb.../iomanager.pas

    As:
    Simba Code:
    function TIOManager_Abstract.ExportImageTarget: TTarget_Exported;
    begin
      FillChar(result,sizeof(TTarget_Exported),0);
      with result do
      begin
        Target:= image;
        GetTargetDimensions:= @TTarget_Exported_GetTargetDimensions;
        GetTargetPosition := @TTarget_Exported_GetTargetPosition;
        GetColor:= @TTarget_Exported_GetColor;
        ReturnData := @TTarget_Exported_ReturnData;
        FreeReturnData:= @TTarget_Exported_FreeReturnData;
      end;
    end;
    I am Ggzz..
    Hackintosher

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
  •