Thread: Extending Graphics list

Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1 Extending Graphics list 
    Ex RSPS-cleaner

    SWAT's Avatar
    Join Date
    Aug 2007
    Age
    30
    Posts
    5,484
    Thanks given
    403
    Thanks received
    599
    Rep Power
    3609
    (its the same as exending emote list bit for graphics)
    Purpose: allowing you to use 1300 Graphics
    Difficulty: 0
    Tested On: 317 Deob

    lets start
    Step 1:
    in class23
    you will see.
    Code:
            Class30_Sub2_Sub2 class30_sub2_sub2 = new Class30_Sub2_Sub2(class44.method571("spotanim.dat", null), 891);
            if(i != 0)
                aBoolean401 = !aBoolean401;
            anInt402 = class30_sub2_sub2.method410();
            if(aClass23Array403 == null)
                aClass23Array403 = new Class23[anInt402];
    as you see here it loads the int from the spotanim.dat
    max graphics is 666. we want about 1300 so just do + 600
    so replace with
    Code:
            Class30_Sub2_Sub2 class30_sub2_sub2 = new Class30_Sub2_Sub2(class44.method571("spotanim.dat", null), 891);
            if(i != 0)
                aBoolean401 = !aBoolean401;
            anInt402 = class30_sub2_sub2.method410()+600;
            if(aClass23Array403 == null)
                aClass23Array403 = new Class23[anInt402];
    Im sure your thinking that we are done but we are not because.
    we extended the array but also the loading

    you will see below it
    Code:
                aClass23Array403[j].method265(true, class30_sub2_sub2);
    that loads the emote from the cache but since we changed the array to 1266 it wants to load these but! the cache only goes till 666!
    simple fix
    Code:
    if(j < 666)
                aClass23Array403[j].method265(true, class30_sub2_sub2);
                else 
                setGFXBase(j);
    now i added "setGFXBase(j);" with it, its 100% the same as method265 but instead loading it from the cache it loads from a
    existing Graphics like barrage.

    Code:
    public static void setGFXBase(int j){
                    aClass23Array403[j].anInt405 = aClass23Array403[369].anInt405;
                     aClass23Array403[j].aClass20_407 = aClass23Array403[369].aClass20_407;
                    aClass23Array403[j].anInt406 = aClass23Array403[369].anInt406;
                    aClass23Array403[j].anInt410 = aClass23Array403[369].anInt410;
                    aClass23Array403[j].anInt411 = aClass23Array403[369].anInt411;
                    aClass23Array403[j].anInt412 = aClass23Array403[369].anInt412;
                    aClass23Array403[j].anInt413 = aClass23Array403[369].anInt413;
                    aClass23Array403[j].anInt414 = aClass23Array403[369].anInt414;
                    aClass23Array403[j].anIntArray408 = aClass23Array403[369].anIntArray408;
                    aClass23Array403[j].anIntArray409 = aClass23Array403[369].anIntArray409;
    }
    and now we are done all graphics above 666 are graphics 369. unless you change it ofcource have fun adding new graphics

    post errors(you shouldn't get any but still)


    EDIT:
    Spoiler for if you still have problems here is the full file:
    Code:
    import java.io.PrintStream;
    import sign.signlink;
    
    public class Class23
    {
    public static void setGFXBase(int j){
                    aClass23Array403[j].anInt405 = aClass23Array403[369].anInt405;
                     aClass23Array403[j].aClass20_407 = aClass23Array403[369].aClass20_407;
                    aClass23Array403[j].anInt406 = aClass23Array403[369].anInt406;
                    aClass23Array403[j].anInt410 = aClass23Array403[369].anInt410;
                    aClass23Array403[j].anInt411 = aClass23Array403[369].anInt411;
                    aClass23Array403[j].anInt412 = aClass23Array403[369].anInt412;
                    aClass23Array403[j].anInt413 = aClass23Array403[369].anInt413;
                    aClass23Array403[j].anInt414 = aClass23Array403[369].anInt414;
                    aClass23Array403[j].anIntArray408 = aClass23Array403[369].anIntArray408;
                    aClass23Array403[j].anIntArray409 = aClass23Array403[369].anIntArray409;
    }
        public static void method264(int i, Class44 class44)
        {
            Class30_Sub2_Sub2 class30_sub2_sub2 = new Class30_Sub2_Sub2(class44.method571("spotanim.dat", null), 891);
            if(i != 0)
                aBoolean401 = !aBoolean401;
            anInt402 = class30_sub2_sub2.method410()+600;
            if(aClass23Array403 == null)
                aClass23Array403 = new Class23[anInt402];
            for(int j = 0; j < anInt402; j++)
            {
                if(aClass23Array403[j] == null)
                    aClass23Array403[j] = new Class23();
                aClass23Array403[j].anInt404 = j;
    	if(j < 666)
                aClass23Array403[j].method265(true, class30_sub2_sub2);
    	else 
                setGFXBase(j);
            }
    
        }
    
        public void method265(boolean flag, Class30_Sub2_Sub2 class30_sub2_sub2)
        {
            if(!flag)
                throw new NullPointerException();
            do
            {
                int i = class30_sub2_sub2.method408();
                if(i == 0)
                    return;
                if(i == 1)
                    anInt405 = class30_sub2_sub2.method410();
                else
                if(i == 2)
                {
                    anInt406 = class30_sub2_sub2.method410();
                    if(Class20.aClass20Array351 != null)
                        aClass20_407 = Class20.aClass20Array351[anInt406];
                } else
                if(i == 4)
                    anInt410 = class30_sub2_sub2.method410();
                else
                if(i == 5)
                    anInt411 = class30_sub2_sub2.method410();
                else
                if(i == 6)
                    anInt412 = class30_sub2_sub2.method410();
                else
                if(i == 7)
                    anInt413 = class30_sub2_sub2.method408();
                else
                if(i == 8)
                    anInt414 = class30_sub2_sub2.method408();
                else
                if(i >= 40 && i < 50)
                    anIntArray408[i - 40] = class30_sub2_sub2.method410();
                else
                if(i >= 50 && i < 60)
                    anIntArray409[i - 50] = class30_sub2_sub2.method410();
                else
                    System.out.println("Error unrecognised spotanim config code: " + i);
            } while(true);
        }
    
        public Class30_Sub2_Sub4_Sub6 method266()
        {
            Class30_Sub2_Sub4_Sub6 class30_sub2_sub4_sub6 = (Class30_Sub2_Sub4_Sub6)aClass12_415.method222(anInt404);
            if(class30_sub2_sub4_sub6 != null)
                return class30_sub2_sub4_sub6;
            class30_sub2_sub4_sub6 = Class30_Sub2_Sub4_Sub6.method462(anInt400, anInt405);
            if(class30_sub2_sub4_sub6 == null)
                return null;
            for(int i = 0; i < 6; i++)
                if(anIntArray408[0] != 0)
                    class30_sub2_sub4_sub6.method476(anIntArray408[i], anIntArray409[i]);
    
            aClass12_415.method223(class30_sub2_sub4_sub6, anInt404, (byte)2);
            return class30_sub2_sub4_sub6;
        }
    
        public Class23()
        {
            anInt400 = 9;
            anInt406 = -1;
            anIntArray408 = new int[6];
            anIntArray409 = new int[6];
            anInt410 = 128;
            anInt411 = 128;
        }
    
        private int anInt400;
        private static boolean aBoolean401 = true;
        public static int anInt402;
        public static Class23 aClass23Array403[];
        public int anInt404;
        public int anInt405;
        public int anInt406;
        public Class20 aClass20_407;
        public int anIntArray408[];
        public int anIntArray409[];
        public int anInt410;
        public int anInt411;
        public int anInt412;
        public int anInt413;
        public int anInt414;
        public static Class12 aClass12_415 = new Class12(false, 30);
    }
     

  2. Thankful users:


  3. #2  
    RuneBerithRSPS
    Guest
    oo gj swat
     

  4. Thankful user:


  5. #3  
    Donator

    Mr James's Avatar
    Join Date
    Jan 2009
    Age
    28
    Posts
    493
    Thanks given
    4
    Thanks received
    8
    Rep Power
    372
    Goodjob on this Eric.
    Quote Originally Posted by Nathan View Post
    So if you stabbed somebody with a knife you would say "not my fault, blame the inventors of the knife" ?
     

  6. Thankful user:


  7. #4  
    Registered Member Andrew's Avatar
    Join Date
    Nov 2008
    Posts
    2,890
    Thanks given
    612
    Thanks received
    207
    Rep Power
    551
    i feel retarted but where does the last code go?
     

  8. Thankful user:


  9. #5  
    Donator

    Ecstasy's Avatar
    Join Date
    Sep 2008
    Age
    29
    Posts
    5,031
    Thanks given
    324
    Thanks received
    596
    Rep Power
    843
    Why only three posts?
    Lol gj man.

     

  10. Thankful user:


  11. #6  
    Client Developer

    Pb600's Avatar
    Join Date
    Dec 2008
    Posts
    2,153
    Thanks given
    259
    Thanks received
    472
    Rep Power
    925
    Quote Originally Posted by Ecstasy View Post
    Why only three posts?
    Lol gj man.
    cause the topic name don't call much atention i take a while to found this topic back lol

    awesome swat ty for your new methods them help aloooot
    Attached image
     

  12. Thankful user:


  13. #7  
    Ex RSPS-cleaner

    SWAT's Avatar
    Join Date
    Aug 2007
    Age
    30
    Posts
    5,484
    Thanks given
    403
    Thanks received
    599
    Rep Power
    3609
    there are more into emotes then graphics it seems
     

  14. Thankful user:


  15. #8  
    Community Veteran

    Dexter Morgan's Avatar
    Join Date
    Nov 2008
    Age
    28
    Posts
    4,419
    Thanks given
    1,184
    Thanks received
    757
    Rep Power
    3098
    Quote Originally Posted by SWAT View Post
    there are more into emotes then graphics it seems
    Yo Eric, can you dump me this animation? 7531. Thanks.
     

  16. Thankful user:


  17. #9  
    Ex RSPS-cleaner

    SWAT's Avatar
    Join Date
    Aug 2007
    Age
    30
    Posts
    5,484
    Thanks given
    403
    Thanks received
    599
    Rep Power
    3609
    that isnt a 474 animation
     

  18. Thankful user:


  19. #10  
    Registered Member
    Chachi's Avatar
    Join Date
    Sep 2008
    Posts
    1,536
    Thanks given
    49
    Thanks received
    103
    Rep Power
    602
    Do you have the D bolt spec gfx handy? Or direct me to how I can get the gfx's.
    [/CENTER]
     

  20. Thankful user:


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

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