Luanti logo

IRC log for #luanti-devex, 2026-10-24

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

All times shown according to UTC.

Time Nick Message
00:48 MTDiscord <wsor4035> releases? what witchcraft is this
00:52 MTDiscord <the4spaceconstants2181> tags with files and a .md
00:54 MTDiscord <wsor4035> yes, its sarcasm
00:54 MTDiscord <wsor4035> and making fun of myself to a degree since i havent/dont do releases
01:06 wsor4035 Sheriff_U3: https://github.com/luanti-org/flint/issues/9 thoughts?
01:06 wsor4035 i mean, you could exclude the files i guess
01:54 MTDiscord <wsor4035> also --write exists for flint lint and fixes stuff
03:35 [MatrxMT] joined #luanti-devex
04:00 MTDiscord joined #luanti-devex
04:02 MTDiscord <sheriff_u3> My thinking was that in most cases unused .lua/.png/.jpg/.gltf/.glb/.ogg files could be a mistake.
11:03 MTDiscord <.zenonseth> detecting unused files isn't a trivial job though
11:03 MTDiscord <.zenonseth> requires a lot more code parsing than just string finding
11:36 MTDiscord <luatic> it's basically impossible unless you wish to impose serious restrictions on how people reference media
11:37 MTDiscord <luatic> same as translation strings, you'd have to require that each media file name appears verbatim in the source.
11:48 MTDiscord <.zenonseth> yeah you may be able to catch 80% of cases with just simple string lookup but there's way too many ways a media file can be referenced to from code
11:57 [MatrxMT] <Blockhead256> even the engine doesn't detect unused media, just sends it all
14:51 MTDiscord1 joined #luanti-devex
14:57 MTDiscord <wsor4035> cc @rubenwardy on github actions admin org approval again
15:37 MTDiscord <wsor4035> added options to https://github.com/luanti-org/flint/issues/8, did i miss anything?
15:46 MTDiscord <.zenonseth> i like that .cdb.json is on the list, nice
18:50 [MatrxMT] joined #luanti-devex
19:18 MTDiscord <wsor4035> i created https://github.com/luanti-org/flint/issues/10 for modtools functionality
19:20 MTDiscord <wsor4035> looking over the functionality of some of that, it seems flint init xyz would just be for creating stuff currently. however it seems there is valid inquery for updating. so i wonder if it should be something other than flint init xyz to better reflect that, or if there should be a flint update xyz
19:24 MTDiscord <wsor4035> maybe flint generate xyz
19:24 MTDiscord <wsor4035> i hate naming things. insert age old meme of programmers and naming things
19:25 MTDiscord <greenxenith> init is pretty ubiquitous verbiage
19:25 MTDiscord <greenxenith> git init, npm init, etc
19:26 MTDiscord <wsor4035> yes, but has a connotation of first run/run once, which is the problem here
19:26 MTDiscord <wsor4035> > however it seems there is valid inquery for updating
19:26 MTDiscord <wsor4035> i.e. updating your translation file, settingtypes file, etc
19:26 MTDiscord <greenxenith> Generally projects have separate commands
19:27 MTDiscord <greenxenith> Less ambiguity
19:27 MTDiscord <wsor4035> i guess, but they would be doing 99% the same thing
19:28 MTDiscord <wsor4035> also having been semi burned by flint modernize becoming flint lint --write, rather not do that again
19:28 MTDiscord <rubenwardy> I'd expect flint init to make a me a mod/game/etc folder
19:29 MTDiscord <rubenwardy> I'd expect flint init to set up content to run flint, so add the .flintrc.json maybe ask some questions
19:30 MTDiscord <wsor4035> the change of opinion, and also saying files that dont exist
19:34 MTDiscord <wsor4035> while your around, cough in https://discordapp.com/channels/369122544273588224/1553185365710606457/1563566987802574870 direction
19:35 MTDiscord <wsor4035> anyways, to your point i originally suggested flint create in https://github.com/luanti-org/flint/issues/8#issuecomment-6279756142, however that has the same issue
19:39 MTDiscord <wsor4035> currently leaning flint generate xyz unless someone has better ideas for something else
19:55 [MatrxMT] <Zughy> Where am I 👁️
19:57 MTDiscord <wsor4035> in the devex channel on the luanti space
19:57 MTDiscord <wsor4035> for devex team things
19:57 [MatrxMT] joined #luanti-devex
19:57 MTDiscord <.zenonseth> the bridge is so slow
19:57 MTDiscord <.zenonseth> or.. even skipping msgs??
19:57 MTDiscord <wsor4035> seems bad
19:58 [MatrxMT] <probably wsor> interesting
19:58 [MatrxMT] <Zenon Seth> yes, very bad
19:58 wsor4035 hmm
19:58 wsor4035 ah, you need to be on irc to see it
19:58 wsor4035 the matrix bot rebooted? or something? between the couple missing messages
19:58 wsor4035 all good
19:59 MTDiscord <wsor4035> sheriff: ill look in like 10 minutes
20:00 Sheriff_U3 :thumbsup:
20:02 [MatrxMT] joined #luanti-devex
20:11 MTDiscord <wsor4035> cargo run -- --path samplemods\sheriff_test lint --write works for me in dev
20:11 MTDiscord <wsor4035> sure you have the latest commit?
20:12 Sheriff_U3 Let me check
20:12 Sheriff_U3 ahh I'm missing one
20:12 MTDiscord <wsor4035> minor detail :p
20:13 Sheriff_U3 Looks like I forgot to pull before compiling.
20:16 MTDiscord <wsor4035> re docs, going to screw around with pushing submodule updates direct to docs
20:16 MTDiscord <wsor4035> probably using deploy key
20:16 MTDiscord <wsor4035> https://klipy.com/gifs/jacksparrow-jack-sparrow
20:16 MTDiscord <wsor4035> https://klipy.com/gifs/tonight-we-test-in-prod
20:20 MTDiscord <.zenonseth> just for flint or?
20:21 Sheriff_U3 I'd just test it in one repo before doing it to both in case it doesn't work.
20:24 MTDiscord <wsor4035> im doing it in flint, and if it works luma (assuming you have no objections
20:24 [MatrxMT] joined #luanti-devex
20:25 MTDiscord <.zenonseth> no objections, was wondering
20:25 Sheriff_U3 wsor what do you think of having flint estimate the min_minetest_version of a package?
20:28 [MatrxMT] joined #luanti-devex
20:28 MTDiscord <wsor4035> no objections other than it might end up being a giant list of every method in luanti and when it was added.....
20:28 MTDiscord <wsor4035> unless you have a better idea of how to do it?
20:29 MTDiscord <wsor4035> re github action. scary, it worked. ill make keys for luma
20:29 MTDiscord <.zenonseth> i wouldn't say it should cover every method, i would say that perhaps just based on formspec version - but even that can be dynamically inserted so its not easy to be sure
20:30 MTDiscord <.zenonseth> (as in, formspec version should warn if someone tries to set min version lower than what they have in code available)
20:30 MTDiscord <wsor4035> and if the mod/game/etc has no formspecs in it?
20:31 MTDiscord <wsor4035> and uses async env, etc?
20:32 Sheriff_U3 wsor Unfortunately not, good luck figuring out what was added when before v5. (I've attempted before in a vibe-coded go program, works for the most part.)
20:32 MTDiscord <.zenonseth> the way i was thinking is diff than what Sheriff was suggesting - not giving an estimate / suggestion but rather warning when something obvious is wrong - no warning doesn't mean it will 100% work, but a warning should mean it will 100% break on older verisons because your min_version is too low
20:32 MTDiscord <greenxenith> I dont think should be supporting mods before v5
20:33 MTDiscord <.zenonseth> +1 (because i don't have that emoji :P)
20:33 MTDiscord <wsor4035> yeah, before v5 i dont care
20:33 MTDiscord <wsor4035> sheriff, make an issue, worth tracking
20:33 MTDiscord <wsor4035> may be forever till it happens since it might tie into lsp/machine readable docs
20:34 MTDiscord <wsor4035> since i dont want to maintain that table by hand
20:34 MTDiscord <wsor4035> suppose i could just vibe update it till the machine readable docs
20:35 MTDiscord <wsor4035> zenon: DOCS_LUMA_DEPLOY_KEY is the secret in your repo. copy https://github.com/luanti-org/flint/commit/54ca73295efdd55f2a98b523a6eb174a79a4e882 and s/DOCS_FLINT_DEPLOY_KEY/DOCS_LUMA_DEPLOY_KEY
20:35 MTDiscord <.zenonseth> this is partly why i was suggesting to start with formspec, that list is at least seemingly maintained per version
20:35 MTDiscord <wsor4035> its not
20:36 MTDiscord <wsor4035> read version history and note the gaps
20:36 MTDiscord <wsor4035> also, that came by vrob via me orginally
20:37 MTDiscord <wsor4035> also s/master/main for your repo
20:37 MTDiscord <wsor4035> for branches
20:38 MTDiscord <.zenonseth> https://github.com/luanti-org/luma/pull/34
20:39 MTDiscord <.zenonseth> what do you use that stlll creates 'master' ??
20:40 MTDiscord <wsor4035> my system
20:41 Sheriff_U3 I still use master as well.
20:41 MTDiscord <wsor4035> idk, i never cared to change it
20:41 Sheriff_U3 .zenonseth: Left a comment otherwise looks fine.
20:41 MTDiscord <.zenonseth> yeah i replied
20:42 MTDiscord <wsor4035> i totally didnt have ai write the workflow since i didnt want to read all of githubs docs
20:44 MTDiscord <.zenonseth> wsor want to have a look before i merge and  break docs everything goes fine?
20:44 MTDiscord <wsor4035> send it
20:44 MTDiscord <wsor4035> already had it open
20:45 MTDiscord <wsor4035> hmm, so if we both push at the same time somehow. i wonder what happens to docs
20:45 MTDiscord <wsor4035> 🤷
20:47 MTDiscord <.zenonseth> probably nothing bad
20:47 [MatrxMT] joined #luanti-devex
20:47 MTDiscord <wsor4035> ah, git rejects one. which is fine since in theory dependabot is the failsafe to make a pr if that happens
20:47 MTDiscord <wsor4035> mostly since i was to lazy to exclude our submodules from being checked
20:48 MTDiscord <wsor4035> re #github-feed. i guess it blames me for all of them since i made the deploy keys?
20:48 MTDiscord <wsor4035> even tho git blames the action bot
20:49 [MatrxMT] joined #luanti-devex
20:51 MTDiscord <.zenonseth> a lot of msgs there seem weirdly attributed to me
20:51 MTDiscord <wsor4035> ...? what do you see
20:52 MTDiscord <wsor4035> also, maybe luma and flint should be in that channel
20:53 MTDiscord <.zenonseth> ah maybe not, its based on who merges the commit not who made it
20:53 MTDiscord <.zenonseth> (i meant about  the "what do you see" question)
20:53 MTDiscord <wsor4035> ah
20:54 MTDiscord <.zenonseth> does the workflow directly touch master? maybe it just picks up whoever it had last for merging
20:54 MTDiscord <wsor4035> done
20:54 MTDiscord <.zenonseth> anyway, it doesn't matter, blaming you seems like the responsible thing :) - that is a bot cannot be blamed
20:55 MTDiscord <wsor4035> maybe green will care enough to split it up at some point
20:55 MTDiscord <wsor4035> some other repos arent in there i guess
20:55 MTDiscord <wsor4035> dont care
20:56 MTDiscord <greenxenith> ? Thats a webhook github controls
20:56 MTDiscord <greenxenith> Unless you mean multiple webhooks?
20:56 MTDiscord <greenxenith> Which I dont think would solve this?
20:56 MTDiscord <wsor4035> which repos get dumped into there
20:56 MTDiscord <greenxenith> Aha
20:56 MTDiscord <wsor4035> i.e. if you wanted engine vs tools vs docs vs content
20:56 MTDiscord <greenxenith> I dont think we have the volume to justify that
20:56 MTDiscord <wsor4035> should i add the other repos or who cares?
20:57 MTDiscord <wsor4035> well, i dont have access to that
20:57 MTDiscord <wsor4035> so i opt for who cares, otherwise annoy the fancy core dev here or someone else 😛
20:58 MTDiscord <wsor4035> sheriff: i added the first fix that checks the min version
20:59 MTDiscord <wsor4035> might need to update the other ones
21:05 MTDiscord <wsor4035> also leads into, if no min version, or an old min version, should i actually warn about the stuff?
21:06 MTDiscord <rubenwardy> I am ill and don't feel like reading a legal document
21:07 MTDiscord <rubenwardy> ask claude I guess, my legal team
21:07 MTDiscord <wsor4035> get well, worry about it then
21:12 MTDiscord <wsor4035> if min is set: report and fix if applicable lower: no report, no fix none: report (note set a version), but no fix
21:12 MTDiscord <wsor4035> this way you only get annoyed if you dont have a min version
21:12 MTDiscord <wsor4035> which you should have
21:12 MTDiscord <.zenonseth> seems reasonable
21:15 MTDiscord <wsor4035> anyways, https://github.com/luanti-org/flint/issues/8 seems to becoming the root of every other issue
21:15 MTDiscord <wsor4035> heh
22:13 MTDiscord <wsor4035> for obj -> nodebox. i was thinking flint convert ....something...., which would handle conversion. maybe supporting jpg -> png obj/gltf -> nodebox b3d -> gltf ???  dunno what else exists, and what actual (rust) support exists for doing this
22:18 Sheriff_U3 for obj/gltf -> nodebox I'm wondering how you will handle angles.
22:24 MTDiscord <wsor4035> https://github.com/luanti-org/flint/issues/12
22:24 MTDiscord <wsor4035> good question, it comes from the modtools issue tracker
22:24 MTDiscord <wsor4035> i guess either flatten them or ignore them
22:25 MTDiscord <wsor4035> the scary thing is dunno if there is a good b3d to gltf solution that exists. i guess i could take all of cdb, and throw it at claude to test end to end
22:33 MTDiscord <wsor4035> ah right, bloatlib supports this
22:34 MTDiscord <wsor4035> so i would have to port it to rust
22:34 MTDiscord <wsor4035> https://github.com/appgurueu/modlib/blob/master/doc/b3d.md#write_gltffile
22:36 MTDiscord <wsor4035> assimp might? support it
22:38 MTDiscord <wsor4035> https://github.com/assimp/assimp/blob/master/doc/Fileformats.md
22:38 MTDiscord <wsor4035> but gltf is marked as partial for export, whatever that means
22:42 MTDiscord <.zenonseth> I'm out of the loop, why are we converting obj to nodebox? and why jpg to png? (jpg is supported afaik)
22:42 MTDiscord <.zenonseth> like obj->nodebox seems maybe getting a bounding box may be useful, but thats diff
22:42 MTDiscord <wsor4035> the first one because someone wanted it. second because png > jpeg (compressing, support transparency, etc)
22:44 MTDiscord <wsor4035> also i added tr -> po to the issue list. since someone might want it stand alone rather than making a fake mod to convert
22:44 MTDiscord <.zenonseth> im sure theres some cases where a png compression is better than  jpg, but also going from jpg-> png won't get you any transparency pixels..
22:44 MTDiscord <wsor4035> your the core dev, id be fine with the engine killing nodeboxes 😉
22:45 MTDiscord <.zenonseth> lol
22:45 MTDiscord <wsor4035> ik, just saying its the more ideal format. jpg is rather not used in mods generally
22:46 MTDiscord <wsor4035> someone will now pull all of cdb to prove that its more than i think
22:46 MTDiscord <.zenonseth> hmm i do have that mirror of CDB ..
22:47 MTDiscord <.zenonseth> anyway I actually voiced my objection to killing nodeboxes because they have optimizations that obj don't and frankly, they're super easy for a code-person to make
22:47 Sheriff_U3 I worked with a texture pack that used a lot of jpegs recently.
22:47 MTDiscord <wsor4035> im not saying that they dont exist, just that there not common
22:48 MTDiscord <.zenonseth> but obj -> nodebox is just weird imho 🤷
22:48 MTDiscord <wsor4035> also, this is purely in converter land, not lint or anything (but for b3d to gltf i would share that code into lint)
22:48 Sheriff_U3 It would likely be for those who want to use blockbench or blender to make a nodebox.
22:49 MTDiscord <wsor4035> https://github.com/luanti-org/modtools/issues/14
22:49 MTDiscord <wsor4035> it is a workflow
22:49 MTDiscord <wsor4035> oh nice, the code is mit. so i can actually read it and translate it instead of making my own
22:54 MTDiscord <wsor4035> i guess for the command flint convert in out file
22:54 MTDiscord <wsor4035> so flint convert b3d gltf thing.b3d
22:55 MTDiscord <wsor4035> hmm, assimp export model.b3d model.glb
22:56 MTDiscord <wsor4035> maybe i should just run off inputs extension/mimetype and then assume based on output extension
22:56 MTDiscord <.zenonseth> you want to be opinionated, why have a out?
22:57 MTDiscord <.zenonseth> flint should (maybe) recommend only 1 target output type for each input file type
22:58 MTDiscord <wsor4035> because thats for some, not all. like you might want to eventually convert a b3d to nodebox. which i dont understand, but might want
22:58 MTDiscord <wsor4035> so if its b3d in, does it go to gltf or nodebox?
22:58 Sheriff_U3 convert from .b3d to gltf to nodebox
22:59 MTDiscord <wsor4035> sure, but then the user has to run it twice
22:59 MTDiscord <.zenonseth> nodebox is potentally a destructive format (loses info) so that should be its own thing ?
22:59 MTDiscord <wsor4035> in convert i wouldnt delete the orginal, so you would always have it
22:59 MTDiscord <.zenonseth> also i gotta be honest, i have no idea how you can convert a model's textures into a nodebox texture, that's a) nontrivial and b) also destructive
23:00 MTDiscord <.zenonseth> yeah, i get that, but just saying, nodebox-ify maybe its own
23:00 MTDiscord <.zenonseth> 🤷 idk to keep it simple cause otherwise
23:00 MTDiscord <wsor4035> did you read the issue/linked code?
23:00 MTDiscord <wsor4035> https://github.com/regulus79/objtonodebox
23:01 MTDiscord <wsor4035> i have no idea what exactly it does internally, just looking at feature functionality atm, semi derived from stuff we have, what people want, what i want
23:01 MTDiscord <.zenonseth> it doesn't texture?
23:02 MTDiscord <wsor4035> that would make sense
23:03 MTDiscord <.zenonseth> I'm not sure you want to tackle that, per-vertex texture coords -> side-projected texture
23:04 MTDiscord <wsor4035> all im planning on doing is converting what it does today to rust. past that i dont really care and people can submit prs
23:06 MTDiscord <.zenonseth> also re comands:  flint preffered-format mytexture.jpeg -- outputs mytexture.png flint preffered-format somemodel.b3d mything.gltf -- outputs the mything.gltf flint make-nodebox somemodel.b3d -- outputs a nodebox file (which isn't usable directly anyway)
23:06 MTDiscord <.zenonseth> just my 2c
23:06 Sheriff_U3 there's an idea, make a new nodebox file format
23:06 MTDiscord <.zenonseth> almost certainly not going to happen
23:07 MTDiscord <wsor4035> im fairly sure luanti wants no part in custom file formats anymore
23:07 Sheriff_U3 lol
23:07 MTDiscord <wsor4035> and is trying to kill the ones that still exist
23:07 Sheriff_U3 yeah hopefully luanti learned it's lesson with .tr
23:07 MTDiscord <wsor4035> why does your first have one arg, but the second two args? also both seem much less friendly than just convert
23:08 MTDiscord <.zenonseth> because 2nd arg should be optional - extensions differ, filename remains same
23:09 MTDiscord <.zenonseth> "preffered-format" is just my quick name, too long i agree. But if you like the idea you had just to convert then 🤷
23:19 MTDiscord <wsor4035> honestly, this convert stuff is probably going to be the biggest source of bugs/complaints in flint imo
23:21 MTDiscord <wsor4035> well, at least with the other stuff i can mostly kick upstream 😛
23:22 MTDiscord <.zenonseth> i think it falls a bit outside flint's scope, but it's your tool, you decide how much extra to stuff in there :)
23:23 MTDiscord <wsor4035> does it? its the tool for devs. and thats what this is
23:23 MTDiscord <wsor4035> i guess if it consider it purely formatting and linting
23:24 MTDiscord <.zenonseth> file conversion? yea, there's entire separate tools for stuff like that
23:24 MTDiscord <.zenonseth> "tool for devs" could also be used to justify building a full nodebox editor into it, you want you can copy mine
23:25 MTDiscord <.zenonseth> 😁
23:25 MTDiscord <wsor4035> cli
23:25 MTDiscord <wsor4035> true
23:26 MTDiscord <wsor4035> i only really care about tr and b3d since they are highly specific luanti junk no one else cares about (yes b3d is external, no one but us cares anymore)
23:27 MTDiscord <.zenonseth> yea fair, just saying you have good reasons to say 'well other tools exist, we may work some custom ones into flint, but it's more feature creep' or something
23:36 MTDiscord <wsor4035> sheriff: flint generate is a thing. can play with it whenever and see what you think
23:36 MTDiscord <wsor4035> i ended up hardcoded file. will need to be updated every luanti version 🙄
23:52 Sheriff_U3 neat will take a look

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