Thread: Problem with client loading.

Results 1 to 10 of 10
  1. #1 Problem with client loading. 
    Registered Member
    Join Date
    Dec 2015
    Posts
    5
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    I was attempting to re-open a private server I used to host for friends quite some time ago and when I went to open the client I got both these errors to which I don't even know what they mean. I know the second image doesn't really mean anything. I was wondering if anyone here know what's going on and what I can do to fix it. If you are wanting to know what version the server is, I do not remember. I tried to follow the exception that is had in each of the sections of the code and I don't see the problem.






    Code:
    stream.currentOffset = abyte0.length - 12;
    - This is from the Class36.java line 110
    Code:
    Class36.methodCustomAnimations2(false, file);
    - Animation.java line 1628
    Code:
    skullIcons[j45] = new Sprite(streamLoader_2, "headicons_pk", j45 );
    - Client.Java line 7833
    Code:
    startUp();
    -RSApplet.java line 33
    Code:
    super.run();
    - Client.java line 4936
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jun 2012
    Posts
    126
    Thanks given
    1
    Thanks received
    10
    Rep Power
    10
    I actually struggle with those errors alot. I got this from google hope it helps u because i cant explain it otherwise

    ArrayIndexOutOfBounds" means you are trying to access an element in your array that dose not exist.

    A NullPointerException means that one of the variables you are passing is null, but the code tries to use it like it is not
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2015
    Posts
    5
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Venomic View Post
    I actually struggle with those errors alot. I got this from google hope it helps u because i cant explain it otherwise

    ArrayIndexOutOfBounds" means you are trying to access an element in your array that dose not exist.

    A NullPointerException means that one of the variables you are passing is null, but the code tries to use it like it is not
    So how would I know which element I am attempting to access?
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Dec 2015
    Posts
    5
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    anyone else know how I can fix this?
    Reply With Quote  
     

  5. #5  
    Registered Member
    The Reverse's Avatar
    Join Date
    Nov 2014
    Posts
    945
    Thanks given
    168
    Thanks received
    289
    Rep Power
    520
    Post your custom animation method. Where its calling the error.

    Darkness cannot drive out darkness; only light can do that. Hate cannot drive out hate; only love can do that.
    Martin Luther King, Jr.

    Reply With Quote  
     

  6. #6  
    EpicPks Is Back!

    Join Date
    Jun 2012
    Posts
    480
    Thanks given
    12
    Thanks received
    16
    Rep Power
    29
    Are you using the correct cache?
    Possibly missing the skulls
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Nov 2015
    Posts
    409
    Thanks given
    122
    Thanks received
    41
    Rep Power
    17
    Quote Originally Posted by Encrypted_ View Post
    Post your custom animation method. Where its calling the error.
    Agreed can't just fix it without knowing all the details =o
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Dec 2015
    Posts
    5
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by Encrypted_ View Post
    Post your custom animation method. Where its calling the error.
    Code:
    public static int offset = 33600;
    	public static void methodCustomAnimations(boolean flag, int file) {
    		byte abyte0[];
    		abyte0 = FileOperations.ReadFile(signlink.findcachedir()+ "Data/Animation/anim/"+file+".dat");
    		Animation.FrameStart[file] = offset;
    		Stream stream = new Stream(abyte0);
    		stream.currentOffset = abyte0.length - 8;
    		int i = stream.readUnsignedWord();
    		int j = stream.readUnsignedWord();
    		int k = stream.readUnsignedWord();
    		int l = stream.readUnsignedWord();
    		int i1 = 0;
    		Stream stream_1 = new Stream(abyte0);
    		stream_1.currentOffset = i1;
    		i1 += i + 2;
    		Stream stream_2 = new Stream(abyte0);
    		stream_2.currentOffset = i1;
    		i1 += j;
    		Stream stream_3 = new Stream(abyte0);
    		stream_3.currentOffset = i1;
    		i1 += k;
    		Stream stream_4 = new Stream(abyte0);
    		stream_4.currentOffset = i1;
    		i1 += l;
    		Stream stream_5 = new Stream(abyte0);
    		stream_5.currentOffset = i1;
    		if(flag) {
    			for(int j1 = 1; j1 > 0; j1++);
    		}
    		Class18 class18 = new Class18(stream_5);
    		int k1 = stream_1.readUnsignedWord();
    		int ai[] = new int[500];
    		int ai1[] = new int[500];
    		int ai2[] = new int[500];
    		int ai3[] = new int[500];
    		for(int l1 = 0; l1 < k1; l1++) {
    			int i2 = stream_1.readUnsignedWord();
    			i2 = offset;
    			offset++;
    			Class36 class36 = aClass36Array635[i2] = new Class36();
    			class36.anInt636 = stream_4.readUnsignedByte();
    			class36.aClass18_637 = class18;
    			int j2 = stream_1.readUnsignedByte();
    			int k2 = -1;
    			int l2 = 0;
    			for(int i3 = 0; i3 < j2; i3++) {
    				int j3 = stream_2.readUnsignedByte();
    				if(j3 > 0) {
    					if(class18.anIntArray342[i3] != 0) {
    						for(int l3 = i3 - 1; l3 > k2; l3--) {
    							if(class18.anIntArray342[l3] != 0)
    								continue;
    							ai[l2] = l3;
    							ai1[l2] = 0;
    							ai2[l2] = 0;
    							ai3[l2] = 0;
    							l2++;
    							break;
    						}
    					}
    					ai[l2] = i3;
    					char c = '\0';
    					if(class18.anIntArray342[i3] == 3)
    						c = '\200';
    					if((j3 & 1) != 0)
    						ai1[l2] = stream_3.method421();
    					else
    						ai1[l2] = c;
    					if((j3 & 2) != 0)
    						ai2[l2] = stream_3.method421();
    					else
    						ai2[l2] = c;
    					if((j3 & 4) != 0)
    						ai3[l2] = stream_3.method421();
    					else
    						ai3[l2] = c;
    					k2 = i3;
    					l2++;
    					if(class18.anIntArray342[i3] == 5)
    						aBooleanArray643[i2] = false;
    				}
    			}
    			class36.anInt638 = l2;
    			class36.anIntArray639 = new int[l2];
    			class36.anIntArray640 = new int[l2];
    			class36.anIntArray641 = new int[l2];
    			class36.anIntArray642 = new int[l2];
    			for(int k3 = 0; k3 < l2; k3++) {
    				class36.anIntArray639[k3] = ai[k3];
    				class36.anIntArray640[k3] = ai1[k3];
    				class36.anIntArray641[k3] = ai2[k3];
    				class36.anIntArray642[k3] = ai3[k3];
    			}
    		}
    	}	
    	public static void methodCustomAnimations2(boolean flag, int file)
        {
    	byte abyte0[];
    	abyte0 = FileOperations.ReadFile(signlink.findcachedir()+ "Data/Animation/anim2/"+file+".dat");
    	Animation.FrameStart[file] = offset;
            System.out.println("New File: "+file+" loaded!");
            Stream stream = new Stream(abyte0);
            stream.currentOffset = abyte0.length - 12;
            int i = stream.readDWord();
            int j = stream.readDWord();
            int k = stream.readDWord();
            int i1 = 0;
            Stream stream_1 = new Stream(abyte0);
            stream_1.currentOffset = i1;
            i1 += i + 4;
            Stream stream_2 = new Stream(abyte0);
            stream_2.currentOffset = i1;
            i1 += j;
            Stream stream_3 = new Stream(abyte0);
            stream_3.currentOffset = i1;
            i1 += k-16;
            Stream stream_4 = new Stream(abyte0);
            stream_4.currentOffset = i1;
    
            Class18 class18 = new Class18(stream_4, 1);
            int k1 = stream_1.readDWord();
            int ai[] = new int[500];
            int ai1[] = new int[500];
            int ai2[] = new int[500];
            int ai3[] = new int[500];
            for(int l1 = 0; l1 < k1; l1++)
            {
                int i2 = stream_1.readDWord();// total junk but if removed load up error 86
                 i2 = offset;
                  offset++;
                Class36 class36 = aClass36Array635[i2] = new Class36();
                class36.aClass18_637 = class18;
                int j2 = stream_1.readUnsignedByte();
                int k2 = -1;
                int l2 = 0;
                for(int i3 = 0; i3 < j2; i3++)
                {
                    int j3 = stream_2.readUnsignedByte();
                    if(j3 > 0)
                    {
                        if(class18.anIntArray342[i3] != 0)
                        {
                            for(int l3 = i3 - 1; l3 > k2; l3--)
                            {
                                if(class18.anIntArray342[l3] != 0)
                                    continue;
                                ai[l2] = l3;
                                ai1[l2] = 0;
                                ai2[l2] = 0;
                                ai3[l2] = 0;
                                l2++;
                                break;
                            }
    
                        }
                        ai[l2] = i3;
                        char c = '\0';
                        if(class18.anIntArray342[i3] == 3)
                            c = '\200';
                        if((j3 & 1) != 0)
                            ai1[l2] = stream_3.method421();
                        else
                            ai1[l2] = c;
                        if((j3 & 2) != 0)
                            ai2[l2] = stream_3.method421();
                        else
                            ai2[l2] = c;
                        if((j3 & 4) != 0)
                            ai3[l2] = stream_3.method421();
                        else
                            ai3[l2] = c;
                        k2 = i3;
                        l2++;
                        if(class18.anIntArray342[i3] == 5)
                            aBooleanArray643[i2] = false;
                    }
                }
    
                class36.anInt638 = l2;
                class36.anIntArray639 = new int[l2];
                class36.anIntArray640 = new int[l2];
                class36.anIntArray641 = new int[l2];
                class36.anIntArray642 = new int[l2];
                for(int k3 = 0; k3 < l2; k3++)
                {
                    class36.anIntArray639[k3] = ai[k3];
                    class36.anIntArray640[k3] = ai1[k3];
                    class36.anIntArray641[k3] = ai2[k3];
                   class36.anIntArray642[k3] = ai3[k3];
                }
    
            }
    
        }
    This code above is the code being called in the animations.class (Class36.methodCustomAnimations) which is in Class36.class called methodCustomAnimations. This includes the lines (110, 14, 56) for the error on animations.class (Class36.java)

    bump for the extra help.
    Last edited by mysticentity; 12-17-2015 at 09:21 PM. Reason: Bad Code tag
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Dec 2015
    Posts
    5
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    bump
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Dec 2015
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    that error message on the client. I only get that if i use the wrong cache.
    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: 4
    Last Post: 09-05-2009, 07:12 PM
  2. Having problems with client![Pics
    By martix in forum Help
    Replies: 0
    Last Post: 09-05-2009, 06:03 PM
  3. [525] Problem with client
    By amfibija in forum Help
    Replies: 5
    Last Post: 05-12-2009, 01:53 AM
  4. Problem with client
    By Dr. Douschins in forum Help
    Replies: 2
    Last Post: 01-24-2009, 05:22 AM
  5. Problem with client,pray
    By kojomba in forum Help
    Replies: 4
    Last Post: 10-11-2008, 10:25 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
  •