Thread: Client Game Frame

Results 1 to 6 of 6
  1. #1 Client Game Frame 
    Member

    Join Date
    Dec 2007
    Posts
    1,094
    Thanks given
    8
    Thanks received
    8
    Rep Power
    0
    I'm on a 317 deob

    I'm having a bit of trouble getting my game frame to load, I was learning off of momo's tutorial, but It's still not loading (and yes it is the correct way to load sprites just in a class file)

    So do I have to disable something to make my custom frames show up or something?

    Or could someone post a tut on how to add custom sprites (non-renamed) so I can look over it and see if there is anything different

    rep++ if helped.
     

  2. #2  
    Derp.
    BenjaR's Avatar
    Join Date
    May 2008
    Age
    26
    Posts
    2,086
    Thanks given
    167
    Thanks received
    125
    Rep Power
    915
    I think I had the same problem as you (deob). Mine works fine now though, I just use a constructor e.g.
    Code:
    aClass30_Sub2_Sub1_Sub1_1196 = new Class30_Sub2_Sub1_Sub1("./sprites/474/frame/invback 0.PNG");
    Here's the Class30_Sub2_Sub1_Sub1 constructor:
    Code:
        public Class30_Sub2_Sub1_Sub1(String s)
        {
            ImageIcon imageicon = new ImageIcon(s);
            imageicon.getIconHeight();
            imageicon.getIconWidth();
            try
            {
                Image image = Toolkit.getDefaultToolkit().createImage(FileOperations.ReadFile(s));
                anInt1440 = imageicon.getIconWidth();
                anInt1441 = imageicon.getIconHeight();
                anInt1444 = anInt1440;
                anInt1445 = anInt1441;
                anInt1442 = 0;
                anInt1443 = 0;
                anIntArray1439 = new int[anInt1440 * anInt1441];
                PixelGrabber pixelgrabber = new PixelGrabber(image, 0, 0, anInt1440, anInt1441, anIntArray1439, 0, anInt1440);
                pixelgrabber.grabPixels();
            }
            catch(Exception exception)
            {
                exception.printStackTrace();
            }
        }
     

  3. #3  
    Member

    Join Date
    Dec 2007
    Posts
    1,094
    Thanks given
    8
    Thanks received
    8
    Rep Power
    0
    Alright, I'm at school right now so I'll be sure to look at it once I get home, thanks.
     

  4. #4  
    Registered Member
    Jammy780's Avatar
    Join Date
    May 2008
    Posts
    1,320
    Thanks given
    13
    Thanks received
    47
    Rep Power
    619
    I was also doing this, and it took me ages, there are a few things you have to change. I will tell you how.

    So we are using chatback as an example. So open up client.java and find:
    Code:
    aClass30_Sub2_Sub1_Sub2_1198 = new Class30_Sub2_Sub1_Sub2(class44_2, "chatback", 0);
    And make it this:
    Code:
    aClass30_Sub2_Sub1_Sub1_1198 = new Class30_Sub2_Sub1_Sub1(class44_2, "chatback", 0);
    We changed aClass30_Sub2_Sub1_Sub2_1198 to aClass30_Sub2_Sub1_Sub1_1198.

    Now search for:
    Code:
    Class30_Sub2_Sub1_Sub2_1198
    Notice how we got that code, we took it off the first part of the chatback sprite loader. Now you should come to

    private Class30_Sub2_Sub1_Sub2 aClass30_Sub2_Sub1_Sub2_1198;

    Change it to:

    private Class30_Sub2_Sub1_Sub1 aClass30_Sub2_Sub1_Sub1_1198;

    Notice we changed the end Sub2 to Sub1.

    Now find

    aClass30_Sub2_Sub1_Sub2_1198 = null;

    And change it to

    aClass30_Sub2_Sub1_Sub1_1198 = null;

    Changed the Sub2 to Sub1 again.

    Now find:
    Code:
    aClass30_Sub2_Sub1_Sub2_1198.method361(0, 16083, 0);
    Change it to:
    Code:
    aClass30_Sub2_Sub1_Sub1_1198.method348(0, 16083, 0);
    We changed Sub2 to Sub1 again and we changed method361 to method348.

    Now you must load the sprites in Class30_Sub2_Sub1_Sub1. But i'm sure you already know how to do that.

    Hope this helped you.
     

  5. #5  
    Member

    Join Date
    Dec 2007
    Posts
    1,094
    Thanks given
    8
    Thanks received
    8
    Rep Power
    0
    Thanks! that works rep for both.
     

  6. #6  
    Ex-Administrator

    Join Date
    Jul 2006
    Age
    28
    Posts
    507
    Thanks given
    6
    Thanks received
    17
    Discord
    View profile
    Rep Power
    75
    Problem solved, Locked.
     


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
  •