Page 7 of 34 FirstFirst ... 5678917 ... LastLast
Results 151 to 175 of 827

Thread: AeroLib Include

  1. #151
    Join Date
    Aug 2007
    Posts
    539
    Mentioned
    20 Post(s)
    Quoted
    266 Post(s)

    Default

    A suggestion, could you add smartShowConsole just like srl-6 has where it allows the user to hide the smart console by allowing the smart target to 'javaw.exe' other than 'java.exe'.

    As well as Me.Worldlist is unused, could it possible to get that going again? And world 308 and 316 count as f2p and f2p trial accounts can log on to them

    levelUpEx doesn't work, even though I leveled up.

    randomMovement; //Error: ActivateClient not available for this target at line 251

    TSmart.GetWorld might return a world that isn't loadable,failing to init a smart client... i made a simple fix;
    Simba Code:
    worlds := [1, 2, 3, 4, 5, 6, 8, 9, 10, 11, 12, 13, 14, 16, 17, 18, 19, 20, 21, 22, 25, 26,
                 27, 28, 29, 30, 33, 34, 35, 36, 37, 38, 41, 42, 43, 44, 45, 46, 49, 50, 51, 52,
                 53, 54, 57, 58, 59, 60, 61, 62, 65, 66, 67, 68, 69, 70, 73, 74, 75, 76, 77, 78,
                 81, 82, 83, 84, 93, 94];
      result := intToStr(worlds[random(high(worlds))]);

    OpenBankPoint sometimes fails on deposit boxes..

  2. #152
    Join Date
    Feb 2013
    Location
    Rimmington
    Posts
    319
    Mentioned
    33 Post(s)
    Quoted
    183 Post(s)

    Default

    Flight, was is your take on moving/mirror'ing the project so we can have an auto updater?





  3. #153
    Join Date
    Dec 2007
    Location
    Middle of Here and There
    Posts
    417
    Mentioned
    6 Post(s)
    Quoted
    25 Post(s)

    Default

    Quote Originally Posted by slacky View Post
    What could have failed can be explained like this:
    pascal Code:
    WalkerA.InitCustom('somemap',[10,10])
    --> SEW_Map_Size := [10,10];

    WalkerB.Init([map_pieces...])
    --> call AssembleMaps([map_pieces...])
          //AssembleMaps:
    ----> ...
    ----> Result := Point(LX * SEW_Map_Size.W, LY * SEW_Map_Size.H); //ref link 1
          //instead of Result := Point(LX*250, LY*250); it will yield Result := Point(LX*10, LY*10);
          //it also uses the SEW_Map_Size to position each piece properly on the output image:
    ----> ...
    ----> Pos := Point((SX-LX) * SEW_Map_Size.W, (SY-LY) * SEW_Map_Size.H); //ref link 2
          //that would also fail since SEW_Map_Size was now equal [10,10]
    Ans so the positionioning of the map pieces would go to hell, and the TopLeft coordinate stored would be very off.
    [1]: https://github.com/J-Flight/AeroLib/...ker.simba#L219
    [2]: https://github.com/J-Flight/AeroLib/...ker.simba#L227

    Hmm.. "function AssambleMaps", see the mistake? :P

    Edit:
    @ProphesyOfWolf: Come to think about it, you can probably just do:
    Code:
    WalkMe.Init(['15_19', '16_19']);
    WalkMe.TopLeft := [0,0];
    That should work like you want it to: GetMyPos should now return the local position based on the maps given, and not the global pos.
    It doesn't work for me, if I do initcustom or init and fudge the image into the surface folder with the same naming convention. Each way I do it, I get the following error:

    [AL] Startup complete!
    WARNING: Sub cannot be larger then Image
    Error: Access violation at line 289
    Execution failed.

    Lines that executed:

    Simba Code:
    begin
      DeclarePlayers;
      initAL();
      WalkMe.initcustom('CathCook');
      LoginPlayer(False);
      SetAngle(0);
      MouseSpeed := MouseSpeed * 3;
      repeat
        WriteLN(tostr(WalkMe.GetMyPos));
        wait(10000);
      until(false);
    end.

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

    Default

    Quote Originally Posted by Probably Glitched View Post
    It doesn't work for me, if I do initcustom or init and fudge the image into the surface folder with the same naming convention. Each way I do it, I get the following error:

    [AL] Startup complete!
    WARNING: Sub cannot be larger then Image
    Error: Access violation at line 289
    Execution failed.

    Lines that executed:

    Simba Code:
    begin
      DeclarePlayers;
      initAL();
      WalkMe.initcustom('CathCook');
      LoginPlayer(False);
      SetAngle(0);
      MouseSpeed := MouseSpeed * 3;
      repeat
        WriteLN(tostr(WalkMe.GetMyPos));
        wait(10000);
      until(false);
    end.
    There are also params for the map size with initCustom

  5. #155
    Join Date
    Dec 2007
    Location
    Middle of Here and There
    Posts
    417
    Mentioned
    6 Post(s)
    Quoted
    25 Post(s)

    Default

    Quote Originally Posted by hoodz View Post
    There are also params for the map size with initCustom
    Not in the newest master of it there isn't o.O

    I'm assume it's SEW_Map_Size that needs to change, so I'll just write that in myself.

  6. #156
    Join Date
    Dec 2007
    Location
    Middle of Here and There
    Posts
    417
    Mentioned
    6 Post(s)
    Quoted
    25 Post(s)

    Default

    Even with SEW_Map_Size changed it still gives me the same exception.

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

    Default

    Quote Originally Posted by Probably Glitched View Post
    Even with SEW_Map_Size changed it still gives me the same exception.
    Quote Originally Posted by hoodz View Post
    There are also params for the map size with initCustom
    I said SEW_Map_Size should never be changed. It's ONLY needed for the orginal-map pack, and ONLY used along with the Init-function to assemble the pieces in the map-pack to one big image. InitCustom will never need it.


    @Probably Glitched: Upload your map.
    The issue is probably that you got a VERY small image (like less then 100x100 or so). Or that you did not give the correct path, or name, so that it didn't load.
    Yout custom map must be in the Includes/AeroLib/maps/custom/ folder, and the extension must be a png. The name given to InitCustom is without the extension.
    Last edited by slacky; 12-10-2014 at 12:53 AM.
    !No priv. messages please

  8. #158
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Quote Originally Posted by Probably Glitched View Post
    Even with SEW_Map_Size changed it still gives me the same exception.
    Did you look over the example I posted on the previous page? It should remain the same, just remove the size parameter I used in that. I'd also like to see the map you're wanting to use.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


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

    Default

    Quote Originally Posted by Flight View Post
    Did you look over the example I posted on the previous page? It should remain the same, just remove the size parameter I used in that. I'd also like to see the map you're wanting to use.
    it's probably his map since he could load my maps

  10. #160
    Join Date
    Dec 2007
    Location
    Middle of Here and There
    Posts
    417
    Mentioned
    6 Post(s)
    Quoted
    25 Post(s)

    Default

    Yes, my issue was fixed in that matter. My map was too small, so it failed out.

    But I have come across another issue.. Consider the map png attached, of Lumbridge 3rd level and Lumbridge 2nd level. I carefully took several true north and near true north mm images and 'shopped them into my maps. Which I fudged into the maps folder so I could use the (in my mind) most reliable part of SEW. I have noticed, regardless of which map I use, there is a degree of.. slipping. I know that the minimap shift has an effect on the positioning of any color based system, but I have noticed severe shifts in tile walking. I.E. I have a stable walk method to the inside of the bank and I check it two hours later and they're walking outside of the bank. This swings from right to left, up to down, and I have to constantly adjust the tile TPoint in order for my script to not seem completely botted.

    Anyways, tell me what you think of my maps, and what you think of what I said. Or, more importantly, how I can fix my troubles? It will shift for any points, not just one. So, maybe a point will be [10, 10] on my map. It will shift around 10 tiles in either direction (simply because SEWalker will determine the same position to be between 3 tiles of a central number), and it is impossible to let a script go on it's own due to the necessity of babysitting.
    Attached Images Attached Images

  11. #161
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Quote Originally Posted by Probably Glitched View Post
    Yes, my issue was fixed in that matter. My map was too small, so it failed out.

    But I have come across another issue.. Consider the map png attached, of Lumbridge 3rd level and Lumbridge 2nd level. I carefully took several true north and near true north mm images and 'shopped them into my maps. Which I fudged into the maps folder so I could use the (in my mind) most reliable part of SEW. I have noticed, regardless of which map I use, there is a degree of.. slipping. I know that the minimap shift has an effect on the positioning of any color based system, but I have noticed severe shifts in tile walking. I.E. I have a stable walk method to the inside of the bank and I check it two hours later and they're walking outside of the bank. This swings from right to left, up to down, and I have to constantly adjust the tile TPoint in order for my script to not seem completely botted.

    Anyways, tell me what you think of my maps, and what you think of what I said. Or, more importantly, how I can fix my troubles? It will shift for any points, not just one. So, maybe a point will be [10, 10] on my map. It will shift around 10 tiles in either direction (simply because SEWalker will determine the same position to be between 3 tiles of a central number), and it is impossible to let a script go on it's own due to the necessity of babysitting.
    Have you tried merging the two maps into a single map and loading that? I believe areas like that will be hard to get an accurate read on as there's very little actual color to compare to your map.

    If it were me I'd just use a set of minimap DTMs for positioning and walking in that area. One for the bank, one for the stars at the top level, one for the stairs at the level below and one for the spinning wheel (or use a MM symbol).

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  12. #162
    Join Date
    Dec 2007
    Location
    Middle of Here and There
    Posts
    417
    Mentioned
    6 Post(s)
    Quoted
    25 Post(s)

    Default

    I managed to work with those as they are, and they're relatively accurate at the moment.

    Now I am having issues with walking outside of the castle. When I try to take the first click (to get next to the bridge), it clicks waay up the river near the furnace instead of anywhere close to where I want it. I was a little lazy about removing a few symbols, but I have used the surface maps provided before that have symbols and it worked pretty accurately. This one doesn't work at all. Though at least it doesn't except =P

    GPMWalkToGate.png

  13. #163
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Quote Originally Posted by Probably Glitched View Post
    I managed to work with those as they are, and they're relatively accurate at the moment.

    Now I am having issues with walking outside of the castle. When I try to take the first click (to get next to the bridge), it clicks waay up the river near the furnace instead of anywhere close to where I want it. I was a little lazy about removing a few symbols, but I have used the surface maps provided before that have symbols and it worked pretty accurately. This one doesn't work at all. Though at least it doesn't except =P

    GPMWalkToGate.png
    You need a bigger map man, alot bigger.

  14. #164
    Join Date
    Dec 2014
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    hey flight, how do you start the script, everything compiles but how do i run it??

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

    Default

    Quote Originally Posted by simo454 View Post
    hey flight, how do you start the script, everything compiles but how do i run it??
    You click run?
    #slack4admin2016
    <slacky> I will build a wall
    <slacky> I will ban reflection and OGL hooking until we know what the hell is going on

  16. #166
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Quote Originally Posted by simo454 View Post
    hey flight, how do you start the script, everything compiles but how do i run it??
    This include is only a library of code and useful functions, it won't do anything on it's own. It's intended to make scripting much easier and efficient for OSRS. Unless you're referring to a script you've downloaded from the forums, in that case just hit the green arrow near the top of Simba to run the script.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  17. #167
    Join Date
    Dec 2014
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    so I have every library download from your script, but do you some type of vid that shows how you would get old school client working on yours?

    everything compiles, I just need to know if it runs the old school client?
    Last edited by Zyt3x; 12-30-2014 at 05:03 PM.

  18. #168
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Updated to revision #3 . This is also just some updates to existing code and what not. There's also some updates to how SMART is loaded; the correct URL is called and you may also use your own useragent when loading the client. If not a default (updated) one is set but you can set your own like so:

    Simba Code:
    program new;
    {$DEFINE SMART}
    {$i AeroLib/AeroLib.Simba}

    begin
      SMART_UserAgent := 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.62 Safari/537.36';
      initAL();
    end.


    If anyone has any issues or suggestions be sure to post them here.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  19. #169
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Updated the include with another small revision. This one doesn't bring any new content but includes various tweaks to cut down on CPU usage.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


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

    Default

    Quote Originally Posted by Flight View Post
    Updated the include with another small revision. This one doesn't bring any new content but includes various tweaks to cut down on CPU usage.
    Thanks And could you add something like bankScreen.open(BANK_CHEST); (I can get all the colours for each bank )
    #slack4admin2016
    <slacky> I will build a wall
    <slacky> I will ban reflection and OGL hooking until we know what the hell is going on

  21. #171
    Join Date
    May 2013
    Posts
    22
    Mentioned
    1 Post(s)
    Quoted
    11 Post(s)

    Default

    The zipped fie you say for SimbaExt, its a .rar its isnt zipped so mine wont work. only says "Exception in Script: Unable to find file 'SimbaExt/SimbaExt.simba' used from 'C:\Simba\Includes\AeroLib\AeroLib.Simba'"

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

    Default

    Quote Originally Posted by bot under radar View Post
    The zipped fie you say for SimbaExt, its a .rar its isnt zipped so mine wont work. only says "Exception in Script: Unable to find file 'SimbaExt/SimbaExt.simba' used from 'C:\Simba\Includes\AeroLib\AeroLib.Simba'"
    So, use something like 7zip to decompress it?
    #slack4admin2016
    <slacky> I will build a wall
    <slacky> I will ban reflection and OGL hooking until we know what the hell is going on

  23. #173
    Join Date
    Oct 2006
    Posts
    6,752
    Mentioned
    95 Post(s)
    Quoted
    532 Post(s)

    Default

    Quote Originally Posted by bot under radar View Post
    The zipped fie you say for SimbaExt, its a .rar its isnt zipped so mine wont work. only says "Exception in Script: Unable to find file 'SimbaExt/SimbaExt.simba' used from 'C:\Simba\Includes\AeroLib\AeroLib.Simba'"
    A .rar is compressed. You need to extract it
    “The long-lived and those who will die soonest lose the same thing. The present is all that they can give up, since that is all you have, and what you do not have, you cannot lose.” - Marcus Aurelius

  24. #174
    Join Date
    May 2013
    Posts
    22
    Mentioned
    1 Post(s)
    Quoted
    11 Post(s)

    Default

    there is no way to extract it. ive tried right clicking it. no way to open it or anything

  25. #175
    Join Date
    Oct 2006
    Posts
    6,752
    Mentioned
    95 Post(s)
    Quoted
    532 Post(s)

    Default

    Quote Originally Posted by bot under radar View Post
    there is no way to extract it. ive tried right clicking it. no way to open it or anything
    Download 7zip..
    “The long-lived and those who will die soonest lose the same thing. The present is all that they can give up, since that is all you have, and what you do not have, you cannot lose.” - Marcus Aurelius

Page 7 of 34 FirstFirst ... 5678917 ... LastLast

Thread Information

Users Browsing this Thread

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