The Castle Doctrine Forums

Discuss the massively-multiplayer home defense game.

You are not logged in.

#1 2013-06-21 17:53:11

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

Keep an eye out for strange server behavior

I just completed a major update to the server.

Behavior of the game shouldn't change in any way.

But maps are now cached in a central table, instead of being duplicated in multiple tables, for an enormous space savings.  For example, the same house map starting state is often preset for multiple robbery tapes.  Before, that same house map was stored in each tape.  Now, only one copy of that map is stored in the central map table, and the robbery tape simply references that map.

This takes us from 86 KiB per user down to 22 KiB per user.

I've tested it extensively, and it seems to work without any hitches.  But, you know, if you see the server suddenly behaving strangely, please report it to me:   jasonrohrer@fastmail.fm

Offline

#2 2013-06-21 17:55:27

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

Re: Keep an eye out for strange server behavior

Oh, as another example:

6800 robbery tapes are currently stored.  But among those, there are only 1400 unique maps.  Clearly, a lot of duplication was happening before.

Offline

#3 2013-06-21 19:11:52

largestherb
Member
From: england
Registered: 2013-05-27
Posts: 381

Re: Keep an eye out for strange server behavior

Error: Unexpected response from server.

resulted in death. three times in a row. trying to rob Roscoe Cox. you broke something!

Offline

#4 2013-06-21 19:20:20

dalleck
Member
Registered: 2013-04-13
Posts: 250

Re: Keep an eye out for strange server behavior

largestherb wrote:

Error: Unexpected response from server.

resulted in death. three times in a row. trying to rob Roscoe Cox. you broke something!

Same here.  Except I didn't rob anyone .  I just can't get into my house.


The rich aren't safe. Nobody is safe. -jere                   ...but the smell wafts out from the pit, obviously. - Jason Rohrer

And the more dickish they are, the more I feel like beating a house to destruction after finally figuring it out. -bey bey

Offline

#5 2013-06-21 19:27:27

jere
Member
Registered: 2013-05-31
Posts: 540

Re: Keep an eye out for strange server behavior

Ah, I died too. I thought it was my fault because I sometimes quit while robbing a house (meaning to leave) and couldn't remember if I did that.


Golden Krone Hotel - a vampire roguelike

Offline

#6 2013-06-21 23:02:27

dalleck
Member
Registered: 2013-04-13
Posts: 250

Re: Keep an eye out for strange server behavior

AAAAIII!!! Jason, the game is broken!!!

Money is growing in all the houses.


On the plus side, whoever gets back in after the fix will be a very wealthy man....

Last edited by dalleck (2013-06-21 23:03:36)


The rich aren't safe. Nobody is safe. -jere                   ...but the smell wafts out from the pit, obviously. - Jason Rohrer

And the more dickish they are, the more I feel like beating a house to destruction after finally figuring it out. -bey bey

Offline

#7 2013-06-22 03:58:39

dalleck
Member
Registered: 2013-04-13
Posts: 250

Re: Keep an eye out for strange server behavior

Looks like we got nothing to do except update the wiki.

Get onto it people!


The rich aren't safe. Nobody is safe. -jere                   ...but the smell wafts out from the pit, obviously. - Jason Rohrer

And the more dickish they are, the more I feel like beating a house to destruction after finally figuring it out. -bey bey

Offline

#8 2013-06-22 11:57:18

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

Re: Keep an eye out for strange server behavior

Wow, yeah.  You know.... the one thing that I guess I forgot to test here... robbing houses.  A simple typo.  And worse than that, it was causing the house maps to be wiped post-robbery (which is why people couldn't get into their own houses, eventually).

Feeling really stupid right now.

Fixing it.  Will have to restore from backup.

Sorry everyone!

Offline

#9 2013-06-22 12:05:21

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

Re: Keep an eye out for strange server behavior

Things happen. Glad there is a backup. smile

We'll just all rob your house when it's working again. wink


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

Offline

#10 2013-06-22 12:10:18

dalleck
Member
Registered: 2013-04-13
Posts: 250

Re: Keep an eye out for strange server behavior

bey bey wrote:

Things happen. Glad there is a backup. smile

We'll just all rob your house when it's working again. wink

Which one is Jasons? MWAHAHAHAHAHA smile

Last edited by dalleck (2013-06-22 12:10:35)


The rich aren't safe. Nobody is safe. -jere                   ...but the smell wafts out from the pit, obviously. - Jason Rohrer

And the more dickish they are, the more I feel like beating a house to destruction after finally figuring it out. -bey bey

Offline

#11 2013-06-22 12:17:12

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

Re: Keep an eye out for strange server behavior

Okay, this is fixed now, and the server is back online.  More details in another thread.

Please keep an eye out for other weird behavior.

Offline

#12 2013-06-22 12:22:34

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

Re: Keep an eye out for strange server behavior

Wow, that was a wayyyyy back up. I see my black and white collection is back before the evil Dalleck ransacked my poor house. big_smile


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

Offline

#13 2013-06-22 12:57:35

dalleck
Member
Registered: 2013-04-13
Posts: 250

Re: Keep an eye out for strange server behavior

bey bey wrote:

Wow, that was a wayyyyy back up. I see my black and white collection is back before the evil Dalleck ransacked my poor house. big_smile

Yes, and for me it was straight after my house was totally destroyed the first time... sad


The rich aren't safe. Nobody is safe. -jere                   ...but the smell wafts out from the pit, obviously. - Jason Rohrer

And the more dickish they are, the more I feel like beating a house to destruction after finally figuring it out. -bey bey

Offline

#14 2013-06-22 13:08:31

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

Re: Keep an eye out for strange server behavior

Yeah, I've learned some lessons from this.

Last time, the lesson was:  always test on a clone of the database before taking changes live.

I did that this time, and it seemed to be working fine.  So, then I took the changes live.  Of course, I missed one test case.

New lesson:  make a backup of the main database before taking changes live, after testing on a clone of the database, so if I do need to restore from a backup, it won't be such a huge leap back in time (I had to rely on the nightly backups this time).

Sorry for everyone that was affected negatively by this!

Offline

#15 2013-06-22 13:28:46

dalleck
Member
Registered: 2013-04-13
Posts: 250

Re: Keep an eye out for strange server behavior

jasonrohrer wrote:

Yeah, I've learned some lessons from this.

Last time, the lesson was:  always test on a clone of the database before taking changes live.

I did that this time, and it seemed to be working fine.  So, then I took the changes live.  Of course, I missed one test case.

New lesson:  make a backup of the main database before taking changes live, after testing on a clone of the database, so if I do need to restore from a backup, it won't be such a huge leap back in time (I had to rely on the nightly backups this time).

Sorry for everyone that was affected negatively by this!

So basically you fried yourself testing your/our house.


The rich aren't safe. Nobody is safe. -jere                   ...but the smell wafts out from the pit, obviously. - Jason Rohrer

And the more dickish they are, the more I feel like beating a house to destruction after finally figuring it out. -bey bey

Offline

#16 2013-06-22 14:07:23

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

Re: Keep an eye out for strange server behavior

Yeah, it actually had exactly that same dynamic.  I thought I tested it enough before pulling out the back doors, but nope!

Offline

Board footer

Powered by FluxBB 1.5.8