Luanti logo

IRC log for #luanti, 2025-12-06

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

All times shown according to UTC.

Time Nick Message
00:37 SFENCE joined #luanti
01:06 SFENCE joined #luanti
01:53 mrcheese joined #luanti
01:53 mrcheese joined #luanti
02:19 ___nick___ joined #luanti
02:22 ___nick___ joined #luanti
02:23 SwissalpS joined #luanti
02:41 SFENCE joined #luanti
02:50 SFENCE_arch joined #luanti
03:02 fling_ joined #luanti
03:07 SFENCE joined #luanti
03:24 tzenfore joined #luanti
03:41 SFENCE joined #luanti
03:51 fluxionary joined #luanti
04:17 SFENCE joined #luanti
04:50 SFENCE joined #luanti
04:51 SFENCE joined #luanti
04:53 Verticen joined #luanti
05:00 MTDiscord joined #luanti
05:35 Verticen_ joined #luanti
05:50 SFENCE joined #luanti
06:05 SFENCE joined #luanti
06:12 SFENCE_ joined #luanti
06:20 SFENCE_ I assume, If I would like to do a recipe, which will change item, but do not change item wear, it is not possible in actual engine?
06:21 silverwolf73828 joined #luanti
06:23 [MatrxMT] <Blockhead256> probably need to use `core.register_on_craft` to make sure the wear is set appropriately
06:46 Verticen_ joined #luanti
06:47 fluxionary joined #luanti
07:08 SwissalpS SFENCE_: you probably need to catch in core.on_craft() or smth like that and transfer the meta data.
07:09 [MatrxMT] <Blockhead256> SwissalpS: You don't mean monkeypatching do you? Because surely the callback I mentioned is fine
07:09 SwissalpS github/mt-mods/glider does something similar
07:10 SwissalpS Blockhead256 my blury morning eyes didn't see your message between all those join/quit messages ;)
07:10 SwissalpS that's the one :D
07:10 [MatrxMT] <Blockhead256> aha, I don't get join/quit spam in Matrix :P
07:59 fluxionary joined #luanti
08:09 FeXoR joined #luanti
08:21 MinetestBot [git] OffTheBeatenByte -> luanti-org/luanti: Fix incorrect minimap radar access (#16709) cc16a55 https://github.com/luanti-org/luanti/commit/cc16a55d7898fced137d7b3ed8e2ccd3baaeabeb (2025-12-06T08:20:48Z)
08:21 MinetestBot [git] Desour -> luanti-org/luanti: Add order check in unittest for `privs_to_string` 5f468ea https://github.com/luanti-org/luanti/commit/5f468eae21116a31d637d170fd9516c5a5879e75 (2025-12-06T08:21:05Z)
09:07 sys4 joined #luanti
09:11 sys4 joined #luanti
09:12 fling joined #luanti
09:56 jaca122 joined #luanti
09:57 YuGiOhJCJ joined #luanti
10:12 Oblomov joined #luanti
10:34 mrkubax10 joined #luanti
11:53 mrkubax10 joined #luanti
12:18 jstein joined #luanti
13:39 ireallyhateirc joined #luanti
13:55 turtleman joined #luanti
14:09 [MatrxMT] <Bracket> Can you preload mapblocks?
14:15 MTDiscord <wsor4035> What immediately comes to mind is force loading
14:15 MTDiscord <wsor4035> Might be a better solution
14:29 [MatrxMT] <Bracket> Can it load an unloaded block? And can it load it for an player or is it loaded for server only?
14:30 [MatrxMT] <Bracket> I want to make an space region which is just empty space but not near planets
14:30 [MatrxMT] <Bracket> every player gets one
14:43 sfan5 check out core.load_area
14:44 [MatrxMT] <Bracket> okay
14:53 PoochInquisitor joined #luanti
15:05 ireallyhateirc is reading and writing to the IPC thing synchronous? Say I read a value from the IPC in one lua env and then increment it and push to the IPC again. Is it possible for another env to modify the key between the read and write operations?
15:08 cheapie I would assume it is possible for it to change, otherwise core.ipc_cas() wouldn't exist
15:15 silverwolf73828 joined #luanti
15:16 ireallyhateirc so I just run core.ipc_cas() until it works?
15:16 ireallyhateirc (and update values accordingly in case of change)
15:17 cheapie Pretty much, if it succeeds you continue on, if it fails you update everything in your thread to match the change, then try again
15:21 ireallyhateirc I'm working on a system for events and callbacks btw and the goal is to make pushing events to other lua envs possible
15:22 ireallyhateirc e.g. notifying the mapgen thread that there was a season change and that it needs to place snow now
15:29 Desour joined #luanti
15:53 chloetax joined #luanti
16:07 jstone joined #luanti
16:09 jstone joined #luanti
16:12 jstone Hello! I run a Luanti server that has a local branch of Mineclonia with some downstream patches which gets pointed to with --gameid, and while clients can download data assets from my remote media server to drastically speed up downloads, it seems like they still download the "vanilla" Mineclonia .lua files. Is there a preferred way to manage mods
16:12 jstone for a server without having to outright put the mod ContentDB?
16:18 MTDiscord <wsor4035> Clients don't download mods
16:18 MTDiscord <wsor4035> For servers. On single-player you need the game itself and remote media isn't going to work there
16:22 jstone Okay, so what can be done? If clients don't download mods, then how would I be able to centralize code for mechanics like minecart speed, inventory size, etc?
16:22 jstone *mods for servers
16:24 MTDiscord <wsor4035> On a server I would just put everything in worldmods and manage them as submodules. Course thats for mods, not a game
16:30 jstone Is there an example I could look to for that? For example, what would I do to make sure changing `inv:set_size()` to use a bigger size is propagated to clients connecting to my server? https://codeberg.org/mineclonia/mineclonia/src/tag/0.118.0/mods/HUD/mcl_inventory/init.lua#L233
16:31 MTDiscord <wsor4035> Blockysurvival, pandorasnox, secretive, etc all use that
16:31 MTDiscord <wsor4035> ....and your eyes?
16:32 jstone Your eyes?
16:32 MTDiscord <wsor4035> The things connected to your brain?
16:34 MTDiscord <wsor4035> Mods are executed on the server and the engine sends instructions to the client
16:34 MTDiscord <wsor4035> For your specific example,  a mod doing that would also have to show those slots in the inventory to see them, or render them somewhere else
16:36 jstone Yes, and I'm trying to figure out the entrypoint for making sure that expanding the inventory size on the server is also seen on the client. If I set it to be, say, "56", then in theory I should see two more rows of items in the inventory. Yet that's not what I'm seeing. Hence why I'm asking you how to make this work :)
16:36 jstone I don't know if the mods on the client are being downloaded separately through ContentDB
16:37 MTDiscord <wsor4035> Again, mods run on the server and are not downloaded on the client
16:37 MTDiscord <wsor4035> The server sends the media to the client
16:37 jstone Yes, that much I already understand
16:38 MTDiscord <wsor4035> In your example think of it like having 50 chairs and buying another 10. If you don't set them up no one will ever use them
16:38 MTDiscord <wsor4035> So you need to show the slots
16:40 jstone That is what `inv:set_size("main", 36)` is supposed to be for. Or at least, that's how it worked the last time I worked on this a year ago
16:41 jstone I'm trying to basically do some development for potentially upstreaming some patches to Mineclonia, so it's incredibly important to make sure the modding behavior works on the client side
16:48 jstone I'm just a software developer interested in contributing to a FOSS project in their spare time, so it wouldn't hurt to be nicer and more accommodating to newcomers ;)
16:53 MTDiscord <wsor4035> All the engine does with that api is add more slots to put things, it doesn't render them in the inventory
16:53 MTDiscord <wsor4035> A mod uses formspecs to render those spots
16:53 SFENCE joined #luanti
16:57 jstone Okay, so simply increasing the number of slots isn't enough, there's another section I'd have to modify so it actually displays the greater inventory size in the player HUD?
16:57 MTDiscord <wsor4035> In the most simple terms. You need to make 2 changes. 1. Call inv set size to a bigger size 2. In the formspec inventory def add rendering/layout those new slots
16:57 MTDiscord <wsor4035> Yes
16:58 MTDiscord <wsor4035> See dreambuilder hotbar on cdb for example
17:00 MTDiscord <wsor4035> (Swap step 2 for hud if you want it there instead of invnetory)
17:04 jstone I guess I'd have to modify sections that call mcl_formspec.get_itemslot_bg()? https://codeberg.org/mineclonia/mineclonia/src/tag/0.118.0/mods/HUD/mcl_formspec/init.lua#L6
17:25 SFENCE joined #luanti
17:56 SFENCE joined #luanti
18:05 Desour joined #luanti
18:41 cheapie totally normal escalator https://cheapiesystems.com/media/2025-12-06%2012-36-34.webm
18:45 mrkubax10 joined #luanti
18:47 * user333_ downloads the video with yt-dlp because his connection is too slow to play it in real time
18:52 ireallyhateirc the forbidden escalator
18:53 cheapie user333_: You could also just download it with wget or curl
18:54 user333_ i already have yt-dlp and know how to use it, besides, it's configured to put them into the right folder and rename them properly
18:56 user333_ i could also just rightclick -> "Save video as..." in the web browser
18:56 cheapie I guess that works, TBH I wasn't even aware that yt-dlp understood links directly to video files
18:57 user333_ it has a wide range of supported sites and a generic one that works on those videos
18:57 user333_ a generic downloader*
19:11 user333_ or do it the overly complicated way: https://paste.centos.org/view/69af87dd
19:42 Noisytoot joined #luanti
20:21 SFENCE joined #luanti
20:33 chilledfrogs joined #luanti
20:42 mrcheese joined #luanti
20:56 Sharpman joined #luanti
20:58 cheapie Don't mind me, just blowing up a tornado siren in Bonnthal: https://cheapiesystems.com/media/2025-12-06%2014-56-04.webm
20:59 MTDiscord <wsor4035> user11 classic
21:01 cheapie Maybe someday I'll manage to teach User11 about the wonders of particle spawners and core.dynamic_add_media()
21:38 Desour cheapie: I love your videos
21:39 Desour game jam results: uncloseable formspecs seem to be really popular
21:40 user333_ oh, only 2 hours left to rate games
21:40 user333_ i'm not going to rate because i helped make one so the results would be biased
21:41 MTDiscord <greenxenith> You can still rate, as it will ignore any packages you contributed to
21:42 user333_ my name isn't on the package anyway
21:42 user333_ i helped with a few textures and levels, thats about it
21:42 user333_ i also haven't played them all
21:43 MTDiscord <greenxenith> > Groups/teams may participate (all members must be included in the Maintainers ContentDB field).
21:43 MTDiscord <greenxenith> Emphasis on "all members must be included [as] Maintainers"
21:43 MTDiscord <greenxenith> At the very least, credited
21:44 cheapie Desour: There are some NSFW (only moderately so, but still...) ones too: https://cheapiesystems.com/media/2025-12-06%2010-44-27.webm - I might have been playing around with particle spawners
21:44 user333_ i'm fine with no credit, i didn't really do that much tbh
21:46 mrcheese lol if i were to rank my own game it would probably be a C or D ;-;
21:46 user333_ mrcheese: it's more of an 'interactive tech demo' than a game tbh
21:46 mrcheese yeaaah-
21:46 mrcheese XD
21:46 Desour cheapie: making a mod like that is so natural given how particle spawners work. I wonder why we don't have dozens of this. (I think wanted to make one as well. apparently I forgot it)
21:46 cheapie That was another not-a-mod, just playing with //lua
21:47 Desour x)
21:47 mrcheese lol //lua is the best
21:47 user333_ ah, //lua, everyone's favorite chatcommand to mess with the game
21:47 mrcheese >:)
21:47 cheapie Later they found the stairwell pressurization fan [similarly NSFW] https://cheapiesystems.com/media/2025-12-06%2011-13-25.webm
21:47 MTDiscord <greenxenith> It's all coming back to me now
21:48 Desour oh god. imagine how hard that is to clean D:
21:48 Desour the smell
21:48 user333_ dont give me ideas- i have worldedit and server privs on a public server
21:48 mrcheese loool
21:48 cheapie I do too... this was a public server :P
21:49 ireallyhateirc piss particles?
21:49 mrcheese xd
21:49 user333_ mrcheese: we need to make a chatcommand to do that to players-
21:49 mrcheese that is awful xD
21:50 mrcheese what would it even be called??? /piss?
21:50 user333_ idk
21:52 ___nick___ joined #luanti
21:53 * mrcheese tries to write Conway's game of life for //lua... :P
21:53 user333_ you already did snake with //lua
21:53 mrcheese lol
21:54 mrcheese that was smth like 1200 characters in total
21:54 cheapie I did Conway's Game of Life for the digistuff GPU once, with the Luacontroller having no knowledge of the current state
21:54 mrcheese cheapie: yea ik
21:55 mrcheese i already have a thing to do the game of life but its like 1000 characters (it used the world as its way to keep track of the state)
22:01 Niklp joined #luanti
22:01 Juri joined #luanti
22:15 mrcheese 1 hour 45 minutes to rank the games
22:22 Desour I found 1 week a bit short to play 12 games, tbh
22:24 mrcheese lol
22:24 mrcheese would have prefered 7 games .-.
22:25 user333_ i'm sure we found 3 weeks too short to make one game ;)
22:28 mrcheese lol
22:28 mrcheese why does contentDB not have a "Tech demo" tag :P.
23:04 MTDiscord <the4spaceconstants2181> is there any tech demo that can't be expanded into a useful mod?
23:09 mrcheese not really but would have been nice to have on my game :P
23:09 cheapie I changed the P to E on this parking ticket dispenser, it dispenses something different now: https://cheapiesystems.com/media/2025-12-06%2017-00-53.webm
23:11 MTDiscord <the4spaceconstants2181> describe it
23:11 MTDiscord <the4spaceconstants2181> ?
23:11 cheapie hmm?
23:12 MTDiscord <the4spaceconstants2181> mrcheese's game
23:12 mrcheese ?
23:12 MTDiscord <the4spaceconstants2181> like what is the game
23:12 MTDiscord <the4spaceconstants2181> where do I find it
23:13 mrcheese its called SUPERPOSITION on ContentDB :P
23:13 mrcheese (it has like 5 game breaking bugs atm)
23:14 MTDiscord <the4spaceconstants2181> tried using swipe-typing to type its name got "airworthiness"
23:14 MTDiscord <the4spaceconstants2181> didn't know autocomplete recognized it when it didn't recognize some others
23:15 mrcheese xD
23:32 panwolfram joined #luanti
23:40 Verticen joined #luanti

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