| Time |
Nick |
Message |
| 00:07 |
|
est31 joined #minetest |
| 00:25 |
|
scorps44 joined #minetest |
| 00:59 |
|
scorps44 joined #minetest |
| 01:08 |
|
FrostRanger joined #minetest |
| 01:12 |
|
search_social joined #minetest |
| 01:30 |
|
Pie-jacker875 joined #minetest |
| 01:51 |
|
scorps44 joined #minetest |
| 01:53 |
|
scorps44 joined #minetest |
| 01:57 |
|
FrostRanger joined #minetest |
| 02:26 |
|
Verticen joined #minetest |
| 02:53 |
|
scorps44 joined #minetest |
| 02:54 |
|
scorps44 joined #minetest |
| 03:04 |
|
scorps44 joined #minetest |
| 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 |
| 03:44 |
|
scorps44 joined #minetest |
| 03:52 |
|
Wuzzy joined #minetest |
| 04:10 |
|
behalebabo joined #minetest |
| 04:17 |
|
dennisjenkins joined #minetest |
| 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:37 |
|
Hawk777 joined #minetest |
| 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:12 |
|
scorps44 joined #minetest |
| 05:22 |
|
calcul0n joined #minetest |
| 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. |
| 05:44 |
|
swift110 joined #minetest |
| 06:02 |
|
NetherEran joined #minetest |
| 06:20 |
|
TomTom joined #minetest |
| 06:33 |
|
NetherEran_ joined #minetest |
| 07:00 |
|
Beton joined #minetest |
| 07:24 |
|
begui joined #minetest |
| 07:52 |
|
hecks joined #minetest |
| 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 |
| 08:00 |
|
ShadowNinja joined #minetest |
| 08:30 |
|
mizux joined #minetest |
| 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 |
? |
| 10:17 |
|
Flabb joined #minetest |
| 10:53 |
|
Fixer joined #minetest |
| 11:04 |
|
Wuzzy joined #minetest |
| 11:24 |
|
SwissalpS joined #minetest |
| 11:29 |
|
Conradish006 joined #minetest |
| 11:33 |
|
awell joined #minetest |
| 11:45 |
|
Kimapr joined #minetest |
| 12:12 |
|
search_social joined #minetest |
| 12:23 |
|
Soo_Slow joined #minetest |
| 12:24 |
|
FFleder joined #minetest |
| 12:31 |
|
oil_boi joined #minetest |
| 12:33 |
|
Conradis_ joined #minetest |
| 13:00 |
|
Conradis_ joined #minetest |
| 13:02 |
|
Conradish006 joined #minetest |
| 13:08 |
|
BillyS joined #minetest |
| 13:24 |
|
lisac joined #minetest |
| 13:25 |
|
Flabb joined #minetest |
| 13:34 |
|
Pie-jacker875 joined #minetest |
| 13:52 |
|
orbea left #minetest |
| 14:21 |
|
Wuzzy joined #minetest |
| 14:50 |
|
kamdard joined #minetest |
| 15:03 |
|
riff-IRC joined #minetest |
| 15:29 |
|
erlehmann_ joined #minetest |
| 15:46 |
|
NetherEran joined #minetest |
| 16:10 |
|
Xorkle joined #minetest |
| 16:39 |
|
awell joined #minetest |
| 16:55 |
|
macc24 joined #minetest |
| 16:58 |
|
Wuzzy joined #minetest |
| 17:32 |
|
Verticen joined #minetest |
| 17:59 |
|
absurb joined #minetest |
| 18:16 |
|
fluxflux joined #minetest |
| 18:39 |
|
erlehmann joined #minetest |
| 19:00 |
|
Soo_Slow joined #minetest |
| 19:10 |
oil_boi |
How's that for optimized :D https://github.com/oilboi/Crafter/blob/master/mods/player_mechanics/eating_mechanics.lua |
| 19:10 |
|
Wuzzy joined #minetest |
| 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:44 |
|
thefamilygrog joined #minetest |
| 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:06 |
|
ajonen8940 joined #minetest |
| 20:07 |
ajonen8940 |
what is the other in game channel again? |
| 20:07 |
ajonen8940 |
wrong chan. nvmd |
| 20:11 |
|
appguru joined #minetest |
| 20:21 |
|
Nory joined #minetest |
| 20:49 |
|
Miner_48er joined #minetest |
| 21:02 |
|
proller joined #minetest |
| 21:25 |
|
Wuzzy joined #minetest |
| 21:26 |
|
galex-713 joined #minetest |
| 21:35 |
|
galex-713 joined #minetest |
| 21:42 |
|
galex-713 joined #minetest |
| 22:00 |
|
Taoki joined #minetest |
| 22:04 |
|
Lausefuchs joined #minetest |
| 22:06 |
|
erlehmann joined #minetest |
| 22:23 |
|
olliy joined #minetest |
| 22:30 |
|
deltanedas joined #minetest |
| 22:30 |
|
Hawk777 joined #minetest |
| 22:41 |
|
deltanedas joined #minetest |
| 22:45 |
|
Hawk777 joined #minetest |
| 23:13 |
|
erlehmann_ joined #minetest |
| 23:16 |
|
Conradish006 joined #minetest |
| 23:22 |
|
Conradish006 joined #minetest |
| 23:25 |
|
stiell joined #minetest |
| 23:41 |
|
Verticen joined #minetest |
| 23:43 |
|
leo_rockway joined #minetest |