sdzen wrote:why not have books actually have text in them I thought this would relate to the topic if I am wrong tell me
Roflo wrote:randomproof: you should add a link to your branch in the patchset page of the Wiki:
http://test.mine.bz/wiki/doku.php?id=patchsets
(in the In Progress section; until it's finished)
.. that way people will know that you're working on it.
Maelstrom wrote:Well it would be a good Idea, but there would be a problem:
Books should inherit more text than a lone sign, bookshelves should support more books.
To say it bluntly, it would surpass the Index of a sign or a chest really fast. A solution would be to use the Index of an Item as a footnote to link directly to a Textfile and let the clients read the file out for the text, but this has a flaw of not unlimited. Some crazy guy will build the Library of Alexandria and crack the Index Limit for the Footnotes.
randomproof wrote:I think that is getting way more complicated than it needs to be. The idea of storing the text in a file instead of in memory is a good idea though. Instead of using a text file I would suggest using a separate SQLite database and have another index based on something like the date or what map section it is in or who created/edited it last.
The main problem is of a way to prevent someone from overloading the server with text. Someone could make tons of writable paper and cause the server to have to load massive amounts of stuff into memory when someone walks into an area. Reading text from a file only when someone reads a page is a good way to prevent this. The only problem now would be to prevents that person from filling up the disk space on the server.
Users browsing this forum: No registered users and 5 guests