Time Nick Message 02:00 Extexo How does hypertext[] work? I can't get it to work/do anything 02:04 MTDiscord could someone help me truobleshoot port forwarding ssh? 02:24 Extexo Ooh working now 02:24 Extexo But Idk how to use it XD 02:25 Extexo I'm trying to make clickable text with no underline, and custom colour and hover colour 02:25 Extexo Also how do fonts work? 02:39 Extexo How would I do that? 03:05 Extexo Ok... I guess everyone must be asleep 03:05 Extexo I'll ask again tommorow I guess 03:23 AndrewYu_ Hi! Is there a mod to teleport a player to a random place? 03:24 cheapie AndrewYu_: Like on command, or at random, or... ? 03:24 AndrewYu_ On command, preferrably from a command block (mesecon) 03:24 MTDiscord No, but you could /teleport insert random cords 03:25 MTDiscord *not that i know of 03:25 AndrewYu_ Ouch 03:25 AndrewYu_ Then is there a way to do random numbers? 03:26 AndrewYu_ From command blocks :( 03:28 cheapie Do you have WorldEdit installed? If so, it's easy enough. 03:28 AndrewYu_ Yes I do 03:29 AndrewYu_ I've got most of the common mods 03:29 AndrewYu_ /lua? 03:29 cheapie //lua minetest.get_player_by_name("@nearest"):set_pos(vector.new(math.random(-5000,5000),math.random(25,50),math.random(-5000,5000))) 03:29 cheapie Change numbers to taste. 03:30 AndrewYu_ Awh, thx 03:30 AndrewYu_ ill try to implement that in a lua block 03:30 cheapie Of course you can also replace @nearest with a fixed player name. 03:30 AndrewYu_ or actually, just use //lua in a commandblock 03:32 cheapie That was the suggestion, yes :P 03:33 cheapie These things work great to stop people from complaining that they can't find anywhere to build - on one server I just put in one of those, set for X and Z to be +/- 5000 and a fixed value of 50 for Y (no fall damage on that server), and attached a button to it. 03:33 AndrewYu_ Yueah, fall damage is a problem 03:33 cheapie Then if people tell me they can't find somewhere to build... "go push that there button, if you don't like where you land just /spawn and try again" 03:34 AndrewYu_ cheapie: That's exactly what I'm trying to do, thx 03:40 AndrewYu_ Ouch, copy paste doesnt work in MT for me lol 03:55 AndrewYu_ cheapie: A silly question... how do I disable fall damage? Only fall damage, not other types of damage? Thanks 03:59 cheapie AndrewYu_: Not sure off the top of my head if that's possible - the server I set this up on just has damage disabled entirely. 03:59 cheapie (creative server) 04:05 AndrewYu_ Awh, that's also a viable option. I have a non-creative server which I just set as no-damage. 05:03 Extexo It is possible 05:06 Extexo minetest.register_on_player_hpchange(function(player, hp_change, reason) 05:06 Extexo if hp_change < 0 and reason.type == "fall" then 05:06 Extexo return 0 05:06 Extexo end 05:06 Extexo return hp_change 05:06 Extexo end, true) 05:07 Extexo AndrewYu_ 05:07 AndrewYu_ Extexo: Thanks 07:06 smugler5[m] Do `.obj` files work in mesh nodes? 08:51 cheapie I have no idea if anyone here ever used my "chat6" client mod way back in the day, but I think I have it working in 5.x now :) 08:52 cheapie (the one that does chat highlighting/nick coloring/timestamping sorta like HexChat does) 10:19 MinetestBot 02[git] 04HybridDog -> 03minetest/minetest: Chatcommands: Show the execution time if the command takes a long tim… 1388b052c https://git.io/JqCoo (152021-03-13T10:18:25Z) 10:43 White_Feather hi 11:29 AndrewYu How can I use a command block and a luacontroller to place a specific block at a specific position without the command block owner being online and doing the //1 and //2 things 11:30 sfan5 look into //fixedpos 11:30 AndrewYu thx 11:34 AndrewYu Then... how do I do relative positions in command blocks? 11:39 AndrewYu For example, if I have a command block @ 0,0,0 it worldedits something to 0,1,0 if i have a commandblock of the same command @ 0,1,0, it worldedits something to 0,2,0 12:03 sfan5 that's something the command block itself would have to support 18:27 Extexo I'm trying to make clickable text with no underline, and custom colour and hover colour with hypertext[] 18:27 Extexo I can't figure it out 18:31 Pexin Extexo: where specifically? 18:31 Extexo Wdym? 18:32 Extexo Like what position? 18:32 Pexin like, in csm, c++, chat window, formspec? 18:32 Extexo Ohh 18:32 Extexo Formspec 18:33 Pexin ah. out of my field sorry. i personally just finished clickable weblinks for the chat window. would like someone to test it on a mac keyboard before submitting pull request.. 18:35 Pexin https://github.com/pecksin/minetest for whoever is interested. already sent to #minetest-dev 18:36 Krock Pexin: changes should usually be done in separate branches btw 18:38 Pexin Krock: I'm very new to git, sorry. more accustomed to svn, and have taught C++ before. but not git.. 18:45 MTDiscord https://xkcd.com/1597/ is always a handy referene 18:45 MTDiscord reference 18:48 Pexin Jordach: yes. this seems accurate. 18:49 Extexo Lol 19:03 Krock @Jordach well yeah it's kinda like that 19:32 DS-minetest is there some way to reliably get a path in lua, ie. such that no other mod could've manipulated it? 19:33 DS-minetest get_modpath and co. could be overridden by other mods, and if I want to use secure environment outside my init.lua file, using this path to get the file is insecure 19:34 DS-minetest the secure env also contains minetest, but it's the same table 19:34 Krock all exposed functions can be hooked 19:34 Krock including request_secure_env 19:35 DS-minetest but not the functions contained directly in the secure env. they can only be hooked by trusted mods 19:38 Krock what if you hook them inside a hooked request_secure_env function? the current executed mod name would be allowed 19:38 Krock unless Minetest also checks the call stack 19:38 sfan5 it does 19:39 DS-minetest insecure* btw 19:40 Krock oh then it's good 19:44 DS-minetest "the secure env also contains minetest, but it's the same table" Edit: oops, wrong, I've tested with mod security disabled 19:47 MTDiscord The problem is that everything could be hooked (except for request_insecure_environment() of course, as that checks the stack). This includes absolutely necessary Lua-builtins like pairs or dofile, as well as minetest functions and APIs of other mods. Mod security doesn't really work well. 19:47 DS-minetest it contains core, but it's minetest* 19:58 DS-minetest functions like dofile and pairs at least can be securely accessed via the insecure env. I've just tried overriding next before using insec_env.pairs, and it didn't use the hooked one 20:31 Extexo Does anybody here have experience with formspec hypertext[]? 20:47 Sokomine not much yet. but it's a nice feature. i hope to be able to find time to create a mod to talk to npc eventually 20:48 Krock Extexo: see example in devtest 21:45 Splyncryth https://www.youtube.com/watch?v=0wxc3mKqKTk 21:59 MTDiscord could someone help me compile a run-in-place version of MT 5.4? 22:00 sfan5 sure 22:00 MTDiscord for Ubuntu server on a raspi 22:00 MTDiscord thx! 22:00 MTDiscord so, I have made a new directory in /opt 22:01 MTDiscord called minetest5 22:01 MTDiscord and then I have entered that dir. 22:01 MTDiscord then following irrichit's instruct 22:01 MTDiscord from here: 22:01 MTDiscord https://github.com/minetest/irrlicht 22:01 sfan5 sec 22:02 sfan5 I suggest trying these instructions first https://forum.minetest.net/viewtopic.php?p=311160#p311160 22:02 MTDiscord ok... looking 22:04 MTDiscord wow... that looks simple. Is it up-to-date for 5.4? 22:05 sfan5 yes 22:06 MTDiscord so "enter Minetest Version:" what do I put? 22:06 MTDiscord I want the latest stable 5.4 22:06 sfan5 either stable-5 22:06 sfan5 or 5.4.0 22:06 MTDiscord ok. and I can run it again to change my mind? 22:06 sfan5 yes 22:06 MTDiscord I put the worng thin ? 22:06 DS-minetest how can I modify the cmake stuff to change the linker options? (I'd like something similar to the gcc option `-Wl,--dynamic-list=dynamic_list_file.txt`(, where dynamic_list_file.txt is a file)) 22:08 sfan5 src/CMakeLists.txt ctrl+f CMAKE_EXE_LINKER_FLAGS 22:08 MTDiscord its working ? 22:08 DS-minetest thanks! 22:16 MTDiscord Its still running... there was this output, which looks like a possible error: 22:16 MTDiscord In file included from /usr/include/string.h:495, from /usr/include/c++/9/cstring:42, from /var/tmp/tmp.NqqdZvODVb/minetest/src/util/srp.cpp:43: In function ‘void* memcpy(void*, const void*, size_t)’, inlined from ‘int calculate_x(__mpz_struct*, SRP_HashAlgorithm, const unsigned char*, size_t, const char*, const unsigned char*, size_t)’ at 22:16 MTDiscord /var/tmp/tmp.NqqdZvODVb/minetest/src/util/srp.cpp:432:8: /usr/include/aarch64-linux-gnu/bits/string_fortified.h:34:33: warning: ‘void* __builtin_memcpy(void*, const void*, long unsigned int)’ forming offset [65, 4294967295] is out of the bounds [0, 64] of object ‘ucp_hash’ with type ‘unsigned char [64]’ [-Warray-bounds] 34 | return __builtin___memcpy_chk (__dest, __src, __len, __bos0 (__dest)); | 22:16 MTDiscord ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/tmp.NqqdZvODVb/minetest/src/util/srp.cpp: In function ‘int calculate_x(__mpz_struct*, SRP_HashAlgorithm, const unsigned char*, size_t, const char*, const unsigned char*, size_t)’: /var/tmp/tmp.NqqdZvODVb/minetest/src/util/srp.cpp:443:16: note: ‘ucp_hash’ declared here 443 | unsigned char ucp_hash[SHA512_DIGEST_LENGTH]; | ^~~~~~~~ 22:16 MTDiscord IDK if its anything to worry abt 22:17 sfan5 nah 22:17 sfan5 just a warning 22:21 Extexo Krock: oh ty 22:24 MTDiscord it finished and says successful ? 22:32 Extexo How do I load all the lua files within a directory? 22:33 rubenwardy minetest.get_dir_list(path, false) 22:33 rubenwardy and dofile 22:33 rubenwardy https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L4429 22:34 rubenwardy and maybe a substr if you have non Lua files in the dir 22:34 DS-minetest lol, dofile the readme 22:34 rubenwardy str:substr(#str - 4) == ".lua" 22:34 rubenwardy ish 22:34 rubenwardy well, might be an idea to use a subfolder for this 22:34 rubenwardy eg: `modules` 22:34 DS-minetest str:sub(-4) == ".lua" * 22:34 rubenwardy oh nice 22:35 rubenwardy substr is C++ :D 22:35 DS-minetest anyway, just naively dofileing all lua files in unspecified order is a pretty bad idea 22:36 rubenwardy depends what you're doing 22:36 rubenwardy it may be fine if they're modules with no deps 22:36 DS-minetest hm, yes 22:36 rubenwardy but it might be worth using pcall setfenv for modules 22:36 rubenwardy and loadfile 22:37 DS-minetest why? 22:37 rubenwardy to restrict modules to defined functions, so they're unlikely to develop deps 22:37 DS-minetest i see 23:12 MTDiscord sfan... so, I have set up the server. I can start the server with /opt/minetest-5.4.0-linux/bin/minetestserver. how do I stop the server with a command line interface command 23:12 MTDiscord ? 23:13 MTDiscord or, this can be for anyone who knows... 23:15 sfan5 if you start it it will keep running until you exit the terminal it's running in 23:15 sfan5 or do ctrl+c to kill it 23:15 sfan5 if you actually want to run it in the background I can suggest screen or tmux 23:15 sfan5 or a system service (a bit more complicated) 23:15 sfan5 systemd* 23:15 MTDiscord yes, I use screen 23:16 MTDiscord but... I will have multiple users connecting to the same acct via ssh (cli not minetest) 23:16 MTDiscord I want each and any of them to be able to shut the server down or restart it 23:17 MTDiscord so, can I use screen for that? 23:17 hisforever Hi I really need help https://pastebin.com/nQduxyrH there is a pastbin of my debug.txt 23:17 sfan5 sure 23:18 sfan5 they'll need to attach to the screen and press ctrl+c to exit the server 23:18 sfan5 hisforever: I don't see any errors 23:18 MTDiscord how would you attach to the screen? 23:19 sfan5 screen -r 23:19 sfan5 detach by Ctrl+a then d 23:19 hisforever ok I'll past an image then 23:22 hisforever https://imgur.com/a/2FHOszp thre ia an image 23:23 sfan5 sounds like you are missing mesecons_switch 23:23 hisforever ok thanks sfan5 23:24 MTDiscord sorry to be obtuse, but what does screen -r actually do? 23:24 MTDiscord say I conntect via ssh to the user 23:24 MTDiscord then if I did screen -r, what would that do? 23:25 MTDiscord nm, I should test it 23:25 MTDiscord when you have multiple screens you can screen -r name i believe 23:26 Pexin also if someone left the screen attached or didn't exit properly, then you need an additional option I don't recall off the top of my head 23:31 MTDiscord what do you mean by left the screen attached? 23:33 MTDiscord so... yeah I started screen, then I started minetest, then I logged on with another computer into the same acct. 23:35 MTDiscord so doing screen -r gives: There are screens on: 9065.pts-0.ubuntu (03/13/21 23:33:34) (Attached) 8845.pts-3.ubuntu (03/13/21 23:28:59) (Attached) There is no screen to be resumed. 23:36 sfan5 you should detach from it first so other people (or just you on another session) can reattach 23:37 sfan5 i'll be off now so you should try your luck with a screen tutorial/instructions 23:38 MTDiscord ok thx 23:41 numzero to shutdown the server, you can use the kill command (like: kill -INT server-process-id-here). or pkill (like: pkill -INT minetestserver) but it will kill all servers if several are running 23:42 numzero from any terminal/ssh connection 23:47 numzero that (with the -INT flag) does exactly the same what ctrl+c does