Luanti logo

IRC log for #luanti-dev, 2025-03-19

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

All times shown according to UTC.

Time Nick Message
00:32 SFENCE joined #luanti-dev
00:51 SFENCE joined #luanti-dev
01:54 hwpplayer1 joined #luanti-dev
02:23 SFENCE joined #luanti-dev
03:04 SFENCE joined #luanti-dev
03:19 SFENCE joined #luanti-dev
03:31 SFENCE joined #luanti-dev
04:00 MTDiscord joined #luanti-dev
04:11 SFENCE joined #luanti-dev
04:24 SFENCE joined #luanti-dev
04:30 SFENCE joined #luanti-dev
04:44 SFENCE joined #luanti-dev
05:08 SFENCE joined #luanti-dev
05:34 SFENCE joined #luanti-dev
06:06 SFENCE joined #luanti-dev
06:42 SFENCE joined #luanti-dev
06:56 SFENCE joined #luanti-dev
07:12 SFENCE joined #luanti-dev
07:48 SFENCE joined #luanti-dev
07:50 fluxionary joined #luanti-dev
07:51 nekobit joined #luanti-dev
08:09 hwpplayer1 joined #luanti-dev
08:11 SFENCE joined #luanti-dev
08:56 pmp-p joined #luanti-dev
09:09 hwpplayer1 joined #luanti-dev
09:10 tenplus1 joined #luanti-dev
09:10 tenplus1 Hi folks
09:10 tenplus1 What is the simplest way to show the inventory screen using a command ?
09:51 rubenwardy the decision to merge all of MTG's documentation into a single text file rather than keeping it per mod is quite annoying
09:52 rubenwardy tenplus1:   core.show_formspec(player:get_player_name(), "", player:get_inventory_formspec())
09:52 rubenwardy although this won't update with set_inventory_formspec
09:54 tenplus1 thanks rubenwardy, am looking for the simplest way to show sfinv formspecs via node clicking
09:56 tenplus1 using that command works but some of the sfinv tabs no longer work properly though :(
10:00 tenplus1 same with the function you posted for the sfinv feature on git, appears but buttons no longer work
10:02 rubenwardy yeah set_inventory_formspec won't work
10:09 tenplus1 this is the reason I asked for the new feature for sfinv mod itself so it can handle everything it needs to directly and show the formspec page the mod needs
10:11 tenplus1 I think it's the formname part that's causing issue: core.show_formspec(playername, formname, formspec)
10:50 hwpplayer1 joined #luanti-dev
12:33 hwpplayer1 joined #luanti-dev
12:40 hwpplayer1 joined #luanti-dev
13:32 behalebabo joined #luanti-dev
14:21 hwpplayer1 joined #luanti-dev
14:23 hwpplayer1 joined #luanti-dev
14:55 MTDiscord <josiah_wi> sfan5,  e39e47b introduced a dangling reference to getKeySetting. The code looks like maybe it was unfinished or something?
14:57 MTDiscord <josiah_wi> You did that last year to remove the unnecessary value copy, but I think you forgot to put the new object in the cache and instead returned a reference to the temporary. So there are two bugs; the cache is not updated, and there's a dangling reference.
15:00 MTDiscord <josiah_wi> Sorry, I think your fix was actually right, sfan.
15:00 MTDiscord <josiah_wi> It's the recent scancode PR that adjusted your fix and completely broke it.
15:02 hwpplayer1 joined #luanti-dev
15:08 MTDiscord <josiah_wi> Phew, it's a false positive.
15:27 MTDiscord <luatic> further discussion: https://github.com/luanti-org/luanti/issues/15922
15:36 sfan5 I don't remember touching this code
15:37 sfan5 looks like I did though
15:38 sfan5 and in fact I don't see why the same issue shouldn't apply to my own code
15:39 sfan5 however from a quick grep it looks like all usages of getKeySetting() are not keeping the return value around (as a reference)
15:40 MTDiscord <josiah_wi> Lar's concern applies. I was reading too fast and confused about the semantics and ended up casting blame inappropriately. I ask for your forgiveness.
15:43 MTDiscord <luatic> it looks like the code is probably fine (i was a bit unsure that there would be a bug, hence why i just voiced my concern), but i think it is not obvious why it is fine and will remain fine in the future so we should probably do something about that
15:47 SFENCE joined #luanti-dev
15:53 hwpplayer1 joined #luanti-dev
17:32 Krock Will merge #15908 and #15917 in somewhat precise 10 minutes
17:32 ShadowBot https://github.com/luanti-org/luanti/issues/15908 -- [NO SQUASH] Two fixes I guess by SmallJoker
17:32 ShadowBot https://github.com/luanti-org/luanti/issues/15917 -- Do not discover mod directories that fail parsing by JosiahWI
17:42 hwpplayer1 joined #luanti-dev
19:08 SFENCE joined #luanti-dev
19:17 SFENCE joined #luanti-dev
20:08 SFENCE joined #luanti-dev
20:14 SFENCE joined #luanti-dev
20:34 SFENCE joined #luanti-dev
20:43 SFENCE joined #luanti-dev
20:45 sfan5 planning to merge #15912, #15885 in 10m
20:45 ShadowBot https://github.com/luanti-org/luanti/issues/15912 -- [no sq] Increase strictness for item registration / overrides by sfan5
20:45 ShadowBot https://github.com/luanti-org/luanti/issues/15885 -- Make remote media exclusively use GET for hash set by sfan5
20:55 SFENCE joined #luanti-dev
21:12 SFENCE joined #luanti-dev
21:17 [MatrxMT] joined #luanti-dev
21:18 MisterE123 joined #luanti-dev
22:46 SFENCE joined #luanti-dev
23:26 SFENCE joined #luanti-dev
23:32 panwolfram joined #luanti-dev

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