Raised This Month: $ Target: $400
 0% 

RELIABLE and UNRELIABLE MSGS difference


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Owyn
Veteran Member
Join Date: Nov 2007
Old 11-02-2009 , 03:43   RELIABLE and UNRELIABLE MSGS difference
Reply With Quote #1

hi, so i started a thread about it, you know there are reliable and unreliable messages, i was wondering about some aspects of it:

1) reliable channel overflowed
it says "reliable", so it means to many reliable thingys yes?
what if you replace all reliable msgs with unreliable ones? like MSG_ALL with MSG_BROADCAST and MSG_ONE with MSG_ONE_UNRELIABLE ?
will it prevent this overflow or at least reduce "reliable channel"s stress? or will it work the same way before replacing?

2) difference between
MSG_ALL and MSG_BROADCAST ?
MSG_ONE and MSG_ONE_UNRELIABLE ?

i'm not pretty sure how does half life engine works and all that reliable and unreliable stuff, but i'd like to know that, like MSG_ONE_UnRELIABLE checks if user was put in server before sending unlike MSG_ONE, and there is one thing i worry about too "(could be dropped)" from description of MSG types in define, what can be dropped? O_o how?


PHP Code:
#define MSG_BROADCAST        0    // unreliable to all
#define MSG_ONE            1    // reliable to one (msg_entity)
#define MSG_ALL            2    // reliable to all
#define MSG_INIT                     3    // write to the init string
#define MSG_PVS            4    // Ents in PVS of org
#define MSG_PAS            5    // Ents in PAS of org
#define MSG_PVS_R        6    // Reliable to PVS
#define MSG_PAS_R        7    // Reliable to PAS
#define MSG_ONE_UNRELIABLE    8    // Send to one client, but don't put in reliable stream, put in unreliable datagram (could be dropped)
#define MSG_SPEC        9    // Sends to all spectator proxies 
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-02-2009 , 04:35   Re: RELIABLE and UNRELIABLE MSGS difference
Reply With Quote #2

I'm not sure how it works but if you have a problem whatever the reason on a reliable message it could crash your server where with an unreliable message nothing will happen or just client who can be dropped from the server.
__________________
Arkshine is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 11-02-2009 , 05:06   Re: RELIABLE and UNRELIABLE MSGS difference
Reply With Quote #3

maybe, i think hl engine just does some extra checks on "unreliable" msgs, that's why it doesn't work before putinserver()

+about errors, so why then hlds error might say:
Quote:
FATAL ERROR (shutting down): MSG_ONE or MSG_ONE_UNRELIABLE with no target entity
it says it can be 2nd one too
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-02-2009 , 05:18   Re: RELIABLE and UNRELIABLE MSGS difference
Reply With Quote #4

What are you talking about ? What it doesn't work ? Give an example.
__________________
Arkshine is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 11-02-2009 , 09:06   Re: RELIABLE and UNRELIABLE MSGS difference
Reply With Quote #5

you mean _when_ it doesn't work?

on client_connect() for example MSG_ONE_UNRELIABLE doesn't work unlike MSG_ONE
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 11-02-2009 , 09:10   Re: RELIABLE and UNRELIABLE MSGS difference
Reply With Quote #6

#define MSG_ONE_UNRELIABLE 8 // Send to one client, but don't put in reliable stream, put in unreliable datagram (could be dropped)
What means could be dropped? player could be kicked?
__________________
xbatista is offline
Send a message via Skype™ to xbatista
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 11-02-2009 , 09:14   Re: RELIABLE and UNRELIABLE MSGS difference
Reply With Quote #7

Overflow happens when too much messages are sent to client, for example if there 20 players, each player send data to each player, plus some other messages like bomb, kits and other shit, thats already big madness, it works fine without any plugins, but with some plugins also send messages, wich really overflows player, valve didnt thinked about veery huge amount of datas sending at once with plugins.
__________________
xPaw is offline
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 11-02-2009 , 09:31   Re: RELIABLE and UNRELIABLE MSGS difference
Reply With Quote #8

Okey what message cause more chance to kick player? I mean from TE_
__________________
xbatista is offline
Send a message via Skype™ to xbatista
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 11-02-2009 , 09:33   Re: RELIABLE and UNRELIABLE MSGS difference
Reply With Quote #9

That not depens from message type.. but yeah if it has more effects, more chance
__________________
xPaw is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 11-02-2009 , 09:44   Re: RELIABLE and UNRELIABLE MSGS difference
Reply With Quote #10

so it doesn't matter reliable message or not it may cause Reliable channel overflow?
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
Reply



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 -4. The time now is 17:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode