Thread: 718/742 elysium base (matrix) cape glitch

Results 1 to 10 of 10
  1. #1 718/742 elysium base (matrix) cape glitch 
    Registered Member
    Join Date
    Oct 2013
    Posts
    40
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Hello, So i have been working on a glitch i've come across to do with the max and completionist cape in a release called elysium. I have tried in many ways to fix the problem.

    Apparently when you wear one of the two capes its does not show up on the characters back even though its in the correct slot. It actually ends up nulling the server out instead. heres what it says when you equip it ingame on the command box.

    Code:
    ERROR! THREAD NAME: World Thread
    java.lang.NullPointerException
            at com.rs.game.player.Appearence.generateAppearenceData(Appearence.java:
    212)
            at com.rs.net.decoders.handlers.ButtonHandler.sendWear(ButtonHandler.jav
    a:2355)
            at com.rs.net.decoders.handlers.InventoryOptionsHandler$1.run(InventoryO
    ptionsHandler.java:119)
            at com.rs.game.tasks.WorldTasksManager.processTasks(WorldTasksManager.ja
    va:19)
            at com.rs.cores.WorldThread.run(WorldThread.java:24)
    This is the generateappearancedata, same as the original matrix.

    Code:
    public void generateAppearenceData() {
    		OutputStream stream = new OutputStream();
    		int flag = 0;
    		if (!male)
    			flag |= 0x1;
    		if (transformedNpcId >= 0
    				&& NPCDefinitions.getNPCDefinitions(transformedNpcId).aBoolean3190)
    			flag |= 0x2;
    		if(title != 0) 
    			flag |= title >= 32 && title <= 37 ? 0x80 : 0x40; //after/before
    		stream.writeByte(flag);
    		if(title != 0) {
    			String titleName = title == 666 ? "<col=00FF00>Fuck You Jagex</col>" : ClientScriptMap.getMap(male ? 1093 : 3872).getStringValue(title);
    			stream.writeGJString(titleName);
    		}
    		stream.writeByte(player.hasSkull() ? player.getSkullId() : -1); // pk// icon
    		stream.writeByte(player.getPrayer().getPrayerHeadIcon()); // prayer icon
    		stream.writeByte(hidePlayer ? 1 : 0);
    		// npc
    		if (transformedNpcId >= 0) {
    			stream.writeShort(-1); // 65535 tells it a npc
    			stream.writeShort(transformedNpcId);
    			stream.writeByte(0);
    		} else {
    			for (int index = 0; index < 4; index++) {
    				Item item = player.getEquipment().getItems().get(index);
    				if (glowRed) {
    					if (index == 0) {
    						stream.writeShort(32768 + ItemsEquipIds.getEquipId(2910));
    						continue;
    					}
    					if (index == 1) {
    						stream.writeShort(32768 + ItemsEquipIds
    								.getEquipId(14641));
    						continue;
    					}
    				}
    				if (item == null)
    					stream.writeByte(0);
    				else
    					stream.writeShort(32768 + item.getEquipId());
    			}
    			Item item = player.getEquipment().getItems()
    					.get(Equipment.SLOT_CHEST);
    			stream.writeShort(item == null ? 0x100 + lookI[2] : 32768 + item.getEquipId());
    			item = player.getEquipment().getItems().get(Equipment.SLOT_SHIELD);
    			if (item == null)
    				stream.writeByte(0);
    			else
    				stream.writeShort(32768 + item.getEquipId());
    			item = player.getEquipment().getItems().get(Equipment.SLOT_CHEST);
    			if (item == null || !Equipment.hideArms(item))
    				stream.writeShort(0x100 + lookI[3]);
    			else
    				stream.writeByte(0);
    			item = player.getEquipment().getItems().get(Equipment.SLOT_LEGS);
    			stream.writeShort(glowRed ? 32768 + ItemsEquipIds.getEquipId(2908)
    					: item == null ? 0x100 + lookI[5] : 32768 + item
    							.getEquipId());
    			item = player.getEquipment().getItems().get(Equipment.SLOT_HAT);
    			if (!glowRed
    					&& (item == null || !Equipment.hideHair(item)))
    				stream.writeShort(0x100 + lookI[0]);
    			else
    				stream.writeByte(0);
    			item = player.getEquipment().getItems().get(Equipment.SLOT_HANDS);
    			stream.writeShort(glowRed ? 32768 + ItemsEquipIds.getEquipId(2912)
    					: item == null ? 0x100 + lookI[4] : 32768 + item
    							.getEquipId());
    			item = player.getEquipment().getItems().get(Equipment.SLOT_FEET);
    			stream.writeShort(glowRed ? 32768 + ItemsEquipIds.getEquipId(2904)
    					: item == null ? 0x100 + lookI[6] : 32768 + item
    							.getEquipId());
    			//tits for female, bear for male
    			item = player.getEquipment().getItems().get(male ? Equipment.SLOT_HAT : Equipment.SLOT_CHEST);
    			if (item == null || (male && Equipment.showBear(item)))
    				stream.writeShort(0x100 + lookI[1]);
    			else
    				stream.writeByte(0);
    			item = player.getEquipment().getItems().get(Equipment.SLOT_AURA);
    			if (item == null)
    				stream.writeByte(0);
    			else
    				stream.writeShort(32768 + item.getEquipId()); //Fixes the winged auras lookIing fucked.
    			int pos = stream.getOffset();
    			stream.writeShort(0);
    			int hash = 0;
    			int slotFlag = -1;
    			for (int slotId = 0; slotId < player.getEquipment().getItems()
    					.getSize(); slotId++) {
    				if (Equipment.DISABLED_SLOTS[slotId] != 0)
    					continue;
    				slotFlag++;
    				if(slotId == Equipment.SLOT_HAT) {
    					int hatId = player.getEquipment().getHatId();
    					if (hatId == 20768 || hatId == 20770 || hatId == 20772) {
    						ItemDefinitions defs = ItemDefinitions.getItemDefinitions(hatId-1);
    						if ((hatId == 20768
    								&& Arrays.equals(
    										player.getMaxedCapeCustomized(),
    										defs.originalModelColors) || ((hatId == 20770 || hatId == 20772) && Arrays
    								.equals(player.getCompletionistCapeCustomized(),
    										defs.originalModelColors))))
    							continue;
    						hash |= 1 << slotFlag;
    						stream.writeByte(0x4); // modify 4 model colors
    						int[] hat = hatId == 20768 ? player
    								.getMaxedCapeCustomized() : player
    								.getCompletionistCapeCustomized();
    						int slots = 0 | 1 << 4 | 2 << 8 | 3 << 12;
    						stream.writeShort(slots);
    						for (int i = 0; i < 4; i++)
    							stream.writeShort(hat[i]);
    					}
    				}else if (slotId == Equipment.SLOT_CAPE) {
    					int capeId = player.getEquipment().getCapeId();
    					if (capeId == 20767 || capeId == 20769 || capeId == 20771) {
    						ItemDefinitions defs = ItemDefinitions
    								.getItemDefinitions(capeId);
    						if ((capeId == 20767
    								&& Arrays.equals(
    										player.getMaxedCapeCustomized(),
    										defs.originalModelColors) || ((capeId == 20769 || capeId == 20771) && Arrays
    								.equals(player.getCompletionistCapeCustomized(),
    										defs.originalModelColors))))
    							continue;
    						hash |= 1 << slotFlag;
    						stream.writeByte(0x4); // modify 4 model colors
    						int[] cape = capeId == 20767 ? player
    								.getMaxedCapeCustomized() : player
    								.getCompletionistCapeCustomized();
    						int slots = 0 | 1 << 4 | 2 << 8 | 3 << 12;
    						stream.writeShort(slots);
    						for (int i = 0; i < 4; i++)
    							stream.writeShort(cape[i]);
    					}


    If anyone has any thoughts or idea's to help fix this it is highly appreciated

    Thanks!
    -Kyle
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Oct 2013
    Posts
    40
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    bump
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Feb 2011
    Posts
    1,143
    Thanks given
    545
    Thanks received
    110
    Rep Power
    87
    Quote Originally Posted by KHcoding View Post
    bump
    Try changing the cache. Obviously not a fix, but it's a troubleshoot.

    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Nov 2014
    Posts
    12
    Thanks given
    0
    Thanks received
    1
    Rep Power
    11
    Is the wielding models correct? If they are not you could pack the models into your cache and change that the capes uses them.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Oct 2013
    Posts
    40
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Falconpunch View Post
    Try changing the cache. Obviously not a fix, but it's a troubleshoot.
    Thank you for the feedback, I have tried an didn't succeed.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Oct 2013
    Posts
    40
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by mirojantti View Post
    Is the wielding models correct? If they are not you could pack the models into your cache and change that the capes uses them.
    I'm going to look into this more but heres the thing. once you load the cape customization you cant click anything but the refresh button, when you do that it loads the cape as if nothing was wrong. Its a funky issue i'm still not quite sure were the problem actually is.
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Feb 2011
    Posts
    1,143
    Thanks given
    545
    Thanks received
    110
    Rep Power
    87
    Quote Originally Posted by KHcoding View Post
    I'm going to look into this more but heres the thing. once you load the cape customization you cant click anything but the refresh button, when you do that it loads the cape as if nothing was wrong. Its a funky issue i'm still not quite sure were the problem actually is.
    Might be your client, try a different client and maybe look up a guide on how to add the particles etc.

    Reply With Quote  
     

  8. #8  
    Extreme Donator


    Join Date
    Mar 2009
    Posts
    1,461
    Thanks given
    111
    Thanks received
    184
    Rep Power
    79
    what's on line 212 in Appearence?
    Attached image
    Quote Originally Posted by MaxXi View Post
    Your combat is so awsome that i almost forgot its the combat matrix coded.
    Quote Originally Posted by twobrosplay View Post
    Try allowing the batch file through your firewall?
    Quote Originally Posted by SS_Alophonse View Post
    i have no life u say ha anything u say kid.i doubt u can even get a girlfriend
    i bet u cant even code anything.
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Sep 2014
    Age
    26
    Posts
    97
    Thanks given
    57
    Thanks received
    11
    Rep Power
    12
    If you never fixed it add this to player.java

    if (capeReset == false) {
    SkillCapeCustomizer.resetSkillCapes(this);
    capeReset = true;
    }

    solved the problem for me
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Oct 2013
    Posts
    40
    Thanks given
    2
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by zeptronmc View Post
    If you never fixed it add this to player.java

    if (capeReset == false) {
    SkillCapeCustomizer.resetSkillCapes(this);
    capeReset = true;
    }

    solved the problem for me
    I still havent fixed this no.. :\ i tryed adding that to player.java it didnt help it gave errors so i did what i could to fix them and it still didnt work thanks for trying though
    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: 232
    Last Post: 12-03-2015, 04:45 PM
  2. Replies: 6
    Last Post: 10-12-2013, 12:52 AM
  3. Fire Cape glitch. 718 matrix.
    By frozenfart in forum Help
    Replies: 8
    Last Post: 09-22-2013, 01:41 PM
  4. Replies: 42
    Last Post: 02-09-2013, 12:42 PM
  5. 718/742 Matrix SERVER gui... UPDATED
    By UngodlyTank in forum Show-off
    Replies: 27
    Last Post: 12-01-2012, 02:52 PM
Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •