Page 2 of 2 FirstFirst 12
Results 26 to 45 of 45

Thread: How you insert report in the client screen?

  1. #26
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Don't even bother with the OpenGL drawing. It's not worth the time and effort. What I said about Canvas+DC is not OpenGL. SCAR can do it.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  2. #27
    Join Date
    Nov 2009
    Posts
    471
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by Wizzup? View Post
    Don't even bother with the OpenGL drawing. It's not worth the time and effort. What I said about Canvas+DC is not OpenGL. SCAR can do it.
    Awsome could you show me an example of a script to, display "This is a text" in client window ? or is loading the text straight from a file just as good ?

    What i mean is you only need LoadDebugBitmap or is there a bether way to display report ?
    Last edited by tom99; 07-03-2010 at 01:03 PM.

  3. #28
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    SCAR Code:
    program new;
    {.include srl/srl.scar}
    Procedure WriteToClient(What:String);
    var
      height:Integer;
      TPA: TPointArray;
    begin
      TPA := LoadTextTPA(what, 0, height);
      DrawTPACanvas(TPA, clWhite, GetClientCanvas);
    end;

    begin
      while True do WriteToClient('text');
    end.
    Only works in scar, which is silly point 1. And you can't run the script at the same time as writing text, which is sillier point 2.

  4. #29
    Join Date
    Nov 2009
    Posts
    471
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    That script didnt work for me at all, got this error message:
    Scar 3.25:
    Unable to register function ???????????????›?????????›?????????›???????›????; in script
    Scar 3.23:
    It open sandwich lady script
    Scar 3.21:
    [Runtime Error] : Exception: Access violation at address 0077960C in module 'scar.exe'. Read of address 000001D0

  5. #30
    Join Date
    Feb 2009
    Location
    Hungary (GMT + 1)
    Posts
    1,774
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Works for me. I don't know which scar(using simba lately).
    Make sure you select runescape with the cross-hair and then use ActivateClient too.
    Last edited by Sabzi; 07-04-2010 at 10:47 AM. Reason: grammar ...

  6. #31
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    3.25 isn't useable yet, 3.23 is what I made it with, so I'm sure it works...

  7. #32
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    scar Code:
    program New;
    {.include SRL/SRL.scar}
     Var
       Bmp : Integer;
       
    Procedure DebugTime;
    var
      Canvas : TCanvas;
      W, H : Integer;
    Begin
      bmp := BitmapFromString(0, 0, '');
      Canvas := GetClientCanvas;
      Bmp := CreateBitmapMaskFromText('Time running: ' + TimeRunning, UpChars);
      FastReplaceColor(Bmp, ClBlack, 10799322);
      GetBitmapSize(Bmp, W, H);
      SafeCopyCanvas(GetBitmapCanvas(Bmp), Canvas, 0, 0, W, H, 205, 387, 205 + W, 387 + H);
      FreeBitmap(Bmp);
      SetTimeout(1, 'DebugTime');
    End;
     
    begin
      ActivateClient;
      SetupSRL;
      Wait(500);
      DebugTime;
      Repeat
        MMouse(Random(500), Random(500), Random(100), Random(100));
        Wait(500 + Random(500));
      Until False;
    end.

    That's some old code by me, I think it still works with SCAR.


  8. #33
    Join Date
    Mar 2007
    Posts
    3,116
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Besides the whole setTimeout that crashes scar thing...

  9. #34
    Join Date
    Nov 2009
    Posts
    471
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    It still dont work, it only open sandwich lady script, even if i delete it tell me sandwich lady script dont exist failed to compile.

    It is however what im after tough, you use srl v4 #42 scar 3.23 ?
    Last edited by tom99; 07-04-2010 at 12:03 PM.

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

    Default

    Quote Originally Posted by tom99 View Post
    It still dont work, it only open sandwich lady script, even if i delete it tell me sandwich lady script dont exist failed to compile.

    It is however what im after tough, you use srl v4 #42 scar 3.23 ?
    User srl-opendev

  11. #36
    Join Date
    Nov 2009
    Posts
    471
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    User srl-opendev
    Where can i find that ?
    Is it Revision 562 srl ?
    Now it worked with 3.21 after i runned compile srl again with opendev but 3.23 still give same error.
    Last edited by tom99; 07-04-2010 at 12:48 PM.

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

    Default

    Quote Originally Posted by tom99 View Post
    Where can i find that ?
    Is it Revision 562 srl ?
    http://villavu.com/repositories/srl-opendev/
    Yes

  13. #38
    Join Date
    Nov 2009
    Posts
    471
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Still dont work with 3.23 i deleted & downloaded srl again and now it start showing errors of prison pete on compile srl.
    Reinstalled 3.23 and now compile srl shows error in math.scar :S
    Zytex you made it work with 3.23 or older ?
    Last edited by tom99; 07-04-2010 at 02:18 PM.

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

    Default

    Quote Originally Posted by tom99 View Post
    Still dont work with 3.23 i deleted & downloaded srl again and now it start showing errors of prison pete on compile srl.
    Reinstalled 3.23 and now compile srl shows error in math.scar :S
    Zytex you made it work with 3.23 or older ?
    Yes, It worked just fine for me, but because of the use of SetTimeout, scar crashed after 14 secounds

  15. #40
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    tom99, you have to move your plugins with SCAR 3.23 and srl-opendev. Also, you should try Simba.

  16. #41
    Join Date
    Nov 2009
    Posts
    471
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    I did move the folder called " Move this folder to plugins" into the plugin folder, and i have tryed simba but i reckon its compatible with bitmapmask and disguise and some other commands so ive not started using it yet, im looking forward for it to be done tough.

  17. #42
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by tom99 View Post
    I did move the folder called " Move this folder to plugins" into the plugin folder, and i have tryed simba but i reckon its compatible with bitmapmask and disguise and some other commands so ive not started using it yet, im looking forward for it to be done tough.
    You don't move the folder you move all the files inside that folder into Plugins folder.
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  18. #43
    Join Date
    Nov 2009
    Posts
    471
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by Narcle View Post
    You don't move the folder you move all the files inside that folder into Plugins folder.
    Did, that script still dont work with scar 3.23 i keep getting this error message
    Line 270: [Error] (15408:1): Invalid number of parameters in script C:\Programfiles\Scar 3.23\includes\SRL\SRL\Core\AntiRandoms\Sandwich.sc ar

  19. #44
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  20. #45
    Join Date
    Nov 2009
    Posts
    471
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by Shuttleu View Post
    with the sandwich.scar problem
    just add ",2" then save

    ~shut
    It didnt work

    Is there a srl free way to do the same thing ?
    Last edited by tom99; 07-06-2010 at 09:18 PM.

Page 2 of 2 FirstFirst 12

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
  •