Page 2 of 7 FirstFirst 1234 ... LastLast
Results 26 to 50 of 170

Thread: Adieux's Pest Control

  1. #26
    Join Date
    Jun 2012
    Posts
    586
    Mentioned
    112 Post(s)
    Quoted
    296 Post(s)

    Default

    Look at them. They look like a model, not a texture. But yes, they're models.

    Models can be drawn over an interface. Just look at the video of ogLivid script. Those livids (plants) on the interface are models.




    Skype: obscuritySRL@outlook.com

  2. #27
    Join Date
    Mar 2015
    Posts
    438
    Mentioned
    21 Post(s)
    Quoted
    211 Post(s)

    Default

    Quote Originally Posted by Obscurity View Post
    Look at them. They look like a model, not a texture. But yes, they're models.

    Models can be drawn over an interface. Just look at the video of ogLivid script. Those livids (plants) on the interface are models.
    I never would've thought such..maybe that's why some icons on the construction interfaces wouldn't populate must be models. Thanks!

  3. #28
    Join Date
    Feb 2012
    Location
    Florida
    Posts
    180
    Mentioned
    14 Post(s)
    Quoted
    101 Post(s)

    Default

    Version 2.0 is up, let me know what you guys think.

  4. #29
    Join Date
    Mar 2014
    Location
    East Coast, USA
    Posts
    291
    Mentioned
    10 Post(s)
    Quoted
    148 Post(s)

    Default

    Quote Originally Posted by Adieux View Post
    Version 2.0 is up, let me know what you guys think.
    Testing it now!!! What did you change in 2.0?

  5. #30
    Join Date
    Aug 2015
    Location
    New York
    Posts
    38
    Mentioned
    5 Post(s)
    Quoted
    25 Post(s)

    Default

    Just started to test v2.0 and it cant seem to find the plank even though i was right next to it.

    19:53:37 | Adieuxs PestControl v2 > setup
    Were outside starting script
    First game, starting script...
    Reset camera
    Distance from plank 91.9673855233474
    We werent next to the plank, walking there now
    Did not find plank model will try to locate

    EDIT: Now it finds the plank but fails to click it, I manually clicked it to see if it would run better and it couldnt find the pests within the game itself.

    20:06:32 | Adieuxs PestControl v2 > setup
    Were outside starting script
    First game, starting script...
    Reset camera
    Distance from plank 0
    Found plank model
    We failed to click, retrying
    Failed to click too many times, terminating.
    Clicked correctly
    We made it onto the boat, cool
    No antiban right now
    Waiting for game to start...
    Game started!
    Walking to the west
    We currently have a target, waiting...
    No pests found rotating camera...
    No pests found rotating camera...
    No pests found rotating camera...
    No pests found rotating camera...
    No pests found rotating camera...
    Couldnt find pests...walking south a bit to see if we can find anything
    No pests found rotating camera...
    No pests found rotating camera...
    No pests found rotating camera...
    No pests found rotating camera...
    Couldnt find pests after multiple camera rotates, area must be clear. Waiting for next game to start
    Failed to get enough damage this game
    Reset camera
    Distance from plank 0
    Found plank model
    We failed to click, retrying
    Failed to click too many times, terminating.
    Terminating...
    Successfully executed.
    Last edited by BuffaloBill; 08-07-2015 at 12:11 AM.

  6. #31
    Join Date
    Mar 2014
    Location
    East Coast, USA
    Posts
    291
    Mentioned
    10 Post(s)
    Quoted
    148 Post(s)

    Default

    @BuffaloBill; Really? It is working for me fine. I don't want to sound like a nag, but did you set everything up properly from the OP?

  7. #32
    Join Date
    Feb 2012
    Location
    Florida
    Posts
    180
    Mentioned
    14 Post(s)
    Quoted
    101 Post(s)

    Default

    Quote Originally Posted by Grimxxdeath223 View Post
    Testing it now!!! What did you change in 2.0?
    Quite a few things just updated OP https://villavu.com/forum/showthread...11#post1354311

    Quote Originally Posted by BuffaloBill View Post
    Just started to test v2.0 and it cant seem to find the plank even though i was right next to it.

    19:53:37 | Adieuxs PestControl v2 > setup
    Were outside starting script
    First game, starting script...
    Reset camera
    Distance from plank 91.9673855233474
    We werent next to the plank, walking there now
    Did not find plank model will try to locate
    Ahh start it in the boat, theres an issue where if you dont get in the boat then leave the distance is all messed up.

    Get in the boat and let me know what happens.

  8. #33
    Join Date
    Aug 2015
    Location
    New York
    Posts
    38
    Mentioned
    5 Post(s)
    Quoted
    25 Post(s)

    Default

    Quote Originally Posted by Grimxxdeath223 View Post
    @BuffaloBill; Really? It is working for me fine. I don't want to sound like a nag, but did you set everything up properly from the OP?
    Nag nag nag lol just kidding I redid my settings to exactly how they were in the OP and what do yah know, it worked perfectly clicking on the plank as well as finding targets

    Also just a side note 1 game played and I got a boots pop up which it clicked through PERFECTLY so nice job on that as well!

    ill post a proggy before i go to bed!

  9. #34
    Join Date
    Feb 2012
    Location
    Florida
    Posts
    180
    Mentioned
    14 Post(s)
    Quoted
    101 Post(s)

    Default

    Quote Originally Posted by BuffaloBill View Post
    Nag nag nag lol just kidding I redid my settings to exactly how they were in the OP and what do yah know, it worked perfectly clicking on the plank as well as finding targets

    Also just a side note 1 game played and I got a boots pop up which it clicked through PERFECTLY so nice job on that as well!

    ill post a proggy before i go to bed!
    Glad its working, let me know if anything else pops up.

  10. #35
    Join Date
    Aug 2015
    Location
    New York
    Posts
    38
    Mentioned
    5 Post(s)
    Quoted
    25 Post(s)

    Default

    Distance from plank 0
    Found plank model
    Clicked correctly
    Distance from plank 4
    Found plank model
    We failed to click, retrying
    Error: Access violation at line 1595
    Execution failed.
    The following bitmaps were not freed: [0, 1]

    This is the problem im having currently.
    Last edited by BuffaloBill; 08-07-2015 at 12:59 AM.

  11. #36
    Join Date
    Feb 2012
    Location
    Florida
    Posts
    180
    Mentioned
    14 Post(s)
    Quoted
    101 Post(s)

    Default

    Quote Originally Posted by BuffaloBill View Post
    Distance from plank 0
    Found plank model
    Clicked correctly
    Distance from plank 4
    Found plank model
    We failed to click, retrying
    Error: Access violation at line 1595
    Execution failed.
    The following bitmaps were not freed: [0, 1]

    This is the problem im having currently.
    Yeah this is sadly an issue I'm currently working on. I've now rewritten the entire clicking procedure and will update tonight or tomorrow.

    If you dont get any lag it should go on for a while with out any issues, but I'm fixing it as we speak, sorry about that!

  12. #37
    Join Date
    Mar 2014
    Location
    East Coast, USA
    Posts
    291
    Mentioned
    10 Post(s)
    Quoted
    148 Post(s)

    Default

    So many people doing PC right now because it is in the spotlight XD

  13. #38
    Join Date
    Feb 2012
    Location
    Florida
    Posts
    180
    Mentioned
    14 Post(s)
    Quoted
    101 Post(s)

    Default

    Quote Originally Posted by Grimxxdeath223 View Post
    So many people doing PC right now because it is in the spotlight XD
    So thats why I've been getting extra thaler lol

  14. #39
    Join Date
    Jun 2012
    Posts
    586
    Mentioned
    112 Post(s)
    Quoted
    296 Post(s)

    Default

    A few more tips. :P.


    From clickOnGangPlank():
    Simba Code:
    mainscreen.setDegrees(0,90);
    I would not use a vertical degrees of 90. It will never reach it and just end up timing out after 2.5-5 seconds. While 90 degrees is looking straight down on your character, in most locations, the furthest you can go is approximately 52 degrees. Keep in mind, mainScreen.setDegrees() and mainScreen.setRadians() have a tolerance of about 10 degrees to make it more realistic.



    From clickOnGangPlank():
    Simba Code:
    if (distanceFrom > 5) and (timesResetCamera <= 1) then
    //~ Stuff...
    mouse.click(minimap.getScreenPosition([59,63]));
    This is more an opinion then anything. A distance of 5 can be a lot. Don't quote me on this, but 5 squares from the gangplank, given the right chances, you may end up going into the medium boat. Something like three is reasonable. Again, just my opinion.

    Clicking the exact coordinate on the minimap is risky. Add some randomization to it. You can do so by either adding it to the [59,63] itself or to the point returned by minimap.getScreenPosition().

    Simba Code:
    mouse.click(minimap.getScreenPosition([normalRandom(56,62),normalRandom(60,66)]));
    //~ Or...
    mouse.click(minimap.getScreenPosition([59,63]).randomizePointEllipse(12));[
    I used 12 because 1 tile is roughly 4px on the minimap.



    From waitFlag and startTheGame():
    Simba Code:
    //~ Stuff...
    Take a look at interfaces\dialogue.simba. Is has methods for detecting all dialogues, clicking continue, getting the title, contents, prompt, selecting options, etc. It's currently undocumented, but it, as well as minimap, are my next files to be documented and rewritten.



    From getClickResult() and clickOnGangPlank():
    Simba Code:
    mouse.click(sentPlankTPA[0].adjustPosition(0,5).randomizePointEllipse(4));
    //~ And...
    mouse.click(plankTPA[0].adjustPosition(0,5).randomizePointEllipse(4));
    It might be safe to also add a chance at using mouse.rightClickOption(). It returns true if the menu options was found, which could be used in place of mouse.getClick(). However, I think even right clicking will trigger mouse.getClick() if selecting 'Cross Gangplank'.



    From getOntoBoat():
    Simba Code:
    length(plankTPA := ogl.getClientMidPoint().closest(ogl.getModels(TCardinalArray([1781393848,2892440677,3763942768,4136683396,4168949912])).getVisible()));
    mouse.click(plankTPA[0].adjustPosition(0,5).randomizePointEllipse(4));
    This is the cause of your access violation. While you're using length(), it's not in an if statement. Therefore, there's nothing checking to ensure that plankTPA[0] even exists. So, it may be trying to adjust the position of a model that hasn't yet been drawn - which can be cause by map loading, etc.



    Anyways, I'm off to bed so won't have time to comment much more. I hope you don't take this as me nagging at you. As it's your first time using ogLib (and a freaking amazing script at that regardless), I figured I'd help you out a bit and show you some methods that I didn't think you were aware of. .
    Last edited by Obscurity; 08-07-2015 at 01:57 AM.




    Skype: obscuritySRL@outlook.com

  15. #40
    Join Date
    Mar 2014
    Location
    East Coast, USA
    Posts
    291
    Mentioned
    10 Post(s)
    Quoted
    148 Post(s)

    Default

    Quote Originally Posted by Adieux View Post
    So thats why I've been getting extra thaler lol
    Right now you get 1 thaler a minute since it is in the spotlight.

  16. #41
    Join Date
    Feb 2012
    Location
    Florida
    Posts
    180
    Mentioned
    14 Post(s)
    Quoted
    101 Post(s)

    Default

    Quote Originally Posted by Obscurity View Post
    Anyways, I'm off to bed so won't have time to comment much more. I hope you don't take this as me nagging at you. As it's your first time using ogLib (and a freaking amazing script at that regardless), I figured I'd help you out a bit and show you some methods that I didn't think you were aware of. .
    You have been absolutely amazing in helping me improve this and teaching me, I appreciate it so much, never nagging haha.
    Will fix what you have said and update soon.

  17. #42
    Join Date
    Jun 2012
    Posts
    586
    Mentioned
    112 Post(s)
    Quoted
    296 Post(s)

    Default

    Updated my post to show your access violation. :P.




    Skype: obscuritySRL@outlook.com

  18. #43
    Join Date
    Mar 2014
    Location
    East Coast, USA
    Posts
    291
    Mentioned
    10 Post(s)
    Quoted
    148 Post(s)

    Default

    Quote Originally Posted by Adieux View Post
    You have been absolutely amazing in helping me improve this and teaching me, I appreciate it so much, never nagging haha.
    Will fix what you have said and update soon.
    Are you going to push an update tonight? I know you are working like crazy on this.

  19. #44
    Join Date
    Feb 2012
    Location
    Florida
    Posts
    180
    Mentioned
    14 Post(s)
    Quoted
    101 Post(s)

    Default

    Quote Originally Posted by Grimxxdeath223 View Post
    Are you going to push an update tonight? I know you are working like crazy on this.
    Just pushed out a quick fix so that you dont get access violation error, script should run decently now.

    Just waiting for Obscurity to fix some ogLib functions and I will make it even better then, for now you can try version 2.1 (should update automatically)

  20. #45
    Join Date
    Jun 2015
    Posts
    64
    Mentioned
    2 Post(s)
    Quoted
    21 Post(s)

    Default

    Setup everything identicle to you and I still get this;

    07:47:09 | Adieuxs PestControl v2.1 > setup
    Were outside starting script
    First game, starting script...
    Reset camera
    Distance from plank 91.9673855233474
    We werent next to the plank, walking there now

    happens regardless of where i start it
    Last edited by Calluminati; 08-07-2015 at 06:54 AM.

  21. #46
    Join Date
    Feb 2012
    Location
    Florida
    Posts
    180
    Mentioned
    14 Post(s)
    Quoted
    101 Post(s)

    Default

    Quote Originally Posted by Calluminati View Post
    Setup everything identicle to you and I still get this;

    07:47:09 | Adieuxs PestControl v2.1 > setup
    Were outside starting script
    First game, starting script...
    Reset camera
    Distance from plank 91.9673855233474
    We werent next to the plank, walking there now

    happens regardless of where i start it
    Start in the boat and let me know what you get, this usually only happens once, the firs time its ran.

  22. #47
    Join Date
    Jun 2015
    Posts
    64
    Mentioned
    2 Post(s)
    Quoted
    21 Post(s)

    Default

    Quote Originally Posted by Adieux View Post
    Start in the boat and let me know what you get, this usually only happens once, the firs time its ran.
    Started it in the boat, same message and once the game starts it randomly rotates the camera for a while then terminates the script, I can provide a screenshot if you'd like.

  23. #48
    Join Date
    Feb 2012
    Location
    Florida
    Posts
    180
    Mentioned
    14 Post(s)
    Quoted
    101 Post(s)

    Default

    Quote Originally Posted by Calluminati View Post
    Started it in the boat, same message and once the game starts it randomly rotates the camera for a while then terminates the script, I can provide a screenshot if you'd like.
    Odd, no reason why it should say that it started outside.
    If you would like to send me a screenshot I might be able to see something

  24. #49
    Join Date
    Jun 2015
    Posts
    64
    Mentioned
    2 Post(s)
    Quoted
    21 Post(s)

    Default

    Quote Originally Posted by Adieux View Post
    Odd, no reason why it should say that it started outside.
    If you would like to send me a screenshot I might be able to see something


  25. #50
    Join Date
    Feb 2012
    Location
    Florida
    Posts
    180
    Mentioned
    14 Post(s)
    Quoted
    101 Post(s)

    Default

    @Calluminati; Not sure what could possibly be going on tbh, when you get on the boat or inside pest control and start it what does the debugger say?

    The reason youre getting this error is because it thinks your far away from the gang plank. I've fixed this my self by getting on the boat, leaving and closing out Simba then relaunching. Will look into this more tomorrow since I'm rewriting most of the code.

Page 2 of 7 FirstFirst 1234 ... LastLast

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
  •