The Castle Doctrine Forums

Discuss the massively-multiplayer home defense game.

You are not logged in.

#1 2013-08-20 08:06:09

colorfusion
Member
Registered: 2013-04-02
Posts: 537

ERROR: Unexpected response from server

Had a strong house built up and went out to rob. Found some $2000's on the list so got some easy money. When I finished robbing one of them (Richard Malls or something) however, it just returned this and then deleted my house. Unsure what exactly caused it.

Offline

#2 2013-08-20 08:56:09

bey bey
Member
Registered: 2013-04-20
Posts: 386

Re: ERROR: Unexpected response from server

Didn't somebody (Josh?) post that same thing a bit earlier? Something where the client and the server are mismatched in calculating visibility, thus your client game and the server side simulation don't match and you get killed (to prevent modded client cheating...).


In fact you can be batman.
(if he robbed houses and murdered families.)
- Dalleck

Offline

#3 2013-08-20 08:57:17

bey bey
Member
Registered: 2013-04-20
Posts: 386

Re: ERROR: Unexpected response from server


In fact you can be batman.
(if he robbed houses and murdered families.)
- Dalleck

Offline

#4 2013-08-20 08:57:44

gumshoe
Member
Registered: 2013-08-18
Posts: 54

Re: ERROR: Unexpected response from server

I actually just lost 10000 or something from a similar glitch.... my character reset T_T randomly and I lost 2000.

Offline

#5 2013-08-20 09:01:37

colorfusion
Member
Registered: 2013-04-02
Posts: 537

Re: ERROR: Unexpected response from server

bey bey wrote:

Didn't somebody (Josh?) post that same thing a bit earlier? Something where the client and the server are mismatched in calculating visibility, thus your client game and the server side simulation don't match and you get killed (to prevent modded client cheating...).

Different message and I doubt calculating what's visible would be the problem in a starter house since there's not really anything to block vision, there aren't pets, and it would be a lot more common if it was that. Same consequence though.

Last edited by colorfusion (2013-08-20 09:46:41)

Offline

#6 2013-08-20 09:42:30

jasonrohrer
Administrator
Registered: 2013-04-01
Posts: 1,231

Re: ERROR: Unexpected response from server

Dammit... another server-side deadlock caused this.

Looking into it.

Offline

#7 2013-08-20 10:09:27

jasonrohrer
Administrator
Registered: 2013-04-01
Posts: 1,231

Re: ERROR: Unexpected response from server

Okay, this looks like an unavoidable deadlock because of the way that table indexes are locked.  I've added a work-around on the server that restarts the transaction when this happens instead of throwing an error back to the client.

These kinds of work-arounds are now in place in the the two places that might end up killing someone, so a deadlock should never result in death anymore.

Offline

#8 2013-08-20 10:48:35

jasonrohrer
Administrator
Registered: 2013-04-01
Posts: 1,231

Re: ERROR: Unexpected response from server

Also, I've added a function to the server to email me every time a fatal error happens, so I should be able to keep a better handle on these in the future.  They are so rare these days that I tend to forget to check the log for them, but they still happen every once in a while (like once every two weeks).  Their rarity also makes them less likely to be reported, but they still need to be found and fixed!

Offline

Board footer

Powered by FluxBB 1.5.8