1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Gump that refresh and doesnt blink?

Discussion in 'General Discussion' started by sahisahi, Oct 10, 2018.

  1. sahisahi
    Offline

    sahisahi Member

    Joined:
    Jan 13, 2016
    Messages:
    643
    Likes Received:
    18
    So ive seen this Talisman gump in Uoforever that refresh and doesnt ''blink'' aka close and resend, hows that possible?
     
  2. Feeh
    Offline

    Feeh Member

    Joined:
    Apr 1, 2014
    Messages:
    58
    Likes Received:
    9
    My guess is:
    1- they send a new updated gump (that shows up above the old one)
    2- then they send the close command to the old gump

    You can attach a packet analyser or use Razor to register the communication packets and analise the data to see how the trick is done
     
    • Thanks! Thanks! x 1
  3. sahisahi
    Offline

    sahisahi Member

    Joined:
    Jan 13, 2016
    Messages:
    643
    Likes Received:
    18
    Cant be the first option hehe. Because if you drag the gump it will show the old one in the back. Anyway tomorrow i will try that way
     
  4. Anon the Felon
    Offline

    Joined:
    Jun 24, 2016
    Messages:
    64
    Likes Received:
    9
    Just resend the gump in the onresponse.
     
  5. sahisahi
    Offline

    sahisahi Member

    Joined:
    Jan 13, 2016
    Messages:
    643
    Likes Received:
    18
    Theres no onresponse.




    That gumps updates and doesnt ''blink'' like i said.
    --- Double Post Merged, Oct 11, 2018 ---
    Kal Xen

    @Vorspire !
     
  6. Talow
    Offline

    Talow Active Member

    Joined:
    Aug 30, 2014
    Messages:
    334
    Likes Received:
    31
    that could be using the vita nex thing vorspire made.
     
  7. Vorspire
    Offline

    Vorspire Vita-Nex: Core
    Admin ServUO Developer

    Joined:
    Jul 29, 2013
    Messages:
    1,061
    Likes Received:
    189
    It may just be a case of not calling mobile.CloseGump() before you create and send the new one.
    You remove the gump instance from the user's NetState manually.

    For gumps that do close before being sent;
    When a gump packet is small enough to be sent faster than your ping, you usually won't get flickering.

    Take my NotifyGump in Vita-Nex: Core for example that animates at 10 FPS, it consists of very minimal gump entries (a background and an alpha region) until it reaches its last frame, where it will render the message and any buttons. It is not very susceptible to flickering, but you can notice it if it animates during a world save pause, because the underlying timers do not tick during a save.

    SuperGumps always send a close request before they are sent to the client like traditional gumps.

    TL,DR;
    1. Keep your gump designs as limited as possible, with as few entries as necessary to reduce the compiled packet size.
    2. Players with higher pings will more often see flickering with gumps.
     
    • Thanks! Thanks! x 1
Similar Threads: Gump refresh
Forum Title Date
Script Support Gump + Timer refresh Oct 17, 2017
Archived Bug Reports Animal lore Gump bug Oct 6, 2018
Archived Bug Reports Magincia Vendor Stalls gump not showing properly on EC Oct 2, 2018
Script Support Tooltip in gump not working Sep 28, 2018
General Discussion All client Gumps as tiff Sep 24, 2018
Script Support Gumpstudio 1.8 r3 by Quinted crash Sep 7, 2018
Archived Bug Reports Gump needs updated for MiB Aug 30, 2018