Grid Archiving
Posted: 22 Nov 2016, 18:00
Just to let people know that I'm going to be implementing a really tricky code today which will archive grid locations which haven't been used in ages. Don't worry, this won't make you lose your properties at all.
This will hopefully be something that you won't even be able to tell is happening as players of the game, but I'm telling you this so you know to keep an eye out for weird things going on such as locations vanishing etc. I'll be backing up the grid as often as possible to make sure we don't lose anything, but there might still be bugs.
However, it should speed up the game by quite a large amount, so also keep an eye on that and post here if you notice some big improvements.
For those wondering about the specifics: I'm going to create a database which will house archived entries which aren't being used (grid tiles first, then items and alert entries later). Each location will have a timestamp saying when it was last accessed, and if the timestamp shows it hasn't been used for over a month, the grid entry will be moved to the archive. When it's next accessed, the grid entry will be moved back to the main database once more. Unless perhaps it's accessed by a wraith or a thrall, and then I might assume it's just being scouted for a target, so I'll probably make it so that it's read from the other database, and stays put in the archive.
One thing I'm wondering: how often do people enter every lair in the city while looking for a certain target? And do you usually use thralls to do this?
This will hopefully be something that you won't even be able to tell is happening as players of the game, but I'm telling you this so you know to keep an eye out for weird things going on such as locations vanishing etc. I'll be backing up the grid as often as possible to make sure we don't lose anything, but there might still be bugs.
However, it should speed up the game by quite a large amount, so also keep an eye on that and post here if you notice some big improvements.
For those wondering about the specifics: I'm going to create a database which will house archived entries which aren't being used (grid tiles first, then items and alert entries later). Each location will have a timestamp saying when it was last accessed, and if the timestamp shows it hasn't been used for over a month, the grid entry will be moved to the archive. When it's next accessed, the grid entry will be moved back to the main database once more. Unless perhaps it's accessed by a wraith or a thrall, and then I might assume it's just being scouted for a target, so I'll probably make it so that it's read from the other database, and stays put in the archive.
One thing I'm wondering: how often do people enter every lair in the city while looking for a certain target? And do you usually use thralls to do this?