View Full Version : Walker.isStuck()
Stusse
07-02-2014, 12:10 AM
Pretty sure it've already been suggested at some point, however:
Walker.isStuck()
When the state of "Can't find the next waypoint".
Perhaps should return boolean or even time being stuck.
/Stusse
Kamoblindside77
07-02-2014, 08:57 AM
heck yea
Boomtune
07-02-2014, 01:38 PM
Something like this is very needed.... XenoBot is the most stuckable bot, it is always getting stuck at some point!
thorekz
07-03-2014, 05:42 AM
Something like this is very needed.... XenoBot is the most stuckable bot, it is always getting stuck at some point!
yep :/
boats, teleports, special areas...
DarkstaR
07-03-2014, 07:02 AM
yep :/
boats, teleports, special areas...
If you get stuck at any of these places, it's because you suck at making scripts.
If you get stuck at any of these places, it's because you suck at making scripts.True.
thorekz
07-03-2014, 01:52 PM
If you get stuck at any of these places, it's because you suck at making scripts.
could be lol
Boomtune
07-03-2014, 05:19 PM
If you get stuck at any of these places, it's because you suck at making scripts.
I'm make scripts for a couple of years now... started on ElfBot... went over NeoBot and iBot and now XenoBot.
I have to say that XenoBot was the bot wich made me the most problems in making scripts... still it's a pretty nice bot!
Look at a problem here.... my script is working fully afk except sometimes he get's "stuck" in the middle of a little hunt place....
http://screenshu.com/static/uploads/temporary/tw/ya/pr/hv3n4r.jpg
What's the problem here? It's nearly impossible for me to fix it... tryed alot of different wpt's!
If XenoBot would just skip waypoints till it finds the right one again.... like every other bot does!
Hope you can help me with that. ;)
EDIT:
Here another one. ;)
However you need to wait till someone is luring ghastly or something so character moves some sqm and your char continue hunting. Or just walk manual some sqm and your char continues walking.
http://screenshu.com/static/uploads/temporary/59/r2/ge/v6zzl6.jpg
It's impossible for me to fix it... tryed alot of different ways to make waypoints and I always get stuck.
Nakuu
07-03-2014, 05:24 PM
Skipping waypoints (when stuck) would be bad unless it'll skip only if you are too far away from the next one - that would be best I guess.
DarkstaR
07-03-2014, 05:31 PM
IsStuck as been added and will be in next release.
@Boomtune (http://forums.xenobot.net/member.php?u=12774)
The issue you are seeing happens when someone is blocking on the minimap on one of those dark-red tiles, and you are off screen. Try to mapclick, you get the same exact issue. Due to how Tibia works, paths remain blocked by creatures when you leave the screen. XenoBot mitigates this (and is the only bot that does) by ignoring blocking tiles IF the minimap color is one that's always walkable. Those dark-redish-brown tiles, however, are not always walkable, and assuming they are walkable would cause major bugs elsewhere.
The reason other bots don't get stuck here is because they will skip waypoints that they can't reach. This is why you commonly end up with someone in the middle of a spawn trying to buy potions as a gastly facerolls them, or spamming exani hur up on a water border.
The XenoBot solution for this is to isolate your character in screen-size chunks using special areas, making it impossible to go off-screen of a waypoint before you see it (this also assumes you have waypoints evenly spread at 6-10 sqm intervals).
So, yes, XenoBot does get stuck more in these scenarios. But would you rather be stuck, or banned?
Boomtune
07-03-2014, 05:41 PM
The XenoBot solution for this is to isolate your character in screen-size chunks using special areas, making it impossible to go off-screen of a waypoint before you see it (this also assumes you have waypoints evenly spread at 6-10 sqm intervals).
- And here my english ends! :o
Boomtune
07-03-2014, 05:54 PM
@Boomtune (http://forums.xenobot.net/member.php?u=12774)
The issue you are seeing happens when someone is blocking on the minimap on one of those dark-red tiles, and you are off screen. Try to mapclick, you get the same exact issue. Due to how Tibia works, paths remain blocked by creatures when you leave the screen. XenoBot mitigates this (and is the only bot that does) by ignoring blocking tiles IF the minimap color is one that's always walkable. Those dark-redish-brown tiles, however, are not always walkable, and assuming they are walkable would cause major bugs elsewhere.
The reason other bots don't get stuck here is because they will skip waypoints that they can't reach. This is why you commonly end up with someone in the middle of a spawn trying to buy potions as a gastly facerolls them, or spamming exani hur up on a water border.
So, yes, XenoBot does get stuck more in these scenarios. But would you rather be stuck, or banned?
Thats a good statement!! ;)
I understand you and I see you understand what is or was my problem. I'll hope it will be fixable with the new "IsStuck" function.
I'm mostly playing on Shadowcores cuz I love to bot and scripts, thats nearly the only reason I play Tibia.
On Shadowcores I got every nearly every level and vocation, so I'm able to every script I like.
The XenoBot solution for this is to isolate your character in screen-size chunks using special areas, making it impossible to go off-screen of a waypoint before you see it (this also assumes you have waypoints evenly spread at 6-10 sqm intervals).
I dont understand what you mean here, I guess my english is to bad for that.
Can you explain it again in a more "newbie english" way? :o
ppgab
07-03-2014, 05:57 PM
Boomtune he's saying to not leave nodes so apart from each other, when you are near a tight place always put tight nodes
Boomtune
07-03-2014, 06:03 PM
Boomtune he's saying to not leave nodes so apart from each other, when you are near a tight place always put tight nodes
I already had waypoints there with like 3 nodes.... with 6 nodes... with 8 nodes.... used stand waypoints also... nothing worked.
So he means to set a "node" in the middle and a special area around the node with like 7~8 sqm?
DarkstaR
07-03-2014, 07:49 PM
I already had waypoints there with like 3 nodes.... with 6 nodes... with 8 nodes.... used stand waypoints also... nothing worked.
So he means to set a "node" in the middle and a special area around the node with like 7~8 sqm?
Eaxctly. Don't let the looter or targeting leave a waypoint's screen before it is reached.
Boomtune
07-04-2014, 12:35 PM
Eaxctly. Don't let the looter or targeting leave a waypoint's screen before it is reached.
I tryed it and it worked fine... I didn't stucked at much as before... only like 1~2 times and I fixed it.
Now someone came and shooted some fire bombs around in the spawn and I got stuck on 3 chars again. -.-
I hope with "IsStuck" I can jump over to next label, else I need to switch bot and rewrite the script.. :/
It's not possible to have waypoints in that spawn without getting stuck on some fire bomb or something?
I'm not using "mapclick".... I'm using "Walk on Fields and Magical Walls". :s
If you get stuck at any of these places, it's because you suck at making scripts.
Agreed
Lilithwins
12-23-2015, 02:44 PM
Awesome job on advanceds
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.