Time Nick Message
15:24 MTDiscord Picked up #9907 again, should be ready for a merge now
15:24 ShadowBot https://github.com/minetest/minetest/issues/9907 -- Shaders as media files (server-sent shaders) by appgurueu
15:25 MTDiscord Additional features can be addressed in a follow-up PR.
18:08 pyrollo Mmm... is there an undocumented minimap Lua object ?
18:08 pyrollo Oh, ok it's for CSM I guess
18:17 MTDiscord There will be a minimap HUD object once #9079 is merged
18:17 ShadowBot https://github.com/minetest/minetest/issues/9079 -- Minimap in HUD, minimap showing texure, control minimap modes from Lua by EvidenceBKidscode
18:19 pyrollo Yes:) I'm working on it
19:51 v-rob I'm not happy with the heterogeneous container I have in my formspec refactor so far (DynamicSpec)
19:51 v-rob To add a new type it can hold, you have to add something to the copy constructor, destructor, and a getter/setter macro
19:52 v-rob Since we don't have C++17 with std::any (the optimal solution), I've tried to make something similar.
19:52 v-rob I have little experience with templates, so I'd like someone to look over the code, if possible
20:00 sfan5 I wouldn't know about a good design either but you can link me the code and I'll look
20:01 v-rob I mostly want to make sure there are no memory leaks or whatnot
20:01 v-rob https://gist.github.com/v-rob/935510aa7c02d1a489258815f05dcb4a
20:02 Krock question is how it should be organized at the end. perhaps you don't need to implement this
20:02 Krock base class + inherited classes for each element might work just fine as well?
20:05 v-rob How would that work with dynamic changing of one single property?
20:06 Krock you'd change it to a getter/setter class that takes/gives a base class, or you'd cast the object to the class you'd need
20:06 v-rob Either re-change every property of an element when it is modified (not good, breaks interactions) or have a flag for every member for whether it's been changed
20:07 Krock bool m_is_dirty = true/false doesn't suffice?
20:08 v-rob Any single property can be changed out of all the properties.
20:08 Krock going off now. checking tomorrow
20:09 v-rob I just don't see a way to flag every property cleanly. A heterogeneous container seems the cleanest to me (and avoids making tens of classes)
20:11 v-rob If there is an easier way than with the template magic that my `Any` is, I'll take it.
20:11 v-rob At least it's better than the current DynamicSpec in my refactor
20:17 sfan5 hm that Any class looks pretty complicated
20:20 rubenwardy I feel like you're overcomplicating this
20:21 rubenwardy I feel like we should move all the formspec code to src/client/donotopen
20:21 rubenwardy and start new GUI anew
20:21 rubenwardy well, with some code taken
20:23 v-rob I do feel like I'm overcomplicating it
20:25 v-rob I don't know where I'd start with entirely new code.
20:25 v-rob If I had a design in front of me, I could probably program it no problem; I'm just not as good at the designing part
20:30 v-rob At the very least, programming Any was good experience. It didn't even use RTTI which Irrlicht might not have
20:32 v-rob Well, I'll see about at least familiarizing myself with the code that's above GUIFormSpecMenu
20:46 v-rob As far as I can tell, GUIEngine is just for the main menu, correct?
20:47 rubenwardy yeah
20:47 rubenwardy it's bad design, I believe pyrollo has a redesign for it
20:48 v-rob I'll leave it alone for now then
20:48 v-rob Seems all formspec stuff takes place in Game and GameUI
21:05 v-rob I don't think opinions have changed on using JSON as the serialization format, right?
21:07 sfan5 for the future rewritten formspecs?
21:08 v-rob Yes, possibly rewritten from the ground up like Rubenwardy wants
21:08 rubenwardy JSON in the network probably makes sense
21:08 rubenwardy the API should be a Lua DSL
21:08 v-rob That would make it easy to serialize as well
21:39 MTDiscord Does everything in Minetest use a left-handed coordinate system?
21:44 MTDiscord set_bone_position? Are position and rotation left-handed?