SRL Archive - Jr. Member General Help and Discussion

Possible camera rotation bug


Lucidity

2015-04-07 10:41:22

When using
minimap.setAngle(angle);
it tends to not always set the correct angle or do anything at all.. at least from what I've noticed on my scripts and a friends script. I do recall seeing a thread that was placed in October 2014 regarding this issue, but is it still occurring? Is anyone else running into screen rotations not occurring?

Temporarily i've made a function that determines if the camera is in the angle I want it to be in before proceeding, but I have noticed it still somehow slips up.

Renzanity

2015-04-07 10:57:09

I noticed this just now, after my script logs back in from taking a break, I call this function on my login procedure but there are times that it would fail and therefore terminate my script. I even put in a waitTime before I call this function (about 5 seconds of wait time) because I thought it was just caused by my client lagging.

Lucidity

2015-04-07 11:00:13

From: renzanity
I noticed this just now, after my script logs back in from taking a break, I call this function on my login procedure but there are times that it would fail and therefore terminate my script. I even put in a waitTime before I call this function (about 5 seconds of wait time) because I thought it was just caused by my client lagging.


Feel free to add me on skype maybe we can figure something out. My skype is Thugblytas

Lucidity

2015-04-08 04:39:17

Can anyone else confirm they've stumbled into this?

fady

2015-04-08 08:46:26

From: Bly
Can anyone else confirm they've stumbled into this?


I've noticed that too, but have thought of it as a form of human like behavior. You wont ever go back to the same exact angle every single time you play! I don't think that it is a bug! also the function minimap.setAngle, can be adjusted to be 100% accurate because the function itself from the include has an accuracy variable like so:
TRSMinimap.setAngle(Angle: Extended; Accurate: Boolean = False): Boolean;

so for example, this:
minimap.setAngle(59, True);
will always give me that exact angle. however:
minimap.setAngle(59);
will always vary by a tolerance of 5(according to the include). This will also do the same:
minimap.setAngle(59, False);

also, If you are only using North or South, you may use
minimap.clickCompass();  // To Face North!
minimap.clickCompass(True); //To Face South!

Because no regular human would be able to obtain the same exact angle, every single time they play, while using the keyboard to adjust the camera angle.

Lucidity

2015-04-08 12:11:27

That isn't necessarily the problem, sometimes it's not even rotating.

Lucidity

2015-04-09 04:41:04

Testing on another computer that's newer and has a different internet connection - Haven't ran into the problem yet it might of just been the lag.. my bad about the thread!

KeepBotting

2015-04-09 05:22:01

From: Bly
Testing on another computer that's newer and has a different internet connection - Haven't ran into the problem yet it might of just been the lag.. my bad about the thread!


Make sure you're using Classic rather than RS3 camera mode, I believe that makes a difference and the routines in SRL-6 were built for Classic