Results 1 to 10 of 10

Thread: Pretty much done, need help ironing out flaws.

  1. #1
    Join Date
    Nov 2015
    Posts
    20
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default Pretty much done, need help ironing out flaws.

    Hello guys.

    I have tried to make a blast furnace bot, and i'll say it's pretty ok since it's my second script... but it's still not working =D

    I'm using aerolib and RSWalker and a custom map of the blast furnace area.

    My problems are:

    1. The map points change all the time. I can set a point and it will work foe 5 minutes, then be off by 1 square because fuck me i guess. Idk if this is the program that can't handle what i'm doing, or if i simply messed up =D

    2. Paying the dwarf when you are under lvl 60 smithing is pretty random. It should in theory just keep on going until it finds and pay him, but it doesn't. (This should be simply, but i'm bad at scripting)

    There are (most likely) lots of other bugs, but these are the worst ones.

    I know it's pretty bad, with lots of code that isn't used, and litteraly no antiban (beside how irregular it is), but it isn't done at all.

    I'm open to critique and people simply fixing my mistakes (plz).

    If this little projekt doesn't get finished, i might aswell just say it here, please make a Blast Furnace script as i'm shure alot of people (including me) would love to have it.

    Sorry about this long ass post (a damn essey), but thank you for reading it all if you get this far

    Script:
    BlastFurnace.simba
    Map:
    Bf.png

    -Rune
    Last edited by rune3132; 01-03-2016 at 05:59 PM.

  2. #2
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    @rune3132;

    You left your username & password in the script. I have removed them from the script and re-uploaded

    Forum account issues? Please send me a PM

  3. #3
    Join Date
    Apr 2013
    Posts
    680
    Mentioned
    13 Post(s)
    Quoted
    341 Post(s)

    Default

    Quote Originally Posted by Justin View Post
    @rune3132;

    You left your username & password in the script. I have removed them from the script and re-uploaded
    I did this some 10 years ago. I am so paranoid these days i triple check the file after the upload.


    ** Edit i tried using rswalker sometime ago - it once worked for me but no longer.. i couldn't get any help from the rswalker dev team so i use reflection walking for everything..

    I know this may be counter productive; but there are a few handy tricks you can do with reflection that rswalker can't

    <------------------>



  4. #4
    Join Date
    Mar 2013
    Posts
    1,010
    Mentioned
    35 Post(s)
    Quoted
    620 Post(s)

    Default

    Quote Originally Posted by AFools View Post
    I did this some 10 years ago. I am so paranoid these days i triple check the file after the upload.


    ** Edit i tried using rswalker sometime ago - it once worked for me but no longer.. i couldn't get any help from the rswalker dev team so i use reflection walking for everything..

    I know this may be counter productive; but there are a few handy tricks you can do with reflection that rswalker can't
    "rswalker dev" ya can't call @slacky; a dev team... I mean he's good but not a whole team good.
    #slack4admin2016
    <slacky> I will build a wall
    <slacky> I will ban reflection and OGL hooking until we know what the hell is going on

  5. #5
    Join Date
    Apr 2013
    Posts
    680
    Mentioned
    13 Post(s)
    Quoted
    341 Post(s)

    Default

    Quote Originally Posted by Harrier View Post
    "rswalker dev" ya can't call @slacky; a dev team... I mean he's good but not a whole team good.
    I thought ORSwalker was a progression of an older walker..? A one man team is still a team =P

    <------------------>



  6. #6
    Join Date
    Feb 2012
    Location
    Norway
    Posts
    995
    Mentioned
    145 Post(s)
    Quoted
    596 Post(s)

    Default

    The map points change all the time. I can set a point and it will work foe 5 minutes, then be off by 1 square because fuck me i guess.
    I am not shocked. 1 tile isn't much, not much at all. There are a few things in RSWalker that can be tried.
    The issue is possibly that RSW is calculating your position WHILE you are walking, so it can be a bit off.. You can reduce the RSW.skipClose to achieve higher accuracy - The default is 10, reduce it 1-2 at a time.

    Tho any of the following is probably a better way to go about it:

    Once you are done walking (like when you have totally stopped moving), do a final step if it didn't hit the exact tile:

    > pt := RSW.GetMyPos()
    > if (pt.x <> myGoalPt.x) or (pt.y <> myGoalPt.y) then
    >>> RSW.WalkToPos(myGoalPt, True);
    >
    > if (pt.x <> myGoalPt.x) or (pt.y <> myGoalPt.y) then
    >>> WriteLn('Well thats just too bad');


    However, RSW have something builtin for the above, but it might not be as effective, as it doesn't wait until you have fully stopped.
    But it's just a toggle, so it's simple to test:
    Instead of
    > RSW.WalkPath(myPath);
    You call it like this:
    > RSW.WalkPath(myPath, True);

    You might wanna disable MemScan, tho it might not really matter, this is done by by initalizing with a negative PID, RSW.Init(pathToMap, -1), iirc.

    I could _maybe_ do some things to RSWalker to make it more accurate (but also slower) whenever that's needed, but this wont happen any time soon.

    Other than that, you can actually do some colorfinding and shit yourself, and do the final correction that way. This is how I would expect people to solve the final correction if they need perfect accuracy, which is rather rare: Just about never happens, unless you are doing something "wrong".


    Quote Originally Posted by AFools View Post
    I thought ORSwalker was a progression of an older walker..?
    Nope. It's a brand new thingy ^_^
    And yeah, I am the one man team, but that's a quite lousy team, and at the same time maintaining other projects, working on lape etc. One can drop by #SRL for more or less interactive support, tho would have to expect some hours of wait-time before I have time for a chat, just be sure to highlight me (by writing slacky) =)

    I have also assigned @Harrier; as techsupport! Be sure to bother him @ IRC, hehe
    Last edited by slacky; 12-29-2015 at 02:44 PM.
    !No priv. messages please

  7. #7
    Join Date
    Nov 2015
    Posts
    20
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    @Justin; You are a god man thanks so much

  8. #8
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by slacky View Post
    I am not shocked. 1 tile isn't much, not much at all. There are a few things in RSWalker that can be tried.
    The issue is possibly that RSW is calculating your position WHILE you are walking, so it can be a bit off.. You can reduce the RSW.skipClose to achieve higher accuracy - The default is 10, reduce it 1-2 at a time.

    Tho any of the following is probably a better way to go about it:

    Once you are done walking (like when you have totally stopped moving), do a final step if it didn't hit the exact tile:

    > pt := RSW.GetMyPos()
    > if (pt.x <> myGoalPt.x) or (pt.y <> myGoalPt.y) then
    >>> RSW.WalkToPos(myGoalPt, True);
    >
    > if (pt.x <> myGoalPt.x) or (pt.y <> myGoalPt.y) then
    >>> WriteLn('Well thats just too bad');


    However, RSW have something builtin for the above, but it might not be as effective, as it doesn't wait until you have fully stopped.
    But it's just a toggle, so it's simple to test:
    Instead of
    > RSW.WalkPath(myPath);
    You call it like this:
    > RSW.WalkPath(myPath, True);

    You might wanna disable MemScan, tho it might not really matter, this is done by by initalizing with a negative PID, RSW.Init(pathToMap, -1), iirc.

    I could _maybe_ do some things to RSWalker to make it more accurate (but also slower) whenever that's needed, but this wont happen any time soon.

    Other than that, you can actually do some colorfinding and shit yourself, and do the final correction that way. This is how I would expect people to solve the final correction if they need perfect accuracy, which is rather rare: Just about never happens, unless you are doing something "wrong".



    Nope. It's a brand new thingy ^_^
    And yeah, I am the one man team, but that's a quite lousy team, and at the same time maintaining other projects, working on lape etc. One can drop by #SRL for more or less interactive support, tho would have to expect some hours of wait-time before I have time for a chat, just be sure to highlight me (by writing slacky) =)

    I have also assigned @Harrier; as techsupport! Be sure to bother him @ IRC, hehe
    little bit off topic, but is it possible to implement RSWalker into pumba?

  9. #9
    Join Date
    Feb 2012
    Location
    Norway
    Posts
    995
    Mentioned
    145 Post(s)
    Quoted
    596 Post(s)

    Default

    Quote Originally Posted by hoodz View Post
    little bit off topic, but is it possible to implement RSWalker into pumba?
    Uhh, yes and no (simba side of it would have to be recreated in java, dlls modified etc).. Perhaps best to pretty much recreate it all in java, and use OpenCV's Java bindings. Then it's just am matter of porting the code, more or less.
    It's quite a bit of work all in all.

    As for the "memscan" stuff, you'd just have to modify that dll a bit, export the methods "properly" - so that it can be loaded from Java in an easy manner. But this part is written for windows only.

    tl;dr: Yes but it's a lot of work.
    Last edited by slacky; 12-30-2015 at 08:37 AM.
    !No priv. messages please

  10. #10
    Join Date
    Nov 2015
    Posts
    20
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    Quote Originally Posted by slacky View Post
    I am not shocked. 1 tile isn't much, not much at all. There are a few things in RSWalker that can be tried.
    The issue is possibly that RSW is calculating your position WHILE you are walking, so it can be a bit off.. You can reduce the RSW.skipClose to achieve higher accuracy - The default is 10, reduce it 1-2 at a time.

    Tho any of the following is probably a better way to go about it:

    Once you are done walking (like when you have totally stopped moving), do a final step if it didn't hit the exact tile:

    > pt := RSW.GetMyPos()
    > if (pt.x <> myGoalPt.x) or (pt.y <> myGoalPt.y) then
    >>> RSW.WalkToPos(myGoalPt, True);
    >
    > if (pt.x <> myGoalPt.x) or (pt.y <> myGoalPt.y) then
    >>> WriteLn('Well thats just too bad');


    However, RSW have something builtin for the above, but it might not be as effective, as it doesn't wait until you have fully stopped.
    But it's just a toggle, so it's simple to test:
    Instead of
    > RSW.WalkPath(myPath);
    You call it like this:
    > RSW.WalkPath(myPath, True);

    You might wanna disable MemScan, tho it might not really matter, this is done by by initalizing with a negative PID, RSW.Init(pathToMap, -1), iirc.

    I could _maybe_ do some things to RSWalker to make it more accurate (but also slower) whenever that's needed, but this wont happen any time soon.

    Other than that, you can actually do some colorfinding and shit yourself, and do the final correction that way. This is how I would expect people to solve the final correction if they need perfect accuracy, which is rather rare: Just about never happens, unless you are doing something "wrong".



    Nope. It's a brand new thingy ^_^
    And yeah, I am the one man team, but that's a quite lousy team, and at the same time maintaining other projects, working on lape etc. One can drop by #SRL for more or less interactive support, tho would have to expect some hours of wait-time before I have time for a chat, just be sure to highlight me (by writing slacky) =)

    I have also assigned @Harrier; as techsupport! Be sure to bother him @ IRC, hehe
    Thank you so much mate, i'll trye your suggestions. I'm very sorry if the "because fuck me i guess" part was a little harsh. Your work on this is really amazing, and i did in no way try to disrespect you.
    It's just my way of trying to be funny =D

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
  •