Time  Nick          Message
14:39 Corey[m]      Hello, could someone point me to an example use of AreaStore, and what exactly is it for (I was looking through the lua_api.txt and saw it)
14:42 est31         Corey[m]: https://dev.minetest.net/AreaStore
14:42 est31         if the r* tree library is used, the AreaStore is implemented in a fast way
14:42 est31         allowing for faster protection checks
14:43 est31         I added it way back in 2015
14:44 Corey[m]      est31: based on how it's framed, I don't have to use it only for protection, could be used for other things, just nothing off the top of my head
14:44 Corey[m]      Thanks for the link
14:44 est31         I originally added it because server owners complained that the protection was a bottleneck
14:45 Corey[m]      I assume they had to specify a table of individual node positions previously?
14:47 est31         previously it was stored in a lua array and at each node place, each node removal, all areas on the server were checked
14:47 est31         even ones thousands of nodes away
14:48 est31         the solution to this is spatial partitioning, e.g. r* trees.
14:49 est31         so I took a library and integrated it to minetest, exposed it as an API and added a fallback (old behaviour) if the library is not compiledi n
14:49 est31         ShadowNinja then later extended it
14:53 Corey[m]      Thanks again for the information
14:55 Corey[m]      I have one other query, does minetest have a byte buffer of some sort, I'd like to save some data from my mod in a binary format to disk, I've already written my own bytebuf, but I wondered if I overlooked something
14:55 Corey[m]      Oh to add to that, does minetest provide access to it's sqlite backend, say I want to use sqlite from minetest to store data as well?
14:56 sfan5         it doesn't
15:01 Corey[m]      sfan5: Would it be possible to add it, or is it too far out of the way?
15:03 sfan5         unlikely to be added
15:03 sfan5         there are already lua libraries for sqlite3 usage
15:07 Corey[m]      True, true, I'm not too familiar with the lua eco system, I'll look around, but wouldn't that cause a few issues with portability though, having to package the additional libraries, worst if they're binary extensions
15:09 sfan5         yes there are portability issues
15:09 sfan5         but it's not like including lsqlite3 with MT would have less issues
15:13 Corey[m]      True, but I suggested a simple binary buffer/encoder/decoder before that
15:13 Corey[m]      Then again string.pack might exist
15:16 Corey[m]      I just checked, string.pack doesn't exist in my copy at least
16:02 codic         https://codeberg.org/gsbhasin84/Materiav2
16:02 codic         New linux theme by me
16:02 codic         (Probably offtopic)
16:03 codic         Suggestions are welcome
18:37 MinetestBot   02[git] 04ClobberXD -> 03minetest/minetest: Revert Client::sendPlayerPos optimization (part of 81c7f0a) (#9025) 13b49dfa9 https://git.io/JeWly (152019-10-08T18:36:56Z)
21:32 creaper123[m] cool
21:34 codic         It's coe
21:34 codic         cde
21:34 codic         code