Thread: 2 stupid errors why r they too big lmao?

Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1 2 stupid errors why r they too big lmao? 
    Registered Member
    T-Sex's Avatar
    Join Date
    Jan 2008
    Posts
    1,824
    Thanks given
    0
    Thanks received
    3
    Rep Power
    130
    Code:
    Animation.java:2651: code too large for try statement
                            } catch (Exception e) {e.printStackTrace();}
                              ^
    Animation.java:8: code too large
            public static void unpackConfig(StreamLoader streamLoader) {
                               ^
    Note: client.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    2 errors
    Press any key to continue . . .
    Reply With Quote  
     

  2. #2  
    Registered Member
    T-Sex's Avatar
    Join Date
    Jan 2008
    Posts
    1,824
    Thanks given
    0
    Thanks received
    3
    Rep Power
    130
    is there a way i can make them bigger
    Reply With Quote  
     

  3. #3  
    Donator

    Arithium's Avatar
    Join Date
    May 2010
    Age
    31
    Posts
    4,721
    Thanks given
    199
    Thanks received
    1,256
    Rep Power
    1114
    make a sub animation called AnimationSub1.java and make an unpacker in animation.java and change all private to public.

    Add the stuff in red to animation.java
    Code:
    public static void unpackConfig(StreamLoader streamLoader) {
    		for(int j = 0; j < FrameStart.length; j++)
    			FrameStart[j] = 0;
    		Stream stream = new Stream(streamLoader.getDataForName("seq.dat"));
    		int length = stream.readUnsignedWord() + 3299;
    		if(anims == null)
    			anims = new Animation[length];
    		for(int j = 0; j < length; j++) {
    			if(anims[j] == null)
    				anims[j] = new Animation();
    			if(j < 3997) {
    				anims[j].readValues(stream);
    			} else {
    				setAnimBase(j);
    				 Animation_Sub1.unpackConfig_Sub1(j);
    And in Animation_Sub1.java put this at the top
    Code:
    public final class Animation_Sub1  extends Animation {
    
            public static void unpackConfig_Sub1(int j) {
    Be sure to put 2 } at the end after all ur stuff

    Example
    Code:
    public final class Animation_Sub1  extends Animation {
    
            public static void unpackConfig_Sub1(int j) {
    
        // Skill capes begin
    if(j == 4960){	//Attack cape
    int file = 1293;
    if(FrameStart[file] < 1)
    Class36.methodCustomAnimations(false, file);
    int[] frames = {0,11,22,33,39,40,41,42,43,1,2,3,4,5,6,7,8,9,10,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,34,35,36,37,38,0};
    int[] delays = {4,4,4,4,4,4,4,3,3,4,4,4,4,3,3,4,4,4,4,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,4,4,4,4,3,3,3,4,5,5,0};
    anims[j].anInt352 = frames.length-1;
    anims[j].anIntArray353 = new int[frames.length-1];
    anims[j].anIntArray354 = new int[frames.length-1];
    anims[j].anIntArray355 = new int[frames.length-1];
    for(int i2 = 0; i2 < frames.length-1; i2++){
    anims[j].anIntArray353[i2] = frames[i2]+FrameStart[file];
    anims[j].anIntArray354[i2] = -1;
    anims[j].anIntArray355[i2] = delays[i2];
    }
    }
    if(j == 4959){	//Attack cape (EMOTE)
    int file = 1290;
    if(FrameStart[file] < 1)
    Class36.methodCustomAnimations2(false, file);
    int[] frames = {49,60,71,82,88,89,90,91,92,50,51,52,53,54,55,56,57,58,59,61,62,63,64,65,66,67,68,69,70,72,73,74,75,76,77,78,79,80,81,83,84,85,86,87,0};
    int[] delays = {4,4,4,4,4,4,4,3,3,4,4,4,4,3,3,4,4,4,4,3,3,4,4,4,4,4,4,3,3,3,3,3,3,3,4,4,4,4,3,3,3,4,5,5,0};
    anims[j].anInt352 = frames.length-1;
    anims[j].anIntArray353 = new int[frames.length-1];
    anims[j].anIntArray354 = new int[frames.length-1];
    anims[j].anIntArray355 = new int[frames.length-1];
    for(int i2 = 0; i2 < frames.length-1; i2++){
    anims[j].anIntArray353[i2] = frames[i2]+FrameStart[file];
    anims[j].anIntArray354[i2] = -1;
    anims[j].anIntArray355[i2] = delays[i2];
    }
    	anims[j].anInt359 = 10;
    	anims[j].anInt360 = 0+512;
    	anims[j].anInt361 = 0+512;
    	anims[j].anInt363 = 1;
    	anims[j].anInt364 = 1;
    }
    
    if(j == 4982){	//Strength cape
    int file = 1311;
    if(FrameStart[file] < 1)
    Class36.methodCustomAnimations(false, file);
    int[] frames = {0,11,22,33,44,55,66,77,88,1,2,3,4,5,6,7,8,9,10,12,13,14,15,16,17,18,19,20,21,23,24,25,26,27,28,29,30,31,32,34,35,36,37,38,39,40,41,42,43,45,46,47,48,49,50,51,52,53,54,56,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,73,74,73,74,73,74,73,74,75,76,78,79,80,81,82,83,84,85,86,87,89,0};
    int[] delays = {4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,10,4,4,4,10,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,10,4,4,4,10,4,4,4,4,4,19,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,0};
    anims[j].anInt352 = frames.length-1;
    anims[j].anIntArray353 = new int[frames.length-1];
    anims[j].anIntArray354 = new int[frames.length-1];
    anims[j].anIntArray355 = new int[frames.length-1];
    for(int i2 = 0; i2 < frames.length-1; i2++){
    anims[j].anIntArray353[i2] = frames[i2]+FrameStart[file];
    anims[j].anIntArray354[i2] = -1;
    anims[j].anIntArray355[i2] = delays[i2];
    }
    }
    }
    }
    Reply With Quote  
     

  4. #4  
    Registered Member
    T-Sex's Avatar
    Join Date
    Jan 2008
    Posts
    1,824
    Thanks given
    0
    Thanks received
    3
    Rep Power
    130
    Code:
    Animation_sub1.java:1: class Animation_Sub1 is public, should be declared in a f
    ile named Animation_Sub1.java
    public final class Animation_Sub1  extends Animation {
                 ^
    Animation_sub1.java:1: cannot inherit from final Animation
    public final class Animation_Sub1  extends Animation {
                                               ^
    Note: client.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    2 errors
    Press any key to continue . . .
    what do you mean?

    make things from pub to priv?
    Reply With Quote  
     

  5. #5  
    Registered Member
    MetalGear's Avatar
    Join Date
    Sep 2008
    Posts
    779
    Thanks given
    9
    Thanks received
    6
    Rep Power
    82
    Do you ever read tut's on the java website there is a tut on the website that explains how to do this..

    So do animeking tut then in animation class find this

    private Animation() {
    change

    Private
    to

    public
    New transport?
    Reply With Quote  
     

  6. #6  
    Registered Member
    T-Sex's Avatar
    Join Date
    Jan 2008
    Posts
    1,824
    Thanks given
    0
    Thanks received
    3
    Rep Power
    130
    Code:
    Animation_sub1.java:1: class Animation_Sub1 is public, should be declared in a f
    ile named Animation_Sub1.java
    public final class Animation_Sub1  extends Animation {
                 ^
    Animation_sub1.java:1: cannot inherit from final Animation
    public final class Animation_Sub1  extends Animation {
                                               ^
    Note: client.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    2 errors
    Press any key to continue . . .
    i did what u said and i still get them
    Reply With Quote  
     

  7. #7  
    Registered Member
    MetalGear's Avatar
    Join Date
    Sep 2008
    Posts
    779
    Thanks given
    9
    Thanks received
    6
    Rep Power
    82
    you've done summet wrong have you got teamviewer.
    New transport?
    Reply With Quote  
     

  8. #8  
    Registered Member
    T-Sex's Avatar
    Join Date
    Jan 2008
    Posts
    1,824
    Thanks given
    0
    Thanks received
    3
    Rep Power
    130
    yeah want me add u on msn?
    Reply With Quote  
     

  9. #9  
    Registered Member
    MetalGear's Avatar
    Join Date
    Sep 2008
    Posts
    779
    Thanks given
    9
    Thanks received
    6
    Rep Power
    82
    New transport?
    Reply With Quote  
     

  10. #10  
    Registered Member
    T-Sex's Avatar
    Join Date
    Jan 2008
    Posts
    1,824
    Thanks given
    0
    Thanks received
    3
    Rep Power
    130
    added
    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. Stupid annoying t2 errors.
    By Kenneh in forum Help
    Replies: 2
    Last Post: 04-13-2010, 12:18 AM
  2. Stupid php errors in custom templates
    By Patawic in forum Application Development
    Replies: 2
    Last Post: 03-27-2010, 07:48 AM
  3. stupid errors
    By Gluon in forum Help
    Replies: 4
    Last Post: 02-16-2009, 10:06 PM
  4. stupid errors
    By Gluon in forum Help
    Replies: 3
    Last Post: 02-15-2009, 03:43 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
  •