Luanti logo

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

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

All times shown according to UTC.

Time Nick Message
00:38 Sheriff_U3 wsor4035: It works well, only had to run 4 commands to get a mod mostly modernized.
00:43 MTDiscord <wsor4035> Nice, what was missing?
01:26 Sheriff_U3 GitHub workflows, and then I just needed to get string translation setup.
01:29 MTDiscord <wsor4035> ah nice. so nothing flint can do
01:31 Sheriff_U3 Yep, I'm quite happy with what flint did do.
01:59 MTDiscord <wsor4035> so sleep or finish convert 🤔
01:59 MTDiscord <wsor4035> also probably going to drop jpg/png on zenons advise
02:49 MTDiscord <wsor4035> 👀
02:50 MTDiscord <wsor4035> https://cdn.discordapp.com/attachments/1553185365710606457/1563746419427254373/image.png?ex=6adebfd7&amp;is=6add6e57&amp;hm=3424f70637c7037b21ad1fb77b923a4b5e583e42af0727d047288cb4b9a86bb7&amp;
02:52 MTDiscord <wsor4035> i did use claude to do the language translation for me (lua/python -> rust). fixed some bugs and added both authors in the license file as its there original code that was translated
03:02 MTDiscord <wsor4035> thoughts on .x models? push those towards gltf, or leave em alone for now?
03:02 MTDiscord <wsor4035> b3d deserves to die however
03:03 Sheriff_U3 I've never found a .x file. But I'd push them to gltf.
03:07 MTDiscord <jordan4ibanez> Today on the .x files
03:07 MTDiscord <wsor4035> oh joy
03:08 MTDiscord <wsor4035> time to go read up on .x format specs
03:08 MTDiscord <jordan4ibanez> good luck
03:08 MTDiscord <wsor4035> https://klipy.com/gifs/bartlett-west-2
03:08 MTDiscord <wsor4035> maybe next weekend problem
03:08 [MatrxMT] <Blockhead256> nssm, vehicle mash
03:08 [MatrxMT] <Blockhead256> zmbobs lava flan
03:08 Sheriff_U3 I'd consider it a low priority wsor.
03:08 [MatrxMT] <Blockhead256> zmobs
03:08 MTDiscord <wsor4035> working on getting b3d added to the lint
03:08 MTDiscord <wsor4035> blockhead, are those b3d or .x?
03:09 [MatrxMT] <Blockhead256> I just gave 3 that are .x
03:09 MTDiscord <wsor4035> ah
03:09 Sheriff_U3 Blockhead256: I've never heard of those mods lol
03:09 [MatrxMT] <Blockhead256> at least in my copies which may or may not be outdated
03:09 MTDiscord <wsor4035> all old stuff that should be converted
03:09 MTDiscord <wsor4035> sheriff: living under a rock? 😛
03:09 [MatrxMT] <Blockhead256> never heard of vehicle mash? the car model is common on servers
03:09 MTDiscord <wsor4035> or blockhead and i am are just old
03:10 [MatrxMT] <Blockhead256> paracar? some_user_name+ car
03:10 [MatrxMT] <Blockhead256> mob_horse
03:10 MTDiscord <wsor4035> blockhead: i know you did some b3d to gltf testing or hacking on b3d models, but curious to see if you run into any issues with flints b3d to gltf
03:11 Sheriff_U3 well nssm has a bunch of .x files https://github.com/NPXcoot/nssm/tree/master/models
03:12 MTDiscord <wsor4035> iirc tenplus1 maintains a fork
03:12 Sheriff_U3 even his has .x files https://codeberg.org/tenplus1/nssm/src/branch/master/models
03:12 MTDiscord joined #luanti-devex
03:16 [MatrxMT] <Blockhead256> I'll try the basic trains detailed steamer, that will test animations too
03:25 [MatrxMT] <Blockhead256> oh look, debian's rustc is out of date
03:26 [MatrxMT] <Blockhead256> you don't have a copy for linux amd64 do you? would that work?
03:26 MTDiscord <wsor4035> ci makes binaries iirc
03:26 MTDiscord <wsor4035> they use musl tho
03:26 MTDiscord <wsor4035> https://github.com/luanti-org/flint/actions/runs/40157472330
03:27 MTDiscord <wsor4035> also, must make fun of debian
03:27 [MatrxMT] <Blockhead256> obligatory, of course
03:28 MTDiscord <wsor4035> yu[
03:28 MTDiscord <wsor4035> *yup
03:34 [MatrxMT] <Blockhead256> yes the detailed steam engine worked flawless
03:34 [MatrxMT] <Blockhead256> lars did a good job
03:35 [MatrxMT] <Blockhead256> this is helpful even for getting a .blend file going again because gltf imports better than b3d too
03:36 MTDiscord <wsor4035> yeah, i did fix a few bugs on top of that
03:38 [MatrxMT] <Blockhead256> oh, you weren't just fixing the port up?
03:39 MTDiscord <wsor4035> if you look at modlib, there a is a few bug reports on it
03:42 [MatrxMT] <Blockhead256> there are, were they that easily fixed? some are not that actionable just off gh
03:44 MTDiscord <wsor4035> i mean, i threw them at claude as a part of the port. so yes
04:00 MTDiscord joined #luanti-devex
05:27 ZenonSet- joined #luanti-devex
14:08 MTDiscord <wsor4035> x file format _ lint exist now
14:10 MTDiscord <wsor4035> gltf is used for the irc ir in model conversions now. i dunno if that is a good idea long term
14:10 MTDiscord <wsor4035> but its internal, so can change it up later
15:31 MTDiscord <wsor4035> i wonder how complicated it would be to compile a wasm version of flint and embed it into docs. similar to https://biomejs.dev/playground/, https://phpstan.org/try,  https://mago.carthage.software/1.27.0/en/playground/, https://prettier.io/playground/, https://playground.oxc.rs/
15:35 MTDiscord <wsor4035> created https://github.com/luanti-org/flint/issues/13 for tracking that
17:34 Sheriff_U3 wsor does flint lint --write update old minetest.net urls to luanti.org?
17:40 Sheriff_U3 btw a comment on flint format https://github.com/minetest-mods/wielded_light/pull/35#discussion_r4370019439
18:16 MTDiscord <greenxenith> Hahahaha, which one?
18:16 MTDiscord <greenxenith> (there are like 5 competing .x specs)
18:49 MTDiscord <wsor4035> Nope
18:50 MTDiscord <wsor4035> Its opinated for a reason
18:51 MTDiscord <wsor4035> Try it on some models and see
19:59 Sheriff_U3 wsor4035: So far the b3d to gltf conversion is working well!
21:30 MTDiscord <wsor4035> should i care about [*.]minetest.net -> [*.]luanti.org links? 🤔
21:30 MTDiscord <wsor4035> also, mildly curious what you have used it on to convert to far
21:31 Sheriff_U3 It would be nice to update the links, but not a big deal.
21:32 Sheriff_U3 So far I've used convert for .tr --> .po and .b3d --> .glb
21:32 MTDiscord <wsor4035> which packages is what im asking, sorry
21:32 MTDiscord <wsor4035> for b3d
21:32 MTDiscord <wsor4035> make an issue for the links, next weekend project maybe
21:36 Sheriff_U3 I've tested with tmw_slimes and Bear.b3d in animalworld.
21:38 MTDiscord <wsor4035> thanks
21:39 Sheriff_U3 Wonder if MTG would accept a pr that changes the player model to .glb since .b3d is listed in breakages.md...
21:54 [MatrxMT] <Blockhead256> try it
22:00 MTDiscord <.zenonseth> does mtg keep some lower bound min luanti ver to support? since its so ubiquitous? or is it already bumped pretty high?
22:01 MTDiscord <sheriff_u3> I think it's at 5.7 or 5.8 right now maybe?
22:16 [MatrxMT] <Blockhead256> below 5.9 precludes gltf :\
22:16 [MatrxMT] <Blockhead256> but that's ancient, c'mon now
22:17 [MatrxMT] <Blockhead256> even debian has 5.10
22:21 Sheriff_U3 whenever core.get_mapgen_edges was added is the min needed to run MTG right now. https://github.com/luanti-org/minetest_game/blob/master/mods/default/init.lua#L20C4-L20C25
22:21 MTDiscord <wsor4035> you could run flint against it to see what it thinks
22:22 MTDiscord <wsor4035> https://github.com/luanti-org/flint/blob/5a3ea90ada8d9d5d8e218e9fdc8335e193a9892e/src/generate/api_versions.rs#L44 5,7
22:24 Sheriff_U3 Well a bump to 5.10 wouldn't be too bad then. Just have to convince some of the core devs that it's a good idea to use .glb and .po in MTG...
22:24 MTDiscord <wsor4035> difference between client and server version supported tho
22:25 Sheriff_U3 If .glb was used then it would break compatibility any client under 5.10 right?
22:27 Sheriff_U3 *with any
22:27 MTDiscord <wsor4035> yeah
22:28 Sheriff_U3 So then it if your gonna move from .b3d then you might as well do the same with .tr
22:28 MTDiscord <wsor4035> ah least with translations you kinda can be like screw em. vs with models not so much
22:45 Sheriff_U3 wsor4035: [linter.lints]\nluanti_legacy_tr_translation = "allow"\nluanti_minetest_global = "allow"\n should prevent warnings from minetest. and .tr right? If so then it's not working. Try running flint lint with that config on MTG.
22:56 Sheriff_U3 Well flint can fix 2392 out of 2629 of the warnings/errors it finds with MTG. Looks like a lot of the errors are missing assert params.
22:59 Sheriff_U3 Interesting in game.conf MTG has min_minetest_version = 5.8
23:03 MTDiscord <luatic> wdym "missing assert params"? the message of assert is optional...
23:05 MTDiscord <sheriff_u3>  error[incorrect_standard_library_use]: standard library function `assert` requires 2 parameters, 1 passed    ┌─ ./mods/spawn/init.lua:32:2    │ 32 │     assert(id ~= nil)    │     ^^^^^^^^^^^^^^^^^    │    = A failed assertion without a message is unhelpful to users.
23:08 MTDiscord <luatic> yeah that's a.. nonsense lint. inherited from selene?
23:08 MTDiscord <luatic> "requires two parameters" is patently wrong. it requires only a single parameter, the message is deliberately optional.
23:09 MTDiscord <luatic> assertions do not need to be helpful to users, they need to be helpful to developers
23:09 MTDiscord <wsor4035> seems like a nonsense take
23:09 MTDiscord <wsor4035> its not saying that its required, its pointing out to have one rather than nothing
23:09 MTDiscord <luatic> >standard library function assert requires 2 parameters, 1 passed
23:09 MTDiscord <luatic> this wording is wrong
23:10 [MatrxMT] <Blockhead256> sheriff, does it say it's an error because of --strict ?
23:10 MTDiscord <luatic> and the "justification" as "no message is unhelpful" is also wrong
23:10 Sheriff_U3 Blockhead256: I ran `flint lint`
23:10 MTDiscord <luatic> and that this is being considered an error is even more ridiculous, even if it was on strict mode or whatever
23:10 [MatrxMT] <Blockhead256> so it's bs to be an error, and it's not a strict error
23:10 MTDiscord <wsor4035> there is no --strict
23:11 MTDiscord <luatic> it seems to me like this assumes a very specific way of doing error handling in lua, which is clearly neither the way the lua authors had in mind nor something i would personally necessarily consider sensible
23:11 [MatrxMT] <Blockhead256> "let's add 100 localised strings to MTG because the linter told us to"
23:12 MTDiscord <luatic> assert()s are frequently used for code invariants. no value is gained when every assert is given a "this shouldn't happen" error message.
23:12 MTDiscord <wsor4035> you dont localize messages that go to out
23:13 MTDiscord <luatic> very little value is gained when the programmer paraphrases an invariant that is already spelt out clearly in the assert().
23:13 MTDiscord <luatic> theoretically this might help a non-technical user, but the best that user can do is pretty much send the repro steps and stack trace to the developer anyways.
23:14 MTDiscord <luatic> (or these days: drop it into their favorite LLM, which will also have no trouble paraphrasing the condition and won't benefit from the message at all)
23:14 MTDiscord <wsor4035> anyways, all this (above) seems like a waste of time  > It is highly recommended that you do not turn this lint off. If you are having standard library issues, modify your standard library instead to be correct. If it is a problem with an official standard library (Ex: the Lua 5.1 or Roblox ones), you can file an issue on GitHub. 1. check that flint is setting the right std 2. see if bug in flint
23:17 MTDiscord <luatic> not really a bug, more like bad taste. see https://github.com/Kampfkarren/selene/issues/448.
23:18 MTDiscord <luatic> as you can see, the justification for having a crappy lint apparently is "crappy roblox tools make my stack traces unusable".
23:18 MTDiscord <luatic> i don't think this specific lint is something we should cargo cult for luanti.
23:20 MTDiscord <wsor4035> >That being said, feel free to move the existing assert error off to a new warn, which you'd then be able to locally disable.
23:20 Sheriff_U3 https://github.com/Kampfkarren/selene/blob/main/README.md?plain=1#L8 lol
23:20 MTDiscord <luatic> the good news is that this poor default should be easily fixable on our end by specifying an alternative assert arity in a custom standard library toml, unless i'm missing something?
23:21 [MatrxMT] <Blockhead256> sheriff_U3: as in, prefer false negative to false positives
23:22 [MatrxMT] <Blockhead256> that's not a bad decision
23:22 Sheriff_U3 ah
23:26 MTDiscord <wsor4035> anyways, i "fixed" it. luatic is being way to harsh on this tbh
23:33 MTDiscord <luatic> thanks for fixing it
23:34 MTDiscord <luatic> i'm bashing this lint because i think it's crap. that doesn't make selene or flint crap, not at all!
23:37 MTDiscord <luatic> (in all fairness, i will add that there are places where i abuse assert() where i should've written a proper error message that this lint would've complained about. but i know about these places myself already, and i only know that it is abuse because i know that in the surrounding context, the error can propagate to a user, and will be crap if it does. these are also places where i ought to distinguish between different "kinds" of
23:37 MTDiscord errors, so assert() is not really the right tool to begin with, at least not with a raw string error message.)

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