Time Nick Message 11:25 hotcat Hi 18:18 MinetestBot [git] Montandalar -> luanti-org/luanti: Change main website domain to `www.luanti.org` (#15748) ec83312 https://github.com/luanti-org/luanti/commit/ec833125408bf0be2703e0c00a69771187b752bf (2025-02-06T18:16:24Z) 18:20 MinetestBot [git] siliconsniffer -> luanti-org/luanti: Main menu server list: Select first compatible search result (#15755) 36c9742 https://github.com/luanti-org/luanti/commit/36c9742c0ac422b376e97486e801e36ec516ea9d (2025-02-06T18:19:38Z) 18:23 MinetestBot [git] grorp -> luanti-org/luanti: Fix enum setting used as requirement 2fb9e4d https://github.com/luanti-org/luanti/commit/2fb9e4d18a573039888cddbfdf577794e1e8db8d (2025-02-06T18:20:44Z) 19:08 wrrrzr How i can get object id via lua api? 19:08 Krock object IDs are temporary, thus bad practice to use. 19:09 wrrrzr so how i can store objects in array and save it? 19:09 rubenwardy you need to make your own object id tracking system for now 19:09 wrrrzr :( 19:09 rubenwardy persisted in static data 19:09 wrrrzr ok 19:09 rubenwardy there's a PR for stable object IDs 19:09 ireallyhateirc luatic told me that objects are valid as long as you don't restart the game 19:10 Krock the engine looks for free IDs, which is currently an upwards counter up to 16 bits or something 19:10 ireallyhateirc I simply keep a table where the key is the luaentity object 19:10 Krock once that loops around, you'll get collisions 19:11 rubenwardy if an entity is unloaded and loaded again, the ID will be different 19:11 ireallyhateirc I use weak tables so when the lua object dies it gets cleared by GC 19:11 Krock the Lua API mentions that you shouldn't keep ObjectRefs outside of callbacks, but since the lifecycle has been fixed in one of the last Minetest versions, you should be OK with that. 19:12 Krock there's an open PR to introduce a GUID system for objects but I doubt its usefulness 19:13 ireallyhateirc why wouldn't it be useful? 19:25 celeron55 that weak table sounds like it may be just about the best idea right now. but once the stable ids go in, then that's definitely the way to go 19:35 Krock ireallyhateirc: it boils down to having a duplicated tracking system. no matter the efforts you make, entities may be deleted/cleared without ever cleaning up its mod-specific data 19:35 Krock garbage will pile up, unless you can somehow store all information in the entity itself (staticdata), which is already possible now. 23:19 ireallyhateirc on F-droid there's this "android_defaults" or whatever flag and because of it Exile doesn't show up in ContentDB browser 23:19 ireallyhateirc how to fix this? 23:19 rubenwardy from the settings, edit contentdb_flag_blacklist to remove android_defaults 23:19 MTDiscord remove it from settings 23:20 ireallyhateirc Okay, thanks 23:21 ireallyhateirc I was wondering why we had no Multicraft players lately lol