Packets.

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
Thrasher
Posts: 73
Joined: Wed Jul 16, 2003 3:08 am
Location: Imperial Moon Base: Thal Vaishet
Contact:

Packets.

Post by Thrasher »

What type of packets does Zdoom use for network play, and what size are they?
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

I'm pretty sure it uses UDP, but I have no idea what size the packets would be. They probably vary in size depending on the number of players and other factors.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Post by randi »

HotWax is correct: UDP and the packet size varies depending on what needs to be sent (although they are usually quite small since the only things that are being sent most of the time are your movements).
User avatar
Bu2d
Posts: 25
Joined: Sat Mar 20, 2004 1:38 pm
Location: Naknek, Alaska

Post by Bu2d »

How do you minimize the amount of packets sent?
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

The default setting IS the minimum number of packets. If you're experiencing consistancy failures, you can use the -dup X parameter to send 2 or more copies of each packet, which increases bandwidth requirements but also increases the liklihood that at least one packet will reach its destination intact and on time.

I believe the -net setting can also be used to reduce the amount of data sent and recieved by each client, as they only send their data to the server. (By default, Doom clients send data to all other computers)
User avatar
Biff
Posts: 1061
Joined: Wed Jul 16, 2003 5:29 pm
Location: Monrovia, CA, USA

Post by Biff »

I'm pretty sure that a few corrections are needed.

The command argument to send extra (backup) packets is -extratic.

The -dup argument (-dup 2, -dup 3, etc.) will reduce the number of packets. For example, -dup 2 will send a packet every two game tics, -dup 3 will send a packet every three game tics. This can help speed up the game on limited-bandwidth connections, usually at the expense of some smoothness of movement.

The network setting argument is -netmode 1. The default is -netmode 0 and this is the original peer-to-peer mode where all computers send data to all other computers. With three players or more, -netmode 1 will cause each client to communicate only with the host. This helps a lot to reduce data "collisions" on a LAN with a large number of players.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

Uhhh, I think you have -dup and -extratic backwards...
User avatar
Biff
Posts: 1061
Joined: Wed Jul 16, 2003 5:29 pm
Location: Monrovia, CA, USA

Post by Biff »

Could be, I'll look for backup info, unless Randy can help out here. We used to use the -dup command to get the game (doom2.exe) up to speed on 14.4 modems, especially with three or more players, never did use the -extratic back then.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Post by randi »

Biff is correct.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

Great. So I've been using (and recommending) the -dup command to reduce consistency failures for about a year now and all I've been doing is making things worse... Why has nobody corrected me before now?!
User avatar
Biff
Posts: 1061
Joined: Wed Jul 16, 2003 5:29 pm
Location: Monrovia, CA, USA

Post by Biff »

It may not have made consistency failures much worse, hard to say. We've still had some problems with con failures even using -extratic, with more "advanced" zdoom maps and also with bots in some conditions. If you think you know what happened in the game to cause the failure, Randy still might be able to use the information to squash another multiplayer bug.
User avatar
QBasicer
Posts: 766
Joined: Tue Sep 16, 2003 3:03 pm
Contact:

Post by QBasicer »

Why can't ZDoom use TCP? Wouldn't that make it less likely to loose packets?
User avatar
Bio Hazard
Posts: 4019
Joined: Fri Aug 15, 2003 8:15 pm
Location: ferret ~/C/ZDL $
Contact:

Post by Bio Hazard »

because randy dosent want to code it maybe?
User avatar
Kate
... in rememberance ...
Posts: 2975
Joined: Tue Jul 15, 2003 8:06 pm

Post by Kate »

There are already ports for that: they're called skulltag(Forum) and zdaemon.
Post Reply

Return to “General”