[Pogamut-list] mapping bot
cazub
pogamut-forum at artemis.ms.mff.cuni.cz
Wed Sep 10 10:07:34 CEST 2008
Re: Re: mapping bot
Wow quick responses! (:biggrin:)
I have just updated to the newest pogamut , so i am trying to rewrite my visibility mapping bot and i'll see if .isVisible() works.
But on my version (1.0.X < 1.1) isVisible() would return 0 pretty much no matter what on my testing map. The maps a tiny one, two square rooms with a tiny hall connecting them. 4 navpoints per room and two in the hall (10 total). So i picked a corner and wrote out the visibilities based on isVisible, got
0,0,0,0,0,0,0,0 etc. , should have been something like 1,1,1,1,0,0,0,0,0 .. , so if all the numbers were summed up that node SHOULD have had a value of 4/10, but would come out with 0/10.
So i figured i was not using isvisible() correctly, so i changed my code to cycle through all the navpoints and call
"uid = this.currentNav.getUnrealID();
this.memory.getSeeNavPoint(uid);"
and then if the getSeeNavPoint didn't return Null i'd count that as a visible from my current location. But an example of what i'd get is
1,0,0,1,0,0,1,1,1 ... to where the numbers really weren't correct.
so this got me visibility sums like 8/10 on that map. When i'd re-run the program it always performed the same though, so perhaps i'm not using this function correctly either (getSeeNavPoint)??
----
Reply Link: <https://artemis.ms.mff.cuni.cz/pogamut/tiki-view_forum_thread.php?forumId=6&comments_reply_threadId=232&comments_parentId=222&post_reply=1#form>
More information about the Pogamut-list
mailing list