PDA

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



Eion
02-14-2014, 02:29 AM
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.

Nakuu
02-14-2014, 08:30 AM
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.

Eion
02-14-2014, 01:05 PM
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.

Nakuu
02-14-2014, 01:08 PM
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

Eion
02-15-2014, 12:58 AM
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.

Nakuu
02-15-2014, 01:03 AM
Who says anything about 'predetermined waypoints' ?

Eion
02-15-2014, 01:44 AM
Nevermind, you're obviously a brick wall.

m1n054
02-15-2014, 02:26 AM
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.

Eion
02-15-2014, 04:10 AM
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.

robin
02-20-2014, 03:42 PM
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.