Thread: map icon error

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 map icon error 
    Registered Member
    Join Date
    Dec 2010
    Age
    25
    Posts
    139
    Thanks given
    8
    Thanks received
    7
    Rep Power
    13
    Code:
    Exception in thread "Thread-5" java.lang.NullPointerException
            at client.markMinimap(client.java:10813)
            at client.drawMinimap(client.java:9774)
            at client.drawGameScreen(client.java:8343)
            at client.processDrawing(client.java:9052)
            at RSApplet.run(RSApplet.java:108)
            at client.run(client.java:4749)
            at java.lang.Thread.run(Unknown Source)
    I have this problem entering certain zones, i know it has something to do with 508 map icones but dont know how to fix it, any ideas?
    Reply With Quote  
     

  2. #2  
    Super Donator

    StanDev's Avatar
    Join Date
    Apr 2014
    Posts
    660
    Thanks given
    82
    Thanks received
    255
    Rep Power
    592
    Not sure what is nulling out for you, however as you mention mapicons. Make sure you have assigned a value to the mapicon before you try to access it.

    Sent from my ONE A2003 using Tapatalk
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2010
    Age
    25
    Posts
    139
    Thanks given
    8
    Thanks received
    7
    Rep Power
    13
    Quote Originally Posted by icebrick View Post
    Not sure what is nulling out for you, however as you mention mapicons. Make sure you have assigned a value to the mapicon before you try to access it.

    Sent from my ONE A2003 using Tapatalk
    Do you know in which file are those assigned?
    Reply With Quote  
     

  4. #4  
    (Official) Thanksgiver

    Arham's Avatar
    Join Date
    Jan 2013
    Age
    23
    Posts
    3,415
    Thanks given
    7,254
    Thanks received
    1,938
    Rep Power
    3905
    Quote Originally Posted by strucker View Post
    Do you know in which file are those assigned?
    Hi strucky

    Show the method where line 10813 is in client class. (:
    Attached image
    Attached image
    Quote Originally Posted by MrClassic View Post
    Arham is the official thanker!
    List of my work here!
    Reply With Quote  
     

  5. #5  
    Super Donator

    StanDev's Avatar
    Join Date
    Apr 2014
    Posts
    660
    Thanks given
    82
    Thanks received
    255
    Rep Power
    592
    Quote Originally Posted by strucker View Post
    Do you know in which file are those assigned?
    should be just in your client class, search for mapicon or something. Otherwise download any refactored client and use that as reference point.

    Sent from my ONE A2003 using Tapatalk
    Reply With Quote  
     

  6. #6  
    (Official) Thanksgiver

    Arham's Avatar
    Join Date
    Jan 2013
    Age
    23
    Posts
    3,415
    Thanks given
    7,254
    Thanks received
    1,938
    Rep Power
    3905
    Quote Originally Posted by icebrick View Post
    Sent from my ONE A2003 using Tapatalk
    Nice OnePlus2
    Attached image
    Attached image
    Quote Originally Posted by MrClassic View Post
    Arham is the official thanker!
    List of my work here!
    Reply With Quote  
     

  7. #7  
    Super Donator

    StanDev's Avatar
    Join Date
    Apr 2014
    Posts
    660
    Thanks given
    82
    Thanks received
    255
    Rep Power
    592
    Quote Originally Posted by arham 4 View Post
    Nice OnePlus2
    The fuck. Never noticed that before, thanks for attending me lol.
    Reply With Quote  
     

  8. #8  
    (Official) Thanksgiver

    Arham's Avatar
    Join Date
    Jan 2013
    Age
    23
    Posts
    3,415
    Thanks given
    7,254
    Thanks received
    1,938
    Rep Power
    3905
    Quote Originally Posted by icebrick View Post
    The fuck. Never noticed that before, thanks for attending me lol.
    Hey, I was being legitimate! Android!!
    Attached image
    Attached image
    Quote Originally Posted by MrClassic View Post
    Arham is the official thanker!
    List of my work here!
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Dec 2010
    Age
    25
    Posts
    139
    Thanks given
    8
    Thanks received
    7
    Rep Power
    13
    Quote Originally Posted by arham 4 View Post
    Hi strucky

    Show the method where line 10813 is in client class. (:
    here is line 10813
    Code:
    		if (player != null && player.isVisible()) {
    Here's the whole method tho
    Code:
    private void drawMinimap() {
    		if (revision474 == true) {
    			aRSImageProducer_1164.initDrawingArea();
    			if (anInt1021 == 2) {
    				byte abyte0[] = mapBack.aByteArray1450;
    				Increase.drawSprite(230, 135);
    				Decrease.drawSprite(230, 150);
    				int ai[] = DrawingArea.pixels;
    				int k2 = abyte0.length;
    				for (int i5 = 0; i5 < k2; i5++)
    					if (abyte0[i5] == 0)
    						ai[i5] = 0;
    				compass.method352(33, viewRotation, anIntArray1057, 256,
    						anIntArray968, 25, 0, 0, 33, 25);
    				aRSImageProducer_1165.initDrawingArea();
    				return;
    			}
    			int i = viewRotation + minimapRotation & 0x7ff;
    			int j = 48 + myPlayer.x / 32;
    			int l2 = 464 - myPlayer.y / 32;
    			Increase.drawSprite(230, 135);
    			Decrease.drawSprite(230, 150);
    			for (int x = 0; x < anIntArray1229.length; x++) {
    				anIntArray1229[x] = 170;
    				anIntArray1052[x] = -23;
    			}
    			aClass30_Sub2_Sub1_Sub1_1263.method352(151, i, anIntArray1229,
    					256 + minimapZoom, anIntArray1052, l2, 9, 54, 146, j);
    			compass.method352(33, viewRotation, anIntArray1057, 256,
    					anIntArray968, 25, 4, 25, 33, 25);
    			for (int j5 = 0; j5 < anInt1071; j5++) {
    				int k = (anIntArray1072[j5] * 4 + 2) - myPlayer.x / 32;
    				int i3 = (anIntArray1073[j5] * 4 + 2) - myPlayer.y / 32;
    				markMinimap(aClass30_Sub2_Sub1_Sub1Array1140[j5], k, i3);
    			}
    			for (int k5 = 0; k5 < 104; k5++) {
    				for (int l5 = 0; l5 < 104; l5++) {
    					NodeList class19 = groundArray[plane][k5][l5];
    					if (class19 != null) {
    						int l = (k5 * 4 + 2) - myPlayer.x / 32;
    						int j3 = (l5 * 4 + 2) - myPlayer.y / 32;
    						markMinimap(mapDotItem, l, j3);
    					}
    				}
    			}
    
    			for (int i6 = 0; i6 < npcCount; i6++) {
    				NPC npc = npcArray[npcIndices[i6]];
    				if (npc != null && npc.isVisible()) {
    					EntityDef entityDef = npc.desc;
    					if (entityDef.childrenIDs != null)
    						entityDef = entityDef.method161();
    					if (entityDef != null && entityDef.aBoolean87
    							&& entityDef.aBoolean84) {
    						int i1 = npc.x / 32 - myPlayer.x / 32;
    						int k3 = npc.y / 32 - myPlayer.y / 32;
    						markMinimap(mapDotNPC, i1, k3);
    					}
    				}
    			}
    			for (int j6 = 0; j6 < playerCount; j6++) {
    				Player player = playerArray[playerIndices[j6]];
    				if (player != null && player.isVisible()) {
    					int j1 = player.x / 32 - myPlayer.x / 32;
    					int l3 = player.y / 32 - myPlayer.y / 32;
    					boolean flag1 = false;
    					boolean flag3 = false;
    					for (int j3 = 0; j3 < clanList.length; j3++) {
    						if (clanList[j3] == null)
    							continue;
    						if (!clanList[j3].equalsIgnoreCase(player.name))
    							continue;
    						flag3 = true;
    						break;
    					}
    					long l6 = TextClass.longForName(player.name);
    					for (int k6 = 0; k6 < friendsCount; k6++) {
    						if (l6 != friendsListAsLongs[k6]
    								|| friendsNodeIDs[k6] == 0)
    							continue;
    						flag1 = true;
    						break;
    					}
    					boolean flag2 = false;
    					if (myPlayer.team != 0 && player.team != 0
    							&& myPlayer.team == player.team)
    						flag2 = true;
    					if (flag1)
    						markMinimap(mapDotFriend, j1, l3);
    					else if (flag3)
    						markMinimap(mapDotClan, j1, l3);
    					else if (flag2)
    						markMinimap(mapDotTeam, j1, l3);
    					else
    						markMinimap(mapDotPlayer, j1, l3);
    				}
    			}
    			if (anInt855 != 0 && loopCycle % 20 < 10) {
    				if (anInt855 == 1 && anInt1222 >= 0
    						&& anInt1222 < npcArray.length) {
    					NPC class30_sub2_sub4_sub1_sub1_1 = npcArray[anInt1222];
    					if (class30_sub2_sub4_sub1_sub1_1 != null) {
    						int k1 = class30_sub2_sub4_sub1_sub1_1.x / 32
    								- myPlayer.x / 32;
    						int i4 = class30_sub2_sub4_sub1_sub1_1.y / 32
    								- myPlayer.y / 32;
    						method81(mapMarker, i4, k1);
    					}
    				}
    				if (anInt855 == 2) {
    					int l1 = ((anInt934 - baseX) * 4 + 2) - myPlayer.x / 32;
    					int j4 = ((anInt935 - baseY) * 4 + 2) - myPlayer.y / 32;
    					method81(mapMarker, j4, l1);
    				}
    				if (anInt855 == 10 && anInt933 >= 0
    						&& anInt933 < playerArray.length) {
    					Player class30_sub2_sub4_sub1_sub2_1 = playerArray[anInt933];
    					if (class30_sub2_sub4_sub1_sub2_1 != null) {
    						int i2 = class30_sub2_sub4_sub1_sub2_1.x / 32
    								- myPlayer.x / 32;
    						int k4 = class30_sub2_sub4_sub1_sub2_1.y / 32
    								- myPlayer.y / 32;
    						method81(mapMarker, k4, i2);
    					}
    				}
    			}
    			if (destX != 0) {
    				int j2 = (destX * 4 + 2) - myPlayer.x / 32;
    				int l4 = (destY * 4 + 2) - myPlayer.y / 32;
    				markMinimap(mapFlag, j2, l4);
    			}
    			DrawingArea.drawPixels(3, 78 + 5, 97 + 30, 0xffffff, 3);
    			mapArea474.drawSprite(0, 0);
    			if (revision474 == true && OSOrbs == true) {
    				draw07Orbs();
    			}
    			if (menuOpen && menuScreenArea == 3) {
    				drawMenu();
    			}
    			aRSImageProducer_1165.initDrawingArea();
    		}
    		if (revision498 == true) {
    			aRSImageProducer_1164.initDrawingArea();
    			if (anInt1021 == 2) {
    				byte abyte0[] = mapBack.aByteArray1450;
    				int ai[] = DrawingArea.pixels;
    				int k2 = abyte0.length;
    				for (int i5 = 0; i5 < k2; i5++)
    					if (abyte0[i5] == 0)
    						ai[i5] = 0;
    				compass.method352(33, viewRotation, anIntArray1057, 256,
    						anIntArray968, 25, 8, 8, 33, 25);
    				aRSImageProducer_1165.initDrawingArea();
    				return;
    			}
    			int i = viewRotation + minimapRotation & 0x7ff;
    			int j = 48 + myPlayer.x / 32;
    			int l2 = 464 - myPlayer.y / 32;
    			for (int x = 0; x < anIntArray1229.length; x++) {
    				anIntArray1229[x] = 170;
    				anIntArray1052[x] = -23;
    			}
    			aClass30_Sub2_Sub1_Sub1_1263.method352(151, i, anIntArray1229,
    					256 + minimapZoom, anIntArray1052, l2, 10, 45, 146, j);
    			compass.method352(33, viewRotation, anIntArray1057, 256,
    					anIntArray968, 25, 8, 8, 33, 25);
    			for (int j5 = 0; j5 < anInt1071; j5++) {
    				int k = (anIntArray1072[j5] * 4 + 2) - myPlayer.x / 32;
    				int i3 = (anIntArray1073[j5] * 4 + 2) - myPlayer.y / 32;
    				markMinimap(aClass30_Sub2_Sub1_Sub1Array1140[j5], k, i3);
    			}
    			for (int k5 = 0; k5 < 104; k5++) {
    				for (int l5 = 0; l5 < 104; l5++) {
    					NodeList class19 = groundArray[plane][k5][l5];
    					if (class19 != null) {
    						int l = (k5 * 4 + 2) - myPlayer.x / 32;
    						int j3 = (l5 * 4 + 2) - myPlayer.y / 32;
    						markMinimap(mapDotItem, l, j3);
    					}
    				}
    			}
    
    			for (int i6 = 0; i6 < npcCount; i6++) {
    				NPC npc = npcArray[npcIndices[i6]];
    				if (npc != null && npc.isVisible()) {
    					EntityDef entityDef = npc.desc;
    					if (entityDef.childrenIDs != null)
    						entityDef = entityDef.method161();
    					if (entityDef != null && entityDef.aBoolean87
    							&& entityDef.aBoolean84) {
    						int i1 = npc.x / 32 - myPlayer.x / 32;
    						int k3 = npc.y / 32 - myPlayer.y / 32;
    						markMinimap(mapDotNPC, i1, k3);
    					}
    				}
    			}
    
    			for (int j6 = 0; j6 < playerCount; j6++) {
    				Player player = playerArray[playerIndices[j6]];
    				if (player != null && player.isVisible()) {
    					int j1 = player.x / 32 - myPlayer.x / 32;
    					int l3 = player.y / 32 - myPlayer.y / 32;
    					boolean flag1 = false;
    					long l6 = TextClass.longForName(player.name);
    					for (int k6 = 0; k6 < friendsCount; k6++) {
    						if (l6 != friendsListAsLongs[k6]
    								|| friendsNodeIDs[k6] == 0)
    							continue;
    						flag1 = true;
    						break;
    					}
    					@SuppressWarnings("unused")
    					boolean flag2 = false;
    					if (myPlayer.team != 0 && player.team != 0
    							&& myPlayer.team == player.team)
    						flag2 = true;
    					if (flag1)
    						markMinimap(mapDotFriend, j1, l3);
    					else
    						markMinimap(mapDotPlayer, j1, l3);
    				}
    			}
    
    			if (anInt855 != 0 && loopCycle % 20 < 10) {
    				if (anInt855 == 1 && anInt1222 >= 0
    						&& anInt1222 < npcArray.length) {
    					NPC class30_sub2_sub4_sub1_sub1_1 = npcArray[anInt1222];
    					if (class30_sub2_sub4_sub1_sub1_1 != null) {
    						int k1 = class30_sub2_sub4_sub1_sub1_1.x / 32
    								- myPlayer.x / 32;
    						int i4 = class30_sub2_sub4_sub1_sub1_1.y / 32
    								- myPlayer.y / 32;
    						method81(mapMarker, i4, k1);
    					}
    				}
    				if (anInt855 == 2) {
    					int l1 = ((anInt934 - baseX) * 4 + 2) - myPlayer.x / 32;
    					int j4 = ((anInt935 - baseY) * 4 + 2) - myPlayer.y / 32;
    					method81(mapMarker, j4, l1);
    				}
    				if (anInt855 == 10 && anInt933 >= 0
    						&& anInt933 < playerArray.length) {
    					Player class30_sub2_sub4_sub1_sub2_1 = playerArray[anInt933];
    					if (class30_sub2_sub4_sub1_sub2_1 != null) {
    						int i2 = class30_sub2_sub4_sub1_sub2_1.x / 32
    								- myPlayer.x / 32;
    						int k4 = class30_sub2_sub4_sub1_sub2_1.y / 32
    								- myPlayer.y / 32;
    						method81(mapMarker, k4, i2);
    					}
    				}
    			}
    			if (destX != 0) {
    				int j2 = (destX * 4 + 2) - myPlayer.x / 32;
    				int l4 = (destY * 4 + 2) - myPlayer.y / 32;
    				markMinimap(mapFlag, j2, l4);
    			}
    			DrawingArea.drawPixels(3, 78 + 5, 97 + 20, 0xffffff, 3);
    			mapArea.drawSprite(0, 0);
    			drawHP();
    			drawWorldMapButton();
    			Increase.drawSprite(230, 135);
    			Decrease.drawSprite(230, 150);
    			drawPrayer();
    			drawRunOrb();
    			aRSImageProducer_1165.initDrawingArea();
    		}
    	}
    note omg arham been years
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Dec 2010
    Age
    25
    Posts
    139
    Thanks given
    8
    Thanks received
    7
    Rep Power
    13
    bump
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. new magic icons error
    By Fearless in forum Help
    Replies: 4
    Last Post: 11-15-2010, 03:16 AM
  2. Object/Map loading error
    By .Sparrow in forum Help
    Replies: 8
    Last Post: 08-07-2010, 07:29 AM
  3. Gui causing map load error?
    By Core in forum Help
    Replies: 6
    Last Post: 11-01-2009, 10:52 PM
  4. [RENAMED]server-sided map icons
    By .fabian in forum Tutorials
    Replies: 11
    Last Post: 03-07-2009, 01:33 AM
  5. Addon to server side map icon
    By .fabian in forum Tutorials
    Replies: 3
    Last Post: 03-01-2009, 10:30 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •