Time Nick Message 03:36 oil_boi Hey sfan5 when you get the chance can you see if the capes flow better on your end, I just rewrote the skins mod which has the capes in it along with the new pr you merged for dynamic media loading. Also thanks for that, you did a great job! 03:38 oil_boi Also, I am testing a new method where entities all use the same memory object for variables and it seems to insanely increase performance 04:22 dennisjenkins I've written a mod that works. Following thr example in Ruben Wardy's modding book, I'm refactoring the code into testable units. I repeated, the mod works. However, the unit tests fail because when my mod calls "string.split", "string" is nil inside 'busted' (yet it is a valid table and string.split is a function inside Minetest). 04:22 dennisjenkins Also "print(dump(foo))" fail when ran under 'busted', as 'dump' is nil (works fine in minetest though). 04:23 dennisjenkins I assume that I need some magic lua incantation at the top of my mod source, but not knowing Lua well, I'm not sure. 04:55 dennisjenkins Ah, I see. "string:split" is added my minetest; it does not exist in normal lua. Then how are we supposed to unit test mods that use such helpers? 05:26 dennisjenkins I fixed the issue by doing a conditional import of "/usr/share/minetest/builtin/common/misc_helpers.lua" inside my "api.lua". I'm now trying to handle the import inside "tests/api_spec.lua" instead, so I don't polute the API itself. 07:52 hecks Tried compiling the server's scripts to speed up loading; minetest complains about "incompatible bytecode" 07:54 hecks alright, never mind, I guess the version did change 09:37 hecks Is it possible to make a world from the commandline? 09:42 hecks what the actual fuck 09:43 hecks whoops wrong window 09:44 sfan5 ? 19:10 oil_boi How's that for optimized :D https://github.com/oilboi/Crafter/blob/master/mods/player_mechanics/eating_mechanics.lua 19:14 sfan5 i've seen people inline lots of function but I'm not sure it's really necessary 19:23 Krock if you're already making them local, use direct functions rather than a table lookup in between 19:24 Krock food_class.copy vs table.copy is negligible, if it even improves anything 19:29 oil_boi Ohhh but I can keep all the food_class other stuff though correct? Since I need key look ups per player 19:30 oil_boi When I run local test = data does that create new objects in memory then terminate them every step? 19:32 Krock tables and functions will be copied by reference only 19:32 Krock GC must clean them up afterwards, yes. 19:34 oil_boi So if I assign a local variable before the scope of the function is defined "ie above" every step it will work from that same memory value over and over and not have to create-terminate? 19:34 oil_boi Ie the same memory block in ram 19:37 Krock that's called "scope", so yes. 19:37 Krock same applies for basically all other sane languages 19:37 oil_boi I can work with that 19:37 oil_boi Let me see.. 19:38 sfan5 ironically python has somewhat broken scoping despite being a good language other than that 19:45 thefamilygrog Hi, is it possible to modify something so that players are able to right-click on a protected node? 19:46 Krock they can already do that when "interact" is granted 19:46 Krock if it works for owners, then change the mods so that it fits 19:47 thefamilygrog Ah, okay. I'll have to look at that -- it's been a few years since I ran my last server. Hope you're doing well, Krock 19:47 thefamilygrog Thanks 19:49 Krock np 19:49 Krock !next 19:49 MinetestBot Another satisfied customer. Next! 19:51 oil_boi Ok how about this https://github.com/oilboi/Crafter/blob/master/mods/player_mechanics/eating_mechanics.lua 20:00 Krock yes, that'll now save you 1us of execution time 20:00 thefamilygrog @Krock it looks like the protection mod I'm using is out of date 20:01 thefamilygrog It interprets every right-click as the player trying to place something, even if their hand is empty 20:02 thefamilygrog Sorry, spoke to soon, ignore that 20:07 ajonen8940 what is the other in game channel again? 20:07 ajonen8940 wrong chan. nvmd