Luanti logo

IRC log for #luanti-devex, 2026-11-22

| Channels | #luanti-devex index | Today | | Google Search | Plaintext

All times shown according to UTC.

Time Nick Message
00:04 MTDiscord <wsor4035> i still think doing formspecs in engine is a fool harted endeavor, no drag and drop, repositioning, etc
00:04 MTDiscord <wsor4035> 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 <wsor4035> thats.... still dumb. if you have drag and drop, you would be doing that with html
00:13 MTDiscord <wsor4035> 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 <wsor4035> 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 <wsor4035> that seems sensible
00:21 MTDiscord <wsor4035> 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 <wsor4035> lol
00:26 MTDiscord <.zenonseth> idk devtools seems sensible name, something like that, i'm not too fussed
00:29 MTDiscord <wsor4035> workbench?
00:33 MTDiscord <.zenonseth> that seems oddly familiar, isn't it some well known thing?
00:33 MTDiscord <wsor4035> 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 <wsor4035> 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 <wsor4035> 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 <wsor4035> we probably could have been clearer
00:46 MTDiscord <wsor4035> 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 <wsor4035> ok
00:49 MTDiscord <wsor4035> side tangent, i guess worldedit is on v5 for its schematic format?
00:49 MTDiscord <wsor4035> which maybe? old ones should be supported since https://forum.luanti.org/viewtopic.php?t=7304&amp;sid=4afcbe8db206609e08678a07777cb427&amp;start=300 exists
00:50 MTDiscord <wsor4035> blockexchange uses v5
00:50 MTDiscord <luatic> the voxelmanip one was addressed by adding a close() method
00:50 MTDiscord <wsor4035> also another cursed format to add
00:51 MTDiscord <luatic> might be interesting for the linter to suggest closing voxlrmnaips btw
00:52 MTDiscord <wsor4035> i dunno how well it can track that
00:52 MTDiscord <luatic> yeah it would need escape analysis
00:52 MTDiscord <wsor4035> 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:04 [MatrxMT] joined #luanti-devex
01:20 MTDiscord <wsor4035> besides mts, we, aascheme, blockexchange, any other weirdo formats i should care about?
01:21 MTDiscord <exe_virus> 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 <wsor4035> arguably aascheme is a weirdo pet format, but it was trival enough to support
01:26 MTDiscord <wsor4035> also, da heck kind of response to an open ended ask for more formats or no is a checkmark?
01:28 MTDiscord <exe_virus> 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 <wsor4035> https://klipy.com/gifs/hmm-ok-2
01:28 MTDiscord <wsor4035> im converting between them
01:47 MTDiscord <wsor4035> 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 <wsor4035> 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 <wsor4035> anyways, have schematic converting support. holler if you experience issues
02:04 MTDiscord <wsor4035> 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 <wsor4035> cant include them cause licensing
02:05 MTDiscord <exe_virus> AGPL yeah...
02:05 MTDiscord <wsor4035> the .we files arent agpl
02:05 MTDiscord <wsor4035> most of the thread isnt licensed
02:06 MTDiscord <wsor4035> 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 <wsor4035> 🤔 i could ga cache the zips / we files 🤔
02:44 [MatrxMT] joined #luanti-devex
02:51 [MatrxMT]_ joined #luanti-devex
02:52 [MatrxMT] joined #luanti-devex
03:12 MTDiscord <exe_virus> hashes would fix most of it, so you could check for updates
03:31 MTDiscord <sheriff_u3> Back to names again, workbench sounds great.
04:03 [MatrxMT] <Blockhead256> workbench.luanti.org/<toolname> e.g. ui, schematic, l-system ...
05:00 MTDiscord joined #luanti-devex
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 <wsor4035> yeah, might be tonight
16:51 MTDiscord <.zenonseth> yea i didn't mean right now
19:17 [MatrxMT] joined #luanti-devex
23:21 MTDiscord <wsor4035> interesting that lua api only documents some deprecated things
23:45 MTDiscord <wsor4035> well, flint now checks for more stuff. also if you use luajit exclusive stuff, get a warn.
23:45 MTDiscord <wsor4035> semi opinionated, but warn about spam files in a package not excluded via git attributes
23:48 MTDiscord <wsor4035> anyways, to web stuff

| Channels | #luanti-devex index | Today | | Google Search | Plaintext