Page 6 of 34 FirstFirst ... 4567816 ... LastLast
Results 126 to 150 of 827

Thread: AeroLib Include

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

    Default

    Quote Originally Posted by Harrier View Post
    2 methods to get around it; make people download OpenSSL or setup a proxy/ask frement if we can use his proxy
    Couldn't there just be a mirror over at googlecode?





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

    Default

    Quote Originally Posted by Fitta View Post
    Couldn't there just be a mirror over at googlecode?
    Guess that would be the best method
    #slack4admin2016
    <slacky> I will build a wall
    <slacky> I will ban reflection and OGL hooking until we know what the hell is going on

  3. #128
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Also I see Ashaman88 is using it in his Ivy script atleast.
    There used to be something meaningful here.

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

    Default

    Quote Originally Posted by Frement View Post
    Also I see Ashaman88 is using it in his Ivy script atleast.
    Not sure what's wrong, but it doesn't seem to work for some shorter links on github. Maybe I'm missing something, but if you just delete the proxy it works fine.

    http://static.frement.net/proxy.php?...lude%20Rev.txt
    “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

  5. #130
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by elfyyy View Post
    Not sure what's wrong, but it doesn't seem to work for some shorter links on github. Maybe I'm missing something, but if you just delete the proxy it works fine.

    http://static.frement.net/proxy.php?...lude%20Rev.txt
    Thats because there is a space in the URL, I went ahead and fixed the problem.
    There used to be something meaningful here.

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

    Default

    So, I been making my own scripts again and I screwed up something... Found out that one of the methods I made actually was included in it... You made me post again =P I am so glad that it got used, though honestly MastaRaymond was the one who gave me the real bones of the function. A question, is there a tutorial for SEWalker? I have been using it, but it uses global maps instead of custom ones, and I haven't done mapwalking since SPS first came out, so.. Yes Thank you for making me post again, Flight! And a badass include you have prepared.

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

    Default

    Quote Originally Posted by ProphesyOfWolf View Post
    So, I been making my own scripts again and I screwed up something... Found out that one of the methods I made actually was included in it... You made me post again =P I am so glad that it got used, though honestly MastaRaymond was the one who gave me the real bones of the function. A question, is there a tutorial for SEWalker? I have been using it, but it uses global maps instead of custom ones, and I haven't done mapwalking since SPS first came out, so.. Yes Thank you for making me post again, Flight! And a badass include you have prepared.
    I remember your function very well, I was, and still am impressed with it. I hope it's not an issue it was included in AeroLib; I made sure to fully credit you.

    No I've not yet made any tutorials for using the include and especially none yet for SEWalker as that wasn't made by me. I don't know if I would qualify for making tutorials. But I can tell you how to do a custom map. Also it's important to remember SEWalker is designed object-oriented. Here's a short example:

    Simba Code:
    program TestWalking;
    {$DEFINE SEWalker}
    {$i AeroLib/AeroLib.Simba}

    Var
      TargetTile  : TPoint;
      Walker      : SEWalker;

    begin
      initAL();

      TargetTile := point(245, 330);

    // Loads a custom map named 'AbyssEdge' which as a length and width of 554/429
      Walker.InitCustom('AbyssEdge', [554,429]);

      Writeln('My current position is '+toStr(Walker.GetMyPos()));

      if Walker.pointOnMM(TargetTile) then
      begin
        Writeln('Our destination is already nearby');
        Walker.WalkToPos(TargetTile);
      end else
      begin
        Writeln('We'#39're far from our destination, blind-walking...');
        Walker.blindWalk(TargetTile);
      end;

    // Always free the SEWalker upon script termination
      Walker.Free();
    end.

    That should give you a basic idea of how to use it.

    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..."


  8. #133
    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 Flight View Post
    I remember your function very well, I was, and still am impressed with it. I hope it's not an issue it was included in AeroLib; I made sure to fully credit you.

    No I've not yet made any tutorials for using the include and especially none yet for SEWalker as that wasn't made by me. I don't know if I would qualify for making tutorials. But I can tell you how to do a custom map. Also it's important to remember SEWalker is designed object-oriented. Here's a short example:

    Simba Code:
    program TestWalking;
    {$DEFINE SEWalker}
    {$i AeroLib/AeroLib.Simba}

    Var
      TargetTile  : TPoint;
      Walker      : SEWalker;

    begin
      initAL();

      TargetTile := point(245, 330);

    // Loads a custom map named 'AbyssEdge' which as a length and width of 554/429
      Walker.InitCustom('AbyssEdge', [554,429]);

      Writeln('My current position is '+toStr(Walker.GetMyPos()));

      if Walker.pointOnMM(TargetTile) then
      begin
        Writeln('Our destination is already nearby');
        Walker.WalkToPos(TargetTile);
      end else
      begin
        Writeln('We'#39're far from our destination, blind-walking...');
        Walker.blindWalk(TargetTile);
      end;

    // Always free the SEWalker upon script termination
      Walker.Free();
    end.

    That should give you a basic idea of how to use it.
    Very nice. I suppose I mislead you earlier - I have been using the maps provided with SEWalker, and here's the relevant code to show you what I've been doin..

    Simba Code:
    function WTTan: boolean;
    begin
      Result := True;
      WalkMe.Walk([IntToPoint(4943, 3986), IntToPoint(4928, 3926)]);
      while(IsPlayerWalking) do AntiBan;
    end;

    function WTBan: boolean;
    begin
      Result := True;
      WalkMe.Walk([IntToPoint(4942, 3982), IntToPoint(4907, 4017)]);
      while(IsPlayerWalking) do AntiBan;
      Wait(randomrange(450, 750));
    end;

    In the main loop, I call:

    Simba Code:
    WalkMe.init(['15_19', '16_19']);

    Which, when I call GetMyPos, gives me the coords on the global map, instead of the areas I have defined. I was wondering why init didn't work like I thought it would. It seems I should invest my time in making my own maps =P

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

    Default

    Quote Originally Posted by ProphesyOfWolf View Post
    Very nice. I suppose I mislead you earlier - I have been using the maps provided with SEWalker, and here's the relevant code to show you what I've been doin..

    Simba Code:
    function WTTan: boolean;
    begin
      Result := True;
      WalkMe.Walk([IntToPoint(4943, 3986), IntToPoint(4928, 3926)]);
      while(IsPlayerWalking) do AntiBan;
    end;

    function WTBan: boolean;
    begin
      Result := True;
      WalkMe.Walk([IntToPoint(4942, 3982), IntToPoint(4907, 4017)]);
      while(IsPlayerWalking) do AntiBan;
      Wait(randomrange(450, 750));
    end;

    In the main loop, I call:

    Simba Code:
    WalkMe.init(['15_19', '16_19']);

    Which, when I call GetMyPos, gives me the coords on the global map, instead of the areas I have defined. I was wondering why init didn't work like I thought it would. It seems I should invest my time in making my own maps =P
    I've actually never used the normal map files, I've always created and walked via my own custom maps so I'm not sure what good I'll do here. I believe Olly or Slacky would be the absolute best people to talk to for the SEWalker.


    Edit:
    This is for everyone: I just pushed some small updates to GitHub and I've changed the revision number to an actual number which will basically be a count of how many times I make updates to GitHub. Since 0.4 was released I've pushed 2 updates therefore the main version of AeroLib is still 1.0 but the revision number is 2. This should make things a lot more clear every time I make adjustments and updates via GitHub.
    Last edited by Flight; 11-30-2014 at 04:04 AM.

    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..."


  10. #135
    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 Flight View Post
    I've actually never used the normal map files, I've always created and walked via my own custom maps so I'm not sure what good I'll do here. I believe Olly or Slacky would be the absolute best people to talk to for the SEWalker.


    Edit:
    This is for everyone: I just pushed some small updates to GitHub and I've changed the revision number to an actual number which will basically be a count of how many times I make updates to GitHub. Since 0.4 was released I've pushed 2 updates therefore the main version of AeroLib is still 1.0 but the revision number is 2. This should make things a lot more clear every time I make adjustments and updates via GitHub.
    It's probably best that people don't use the worldmap for traveling.. Honestly, it shouldn't even include them, but include instructions on how to make your own map with paint =P

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

    Default

    @ProphesyOfWolf
    Only way with custom maps (atm) is to use a single map-image, you can't use multiple images. So you take the two pieces you want and combine em in to one piece then you use SEWalker.InitCustom with that custom map.
    SEWalker.Init will always give you the global position.

    Edit:
    Also, you should just pass [250,250] to the last param in SEWalker.InitCustom that parameter has been added (by flight) for no reason, it doesn't do anything good.
    @Flight why did you add that parameter? It's not used anywhere in SEWalker for custom maps. The constant (which you changed to a var) `SEW_Map_Size: TSize2D = [250,250];` is only used when assembling map-pieces which is only for "Init", and not for custom maps.
    Be warned: If you do not pass 250,250 to InitCustom, you will break SEWalker if you have multiple walkers, where one of the walkers use Init(..). Flight, you should revert those changes you made to modify SEW_Map_Size (asap) that's a bad idea, and it does nothing good.

    "We" can add a GetLocalPos() which does not compute the global position, that way they can use SEWalker.Init the way he wants to, can call GetLocalPos to get the local position based on the loaded maps.
    Last edited by slacky; 11-30-2014 at 04:49 AM.
    !No priv. messages please

  12. #137
    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
    @ProphesyOfWolf
    Only way with custom maps (atm) is to use a single map-image, you can't use multiple images. So you take the two pieces you want and combine em in to one piece then you use SEWalker.InitCustom with that custom map.
    SEWalker.Init will always give you the global position.
    There should be a tutorial for this I have seen talk of people wanting to combine SRL-OSR with Aerolib, which to me makes sense. It only requires testing and revamping, because all of the old functions are still there are only very slightly off of what they should be. They should be combined, and a scripting reference created so people understand what's going on (we could write a script similar to JavaDocs and post it like the SIMBA scripting reference is). A lot of shoulds and coulds, yes, but OSR is a goldmine waiting to be tapped, and as a community we should focus on working with it.

  13. #138
    Join Date
    Aug 2014
    Location
    Australia
    Posts
    932
    Mentioned
    53 Post(s)
    Quoted
    495 Post(s)

    Default

    Quote Originally Posted by ProphesyOfWolf View Post
    There should be a tutorial for this I have seen talk of people wanting to combine SRL-OSR with Aerolib, which to me makes sense. It only requires testing and revamping, because all of the old functions are still there are only very slightly off of what they should be. They should be combined, and a scripting reference created so people understand what's going on (we could write a script similar to JavaDocs and post it like the SIMBA scripting reference is). A lot of shoulds and coulds, yes, but OSR is a goldmine waiting to be tapped, and as a community we should focus on working with it.
    If anything, a new include that combines SRL-OSR and SRL-6 should be created so that we can script for both versions of the game with the exact same include... the problem is that no one is willing to commit the time to do it (or they're like me and do, but lack the knowledge).



    New to scripting? Procedures & Functions for Beginners
    Do you use your computer at night? Just get f.lux

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

    Default

    Quote Originally Posted by Incurable View Post
    If anything, a new include that combines SRL-OSR and SRL-6 should be created so that we can script for both versions of the game with the exact same include... the problem is that no one is willing to commit the time to do it (or they're like me and do, but lack the knowledge).
    There is already some work ongoing. The base just needs to be finished before it's commited to GitHub. Once that is done, the rs related work can start.
    Last edited by slacky; 11-30-2014 at 04:51 AM.
    !No priv. messages please

  15. #140
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by slacky View Post
    There is already some work ongoing. The base just needs to be finished before it's commited to GitHub. Once that is done, the rs related work can start.
    That's good to hear. Who's working on the base?

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

    Default

    Quote Originally Posted by slacky View Post
    Edit:
    Also, you should just pass [250,250] to the last param in SEWalker.InitCustom that parameter has been added (by flight) for no reason, it doesn't do anything good.
    @Flight why did you add that parameter? It's not used anywhere in SEWalker for custom maps. The constant (which you changed to a var) `SEW_Map_Size: TSize2D = [250,250];` is only used when assembling map-pieces which is only for "Init", and not for custom maps.
    Be warned: If you do not pass 250,250 to InitCustom, you will break SEWalker if you have multiple walkers, where one of the walkers use Init(..). Flight, you should revert those changes you made to modify SEW_Map_Size (asap) that's a bad idea, and it does nothing good.

    "We" can add a GetLocalPos() which does not compute the global position, that way they can use SEWalker.Init the way he wants to, can call GetLocalPos to get the local position based on the loaded maps.
    Looking through SEWalker I see that SEW_Map_Size is only used for assembling maps therefore not required for iniCustom. I'll remove that extra parameter and set 'SEW_Map_Size' back to static. For what it's worth I've never had issues with that.

    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. #142
    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 Flight View Post
    Looking through SEWalker I see that SEW_Map_Size is only used for assembling maps therefore not required for iniCustom. I'll remove that extra parameter and set 'SEW_Map_Size' back to static. For what it's worth I've never had issues with that.

    Nifty nifty! Things are rolling along now I am not sure if this is just my computer or what, but sometimes Simba doesn't pair with SMART and it tries to open a new jar, which only works half of the time. So, one third of the time it works as expected, a second third it will bring up a java console and load a new smart, and the strangest third is when it tries to bring up a new window and then excepts. Maybe my computer is cursed =P

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

    Default

    Quote Originally Posted by Flight View Post
    Looking through SEWalker I see that SEW_Map_Size is only used for assembling maps therefore not required for iniCustom. I'll remove that extra parameter and set 'SEW_Map_Size' back to static. For what it's worth I've never had issues with that.
    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.
    Last edited by slacky; 11-30-2014 at 05:25 PM.
    !No priv. messages please

  19. #144
    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 The Mayor View Post
    That's good to hear. Who's working on the base?
    @Flight @Slacky I would like to help with this if possible

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

    Default

    Quote Originally Posted by ProphesyOfWolf View Post
    @Flight @Slacky I would like to help with this if possible
    you could try to have a talk with Olly @ IRC (on #SRL or #Simba).
    Tho I have feeling he wanna sit on what he have for a while longer.
    Last edited by slacky; 11-30-2014 at 06:27 PM.
    !No priv. messages please

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

    Default

    @Flight;

    Could you please remove from SimbaEx:
    Simba Code:
    Procedure Pointer.Inc(Size: Int64);

    It causes really weird errors when using Setlength within a function type. It can be removed with no errors and reflection won't run with it there. Thanks!
    “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

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

    Default

    Quote Originally Posted by elfyyy View Post
    @Flight;

    Could you please remove from SimbaEx:
    Simba Code:
    Procedure Pointer.Inc(Size: Int64);

    It causes really weird errors when using Setlength within a function type. It can be removed with no errors and reflection won't run with it there. Thanks!
    The SimbaExt include belongs to Slacky, I wouldn't add or remove anything to or from it. You'll have to talk with him directly about that.

    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..."


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

    Default

    Quote Originally Posted by Flight View Post
    The SimbaExt include belongs to Slacky, I wouldn't add or remove anything to or from it. You'll have to talk with him directly about that.
    Already did, that's why I said to remove it @slacky;
    “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. #149
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Quote Originally Posted by elfyyy View Post
    Already did, that's why I said to remove it @slacky;
    ..Or are you referring to Brandon's function in core > engine > SimbaEx.simba? :
    Simba Code:
    Procedure Pointer.Inc(Size: Int64);
    Begin
      Self := Self + Size;
    End;

    If so tell me and I'll just remove it. I don't see where it's needed at this point in time.

    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..."


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

    Default

    Quote Originally Posted by Flight View Post
    ..Or are you referring to Brandon's function in core > engine > SimbaEx.simba? :
    Simba Code:
    Procedure Pointer.Inc(Size: Int64);
    Begin
      Self := Self + Size;
    End;

    If so tell me and I'll just remove it. I don't see where it's needed at this point in time.
    Yeah that's what i'm referring to!
    “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 6 of 34 FirstFirst ... 4567816 ... 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
  •