SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > SRB2 Discussion

Reply
 
Thread Tools Search this Thread
Old 05-04-2008   #1
Ash
Permanently Banned
Default What would happen if consistency failures didn't happen?

I've been thinking about this for a while now, and I'd like to know some of the possibilities. :O
Ash is offline   Reply With Quote
Old 05-04-2008   #2
Sik
 
Sik's Avatar
Default

The game would remain stuck infinitely because transmission has been closed, or it would crash while trying to send/recieve data from a non-existant transmission. Not much of a difference, really.

Through if you mean what would happen if the problems that cause them didn't exist... Well, good to go then :) We would also need to get rid of the causes of lag XD
__________________
Sik is pronounced as "seek", not as "sick".

Source of my avatar: http://www.newgrounds.com/portal/view/427405
Zen forums: http://zenforums.ipbfree.com
Sik is offline   Reply With Quote
Old 05-04-2008   #3
Ash
Permanently Banned
Default

No, I was saying if it didn't cause a kick.

That's interesting, though not what I was expecting... :|
Ash is offline   Reply With Quote
Old 05-04-2008   #4
Chrome the hedgehog
 
Chrome the hedgehog's Avatar
Default

What causes a Consistancy failure anyway?
__________________
Join the SigSev Cafe, I forgot my password, but you should still go there.
http://sigsevcafe.com/mb/
Chrome the hedgehog is offline   Reply With Quote
Old 05-04-2008   #5
Sonict
Developer
 
Sonict's Avatar
Default

The data wouldn't be correct and you would find people in the wrong spot, possible crashing, hacking would also be really simple, etc. That is why the netcode is like this.
__________________
Read the MB Rules: http://mb.srb2.org/rules.php

My YouTube account: http://youtube.com/user/Sonict11
Sonict is offline   Reply With Quote
Old 05-04-2008   #6
Sik
 
Sik's Avatar
Default

It's common sense... for a programmer :P Let's say you have something in memory. You deallocate it, so it isn't in memory anymore. Then you try to access it through the old pointer you had. Since it isn't there anymore, crash! Same applies with handles and such. Quite simple.

So the main reason the game kicks you is to prevent itself from crashing. There's no way to recover from a consistency failure because the connection itself failed, and there's no way to recover it because it doesn't exist anymore. The best SRB2 would be able to do is try an automatic rejoin (thing it doesn't do, through it would be a good idea).
__________________
Sik is pronounced as "seek", not as "sick".

Source of my avatar: http://www.newgrounds.com/portal/view/427405
Zen forums: http://zenforums.ipbfree.com
Sik is offline   Reply With Quote
Old 05-04-2008   #7
Chrome the hedgehog
 
Chrome the hedgehog's Avatar
Default

Quote:
Originally Posted by Sik
So the main reason the game kicks you is to prevent itself from crashing.
So basicly, SRB2 is selfish and if it wasn't, the game would be terrible? XD
__________________
Join the SigSev Cafe, I forgot my password, but you should still go there.
http://sigsevcafe.com/mb/
Chrome the hedgehog is offline   Reply With Quote
Old 05-04-2008   #8
Sik
 
Sik's Avatar
Default

Exactly Chrome, specially because if it crashes SRB2 wouldn't have any control over it, and if something goes really wrong, your computer would become unoperable and you would have no option but to press the Reset button. Yes, this can happen no matter how solid the OS is. Twice I managed to hang up the video card (through I think that in one of them was a driver issue, and I think Vista has a workaround for this anyways).
__________________
Sik is pronounced as "seek", not as "sick".

Source of my avatar: http://www.newgrounds.com/portal/view/427405
Zen forums: http://zenforums.ipbfree.com
Sik is offline   Reply With Quote
Old 05-04-2008   #9
Mystic
チェン!
Administrator
 
Mystic's Avatar
Default

Actually, a consistency failure in SRB2 is frequently caused by the client and server getting out of sync somehow and having different game states on different ends. For instance, the old CTF cons failures were caused by the server and client spawning the player at a different spawn point. Hence, the person who joined would load at one spot in the level and the server would have the player load at a completely different spot in the level. The instant the player moved, the game would check the location between the server and client, see different sector numbers, and kick the player because their location is inconsistent with what the server thinks it is.
Mystic is offline   Reply With Quote
Old 05-04-2008   #10
Sik
 
Sik's Avatar
Default

If that example you mentioned happens really then something is really wrong with SRB2 for missing something as important as that o_O
__________________
Sik is pronounced as "seek", not as "sick".

Source of my avatar: http://www.newgrounds.com/portal/view/427405
Zen forums: http://zenforums.ipbfree.com
Sik is offline   Reply With Quote
Old 05-04-2008   #11
Chaos Knuckles
 
Chaos Knuckles's Avatar
Default

Doesn't it mean what it means?

Consistency failure means that it's not consistent on both sides anymore, which causes a crash.
Chaos Knuckles is offline   Reply With Quote
Old 05-04-2008   #12
Mystic
チェン!
Administrator
 
Mystic's Avatar
Default

Well, in the specific case of my example, what was happening was that the player was joining the CTF game as a specific team. The player would get the team he was supposed to have and spawn at a team spawn point. However, for some reason, the server was not assigning the player a team before spawning the player, and would spawn the player at a Deathmatch start instead.

We fixed that glitch by adding the spectator mode as a workaround, making it simply impossible for a player to join the game on a specific team, eliminating the circumstances that caused the bug in the first place.

In that case, the problem was caused by a bug in the game, but it can also happen from having packets dropped from a bad connection or a version inconsistency.
Mystic is offline   Reply With Quote
Old 05-04-2008   #13
SSNTails
What part of 'RETIRED' don't you understand?
 
SSNTails's Avatar
Default

I think ZDoom has an option to allow consistency failures. Try it.
__________________
Roly Poly Putt & TraceRace - Now out for Android, iPhone, iPad, and iPod Touch - http://www.spaddlewit.com
Follow me on twitter: http://www.twitter.com/SSNTails
SSNTails is offline   Reply With Quote
Old 05-04-2008   #14
Kopper
Does not use Sonic.
 
Kopper's Avatar
Default

Well, I'd prefer a lag whilst the server did a resync with the client, but what are you gonna do?
Kopper is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
What happen to the ME wad? Hyper Shadonic thing Outdated Releases (0.X & 1.X) 7 02-07-2008 03:33 PM
What would happen....... sonic saver SRB2 Discussion 2 03-04-2007 11:56 PM
What will happen............ Camouflage SRB2 Discussion 9 02-28-2007 11:09 PM


All times are GMT. The time now is 07:45 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2018, vBulletin Solutions, Inc.