Thread: Remove clipping from removed object

Results 1 to 3 of 3
  1. #1 Remove clipping from removed object 
    Registered Member
    Join Date
    Sep 2015
    Posts
    68
    Thanks given
    41
    Thanks received
    75
    Rep Power
    36
    Hello,
    I've been trying to remove the clipping from an object I removed in the server.
    Here is a screenshot of an npc that I attacked and can't walk through the removed object:

    This is what I tried:
    In the loadCustomSpawns method I added this line:
    Code:
    c.getPA().checkObjectSpawn(-1, 3088, 3509, 0, 10);
    This will get rid of the object.
    Then in the checkObjectSpawn method I added this:
    Code:
    if (objectId != -1)
    			Region.addObject(objectId, objectX, objectY, 0, objectType, face);
    		else
    			Region.removeClipping(objectX, objectY, 0);
    This is my removeClipping and removeClip method:
    Code:
    private void removeClip(int x, int y, int height) {
    		int regionAbsX = (id >> 8) * 64;
    		int regionAbsY = (id & 0xff) * 64;
    		if (clips[(int)height] == null) {
    			clips[(int)height] = new int[64][64];
    		}
    		clips[(int)height][x - regionAbsX][y - regionAbsY] = 0;
    	}
        
        public static void removeClipping(int x, int y, int height) {
    		int regionX = x >> 3;
    		int regionY = y >> 3;
    		int regionId = ((regionX / 8) << 8) + (regionY / 8);
    		//System.out.println("X: "+regionX+" - Y: "+regionY+" - id: "+regionId);
    		for (Region r : regions) {
    			if (r.id() == regionId) {
    				r.removeClip(x, y, height);
    				break;
    			}
    		}
    	}
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Feb 2017
    Posts
    113
    Thanks given
    23
    Thanks received
    29
    Rep Power
    16
    Look in your client, some clients load object clippings there as well. It will look similar to your server objectspawn. That would be my first place to look
    Reply With Quote  
     

  3. #3  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    Well if your using the released clipping the map file still contains that object id so it will still clip
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 3
    Last Post: 05-30-2009, 02:47 PM
  2. Removing sql from the 474 server
    By Zahhak in forum Tutorials
    Replies: 85
    Last Post: 12-30-2008, 10:13 AM
  3. Removing items from shop / adding.
    By 'Craig in forum Help
    Replies: 16
    Last Post: 10-31-2008, 03:10 AM
  4. removing MYSQL from a server
    By fireking in forum Tutorials
    Replies: 0
    Last Post: 07-23-2008, 03:36 PM
  5. Any tips for removing meory from my client?
    By Sub in forum RS2 Client
    Replies: 5
    Last Post: 06-03-2008, 01:07 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •