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.

My bot freezes when walking

Featured Replies

SSF freezes my client when walking. It doesn't freeze while performing actions though. I think it is cpu usage. Will it be fixed in Osbot 2 or is it a ssf problem? Thanks!

It's not a SSF problem. It's a problem with the latest client, it was working fine on the 49 one but we cannot hand out that version.

Hopefully it will be fixed in OSBot 2!

Anything else?

Have you enabled it so you can use your mouse while the script is running, via this button?:

 

PwyHvtP.png

  • Author

Yes i have, i tried my script on . 49 when i run a script my client goes to 1 fps and freezes

Yes i have, i tried my script on . 49 when i run a script my client goes to 1 fps and freezes

 

So, you're currently using .49, or you went back to test on .49 to see if it worked?

  • Author

I tested on .49 i am curently running .53

Comfirm this bug, bot freezes at walk(...). Made my walking function that calls moveMouse / clickMouse directly, will test if it will freeze bot also (is the problem in walk() itself, or in MouseDestinations/mouse functions)

I think, problem is not checking if MouseDestination is on-screen in client.moveMouse(). It causes StackOverflow. When I implemented my own movement and did'nt check if MainScreenTileDestination is on the screen, got this overflow in moveMouse() almost immediately. Will continue to test.

Freezes in MainScreenTileDestination.getPointDestination()

Wow, bot working freeze-less after implementing own walking code and invoking MainScreenTileDestination.getPointDestination() in separate thread, terminating it if call freezes for too long

static class GetPointDestinationRunnable extends Thread  {
		public MouseDestination Dest;
		public Point Point;
		public GetPointDestinationRunnable(MouseDestination dest){
			Dest = dest;
		}
	    public void run() {
	    	/*if(MethodProvider.random(100) >= 0){
	    		try {
	    			Thread.sleep(100000);
	    		} catch (InterruptedException e) {
	    			return;
	    		}
	    	}*/
	    	
	    	try{
	    		Point = Dest.getPointDestination();
	    		//Thread.sleep(10000);
	    	} catch(Exception e){
	    		return;
	    	}
	    }
	}

static boolean tryClickScreen(ActionBot scp, Position pos, boolean rotateCamera) throws InterruptedException{
		MainScreenTileDestination dest = new MainScreenTileDestination(scp.bot, pos);
		Point p; //= dest.getPointDestination();
		GetPointDestinationRunnable runnable = new GetPointDestinationRunnable(dest);
		runnable.start();
		try{
			runnable.join(500);
			p = runnable.Point;
		} catch(InterruptedException e){
			p = null;
		}
		if(runnable.isAlive()){
			scp.log("BUG: walk freeze -> stop thread");
			runnable.stop(new InterruptedException());
		}
		if(p!=null && p.x >= threshold && p.y >= threshold && p.x < areaw - threshold && p.y < areah - threshold){
			if(scp.client.moveMouse(new RectangleDestination(p.x - 2, p.y - 2, 4, 4), false)){
				scp.sleepSingle();
				if(scp.menuClick("Walk here", (String)null))
					return true;
			}
		}
		if(rotateCamera){
			scp.client.moveCameraToPosition(pos);
			return tryClickScreen(scp, pos, false);
			}
		return false;
	}

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.