Time Nick Message 00:04 MTDiscord i still think doing formspecs in engine is a fool harted endeavor, no drag and drop, repositioning, etc 00:04 MTDiscord for the formspec editor 00:08 MTDiscord <.zenonseth> i mean if we can use engine just for rendering - i agree with you that i want dragndrop 00:12 MTDiscord thats.... still dumb. if you have drag and drop, you would be doing that with html 00:13 MTDiscord to then render in the engine, but then back to html for dragging stuff around, or resizing 00:14 MTDiscord <.zenonseth> hm, well then what, our own rendering? It'd be nice to at least have comparison with engine rendering 00:15 MTDiscord yeah, its been done before, see the luk3yx web one 00:18 MTDiscord <.zenonseth> thats the one i used, alright sure. My suggestion is to at least have automated snapshot tests that we can use a test formspec against engine rendering 00:19 MTDiscord that seems sensible 00:21 MTDiscord i guess the votes are in https://www.poll-maker.com/p/3kov3mnk9s/r/0rMbpurBc1nm-uY1 so two key things 1. do we want to do this 2. what to call it 00:23 MTDiscord <.zenonseth> 1 - yes? wasn't that why we did the poll etc? 00:23 MTDiscord <.zenonseth> even if slow progress why not 00:24 MTDiscord <.zenonseth> 2: wsorsidea.luanti.org 00:24 MTDiscord lol 00:26 MTDiscord <.zenonseth> idk devtools seems sensible name, something like that, i'm not too fussed 00:29 MTDiscord workbench? 00:33 MTDiscord <.zenonseth> that seems oddly familiar, isn't it some well known thing? 00:33 MTDiscord there is a workbench mod? 00:33 MTDiscord <.zenonseth> yea idk, i'm fine with it, as long as we're not going to get a takedown notice or some dumb thing 00:38 MTDiscord marko either has a cat on the keyboard or is typing a book 00:39 MTDiscord <.zenonseth> lol 00:40 MTDiscord <.zenonseth> cat would've stepped on Enter by now 00:40 MTDiscord <_mpetrovic_> Hi! I just saw the message in #announcements and thought to drop by here. For quite a while already, on JMA we've had a custom engine fork with some custom patches, but for some of that it would be nice to see it upstream. But so far I haven't checked if any of this has been already independently addressed upstream or not and I didn't have time to open PRs, so I'll just list some things here now: 1) An option to allow Cyrillic 00:40 MTDiscord usernames would be cool 2) Memory leaks that prevented us from having high uptime... One was LuaJIT garbage collector not triggering promptly for async workers because they had very little of Lua-owned memory and most memory usage was in VoxelManip that was passed into the async environment and that Lua held only by reference. The other was: "fetch_async() allocates a fresh caller ID for every request via httpfetch_caller_alloc_secure(), but 00:40 MTDiscord nothing ever freed it again", and our server makes a lot of HTTP requests because it polls Discord and XMPP relays, so it was noticeably increasing memory usage just by accumulating these IDs... 3) Fix death screen text centering for older clients - Uses a centered label for formspec version 11 or newer. For older clients, uses a borderless button to center “You died” correctly. (This one wasn't made by me) 4) Allow on_authplayer callbacks 00:40 MTDiscord to return a rejection-message string and disconnect the client. This is used by our ipdb mod for linking accounts based on IP addresses. It has to link after authentication because before it it's unknown whether the username actually belongs to that IP address, but then we also want to enforce bans after linking accounts. So prejoinplayer isn't good, I don't remember but IIRC there was some issue with core.kick_player in on_authplayer, and 00:40 MTDiscord on_joinplayer is too late... 5) HTTP request handles are currently just strings. API defines them as opaque. Make them garbage-collected userdata so that if a mod accidentally drops one it's not a memory leak 00:41 MTDiscord <.zenonseth> this seems like engine dev requests 00:41 MTDiscord <.zenonseth> which while im a dev, this isn't the channel for? 00:42 MTDiscord <_mpetrovic_> Oh, this is just for modding API? 00:42 MTDiscord i would suggest filing issues for your stuff 00:43 MTDiscord <_mpetrovic_> Sorry, I thought it's for any changes "that would make our life easier" 😅 00:44 MTDiscord <_mpetrovic_> I might've misinterpreted the message in #announcements 00:44 MTDiscord <.zenonseth> "devex" = developer experience, more for tools to help developers write mods etc. Not for engine change requests. Issues on https://github.com/luanti-org/luanti/issues would be the right place, as wsor said - some may already exist 00:45 MTDiscord <_mpetrovic_> Alright, I understand now. I'll move this to GitHub then. Sorry for bothering you. 00:45 MTDiscord we probably could have been clearer 00:46 MTDiscord anyways, back to names, you good with workbench? or would rather devtools? 00:47 MTDiscord <.zenonseth> im fine with workbench if you want that 00:48 MTDiscord ok 00:49 MTDiscord side tangent, i guess worldedit is on v5 for its schematic format? 00:49 MTDiscord which maybe? old ones should be supported since https://forum.luanti.org/viewtopic.php?t=7304&sid=4afcbe8db206609e08678a07777cb427&start=300 exists 00:50 MTDiscord blockexchange uses v5 00:50 MTDiscord the voxelmanip one was addressed by adding a close() method 00:50 MTDiscord also another cursed format to add 00:51 MTDiscord might be interesting for the linter to suggest closing voxlrmnaips btw 00:52 MTDiscord i dunno how well it can track that 00:52 MTDiscord yeah it would need escape analysis 00:52 MTDiscord but since i have min version integration, at least that parts solvable 00:54 MTDiscord <_mpetrovic_> That's the other thing that would've solved this. 😅 Our code mistakenly forgot to call it. 00:54 MTDiscord <_mpetrovic_> But it should also be cheap to call lua_gc() in the async thread at the end of a job too 00:55 MTDiscord <_mpetrovic_> Anyway, I'm going from here now 😅 01:20 MTDiscord besides mts, we, aascheme, blockexchange, any other weirdo formats i should care about? 01:21 MTDiscord I love this poll, Formspec Editor, Mapgen Editor/Playground, Hud and Schematics - I feel seen and I didn't even partake in the poll 01:21 MTDiscord arguably aascheme is a weirdo pet format, but it was trival enough to support 01:26 MTDiscord also, da heck kind of response to an open ended ask for more formats or no is a checkmark? 01:28 MTDiscord It's saying "you got all the ones I know about" (done) 01:28 MTDiscord <_mpetrovic_> What do you want to do with these formats? 01:28 MTDiscord https://klipy.com/gifs/hmm-ok-2 01:28 MTDiscord im converting between them 01:47 MTDiscord jumping all over the place, i was reading about wasm/wasi yesterday, and it probably wont be as easy as i thought for making flint run in it. doable, but annoying 02:02 MTDiscord back to schematics, it would be nice if the engine could make a new one that just could kill off all these different ones. but press x to doubt 02:04 MTDiscord anyways, have schematic converting support. holler if you experience issues 02:04 MTDiscord i could take all of the worldedit thread, all of block exchange, and convert it all to mts, vice versa, etc and see if the engine loads them all without blowing up, but thats a lot of work and sounds annoying 02:05 MTDiscord cant include them cause licensing 02:05 MTDiscord AGPL yeah... 02:05 MTDiscord the .we files arent agpl 02:05 MTDiscord most of the thread isnt licensed 02:06 MTDiscord actually, i wonder how annoyed buckaroo would be if i scripted a github action to fetch files on every run and convert + engine load test 02:06 MTDiscord 🤔 i could ga cache the zips / we files 🤔 03:12 MTDiscord hashes would fix most of it, so you could check for updates 03:31 MTDiscord Back to names again, workbench sounds great. 04:03 [MatrxMT] workbench.luanti.org/ e.g. ui, schematic, l-system ... 16:24 MTDiscord <.zenonseth> wsor, you know the webstack more, you going to start a repo with some of the basics maybe? I can contribute to it but im not the right person to start a web-based project, best if there's some framework in place 16:45 MTDiscord yeah, might be tonight 16:51 MTDiscord <.zenonseth> yea i didn't mean right now 23:21 MTDiscord interesting that lua api only documents some deprecated things 23:45 MTDiscord well, flint now checks for more stuff. also if you use luajit exclusive stuff, get a warn. 23:45 MTDiscord semi opinionated, but warn about spam files in a package not excluded via git attributes 23:48 MTDiscord anyways, to web stuff