Thread: [PI] Change Sprites without cache editing [Example Login Screen Sprites]

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 [PI] Change Sprites without cache editing [Example Login Screen Sprites] 
    Registered Member FirePked's Avatar
    Join Date
    Jul 2010
    Posts
    159
    Thanks given
    17
    Thanks received
    24
    Rep Power
    2
    If you can't edit your cache with Tom's Cache editor but need fast new Login Sprite[as an Example] try this:

    client.java

    search for
    Code:
     void loadTitleScreen
    and replace
    Code:
    titleBox = new Background(titleStreamLoader, "titlebox", 0);
    with
    Code:
    titleBox = new Sprite("Login/TITLEBOX");
    and

    Code:
    titleBox = new Background(titleStreamLoader, "titlebox", 0);
    with
    Code:
    titleButton = new Sprite("Login/TITLEBUTTON");
    Then search for all
    Code:
    titleBox.drawBackground
    and replace all with
    Code:
    titleBox.drawSprite
    and

    Code:
    titleButton.drawBackground
    and also replace all with
    Code:
    titleButton.drawSprite
    finally search for
    Code:
    	private Background titleBox;
    	public Sprite titleBox1;
    	private Background titleButton;
    and replace them with
    Code:
    	private Sprite titleBox;
    	public Sprite titleBox1;
    	private Sprite titleButton;
    Hope this helped it's not the best way but yeah.
    Don't forget to add your new sprites to cache/Sprite/Login/
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. Thankful user:


  3. #2  
    Registered Member rockarocka's Avatar
    Join Date
    May 2010
    Posts
    972
    Thanks given
    27
    Thanks received
    7
    Rep Power
    20
    thanks
    Reply With Quote  
     

  4. #3  
    Banned

    Join Date
    Jul 2008
    Posts
    3,532
    Thanks given
    188
    Thanks received
    696
    Rep Power
    0
    this is more of a snippet + common sense but gj
    Reply With Quote  
     

  5. #4  
    Registered Member

    Join Date
    Sep 2009
    Age
    24
    Posts
    2,769
    Thanks given
    367
    Thanks received
    187
    Rep Power
    458
    pretty common but gj.
    Reply With Quote  
     

  6. #5  
    Banned

    Join Date
    Oct 2010
    Posts
    717
    Thanks given
    82
    Thanks received
    131
    Rep Power
    0
    Why the fuck would you want to change images load from the media archive into loading external sprites.
    Reply With Quote  
     

  7. #6  
    Registered Member FirePked's Avatar
    Join Date
    Jul 2010
    Posts
    159
    Thanks given
    17
    Thanks received
    24
    Rep Power
    2
    Quote Originally Posted by Arno View Post
    Why the fuck would you want to change images load from the media archive into loading external sprites.
    Quote Originally Posted by FirePked View Post
    If you can't edit your cache with Tom's Cache editor but need fast new Login Sprite[as an Example] try this:


    BTW you like my Cat? :'D
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  8. #7  
    Server Developer

    Titanium's Avatar
    Join Date
    Oct 2011
    Posts
    2,701
    Thanks given
    1,221
    Thanks received
    674
    Rep Power
    2397
    going to try it out later.


    Inactive from RSPS. Times have changed.
    Reply With Quote  
     

  9. #8  
    true

    DerekH's Avatar
    Join Date
    Dec 2011
    Age
    16
    Posts
    1,186
    Thanks given
    554
    Thanks received
    259
    Rep Power
    125
    This really doesn't even make sence because if you really wanted to edit it you still have to update the cache for everyone else. But thanks for this. GJ.
    Reply With Quote  
     

  10. #9  
    Donator
    Enigma's Avatar
    Join Date
    Sep 2010
    Posts
    116
    Thanks given
    0
    Thanks received
    5
    Rep Power
    1
    Quote Originally Posted by derekh View Post
    This really doesn't even make sense because if you really wanted to edit it you still have to update the cache for everyone else, but thanks for this.
    Good job.
    The point is not to eliminate the need for players to update their cache.
    The point is to allow for the changing of the title box without the need to edit the image archives in one's cache.
    Which is incredibly useful to me, since my cache becomes corrupted upon trying to change certain image archives.
    Reply With Quote  
     

  11. #10  
    Registered Member Mayday Parade's Avatar
    Join Date
    Apr 2009
    Age
    24
    Posts
    495
    Thanks given
    20
    Thanks received
    17
    Rep Power
    8
    Quote Originally Posted by Badger View Post
    this is more of a snippet + common sense but gj
    This.

    I don't see this as long as a tutorial. Also, the client is a renamed client. There isn't a client that is PI or Project Insanity. (Yes, it may have come from a PI server source download, but it is just a Renamed Client with a modified cache)

    OT: This looks alright. I prefer things loading from my cache however.

    Spoiler for LoL:
    Quote Originally Posted by Imbued View Post
    Quote Originally Posted by pasta186 View Post
    That tutorial doesnt walk.
    That's because it got no legs..
    Best report I've sent? "Mass spam? Also in wrong sexual"
    LOL
    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. How to add sprites to login screen?
    By DAYUM in forum Help
    Replies: 6
    Last Post: 12-24-2011, 08:30 PM
  2. Replies: 0
    Last Post: 05-15-2011, 04:44 PM
  3. Replies: 2
    Last Post: 05-15-2011, 03:05 AM
  4. 317 client in a 592 style (Editing sprites)
    By infallible in forum Show-off
    Replies: 23
    Last Post: 03-18-2010, 02:36 AM
  5. Editing Sprites in your Cache...
    By Dragroxas in forum Help
    Replies: 7
    Last Post: 11-25-2009, 06:01 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
  •