Skip to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

moveCameraToEntity() or isVisible() are broken

Featured Replies

Using Client Version: 1.7.63


IssueThe script I'm writing has a isVisible() check, so if the Entity is not visible than the script will moveCameraToEntity(). Problem is it occasionally either it thinks the Entity is visible when its not, or the moveCameraToEntity() method is broken. The script will just stay still until the Entity walks onscreen and then it will instantly interact.

 

When this error happens I can fix it myself by moving the camera and when the Entity is visible onscreen the script will continue as normal. This is how I know its not an issue in the script but an issue in the methods returning true when they should be false.


Media(Pics\Logs): None

Edited by Swizzbeat

The script I'm writing has a isVisible() check, so if the Entity is not visible than the script will moveCameraToEntity(). Problem is it occasionally either it thinks the Entity is visible when its not, or the moveCameraToEntity() method is broken. The script will just stay still until the Entity walks onscreen and then it will instantly interact.

 

When this error happens I can fix it myself by moving the camera and when the Entity is visible onscreen the script will continue as normal. This is how I know its not an issue in the script but an issue in the methods returning true when they should be false.

 

Noticed this today with my nmz script, it no longer rotates the camera to the powerups which spawn.

What about check to see if the entity position is visible. if it isn't rotate camera to position. See if that works

The script I'm writing has a isVisible() check, so if the Entity is not visible than the script will moveCameraToEntity(). Problem is it occasionally either it thinks the Entity is visible when its not, or the moveCameraToEntity() method is broken. The script will just stay still until the Entity walks onscreen and then it will instantly interact.

 

When this error happens I can fix it myself by moving the camera and when the Entity is visible onscreen the script will continue as normal. This is how I know its not an issue in the script but an issue in the methods returning true when they should be false.

does this happen after immediate change of location, for example, teleport?

 

I have noticed this only after a teleport, (change of area real quick)

I have tested it in the script I just wrote, and when I was attempting to move the camera to the NPC, it would do it, but after like 3-4 second delay, which makes me believe that the method is kind of working bad.

  • Author

I have tested it in the script I just wrote, and when I was attempting to move the camera to the NPC, it would do it, but after like 3-4 second delay, which makes me believe that the method is kind of working bad.

It happens while fishing so no there's really no change. The fishing spot will appear offscreen and occasionally the bot will not move the camera. The thing is when I manually move the camera once the spot comes on the screen it works fine. 

 

I have tested it in the script I just wrote, and when I was attempting to move the camera to the NPC, it would do it, but after like 3-4 second delay, which makes me believe that the method is kind of working bad.

It happens while fishing so no there's really no change. The fishing spot will appear offscreen and occasionally the bot will not move the camera. The thing is when I manually move the camera once the spot comes on the screen it works fine. 

 

 

Yep, looks like it's kinda broken.

  • 2 weeks later...

Bumping this thread becausa isVisible is broken, returning true when the objects edge is on screen, or when the camera is above the object, thinking its been shown but its actually not, there are workarounds for it, but we shouldn't need to...

  • Administrator

I know it is late, so I probably didn't understand exactly what was said.

So far, I've gathered that one of the following is true:

1) isVisible() returns true even though the Entity is offscreen.

2) isVisible() works fine, but moveCameraToEntity() does not accomplish its task.

Is that correct?

Nvm, tested my theory, was wrong.

Edited by Markoz

What's the update on this? is it been worked on? This would fix the last bugs im having =/

  • Author

I know it is late, so I probably didn't understand exactly what was said.

So far, I've gathered that one of the following is true:

1) isVisible() returns true even though the Entity is offscreen.

2) isVisible() works fine, but moveCameraToEntity() does not accomplish its task.

Is that correct?

Sorry for the late reply, but after testing I think isVisible() works fine its just the camera movement method. Weird thing is if I take out any isVisible() then moveCamera code and just simply say entity.interact("Attack") the camera method works fine and it always seems to walk/move camera to the entity.

 

What's the update on this? is it been worked on? This would fix the last bugs im having =/

I'm using the walk method to just walk to the entity instead and that seems to be working fine!

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.