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 Nice, what was missing? 01:26 Sheriff_U3 GitHub workflows, and then I just needed to get string translation setup. 01:29 MTDiscord ah nice. so nothing flint can do 01:31 Sheriff_U3 Yep, I'm quite happy with what flint did do. 01:59 MTDiscord so sleep or finish convert 🤔 01:59 MTDiscord also probably going to drop jpg/png on zenons advise 02:49 MTDiscord 👀 02:50 MTDiscord https://cdn.discordapp.com/attachments/1553185365710606457/1563746419427254373/image.png?ex=6adebfd7&is=6add6e57&hm=3424f70637c7037b21ad1fb77b923a4b5e583e42af0727d047288cb4b9a86bb7& 02:52 MTDiscord 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 thoughts on .x models? push those towards gltf, or leave em alone for now? 03:02 MTDiscord 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 Today on the .x files 03:07 MTDiscord oh joy 03:08 MTDiscord time to go read up on .x format specs 03:08 MTDiscord good luck 03:08 MTDiscord https://klipy.com/gifs/bartlett-west-2 03:08 MTDiscord maybe next weekend problem 03:08 [MatrxMT] nssm, vehicle mash 03:08 [MatrxMT] zmbobs lava flan 03:08 Sheriff_U3 I'd consider it a low priority wsor. 03:08 [MatrxMT] zmobs 03:08 MTDiscord working on getting b3d added to the lint 03:08 MTDiscord blockhead, are those b3d or .x? 03:09 [MatrxMT] I just gave 3 that are .x 03:09 MTDiscord ah 03:09 Sheriff_U3 Blockhead256: I've never heard of those mods lol 03:09 [MatrxMT] at least in my copies which may or may not be outdated 03:09 MTDiscord all old stuff that should be converted 03:09 MTDiscord sheriff: living under a rock? 😛 03:09 [MatrxMT] never heard of vehicle mash? the car model is common on servers 03:09 MTDiscord or blockhead and i am are just old 03:10 [MatrxMT] paracar? some_user_name+ car 03:10 [MatrxMT] mob_horse 03:10 MTDiscord 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 iirc tenplus1 maintains a fork 03:12 Sheriff_U3 even his has .x files https://codeberg.org/tenplus1/nssm/src/branch/master/models 03:16 [MatrxMT] I'll try the basic trains detailed steamer, that will test animations too 03:25 [MatrxMT] oh look, debian's rustc is out of date 03:26 [MatrxMT] you don't have a copy for linux amd64 do you? would that work? 03:26 MTDiscord ci makes binaries iirc 03:26 MTDiscord they use musl tho 03:26 MTDiscord https://github.com/luanti-org/flint/actions/runs/40157472330 03:27 MTDiscord also, must make fun of debian 03:27 [MatrxMT] obligatory, of course 03:28 MTDiscord yu[ 03:28 MTDiscord *yup 03:34 [MatrxMT] yes the detailed steam engine worked flawless 03:34 [MatrxMT] lars did a good job 03:35 [MatrxMT] this is helpful even for getting a .blend file going again because gltf imports better than b3d too 03:36 MTDiscord yeah, i did fix a few bugs on top of that 03:38 [MatrxMT] oh, you weren't just fixing the port up? 03:39 MTDiscord if you look at modlib, there a is a few bug reports on it 03:42 [MatrxMT] there are, were they that easily fixed? some are not that actionable just off gh 03:44 MTDiscord i mean, i threw them at claude as a part of the port. so yes 14:08 MTDiscord x file format _ lint exist now 14:10 MTDiscord gltf is used for the irc ir in model conversions now. i dunno if that is a good idea long term 14:10 MTDiscord but its internal, so can change it up later 15:31 MTDiscord 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 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 Hahahaha, which one? 18:16 MTDiscord (there are like 5 competing .x specs) 18:49 MTDiscord Nope 18:50 MTDiscord Its opinated for a reason 18:51 MTDiscord 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 should i care about [*.]minetest.net -> [*.]luanti.org links? 🤔 21:30 MTDiscord 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 which packages is what im asking, sorry 21:32 MTDiscord for b3d 21:32 MTDiscord 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 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] 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 I think it's at 5.7 or 5.8 right now maybe? 22:16 [MatrxMT] below 5.9 precludes gltf :\ 22:16 [MatrxMT] but that's ancient, c'mon now 22:17 [MatrxMT] 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 you could run flint against it to see what it thinks 22:22 MTDiscord 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 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 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 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 wdym "missing assert params"? the message of assert is optional... 23:05 MTDiscord 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 yeah that's a.. nonsense lint. inherited from selene? 23:08 MTDiscord "requires two parameters" is patently wrong. it requires only a single parameter, the message is deliberately optional. 23:09 MTDiscord assertions do not need to be helpful to users, they need to be helpful to developers 23:09 MTDiscord seems like a nonsense take 23:09 MTDiscord its not saying that its required, its pointing out to have one rather than nothing 23:09 MTDiscord >standard library function assert requires 2 parameters, 1 passed 23:09 MTDiscord this wording is wrong 23:10 [MatrxMT] sheriff, does it say it's an error because of --strict ? 23:10 MTDiscord and the "justification" as "no message is unhelpful" is also wrong 23:10 Sheriff_U3 Blockhead256: I ran `flint lint` 23:10 MTDiscord and that this is being considered an error is even more ridiculous, even if it was on strict mode or whatever 23:10 [MatrxMT] so it's bs to be an error, and it's not a strict error 23:10 MTDiscord there is no --strict 23:11 MTDiscord 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] "let's add 100 localised strings to MTG because the linter told us to" 23:12 MTDiscord 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 you dont localize messages that go to out 23:13 MTDiscord very little value is gained when the programmer paraphrases an invariant that is already spelt out clearly in the assert(). 23:13 MTDiscord 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 (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 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 not really a bug, more like bad taste. see https://github.com/Kampfkarren/selene/issues/448. 23:18 MTDiscord as you can see, the justification for having a crappy lint apparently is "crappy roblox tools make my stack traces unusable". 23:18 MTDiscord i don't think this specific lint is something we should cargo cult for luanti. 23:20 MTDiscord >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 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] sheriff_U3: as in, prefer false negative to false positives 23:22 [MatrxMT] that's not a bad decision 23:22 Sheriff_U3 ah 23:26 MTDiscord anyways, i "fixed" it. luatic is being way to harsh on this tbh 23:33 MTDiscord thanks for fixing it 23:34 MTDiscord 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 (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.)