gerauchert
2012-11-14 21:57:02
I made two custom maps for my script. The first contained edgeville, and the second contained the wilderness up to the skeleton mine. My walking functions for each individual map works flawlessly; however, when I run my mainloop both maps must be used… After crossing the wilderness wall it switches to the wilderness map (SPS debugged), but it then detects my character as being at the mine already (SPS_GetMyPos debug).
When I stop the script and just run the walking function, the script detects the proper location and walks flawlessly to the mine. So my guess is that the script is bugging out when trying to switch from my edgeville map to the wilderness map. As of right now, whenever a walking function is called (EdgeWalk or WildWalk), it calls the proper SPS_Setup at the beginning of the function relative to the proper map. They are both in my runescape_other section. I do not know why this is happening… any help here would be most appreciated.
Heres the debug:
When I stop the script and just run the walking function, the script detects the proper location and walks flawlessly to the mine. So my guess is that the script is bugging out when trying to switch from my edgeville map to the wilderness map. As of right now, whenever a walking function is called (EdgeWalk or WildWalk), it calls the proper SPS_Setup at the beginning of the function relative to the proper map. They are both in my runescape_other section. I do not know why this is happening… any help here would be most appreciated.
Heres the debug:
//FROM MAINLOOP
[SPS] SPS_Setup() took 78 ms. Areas: ['SKELE_EDGE']
SPS_GetMyPos: Finished in 406 ms. Result = (359, 291)
SPS_GetMyPos: Finished in 406 ms. Result = (359, 291)
SPS_GetMyPos: Finished in 421 ms. Result = (339, 271)
SPS_GetMyPos: Finished in 436 ms. Result = (299, 255)
SPS_GetMyPos: Finished in 421 ms. Result = (275, 219)
[SPS] SPS_Setup() took 109 ms. Areas: ['SKELE_COAL']
SPS_GetMyPos: Finished in 468 ms. Result = (107, 103)
107,103 // <---- Mine location, while standing at wildwall
Successfully executed.
//2 seconds later, just running my wildwalk
[SPS] SPS_Setup() took 156 ms. Areas: ['SKELE_COAL']
SPS_GetMyPos: Finished in 453 ms. Result = (323, 359)
323,359
SPS_GetMyPos: Finished in 452 ms. Result = (379, 323)
379,323
SPS_GetMyPos: Finished in 452 ms. Result = (375, 315)
375,315
SPS_GetMyPos: Finished in 421 ms. Result = (375, 311) //Stalled here for a bit, not sure why
375,311
SPS_GetMyPos: Finished in 421 ms. Result = (375, 311)
375,311
SPS_GetMyPos: Finished in 437 ms. Result = (375, 311)
375,311
SPS_GetMyPos: Finished in 405 ms. Result = (375, 311)
375,311
SPS_GetMyPos: Finished in 1466 ms. Result = (375, 311)
375,311
SPS_GetMyPos: Finished in 2683 ms. Result = (375, 311)
375,311
SPS_GetMyPos: Finished in 2200 ms. Result = (375, 311)
375,311
SPS_GetMyPos: Finished in 2309 ms. Result = (379, 311)
SPS_GetMyPos: Finished in 2184 ms. Result = (375, 311)
375,311
SPS_GetMyPos: Finished in 421 ms. Result = (251, 283)
251,283
SPS_GetMyPos: Finished in 421 ms. Result = (251, 235)
251,235
SPS_GetMyPos: Finished in 437 ms. Result = (267, 223)
267,223
SPS_GetMyPos: Finished in 468 ms. Result = (227, 179)
227,179
SPS_GetMyPos: Finished in 468 ms. Result = (175, 151)
175,151
//hooray im at the mine!