When in the hour does the server save building placement?

Ask, answer and discuss any and all topics about the hows, whys, wheres and whens of playing Haven & Hearth.

When in the hour does the server save building placement?

Postby Vattic » Sun May 31, 2009 7:13 am

As the title says. I ask this because of how people have lost building work with the server going down and if I knew when exactly it was supposed to save I could build not long before and be reassured that it was safe.

Cheers.
User avatar
Vattic
 
Posts: 232
Joined: Sat May 30, 2009 1:47 am
Location: United Kingdom

Re: When in the hour does the server save building placement?

Postby loftar » Sun May 31, 2009 2:25 pm

In order to balance I/O spikes temporally, it is intentionally indeterminable, and in fact, different parts of the map are saved at different times.

I am truly sorry for all the crashes, though. I am embarrassed to say that almost all of the crash-causing bugs so far have been simple things which I really have no excuse not to have thought of in advance (and in fact, the kinds of things I usually do think of in advance). On the bright side, the number of bugs in the server has decreased radically over the past two days. I thank you all for your patience in the matter*.

* Though it should be mentioned that it has been worse. In the days of old, maps weren't saved at all except on orderly server shutdown and character data only on orderly logout, so a crash could easily result in days of lost progress. You guys nowadays don't know how lucky you are. In my days, we built our entire camps thrice over, in rain, snow and hail simultaneously, and we liked it. ;)
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9045
Joined: Fri Apr 03, 2009 7:05 am

Re: When in the hour does the server save building placement?

Postby theTrav » Mon Jun 01, 2009 4:40 am

Heheh, it's good that you're taking some care to preserve our work, but don't stress too much, I'm sure everyone here knows it's all unstable and probably will be for a few months at least, and then there'll be upgrades to the map generator to take into account as well in which case everything goes.
User avatar
theTrav
 
Posts: 3464
Joined: Fri May 29, 2009 11:25 pm

Re: When in the hour does the server save building placement?

Postby loftar » Tue Jun 02, 2009 2:51 am

Maybe I should at least mention that character date are saved upon logout, upping your stats (both on the skill attributes and personal beliefs), buying skills and whenever a food event triggers (when you fill up the food meter, that is).
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9045
Joined: Fri Apr 03, 2009 7:05 am

Re: When in the hour does the server save building placement?

Postby Vattic » Tue Jun 02, 2009 6:51 pm

Do you save it all before purposefully shutting the server down?
User avatar
Vattic
 
Posts: 232
Joined: Sat May 30, 2009 1:47 am
Location: United Kingdom

Re: When in the hour does the server save building placement?

Postby loftar » Tue Jun 02, 2009 7:09 pm

That is the intention, but the last couple of times, the server has aborted in the malloc routines during shutdown. I'm not sure why just yet, and I'm afraid I'm razing malloc fences or doing some other kind of core fandango, because those things can be hard to debug. I'll try to valgrind the server for some debugging, but I'm afraid the error might not be detected if it's not used "for real", and I'm afraid valgrind would make it too slow to be used with real players.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9045
Joined: Fri Apr 03, 2009 7:05 am


Return to How do I?

Who is online

Users browsing this forum: No registered users and 13 guests