XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 10 of 10

Thread: Self.WalkTo(x,y,z) and "Read all items on sqm"

  1. #1
    Senior Member Eion's Avatar
    Join Date
    Dec 2011
    Posts
    558
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)

    Self.WalkTo(x,y,z) and "Read all items on sqm"

    I badly need the ability to make the LUA walk to a specific place. This would help me perfect many scripts.
    Self.WalkTo(x,y,z) or Self.GoToNode(x,y,z) or Self.Stand(x,y,z)

    I also need the ability to see how many items are stacked on a sqm. Even better would be the ability to read item details about each specific item.

    This two options will save me many stuck/killed bots.

    Please and thank you.

  2. #2
    Moderator Nakuu's Avatar
    Join Date
    Feb 2013
    Location
    EU
    Posts
    5,194
    Mentioned
    642 Post(s)
    Tagged
    2 Thread(s)
    Can only be done by loading different Walker settings. You can create file with Walker panel, add Stand/Node there and then load Walker panel from that file and start Walker.

  3. #3
    Senior Member Eion's Avatar
    Join Date
    Dec 2011
    Posts
    558
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    I am very aware of this possibility, I didn't post this in the help section. I posted this in the suggestion section.

    Your suggestion will not solve my problem. Don't post if you didn't even take the time to read. Loading predetermined waypoints does not work when you don't know where you will need to move until the situation occurs. I need a LUA pathfinder.

  4. #4
    Moderator Nakuu's Avatar
    Join Date
    Feb 2013
    Location
    EU
    Posts
    5,194
    Mentioned
    642 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by Eion View Post
    I am very aware of this possibility, I didn't post this in the help section. I posted this in the suggestion section.

    Your suggestion will not solve my problem. Don't post if you didn't even take the time to read. Loading predetermined waypoints does not work when you don't know where you will need to move until the situation occurs. I need a LUA pathfinder.
    Lol, if you don't accept my help then cya... and btw. it DOES work, you just have to create waypoints in .lua and save them to .xbst and then load them Peace

  5. #5
    Senior Member Eion's Avatar
    Join Date
    Dec 2011
    Posts
    558
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Nakuu View Post
    Lol, if you don't accept my help then cya... and btw. it DOES work, you just have to create waypoints in .lua and save them to .xbst and then load them Peace
    Alright then....You create an anti furniture trap script that will actually walk to the furniture and break it. Not map click to it, not use item on sqm. Those methods can be fooled easily in several ways. The most commonly used depot finding method can also be fooled because it uses this method. Having the ability to walk to a specific x,y,z has many uses and if you really think that you can build a predetermined waypoint for every possibility then you are incorrect. The only way to solve this is with pathfinder integration into Xenobot's LUA functions. Thanks for your input but none of it was necessary.

  6. #6
    Moderator Nakuu's Avatar
    Join Date
    Feb 2013
    Location
    EU
    Posts
    5,194
    Mentioned
    642 Post(s)
    Tagged
    2 Thread(s)
    Who says anything about 'predetermined waypoints' ?

  7. #7
    Senior Member Eion's Avatar
    Join Date
    Dec 2011
    Posts
    558
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Nevermind, you're obviously a brick wall.

  8. #8

    Join Date
    Nov 2013
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not entirely sure but you do have a Self.Step() function, which I suppose you could use to make the character move. There is also many algorithms for pathfinding, what I'd do is walk into a direction that shortens the absolute difference between your position and the X,Y value and keep on checking with every step until the difference is 0.

  9. #9
    Senior Member Eion's Avatar
    Join Date
    Dec 2011
    Posts
    558
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Yes I think it may be possible to build a pathfinder function using something like this plus check if certain sqm are walkable. Although it seems that it would be rather difficult. Especially in certain situations.

  10. #10
    robin's Avatar
    Join Date
    Jan 2012
    Location
    Poland / UK
    Posts
    105
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    I think that's a great suggestion. I was struggling with creating one in Lua, but gave up. Moreover, this functionality is provided already in Walker, so it's just a matter of adding a Lua function that uses it.

Posting Permissions

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