SRL Archive - SRL Development and Help

Minimap.setangle spazzes out


arclight

2014-10-26 20:54:11

Hi, I was wondering if it is possible to stop "Minimap.setAngle(minimap.getAngleDegrees + 180);" from causing the screen to oscillate between going left and right for a little while every time this is called. I basically wanted the entire screen to show the other half of the screen I can't currently see, but this is not working for me, obviously. I am guessing it is trying to reach that specific angle, but I really only want it to reach around that angle, the source code makes it seem like it should not be trying to do specifics.

Edit:
Only happens when this happens and is solved by not clicking the compass before, but this seems like a weird error still:
minimap.clickCompass();
Minimap.setAngle(minimap.getAngleDegrees + 180);

Turpinator

2014-10-27 12:25:50

Works fine for me.

Could you post a video/gif of it happening? (id suggest gifcam http://blog.bahraniapps.com/gifcam/)

arclight

2014-10-27 14:20:17

It seems to have stop doing it.

Incurable

2014-10-27 19:21:46

From: Turpinator
Works fine for me.

Could you post a video/gif of it happening? (id suggest gifcam http://blog.bahraniapps.com/gifcam/)


Unless you guys fixed something last night after I went to bed, minimap.setAngle is definitely having problems. Run a loop wherein you print minimap.setAngle and watch how often it returns false or fails to rotate at all.

Justin

2014-10-27 19:35:37

Yep, had the same issue, would only work if it right-clicked and hit the Face North option.

I'd assume it was because of the text that appears under the compass if you hover over it. IIRC it was returning 60 degrees when this text was displayed.
@Olly;

Olly

2014-10-27 20:20:46

From: Justin
Yep, had the same issue, would only work if it right-clicked and hit the Face North option.

I'd assume it was because of the text that appears under the compass if you hover over it. IIRC it was returning 60 degrees when this text was displayed.
@Olly;


:s What text?

KeepBotting

2014-10-27 21:19:39

From: Olly
:s What text?



Possibly that

Olly

2014-10-27 22:17:40

Well I fixed something…

Justin

2014-10-27 23:15:19

Thanks Olly :)