Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Questions about V6
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 06-13-2009, 07:36 PM
Frankie Frankie is offline
xChugxLifex
Frankie's Avatar
Join Date: Feb 2008
Location: New York
Posts: 1,610
Frankie is a jewel in the roughFrankie is a jewel in the rough
Send a message via AIM to Frankie Send a message via MSN to Frankie
"dont use UDP for data packages"

what exactly is UDP and why is there an option to turn it on and off?

it causes a pretty big problem. for example on Era, if you're raiding a gang base and someone walks in with the "don't use UDP" option checked, you can't see them but they can still run around and shoot you. it's pretty stupid.
__________________
*Sum41Freeeeek
*Frankie
Reply With Quote
  #2  
Old 06-13-2009, 08:08 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
I think it's what they call a 'network protocol'. Checking it means you're using TCP.

UDP doesn't readily work if you're behind a router and don't have the required port(s) forwarded. For people who don't know how to get it to work, checking it is the only way they'll be able to see other people move and vice versa.
__________________
Reply With Quote
  #3  
Old 06-13-2009, 08:15 PM
Hiro Hiro is offline
\(^∀^)メ(≧∇≦)ノ
Hiro's Avatar
Join Date: Jan 2005
Posts: 1,965
Hiro has a spectacular aura aboutHiro has a spectacular aura about
Send a message via AIM to Hiro
it's a type of internet protocol for, from what i understand, is host-to-host connections through IPv4 or IPv6, so it's good for a lot of users making small requests, as opposed to TCP which isn't as time sensitive or useful to a large number of players, it's something about the difference between dropping packets or suspending them.

sometimes when you have a lot of packet loss, turning on UDP will make it so the packets don't have to be checked, so though it will come in in pieces, it will still get through. this may explain your shooting "glitch" which results from this. however, without the option, the player wouldn't be able to even play, and it doesn't affect everyone like that - sometimes nothing messes up from switching, though it seems to affect the sword detection or hitbox of everyone who switches.
Reply With Quote
  #4  
Old 06-13-2009, 08:20 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
It could possibly be on your end, why other players aren't moving. Have you personally tried changing the option and seeing what happens? I notice that if I have two accounts connected to the same server, I can't see my other player move without enabling UDP.

Also... I've always been curious. Do you have to restart Graal for this option to take effect or what?

Last edited by DustyPorViva; 06-13-2009 at 09:15 PM..
Reply With Quote
  #5  
Old 06-13-2009, 08:31 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
You don't have to restart Graal.
__________________
Reply With Quote
  #6  
Old 06-13-2009, 09:06 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Technical explanation:

TCP (Transmission Control Protocol) works on connection state. A TCP connection needs to be negotiated before it will transfer data, but the plus side is that if a packet gets damaged or goes missing, it gets retransmitted. TCP transfer takes place only between the player and the gserver, but is a lot more resilient to slow or unreliable connections like dial-up or 3G.

UDP (User Datagram Protocol) is connectionless, so you don't need to establish a connection before you can send data. But you don't have any guarantees that a UDP packet will get there, because if it gets corrupted, it won't be retransmitted. They are much smaller packets because they have less overhead, so they are faster to transmit. The Graal client uses UDP to transmit packets between players.

Firewalls require properly forwarded ports for UDP packets to work, whereas TCP is generally a lot more home router-proof because the connection negotiation makes a window through your firewall and that same window is used for the rest of the session. If your router is not properly configured then UDP packets can get lost and since it's not designed to detect errors, it will never retransmit the packets. A lot of people on unstable connections choose to disable UDP because that way if their connection corrupts some packets, they will be retransmitted properly by TCP. It is a bit slower to do this, though.

Simple explanation:

If UDP works well for you, then use it, because it's faster and lighter on connection resources/bandwidth. If UDP doesn't work (you don't see other players moving, you get a dialog explaining UDP is broken) then disable it because TCP will guarantee your connection, although at the cost of speed. If you disable UDP then the gserver makes sure to send player movement and changes through TCP instead.
__________________
Skyld
Reply With Quote
  #7  
Old 06-13-2009, 11:05 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
If Era finds it neccesary there's always the:

PHP Code:
Clientside:
$pref::graal::fixedudpport integer
$pref
::graal::noudp boolean 
To disable people who are abusing it openly.
__________________
Quote:
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 10:32 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.