Jump to content
View in the app

A better way to browse. Learn more.

RuneSuite RSPS Development

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.

Featured Replies

Posted
comment_4817

Hey fellow leakers.

 

Im in need of some assistance, Vencillio deletes objects by putting a blank id in its place, this causes lag and heaps of unused data. I was wondering if anyone knew the fix to actually delete the object. 

Any help at all would be great! ?

Edit:  this is the obectmanager

Private static final void remove(int x, int y, int z) { RSObject object = Region.getObject(x, y, z); if (Region.getDoor(x, y, z) != null) { Region.removeDoor(x, y, z); } if (object == null) { active.add(new GameObject(2376, x, y, z, 10, 0)); return; } MapLoading.removeObject(object.getId(), x, y, z, object.getType(), object.getFace()); active.add(new GameObject(2376, x, y, z, object.getType(), 0)); Region region = Region.getRegion(x, y); region.setClipToZero(x, y, z); }

private static final void deleteWithObject(int x, int y, int z, int type) { active.add(new GameObject(2376, x, y, z, type, 0)); }

public static List getActive() { return active; }

public static final GameObject getBlankObject(Location p) { return new GameObject(2376, p.getX(), p.getY(), p.getZ(), 10, 0, false); }

public static GameObject getBlankObject(Location p, int type) { return new GameObject(2376, p.getX(), p.getY(), p.getZ(), type, 0, false); }

public static GameObject getGameObject(int x, int y, int z) { int index = active.indexOf(new GameObject(x, y, z)); if (index == -1) { return null; } return active.get(index); }

public static Queue getSend() { return send; }

public static boolean objectExists(Location location) { for (GameObject object : active) { if (location.equals(object.getLocation())) { return true; } } return false; }

public static void process() { for (Iterator i = register.iterator(); i.hasNext();) { GameObject reg = i.next(); active.remove(reg); active.add(reg); send.add(reg); i.remove(); } }

public static void queueSend(GameObject o) { send.add(o); }

public static void register(GameObject o) { register.add(o); }

public static void remove(GameObject o) { removeFromList(o); send.add(getBlankObject(o.getLocation(), o.getType())); }

public static void removeFromList(GameObject o) { active.remove(o); }
 

Replacement code

public static void remove(GameObject o) { removeFromList(o); send.add(getBlankObject(o.getLocation(), o.getType())); }

comment_4821
1 hour ago, Madara said:

I did, the object methods are identical, i havnt loaded it up to see if it was fixed or not. But i really couldnt find a difference in the code, i will look again tho

Just run a diff on there. Quite a big difference.. I believe theres even a diff link of the entire release posted on that thread.

Create an account or sign in to comment

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.