Thread: Walkable Interfaces are flickering

Results 1 to 5 of 5
  1. #1 Walkable Interfaces are flickering 
    Ex Rune-Scaper

    Join Date
    Jun 2008
    Posts
    3,534
    Thanks given
    457
    Thanks received
    1,257
    Rep Power
    990
    Having problems with my interfaces, I can't stop it from flickering. The interface at the top left flickers every second while im attacking npcs.

    In process of course.
    Code:
    		if (!this.inWild() && !this.inNMZ() && !this.inDuelArena())
    			getPlayerAssistant().walkableInterface(-1);
    		if (inNMZ())
    			getPlayerAssistant().walkableInterface(4970);
    Attached image
    Reply With Quote  
     

  2. #2  
    Community Veteran

    Songoty's Avatar
    Join Date
    Dec 2007
    Posts
    2,740
    Thanks given
    211
    Thanks received
    1,034
    Rep Power
    2455
    do you mean it is in the players cycle (process) method?

    of course it's going to flicker, you are sending that packet to the client every cycle period, causing the client to remove the current interface, replace it with the same one, and redraw it.
    Reply With Quote  
     

  3. #3  
    Ex Rune-Scaper

    Join Date
    Jun 2008
    Posts
    3,534
    Thanks given
    457
    Thanks received
    1,257
    Rep Power
    990
    Quote Originally Posted by Songoty View Post
    do you mean it is in the players cycle (process) method?

    of course it's going to flicker, you are sending that packet to the client every cycle period, causing the client to remove the current interface, replace it with the same one, and redraw it.
    What's a better way to call walkableinterfaces? Yeah I realize that, well some other interfaces don't flicker like the dueling walkableinterface/multizone, etc. PI I tell ya.
    Attached image
    Reply With Quote  
     

  4. #4  
    Community Veteran

    Songoty's Avatar
    Join Date
    Dec 2007
    Posts
    2,740
    Thanks given
    211
    Thanks received
    1,034
    Rep Power
    2455
    send it only when it needs to, you should implement a proper location system so it isn't getting called every cycle. packet 126 will update the text without the need to resending the interface. if you don't want to do that, just add a boolean or something to see if the interface is already open.

    Code:
    if(inNMZ()) {
       if(!whatever) {
            sendInterface(blah):
            whatever = true;
       }
    }
    not the best way to do it, best would be as i said proper location system and ui assistant to know what interfaces are open.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Feb 2013
    Posts
    548
    Thanks given
    8
    Thanks received
    36
    Rep Power
    16
    put it in your clients process() method... i did this for my walkable interfaces and it works fine.
    Reply With Quote  
     


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. Setting walkable interfaces
    By Sir Lewis in forum Requests
    Replies: 2
    Last Post: 05-09-2009, 01:16 AM
  2. Walkable Interfaces
    By Core in forum Help
    Replies: 7
    Last Post: 05-09-2009, 01:08 AM
  3. Blinking Walkable interfaces
    By D3d Wildy in forum Help
    Replies: 2
    Last Post: 02-05-2009, 08:49 PM
  4. Walkable interface Method
    By Elid in forum Requests
    Replies: 2
    Last Post: 09-28-2008, 07:09 PM
  5. Walkable/Non walkable interfaces
    By Shamon King in forum Tutorials
    Replies: 3
    Last Post: 07-31-2008, 12:20 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
  •