Page 2 of 3 FirstFirst 123 LastLast
Results 26 to 50 of 59

Thread: Using SRL's SmartColors for object finding

  1. #26
    Join Date
    May 2007
    Location
    Some where fun.
    Posts
    2,891
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Great work! 100% using this!

    @Mixster, editing srl mean that if you release a script, user has to edit srl to.

  2. #27
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Quote Originally Posted by Nava2 View Post
    Perhaps it should just return an x, y and not click..
    I guess an option to not click could be added, although I don't see why you'd want this.

    Also thanks for the comments

    Finally, I've altered it to accept a variant as identifier, which keeps simplicity of use for newbies and keeps the more advanced constant-users happy.

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  3. #28
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Because clicking should be customizable, this is too much like
    SCAR Code:
    MineRock();
    Bank();
    GoToMine();
    //...

    Clicking is something important that I believe should be done individually in a script.

    E: oh, and do the new versions return an integer when you declare the object? Can't look atm.
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  4. #29
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Quote Originally Posted by Nava2 View Post
    Because clicking should be customizable, this is too much like
    SCAR Code:
    MineRock();
    Bank();
    GoToMine();
    //...

    Clicking is something important that I believe should be done individually in a script.

    E: oh, and do the new versions return an integer when you declare the object? Can't look atm.
    Ways of clicking....
    - Left Click
    - Right Click + Choose Option
    - One of the above with a Random percentage

    All of them included...

    And to the second question, no.

    SmartColors(ROCK_MITHRIL), not I := MakeObj(...); SmartColors(I);

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  5. #30
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Rasta Magician View Post
    Ways of clicking....
    - Left Click
    - Right Click + Choose Option
    - One of the above with a Random percentage

    All of them included...

    And to the second question, no.

    SmartColors(ROCK_MITHRIL), not I := MakeObj(...); SmartColors(I);

    ~RM
    Why not just make it return an integer, and you don't have to use it if you don't want to?

    The 0.00001 ms delay of variable assigning the one time per creation seems worthwhile to me That way you can still use the constants/vars during runtime.
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  6. #31
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Quote Originally Posted by Nava2 View Post
    Why not just make it return an integer, and you don't have to use it if you don't want to?

    The 0.00001 ms delay of variable assigning the one time per creation seems worthwhile to me That way you can still use the constants/vars during runtime.
    Because you already can use constants, in case you forgot what a variant is Also, you'd have me edit a lot of code for something that is barely useful

    also, http://www.villavu.com/forum/showthr...411#post658411

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  7. #32
    Join Date
    Nov 2007
    Location
    lol
    Posts
    176
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    can i use this function for finding bankchest at castlewars?
    i just want use it as find function i dont want it click on it.
    Last edited by wesleyxD; 11-23-2009 at 05:43 PM.

  8. #33
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    Quote Originally Posted by wesleyxD View Post
    can i use this function for finding bankchest at castlewars?
    i just want use it as find function i dont want it click on it.
    It would probably be smarter(hah) to make a custom function for that, but yes you could.

  9. #34
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    I'm have problems trying to use this. I made an object of the Draynor bank booth. The finding works awesome, it always moves the mouse to the closest booth first, but it never clicks.
    SCAR Code:
    program New;
    {.include SRL/SRL/Misc/Smart.scar}
    {.include SRL/SRL.scar}
    {.include SRL/SRL/misc/SmartColors.scar}

    const
      DRAY_BANK_BOOTH = 0;

    procedure CreateMSObject(theObject: Integer);
    begin
      case theObject of
        DRAY_BANK_BOOTH:
          begin
            MakeObj(DRAY_BANK_BOOTH, 6909561, 7, 0.45, 0.50, ['ooth'], ['uickly']);
            SetupSmartColorsDetails(DRAY_BANK_BOOTH, 80, 200, 10, 15, 7, 5, RIGHT_CLICK, 0);
          end;
      end;
    end;

    begin
      Smart_Server := 152;
      Smart_Members := False;
      Smart_Signed := True;
      Smart_SuperDetail := False;

      SetupSRL;
      ActivateClient;

      CreateMSObject(DRAY_BANK_BOOTH);
      SmartColors(DRAY_BANK_BOOTH);

      Wait(RandomRange(250, 500));
      if (BankScreen) then
        Writeln('Yay!')
      else
        Writeln('Awe!');
    end.
    When I set the uptext to 'alk' (which is not what I want), I get this:
    Code:
    SRL Compiled in 15 msec
    SMART Initialized.
    Loaded: Server 152, Members: False, Signed: True, Super Detail: False.
    SC Array: 0
    first finder
    found text
    gathering colors
    unable to gather colors
    Uptext: Use Bank booth / 4 more options
    found text
    gathering colors
    in color gatherer
    Analyse 5856616: 210
    Analyse 6053989: 210
    Analyse 6185578: 210
    Analyse 6514797: 210
    Analyse 6054246: 210
    Analyse 6251367: 210
    Analyse 5988456: 210
    Analyse 6383212: 210
    Analyse 6251371: 210
    Analyse 6382698: 210
    Analyse 6316907: 210
    Analyse 6054247: 210
    Analyse 6185582: 210
    Analyse 6711924: 210
    Analyse 7238266: 210
    Analyse 7698558: 210
    Analyse 6185586: 210
    Analyse 6580603: 210
    Analyse 6382963: 210
    Analyse 6382962: 210
    Analyse 5856621: 210
    Analyse 6185587: 210
    Analyse 5922412: 210
    Analyse 6580599: 210
    Analyse 6383211: 210
    Analyse 6185579: 210
    Analyse 7040627: 210
    Analyse 6316916: 210
    Analyse 6317173: 210
    Analyse 6251123: 210
    Analyse 7106683: 210
    Analyse 6712180: 210
    Analyse 7238011: 210
    Analyse 6185584: 210
    Analyse 6777979: 210
    Analyse 6975094: 210
    Analyse 5988458: 210
    Analyse 6514544: 210
    Analyse 7303803: 210
    Analyse 7632765: 210
    Analyse 6119526: 210
    Analyse 6645871: 210
    Analyse 6909043: 210
    Analyse 6251630: 210
    Analyse 7106165: 210
    Analyse 6382956: 210
    Analyse 6580334: 210
    Analyse 6449005: 210
    Analyse 6317160: 210
    Analyse 6251369: 210
    Analyse 6383215: 210
    Analyse 6251111: 210
    Analyse 6119785: 210
    Organizing colors
    Done organizing
    unable to gather colors
    found text
    gathering colors
    in color gatherer
    Analyse 7238011: 210
    Analyse 6185584: 210
    Analyse 6777979: 210
    Analyse 6975094: 210
    Analyse 5988458: 210
    Analyse 6514544: 210
    Analyse 7303803: 210
    Analyse 7632765: 210
    Analyse 6119526: 210
    Analyse 6645871: 210
    Analyse 6909043: 210
    Analyse 6251630: 210
    Analyse 7106165: 210
    Analyse 6382956: 210
    Analyse 6580334: 210
    Analyse 6449005: 210
    Analyse 6317160: 210
    Analyse 6185578: 210
    Analyse 6251369: 210
    Analyse 6383215: 210
    Analyse 6251111: 210
    Analyse 6185579: 210
    Analyse 7238266: 210
    Analyse 6119785: 210
    Analyse 6185576: 210
    Analyse 6119788: 210
    Analyse 5856873: 210
    Analyse 6974835: 210
    Analyse 6119791: 210
    Analyse 5922666: 210
    Analyse 6053996: 210
    Analyse 7435387: 210
    Analyse 6119781: 210
    Analyse 5922664: 210
    Analyse 5856870: 210
    Analyse 6119784: 210
    Analyse 5988457: 210
    Analyse 5922662: 210
    Analyse 5988201: 210
    Analyse 6054246: 210
    Analyse 6053990: 210
    Analyse 6711920: 210
    Analyse 6317161: 210
    Analyse 6711919: 210
    Analyse 6185317: 210
    Analyse 6514540: 210
    Organizing colors
    Done organizing
    unable to gather colors
    found text
    gathering colors
    unable to gather colors
    Uptext: Use Bank booth / 4 more options
    Successfully executed
    When I set it to 'ooth', I get this:
    Code:
    SRL Compiled in 16 msec
    SMART Initialized.
    Loaded: Server 152, Members: False, Signed: True, Super Detail: False.
    SC Array: 0
    first finder
    found text
    gathering colors
    in color gatherer
    Analyse 5988458: 210
    Analyse 6383212: 210
    Analyse 6185578: 210
    Analyse 6514797: 210
    Analyse 6054246: 210
    Analyse 5988456: 210
    Analyse 6316907: 210
    Analyse 6054247: 210
    Analyse 6185582: 210
    Analyse 6711924: 210
    Analyse 7238266: 210
    Analyse 7698558: 210
    Analyse 6185586: 210
    Analyse 6580603: 210
    Analyse 6382963: 210
    Analyse 6382962: 210
    Analyse 5988453: 210
    Analyse 6054000: 210
    Analyse 6449015: 210
    Analyse 6316651: 210
    Analyse 5988454: 210
    Analyse 6185579: 210
    Analyse 6316915: 210
    Analyse 6975104: 210
    Analyse 6646395: 210
    Analyse 6449012: 210
    Analyse 6843514: 210
    Analyse 5922666: 210
    Analyse 7303803: 210
    Analyse 6580339: 210
    Analyse 7303545: 210
    Analyse 5725032: 210
    Analyse 5922410: 210
    Analyse 6449007: 210
    Analyse 6119525: 210
    Analyse 6316906: 210
    Analyse 6974838: 210
    Analyse 7238008: 210
    Analyse 7172215: 210
    Analyse 6119786: 210
    Analyse 6646387: 210
    Analyse 6514544: 210
    Analyse 6382956: 210
    Analyse 6842994: 210
    Analyse 6119788: 210
    Organizing colors
    Done organizing
    unable to gather colors
    found text
    gathering colors
    unable to gather colors
    found text
    gathering colors
    in color gatherer
    Analyse 5988453: 210
    Analyse 6054000: 210
    Analyse 6449015: 210
    Analyse 6316651: 210
    Analyse 5988454: 210
    Analyse 6185579: 210
    Analyse 6316915: 210
    Analyse 6975104: 210
    Analyse 6646395: 210
    Analyse 6449012: 210
    Analyse 6843514: 210
    Analyse 5922666: 210
    Analyse 7303803: 210
    Analyse 6580339: 210
    Analyse 7303545: 210
    Analyse 5725032: 210
    Analyse 5922410: 210
    Analyse 6449007: 210
    Analyse 6119525: 210
    Analyse 6316906: 210
    Analyse 6974838: 210
    Analyse 7238008: 210
    Analyse 6185578: 210
    Analyse 7172215: 210
    Analyse 5988456: 210
    Analyse 6119786: 210
    Analyse 6646387: 210
    Analyse 6514544: 210
    Analyse 6382956: 210
    Analyse 6842994: 210
    Analyse 6119788: 210
    Analyse 6449005: 210
    Analyse 6842992: 210
    Analyse 5988460: 210
    Analyse 6119787: 210
    Analyse 6054249: 210
    Analyse 6053996: 210
    Analyse 7304056: 210
    Analyse 6119781: 210
    Analyse 5922664: 210
    Analyse 5856870: 210
    Analyse 5988457: 210
    Analyse 5922662: 210
    Analyse 6382955: 210
    Analyse 5922661: 210
    Analyse 6053990: 210
    Analyse 6711920: 210
    Analyse 6317161: 210
    Analyse 6185317: 210
    Organizing colors
    Done organizing
    unable to gather colors
    found text
    gathering colors
    unable to gather colors
    found text
    gathering colors
    in color gatherer
    Analyse 5988461: 210
    Analyse 6975105: 210
    Analyse 6909311: 210
    Analyse 7698559: 210
    Analyse 6251120: 210
    Analyse 8158856: 210
    Analyse 6711932: 210
    Analyse 6580603: 210
    Analyse 6909312: 210
    Analyse 6974584: 210
    Analyse 6777724: 210
    Analyse 5988207: 210
    Analyse 6317173: 210
    Analyse 6382959: 210
    Analyse 6448757: 210
    Analyse 6646139: 210
    Analyse 5988456: 210
    Analyse 5725034: 210
    Analyse 7830407: 210
    Analyse 6448749: 210
    Analyse 6974843: 210
    Analyse 5856618: 210
    Analyse 6317171: 210
    Analyse 7500923: 210
    Analyse 6449008: 210
    Analyse 6251379: 210
    Analyse 7369337: 210
    Analyse 5791082: 210
    Analyse 5922666: 210
    Analyse 5725032: 210
    Analyse 5988198: 210
    Analyse 6251371: 210
    Analyse 5790823: 210
    Analyse 7172219: 210
    Analyse 7304063: 210
    Analyse 6712180: 210
    Organizing colors
    Done organizing
    unable to gather colors
    found text
    gathering colors
    in color gatherer
    Analyse 5790823: 210
    Analyse 7172219: 210
    Analyse 6251371: 210
    Analyse 6317171: 210
    Analyse 7304063: 210
    Analyse 6712180: 210
    Analyse 5856621: 210
    Analyse 6449014: 210
    Analyse 5725032: 210
    Analyse 6514553: 210
    Analyse 6580603: 210
    Analyse 6646134: 210
    Analyse 7238015: 210
    Analyse 8159113: 210
    Analyse 7830409: 210
    Analyse 6185061: 210
    Analyse 6646391: 210
    Analyse 6251116: 210
    Analyse 5922406: 210
    Analyse 5922664: 210
    Analyse 6251372: 210
    Analyse 5922407: 210
    Organizing colors
    Done organizing
    unable to gather colors
    found text
    gathering colors
    unable to gather colors
    found text
    gathering colors
    in color gatherer
    Analyse 7106681: 210
    Analyse 6580333: 210
    Analyse 5988202: 210
    Analyse 6909302: 210
    Analyse 5725289: 210
    Analyse 6646395: 210
    Analyse 6449014: 210
    Analyse 6843515: 210
    Analyse 6053997: 210
    Analyse 6251380: 210
    Analyse 6514553: 210
    Analyse 6711929: 210
    Analyse 7238017: 210
    Analyse 6316915: 210
    Analyse 6515063: 210
    Analyse 5856871: 210
    Analyse 5922413: 210
    Analyse 7040896: 210
    Analyse 6514810: 210
    Analyse 7106171: 210
    Analyse 6974578: 210
    Analyse 8159113: 210
    Analyse 7830409: 210
    Analyse 6448492: 210
    Analyse 7171959: 210
    Analyse 6185581: 210
    Analyse 5791080: 210
    Analyse 5922406: 210
    Analyse 5922664: 210
    Analyse 6251372: 210
    Analyse 5922407: 210
    Organizing colors
    Done organizing
    unable to gather colors
    found text
    gathering colors
    in color gatherer
    Analyse 5922661: 210
    Analyse 6975091: 210
    Analyse 6448490: 210
    Analyse 5988202: 210
    Analyse 6514539: 210
    Analyse 6251372: 210
    Analyse 6317419: 210
    Analyse 6317164: 210
    Analyse 6317162: 210
    Analyse 6382956: 210
    Analyse 6119785: 210
    Analyse 6251370: 210
    Analyse 5988454: 210
    Analyse 5988453: 210
    Analyse 6185577: 210
    Analyse 6777711: 210
    Analyse 6119784: 210
    Analyse 7304057: 210
    Analyse 6711923: 210
    Analyse 6185575: 210
    Analyse 6119786: 210
    Analyse 6251113: 210
    Analyse 5856614: 210
    Analyse 6185320: 210
    Analyse 6185836: 210
    Analyse 6054247: 210
    Analyse 6185583: 210
    Analyse 6382185: 210
    Analyse 6514543: 210
    Analyse 6449005: 210
    Analyse 6251378: 210
    Analyse 6382966: 210
    Analyse 6382962: 210
    Analyse 6711920: 210
    Analyse 6185587: 210
    Analyse 6514809: 210
    Analyse 6383222: 210
    Analyse 6712179: 210
    Organizing colors
    Done organizing
    unable to gather colors
    found text
    gathering colors
    in color gatherer
    Analyse 6317170: 210
    Analyse 6449013: 210
    Analyse 6185579: 210
    Analyse 6843504: 210
    Analyse 7961479: 210
    Analyse 6119787: 210
    Analyse 5790826: 210
    Analyse 6909310: 210
    Analyse 6383223: 210
    Analyse 6975105: 210
    Analyse 5988462: 210
    Analyse 5856620: 210
    Analyse 7698561: 210
    Analyse 6514553: 210
    Analyse 6580346: 210
    Analyse 6711932: 210
    Analyse 6843256: 210
    Analyse 6909312: 210
    Analyse 6974584: 210
    Analyse 6580603: 210
    Analyse 5988207: 210
    Analyse 6317173: 210
    Analyse 6777725: 210
    Analyse 6448493: 210
    Analyse 7369859: 210
    Analyse 6382706: 210
    Analyse 6053475: 210
    Analyse 5790823: 210
    Analyse 7698564: 210
    Analyse 6119781: 210
    Analyse 6974579: 210
    Analyse 6317171: 210
    Analyse 6251378: 210
    Analyse 7040373: 210
    Analyse 6053996: 210
    Analyse 6119793: 210
    Analyse 7106165: 210
    Analyse 6053997: 210
    Analyse 5791082: 210
    Analyse 6711663: 210
    Analyse 7895939: 210
    Analyse 5922666: 210
    Analyse 5725032: 210
    Analyse 5922664: 210
    Organizing colors
    Done organizing
    unable to gather colors
    found text
    gathering colors
    in color gatherer
    Analyse 6251378: 210
    Analyse 6382966: 210
    Analyse 6185583: 210
    Analyse 6382962: 210
    Analyse 6711920: 210
    Analyse 6185587: 210
    Analyse 6514809: 210
    Analyse 6383222: 210
    Analyse 6712179: 210
    Analyse 7040627: 210
    Analyse 6382709: 210
    Analyse 6909568: 210
    Analyse 7501186: 210
    Analyse 6712183: 210
    Analyse 6119785: 210
    Analyse 7040373: 210
    Analyse 5987945: 210
    Analyse 7698566: 210
    Analyse 8093321: 210
    Analyse 5987946: 210
    Analyse 6646389: 210
    Analyse 5988458: 210
    Analyse 6580336: 210
    Analyse 7303803: 210
    Analyse 7238008: 210
    Analyse 6251374: 210
    Analyse 6580078: 210
    Analyse 6251630: 210
    Analyse 6382698: 210
    Analyse 7106423: 210
    Analyse 7106165: 210
    Analyse 6119783: 210
    Analyse 6053993: 210
    Analyse 6382958: 210
    Analyse 6251370: 210
    Analyse 6054247: 210
    Analyse 6382957: 210
    Analyse 5922665: 210
    Analyse 6580334: 210
    Analyse 6185579: 210
    Analyse 6185322: 210
    Analyse 6185581: 210
    Analyse 6448750: 210
    Analyse 6317418: 210
    Analyse 6054250: 210
    Analyse 6383214: 210
    Analyse 6185582: 210
    Analyse 5988200: 210
    Analyse 6317421: 210
    Analyse 6185578: 210
    Analyse 5988456: 210
    Analyse 5791082: 210
    Analyse 6054253: 210
    Analyse 5922408: 210
    Analyse 5988457: 210
    Analyse 6251626: 210
    Analyse 6317162: 210
    Analyse 6251627: 210
    Analyse 5922664: 210
    Organizing colors
    Done organizing
    unable to gather colors
    found text
    gathering colors
    in color gatherer
    Analyse 6382697: 210
    Analyse 6251113: 210
    Analyse 6711918: 210
    Analyse 6449013: 210
    Analyse 7830404: 210
    Analyse 6711931: 210
    Analyse 6119790: 210
    Analyse 6514809: 210
    Analyse 6580601: 210
    Analyse 5725034: 210
    Analyse 6514553: 210
    Analyse 6580346: 210
    Analyse 6383223: 210
    Analyse 6646134: 210
    Analyse 6777723: 210
    Analyse 6974584: 210
    Analyse 6514550: 210
    Analyse 6646395: 210
    Analyse 6119794: 210
    Analyse 7040634: 210
    Analyse 7698823: 210
    Analyse 6119789: 210
    Analyse 6053997: 210
    Analyse 6185581: 210
    Analyse 7566973: 210
    Analyse 6317170: 210
    Analyse 6119786: 210
    Analyse 6448750: 210
    Analyse 7238009: 210
    Analyse 6185575: 210
    Analyse 6054250: 210
    Analyse 6119785: 210
    Organizing colors
    Done organizing
    unable to gather colors
    found text
    gathering colors
    in color gatherer
    Analyse 6054247: 210
    Analyse 6185577: 210
    Analyse 5856614: 210
    Analyse 6251625: 210
    Analyse 6054248: 210
    Analyse 5988202: 210
    Analyse 6514539: 210
    Analyse 6383213: 210
    Analyse 6580590: 210
    Analyse 6120039: 210
    Analyse 6382956: 210
    Analyse 6119785: 210
    Analyse 6185574: 210
    Analyse 6580591: 210
    Analyse 6185325: 210
    Analyse 5988454: 210
    Analyse 5988458: 210
    Analyse 6119783: 210
    Organizing colors
    Done organizing
    unable to gather colors
    found text
    gathering colors
    in color gatherer
    Analyse 6251373: 210
    Analyse 7632771: 210
    Analyse 6251377: 210
    Analyse 8224648: 210
    Analyse 6909310: 210
    Analyse 5988461: 210
    Analyse 6646395: 210
    Analyse 6514553: 210
    Analyse 5922155: 210
    Analyse 6251121: 210
    Analyse 6251120: 210
    Analyse 5725035: 210
    Analyse 5922414: 210
    Analyse 6777724: 210
    Analyse 6054257: 210
    Analyse 6316911: 210
    Analyse 6777725: 210
    Analyse 5988206: 210
    Analyse 6646139: 210
    Analyse 6382956: 210
    Analyse 6842993: 210
    Analyse 7567236: 210
    Analyse 6382447: 210
    Analyse 6317171: 210
    Analyse 5725033: 210
    Analyse 6449008: 210
    Analyse 7172218: 210
    Analyse 5988203: 210
    Analyse 6449012: 210
    Analyse 6711919: 210
    Analyse 6185584: 210
    Analyse 6382955: 210
    Organizing colors
    Done organizing
    unable to gather colors
    found text
    gathering colors
    in color gatherer
    Analyse 6119783: 210
    Analyse 6119784: 210
    Analyse 6185579: 210
    Analyse 6251626: 210
    Analyse 6448490: 210
    Analyse 6843249: 210
    Analyse 6449008: 210
    Analyse 6842993: 210
    Analyse 6316906: 210
    Analyse 6251373: 210
    Analyse 6382958: 210
    Analyse 6185583: 210
    Analyse 7040629: 210
    Analyse 6053995: 210
    Analyse 6251372: 210
    Analyse 6316911: 210
    Analyse 6251378: 210
    Analyse 5988458: 210
    Analyse 6316916: 210
    Analyse 6514810: 210
    Analyse 6383221: 210
    Analyse 6514550: 210
    Analyse 6580853: 210
    Analyse 6777725: 210
    Analyse 6909312: 210
    Analyse 6711931: 210
    Analyse 6251368: 210
    Analyse 7106425: 210
    Analyse 6185331: 210
    Analyse 5988460: 210
    Analyse 6382959: 210
    Analyse 6119785: 210
    Analyse 7040373: 210
    Analyse 6842995: 210
    Analyse 6448755: 210
    Analyse 5987945: 210
    Analyse 5922410: 210
    Analyse 6317161: 210
    Analyse 6580336: 210
    Analyse 7238008: 210
    Analyse 6317167: 210
    Analyse 6909043: 210
    Analyse 6251630: 210
    Analyse 6382698: 210
    Analyse 7369593: 210
    Analyse 7106165: 210
    Analyse 7237753: 210
    Analyse 6580594: 210
    Analyse 6777714: 210
    Analyse 6251370: 210
    Analyse 6054247: 210
    Analyse 6317166: 210
    Analyse 7304059: 210
    Analyse 6317160: 210
    Organizing colors
    Done organizing
    unable to gather colors
    Uptext: Walk here / 1 more options
    Uptext: Walk here / 2 more options
    Uptext: Walk here / 1 more options
    Uptext: Walk here / 1 more options
    Uptext: Walk here / 1 more options
    found text
    gathering colors
    in color gatherer
    Analyse 6382955: 210
    Analyse 6383213: 210
    Analyse 6185319: 210
    Analyse 6975091: 210
    Analyse 7040630: 210
    Analyse 7895937: 210
    Analyse 5988202: 210
    Analyse 7238015: 210
    Analyse 6974835: 210
    Analyse 5790825: 210
    Analyse 7895942: 210
    Analyse 7106428: 210
    Analyse 6711930: 210
    Analyse 5725034: 210
    Analyse 5856620: 210
    Analyse 6054253: 210
    Analyse 6316915: 210
    Analyse 6119793: 210
    Analyse 6843518: 210
    Analyse 5922670: 210
    Analyse 6646126: 210
    Analyse 5922413: 210
    Analyse 6449017: 210
    Analyse 6580603: 210
    Analyse 7238275: 210
    Analyse 6185061: 210
    Analyse 7566979: 210
    Analyse 6251116: 210
    Analyse 6317166: 210
    Analyse 6119786: 210
    Analyse 6580593: 210
    Organizing colors
    Done organizing
    unable to gather colors
    found text
    gathering colors
    in color gatherer
    Analyse 5988458: 210
    Analyse 6580336: 210
    Analyse 7238008: 210
    Analyse 6317167: 210
    Analyse 6909043: 210
    Analyse 6251630: 210
    Analyse 6382698: 210
    Analyse 7369593: 210
    Analyse 7106165: 210
    Analyse 7237753: 210
    Analyse 6580594: 210
    Analyse 6777714: 210
    Analyse 6251370: 210
    Analyse 6054247: 210
    Analyse 6317166: 210
    Analyse 7304059: 210
    Analyse 6317160: 210
    Analyse 6185322: 210
    Analyse 6119784: 210
    Analyse 6448750: 210
    Analyse 6119785: 210
    Analyse 6383214: 210
    Analyse 6185582: 210
    Analyse 6317421: 210
    Analyse 5791080: 210
    Analyse 6382955: 210
    Analyse 5922662: 210
    Analyse 6185584: 210
    Analyse 6251372: 210
    Analyse 6053996: 210
    Analyse 7435387: 210
    Analyse 6185577: 210
    Analyse 6119786: 210
    Analyse 6054250: 210
    Analyse 6382957: 210
    Analyse 5988454: 210
    Analyse 5988456: 210
    Analyse 6317420: 210
    Analyse 6777455: 210
    Analyse 6514283: 210
    Analyse 6251368: 210
    Analyse 6975090: 210
    Analyse 6382954: 210
    Analyse 6580076: 210
    Organizing colors
    Done organizing
    unable to gather colors
    Uptext: Walk here / 2 more options
    Uptext: Walk here / 1 more options
    found text
    gathering colors
    in color gatherer
    Analyse 5856871: 210
    Analyse 5922413: 210
    Analyse 7040896: 210
    Analyse 6514810: 210
    Analyse 8159113: 210
    Analyse 7238275: 210
    Analyse 6185061: 210
    Analyse 7566979: 210
    Analyse 6251116: 210
    Analyse 6448494: 210
    Analyse 7895937: 210
    Analyse 6317166: 210
    Analyse 6251372: 210
    Analyse 6645869: 210
    Analyse 5988454: 210
    Analyse 5922663: 210
    Analyse 6185580: 210
    Organizing colors
    Done organizing
    unable to gather colors
    Uptext: Walk here / 2 more options
    Uptext: Walk here / 1 more options
    Uptext: Walk here / 1 more options
    Uptext: Walk here / 1 more options
    Awe!
    Successfully executed
    The uptext part only shows up when it mouses over the unused bank booths.

    So it writes the correct uptext in the debug when I have it set to the wrong uptext, and the opposite when it's set to the right uptext. I don't know if I'm doing something wrong, but either way it's not clicking.

    Thanks,
    Coh3n

    EDIT: When I just run Writeln(rs_GetUpText), it finds the correct uptext every time.
    Last edited by Coh3n; 02-25-2010 at 04:20 PM.

  10. #35
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Organizing colors
    Done organizing
    unable to gather colors
    That means that either the Max colors or Min colors setting is not tweaked correctly.

    SCAR Code:
    for i:= 0 to High(ColorArray) do
        begin
          L := AnalyseColor(ColorArray[i], Rock);

          if L <= Rock.Details.UNIQUE_COLOR_MAX then
          begin
            Rock.SCArray[RockColorIndex] := ColorArray[i];
            LengthArray[i] := L;
            Inc(RockColorIndex);
          end;
        end;

    SCAR Code:
    FindColors(TPA, Color, MSX1, MSY1, MSX2, MSY2)

      L := Length(TPA);

      //this will avoid a useless color returning a false positive
        if L < Rock.Details.UNIQUE_COLOR_MIN then L := Rock.Details.UNIQUE_COLOR_MAX + 10;

      SC_Debug('Analyse '+IntToStr(Color)+': '+IntToStr(L));

    so it's finding 210 points, which might be too few or too many points per color, depending on your settings.

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  11. #36
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    No matter what I set as the ColorMax, it always finds 10 more than what I set it to.
    Code:
    Analyse 6514286: 9010
    Analyse 5988463: 9010
    Analyse 6185587: 9010
    Analyse 5922412: 9010
    Analyse 6909303: 9010
    Analyse 6383211: 9010
    
    Analyse 6514286: 260
    Analyse 5988463: 260
    Analyse 6185587: 260
    EDIT: Idk, I think I was setting my sizes way too big. I set the ColorMin to 0, ColorMax to 100, and MaxColors to 20, and it worked.

    EDIT2: I also found out why it was +10 every time after looking through the code a bit.
    Last edited by Coh3n; 02-25-2010 at 10:28 PM.

  12. #37
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    I want to try using this, I never knew exactly how good it could be until I read this tut on it. The only thing is, I don't know how I would go about getting the hue and sat of a color, can someone please explain how to. Sorry if it's answered already, I searched this thread though and didn't find anything about it.

  13. #38
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by Baked0420 View Post
    I want to try using this, I never knew exactly how good it could be until I read this tut on it. The only thing is, I don't know how I would go about getting the hue and sat of a color, can someone please explain how to. Sorry if it's answered already, I searched this thread though and didn't find anything about it.
    Use AutoColorAid in the scripting tools folder in SRL.

    If you choose CTS 2, pick a few colors, and then press get best color or something like that, the tolerance, color, hue/sat mods are on the right.

  14. #39
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Baked0420 View Post
    I want to try using this, I never knew exactly how good it could be until I read this tut on it. The only thing is, I don't know how I would go about getting the hue and sat of a color, can someone please explain how to. Sorry if it's answered already, I searched this thread though and didn't find anything about it.
    autocoloring aid is a great way to do it. It's in scripting tools which is found in the includes folder.

    SCAR -> Includes -> scripting tools -> autocoloring aid (ACA for short)
    “Ignorance, the root and the stem of every evil.”

  15. #40
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    No matter what I set as the ColorMax, it always finds 10 more than what I set it to.
    Code:
    Analyse 6514286: 9010
    Analyse 5988463: 9010
    Analyse 6185587: 9010
    Analyse 5922412: 9010
    Analyse 6909303: 9010
    Analyse 6383211: 9010
    
    Analyse 6514286: 260
    Analyse 5988463: 260
    Analyse 6185587: 260
    EDIT: Idk, I think I was setting my sizes way too big. I set the ColorMin to 0, ColorMax to 100, and MaxColors to 20, and it worked.

    EDIT2: I also found out why it was +10 every time after looking through the code a bit.
    Ah yes, the +10 means it's a useless color. SC needs some better debugging.

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  16. #41
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by Rasta Magician View Post
    Ah yes, the +10 means it's a useless color. SC needs some better debugging.

    ~RM
    Maybe...

  17. #42
    Join Date
    Sep 2009
    Posts
    580
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I just shat myself. Thank you RM.
    I don't check this place often, sorry.

    Currently working on - Software Engineering degree. Thank you SRL for showing me the one true path

  18. #43
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Quote Originally Posted by Cigue View Post
    I just shat myself. Thank you RM.
    I loled. My gf, (who knows little about this) is wondering why the hell I made you shit xD

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  19. #44
    Join Date
    Sep 2009
    Posts
    580
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Funny :P I was wondering if there was a possibility to make this include more efficient by modding it with INIs?
    I don't check this place often, sorry.

    Currently working on - Software Engineering degree. Thank you SRL for showing me the one true path

  20. #45
    Join Date
    Mar 2007
    Posts
    1,700
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    I think line 360 is incorrect. The following code segment:
    Code:
     L := Length(ColorArray);
    
        SetLength(Rock.SCArray, L);
        SetLength(LengthArray, L);
    
        for i:= 0 to High(ColorArray) do
        begin
          L := AnalyseColor(ColorArray[i], Rock);
    
          if L <= Rock.Details.UNIQUE_COLOR_MAX then
          begin
            Rock.SCArray[RockColorIndex] := ColorArray[i];
            LengthArray[i] := L; //line 360
            Inc(RockColorIndex);
          end;
        end;
    
        SetLength(Rock.SCArray, RockColorIndex + 1);
        Rock.SCArray := OrganizeColors(Rock.SCArray, LengthArray);
        Result := (RockColorIndex > 2);
    Because the indices in SCArray are supposed to correspond to the indices in LengthArray in order to be used in OrganizeColors, correct?

  21. #46
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Quote Originally Posted by lordsaturn View Post
    I think line 360 is incorrect. The following code segment:
    Code:
     L := Length(ColorArray);
    
        SetLength(Rock.SCArray, L);
        SetLength(LengthArray, L);
    
        for i:= 0 to High(ColorArray) do
        begin
          L := AnalyseColor(ColorArray[i], Rock);
    
          if L <= Rock.Details.UNIQUE_COLOR_MAX then
          begin
            Rock.SCArray[RockColorIndex] := ColorArray[i];
            LengthArray[i] := L; //line 360
            Inc(RockColorIndex);
          end;
        end;
    
        SetLength(Rock.SCArray, RockColorIndex + 1);
        Rock.SCArray := OrganizeColors(Rock.SCArray, LengthArray);
        Result := (RockColorIndex > 2);
    Because the indices in SCArray are supposed to correspond to the indices in LengthArray in order to be used in OrganizeColors, correct?
    I see what you mean. Looks to me like it should be LengthArray[RockColorIndex] := L; , no?

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  22. #47
    Join Date
    Sep 2009
    Posts
    580
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Is there a way to use SmartColors in custom procedures?
    I don't check this place often, sorry.

    Currently working on - Software Engineering degree. Thank you SRL for showing me the one true path

  23. #48
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Quote Originally Posted by Cigue View Post
    Is there a way to use SmartColors in custom procedures?
    You can use the idea of SmartColors, or you can copy/paste the code and edit it as you need. You can also access the SmartColorsArray (SCArray) if you wish to manipulate any of the information on it.

    ~RM

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

  24. #49
    Join Date
    Mar 2007
    Posts
    1,700
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Quote Originally Posted by Rasta Magician View Post
    I see what you mean. Looks to me like it should be LengthArray[RockColorIndex] := L; , no?

    ~RM
    Yes that's correct.

  25. #50
    Join Date
    Sep 2009
    Posts
    580
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Rasta Magician View Post
    You can use the idea of SmartColors, or you can copy/paste the code and edit it as you need. You can also access the SmartColorsArray (SCArray) if you wish to manipulate any of the information on it.

    ~RM
    I'd like to work it out with someone who is more familiar with the include, think you could help me?
    I don't check this place often, sorry.

    Currently working on - Software Engineering degree. Thank you SRL for showing me the one true path

Page 2 of 3 FirstFirst 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 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
  •