Thread: [Glitch Fix] Dealing with custom object delay

Results 1 to 7 of 7
  1. #1 [Glitch Fix] Dealing with custom object delay 
    Registered Member

    Join Date
    Jun 2007
    Posts
    117
    Thanks given
    0
    Thanks received
    0
    Rep Power
    87
    This tutorial is only for people who use custom objects and that when ever you log in near them they take around a second to appear(object lag). Everyone else who does not have this problem, do not criticize me for posting a useless tutorial!
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Description: Have you ever noticed how when you add custom objects to your server, sometimes it takes a second for them to appear? Well, the problem is if you build a wall using custom objects, you can place your character next to it, log out and back in and for a split second, you can actually walk through the wall because it takes a second for it to appear. For some reason, on my server, even the globalobject void has "object lag" too. My solution is whenever you log in, you need to make the screen blank, as well as the minimap, so that it gives the game long enough to load the objects.

    Difficulty: 3/10

    Assumed Knowledge: Ability to read.

    Server Base: Pimpscape (should work on any)

    Classes Modified: client.java


    Step 1

    First find the following code
    Code:
    public class client extends Player implements Runnable {

    Step 2

    Under that code add this

    Code:
    public int initTimer = 0;
    public void initTimer(){
    if(initTimer == 0){
    initTimer = -1;
    RemoveAllWindows();
    frame99(0);
    }
    }
    public void pause(int sec){
    frame99(2);
    showInterface(13583);
    initTimer = sec;
    }

    Step 3

    Under public boolean process() add

    Code:
    initTimer();

    Step 4

    Under public void initialize() add

    Code:
    pause(10);//Disables screen and minimap for approx 5 seconds
    Conclusion

    Now, all this does is disables the screen and minimap for around 5 seconds after you log in to give nearby objects to load before the player sees them. Now, they can't walk through custom made walls, etc. Some people may not have this problem with their objects, but some do. You may also want add the pause() void when there is a teleport to somewhere close to custom objects because the same problem will occur. Just add

    Code:
    pause(5);
    when you are being teleported somewhere near custom objects. You will have to experiment some with this so that it fits your needs.

    Credits: 100% me


    (The screen and minimap is "paused" until everything loads)

    © Copyright 2008 - Emerson Stewart
     

  2. #2  
    Banned

    Join Date
    Jul 2007
    Age
    31
    Posts
    1,438
    Thanks given
    43
    Thanks received
    21
    Rep Power
    0
    well the first post and i think this is some nice
     

  3. #3  
    Registered Member
    JakobWolthers's Avatar
    Join Date
    Aug 2007
    Age
    31
    Posts
    616
    Thanks given
    16
    Thanks received
    3
    Rep Power
    84
    nice u done it again Fire
     

  4. #4  
    Registered Member

    Join Date
    Jun 2007
    Posts
    117
    Thanks given
    0
    Thanks received
    0
    Rep Power
    87
    Quote Originally Posted by Nickleo9 View Post
    well the first post and i think this is some nice
    Quote Originally Posted by danewolf View Post
    nice u done it again Fire
    Ty both of you for your support. R++ for you! (sorry danewolf but it say I must spread my r++ with other people, I'll r++ later when it lets me)
     

  5. #5  
    Registered Member
    JakobWolthers's Avatar
    Join Date
    Aug 2007
    Age
    31
    Posts
    616
    Thanks given
    16
    Thanks received
    3
    Rep Power
    84
    Quote Originally Posted by firejunk View Post
    Ty both of you for your support. R++ for you! (sorry danewolf but it say I must spread my r++ with other people, I'll r++ later when it lets me)
    ok i will....
     

  6. #6  
    Ian...
    Guest
    acctualy, its because the full screen welcome interface isnt being shown ull see when u login to runescape it taks about the time to close the interface as it is to load on our servers.

    and we need to find a way to make the screen shop before the client sprites, hence people with prites probly wont be able to support them.

    so if u can find the way... u just made historay mkay.

    but Gj ne ways

    - Ian...
     

  7. #7  
    Registered Member

    Join Date
    Jun 2007
    Posts
    117
    Thanks given
    0
    Thanks received
    0
    Rep Power
    87
    Quote Originally Posted by Ian... View Post
    acctualy, its because the full screen welcome interface isnt being shown ull see when u login to runescape it taks about the time to close the interface as it is to load on our servers.

    and we need to find a way to make the screen shop before the client sprites, hence people with prites probly wont be able to support them.

    so if u can find the way... u just made historay mkay.

    but Gj ne ways

    - Ian...
    .
    I agree, but this tutorial would just be a temporary solution I guess
     


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
  •