+ Reply to Thread
Results 1 to 15 of 15

Thread: Repeated clicking

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

    Default Repeated clicking

    I think this has been reported before and supposedly fixed. I'm testing out VE Mine, and the rock just gets repeatedly clicked.

    ~RM

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

  2. #2
    Join Date
    May 2008
    Location
    ;)
    Posts
    576
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I've never had this bug. Or at least never seen it. Haven't run an autominer in awhile though....

  3. #3
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    I've tried to fix this multiple times.

    If you debug WaitWhileMining, you will see that as soon as it enters the function, it exits as well, with nearly no delay at all.

    MSI_TrackObject also messes it up and makes it click the rock again as soon as you get next to it, because it "loses it".

    This is next on my list of thing's to do as soon as I get 30 mins to sit down and put in this priority autoing.

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

    Default

    RM, it doesn't spam click or anything like that, right? Just once in a while it clicks the same rock more than once?

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

    Default

    No, not spam indeed. It just loses track of the rock very easily and so clicks it every 2-3 seconds.

    ~RM

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

  6. #6
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by Sir R. Magician View Post
    No, not spam indeed. It just loses track of the rock very easily and so clicks it every 2-3 seconds.

    ~RM
    Feel free to make any suggestions you may think of. I've tried quite a few thing's but nothing seems to make it any better.

    I have no problem coding it, and I don't have to work tomorrow so I plan on getting a few things done.

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

    Default

    Well I'm approaching things slowly. I've updated the copper TItem and added SmartDebugging so I could better see what's going on. Better debugging of mining.simba will also be helpful & needed.

    ~RM
    Last edited by Sir R. M8gic1an; 09-06-2010 at 06:25 AM.

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

  8. #8
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by Sir R. Magician View Post
    Well I'm approaching things slowly. I've update the copper TItem and added SmartDebugging so I could better see what's going on. Better debugging of mining.simba will also be helpful & needed.

    ~RM
    Yeah that's what I was going to do tomorrow is just debug everything so I can figure out where the problem is, so I can just leave the necessary ones in there.

    I'm assuming you would like me to incorporate your SMartDebugging as well? unless you wanted to do that?

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

    Default

    I think I found it..

    Simba Code:
    RockColorCount := Length(Arr);

        if (Length(Arr) < Round(RockColorCount * 0.50)) then
          Break;

    It'll always be true and therefore always break. What was the original intention for this?

    e: go ahead and do it. I'll be working around as well, I need to gather some ores to then work on MSI Smelter

    ~RM

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

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

    Default

    Found another one.

    Simba Code:
    t := (GetSystemTime + 60000);

     until((t > GetSystemTime)

    Kinda expected that (t > GetSystemTime)....

    e: Working much better now, seems to be fixed
    I'll have a smoke, let it run for a bit and then commit my mining.simba

    ~RM
    Last edited by Sir R. M8gic1an; 09-06-2010 at 06:49 AM.

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

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

    Default

    Quote Originally Posted by Sir R. Magician View Post

    e: Working much better now, seems to be fixed
    I'll have a smoke, let it run for a bit and then commit my mining.simba

    ~RM
    I'll test that in the morning, I'm curious as to what it looks like.

    Oh and good call on the /ACA folder. I'm going to add it to the How-to tutorial so we can keep records for all the items.

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

    Default

    I've modified WaitWhileMining for the color counting to work properly. However the system is currently ineffective. I'll see what I can do.


    e: I kinda Loled when I saw this; I thought I'd post it so we can all be aware of where some of our issues may be coming from.
    This is WaitWhileMining's search box.



    e: 'There is no ore' should be added as a detection method to exit WaitWhileMining

    Ok, so I've been playing around with TrackObject and WaitWhileMining, and i've got it down to this:


    ~RM
    Last edited by Sir R. M8gic1an; 09-06-2010 at 08:40 AM.

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

  13. #13
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Sir R. Magician View Post
    Ok, so I've been playing around with TrackObject and WaitWhileMining, and i've got it down to this:
    ~RM
    Did you get TrackObject work when the rock is far away and it takes several seconds to walk to it?

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

    Default

    Nope, I just have it re-click the rock.

    But we might be able to work something out with math, what do you think?
    Just get the general direction of the object and look for it there?
    There's also another solution.. 'RecaptureObject'.. which basically waits for it to finish moving and then checks the surroundings for the closest object

    e: depends on how fast your char moves, for rocks at a distance

    ~RM

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

  15. #15
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by Sir R. Magician View Post
    I think I found it..

    Simba Code:
    RockColorCount := Length(Arr);

        if (Length(Arr) < Round(RockColorCount * 0.50)) then
          Break;

    It'll always be true and therefore always break. What was the original intention for this?
    It shouldn't have always been true, unless Length(Arr) dropped to under half the original count instantly?

    Quote Originally Posted by Sir R. Magician View Post
    I've modified WaitWhileMining for the color counting to work properly. However the system is currently ineffective. I'll see what I can do.


    e: I kinda Loled when I saw this; I thought I'd post it so we can all be aware of where some of our issues may be coming from.
    This is WaitWhileMining's search box.

    I increased the size of the search box last time when I was trying to implement sort of a quick fix, as I was short on time, and that seemed to make it work better at the moment.

    Quote Originally Posted by Sir R. Magician View Post
    Nope, I just have it re-click the rock.

    But we might be able to work something out with math, what do you think?
    Just get the general direction of the object and look for it there?
    There's also another solution.. 'RecaptureObject'.. which basically waits for it to finish moving and then checks the surroundings for the closest object

    e: depends on how fast your char moves, for rocks at a distance

    ~RM
    I say we just Flag; and a small wait to make sure we are closest to the rock were mining, then re-find it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may post attachments
  • You may edit your posts
  •