Time Nick Message 06:10 Extexo Say you're typing in a formspec and the formspec updates while you're typing and what you were typing gets erased, is there a way to prevent that? 06:23 anuke[m] type in a text editor 06:24 anuke[m] please add [SOLVED] to the thread topic thanks 06:33 Extexo Huh? I didn't post a thread topic. 06:37 anuke[m] joke 06:37 anuke[m] i am giving very unhelpful advice 11:52 MTDiscord <10L​apis Lazuli Wolf> When I slept in the default bed,I did not respawn by the bed upon death. 14:59 MTDiscord <08a​ppguru> Gustavo6046: regarding that fix, you might want to have a look at the flowingliquid utilities I provide in modlib: https://github.com/appgurueu/modlib/blob/master/minetest.lua#L148-L262 15:42 zceejkr Hello, I want to run a minetest server, but I already have some other services running on it. How much resources does a server use? Note the machine I want to run it on also lacks a GPU. 15:45 sfan5 I can't give you exact numbers but it's pretty lightweight (depending on which game/mods you run) 15:45 sfan5 and don't worry, you don't need a GPU 15:45 zceejkr So all the rendering takes place on the client side? 15:46 sfan5 yes 15:47 zceejkr Alright, thanks. 16:07 daiNoZord Hello, I've looked at the api, several inet search results, the modding handbook and a bunch of mods - so far I've managed to set "meta" for a node ie. "owner", "infotext" and (i assume) "pos" - but I'm totally baffled now as to how to pass that data to another node. Or, more accurately, retrieve it by punching another node. The idea being.. any player can punch one single, central node and be teleported to their own, 16:07 daiNoZord player-specific ("owner") node. Thanks to Wuzzy and Krock I met tables (briefly) before and was successful in that respect. Is that what's required here? Or do things need to be written to a file? Ugh.. I think I'm outta my depth here (lol) 16:10 sfan5 since you cannot search the entire world for that other node you'll need to save its positon somewhere central 16:10 sfan5 ideal for that would be player metadata 16:11 daiNoZord ah.. so attach the meta to the player and not the node? 16:12 daiNoZord but you can get puncher:player_name - so isnt that player meta? 16:12 daiNoZord and compare that to some remote node meta, stored in a table somewhere? 16:12 daiNoZord or am i way off 16:13 sfan5 why do you want to store anything in nodemeta at all? 16:14 daiNoZord so it acts like... a player-specific "homing beacon" that individual players can teleport to. And they can all do it just by punching one, special, central node that does the look-up 16:21 zceejkr Hello, so I am running my server now, at the logs say it is listening on 0.0.0.0:30000. But when I do an nmap scan from another machine in the local network, the port 30000 is reported as opened, but the state is CLOSED. 16:21 daiNoZord It may be the wrong, or least efficient way to do it but its the logical solution in my head. But I over-complicate things.... If their's a better way I'd love to hear it. 16:22 zceejkr As I understand this means that the port is opened correctly in the firewall, but no service is listening on it. 16:22 zceejkr Any ideas what the problem could be? 16:22 sfan5 zceejkr: Minetest uses UDP, you cannot scan it with nmap to determine if it's "open" 16:22 zceejkr Ahhh 16:22 zceejkr I opened TCP ports 16:22 zceejkr Cheers 16:24 sfan5 daiNoZord: but storing that data in nodemeta doesn't get you anything? how are you gonna find that one node when you need to read the data? 16:27 daiNoZord that's where I'm up to - ok so the homing beacon idea is out. I just thought that comaring the puncher name with a "owner" index alongside a "pos" value was the way to go - but that shows how much I have left to lear :) 16:28 daiNoZord *comparing 16:28 daiNoZord *learn (lol) 16:31 daiNoZord ok i think it just occurred to me that set meta can be after_place and get_meta on punch but both for the same node and trying to access them from another node is a no-go 16:31 daiNoZord damn 16:33 sfan5 I think you need to think over your idea from the perspective 'what does the mod to determine where to teleport the player (where their own node is)?' 16:36 daiNoZord all I could think was this node needs a "label" and simplest way must be - label == puncher name. I'll take a step back and look at it again. Thanks sfan5 :) 16:39 daiNoZord I'm sure I must need to create a "list" or "table" somewhere, somehow though... 16:41 daiNoZord oh can u assign a variable (the nodes pos) to player meta? and look it up that way? 17:03 daiNoZord Ah.. PlayerMetaRef.. "There is currently no text in this page.." - maybe not then.. 17:12 daiNoZord and "set_meta" as a search in lua.api.txt returns a depracated entry... 17:19 daiNoZord set_attribute is deprecated... hmm.. 17:19 daiNoZord I don't think player meta is the way after all 17:24 MTDiscord <11I​hrFussel> Player meta persists between restarts...it exists until you either delete the player data from the DB or empty it via code 17:26 daiNoZord IhrFussel: Thanks - that's good to know - I was just looking at how to "set" it. My searches turn up empty so far 17:26 MTDiscord <11I​hrFussel> If you somehow store a list of node positions that are owned by that player you could load that specific node via core 17:26 MTDiscord <11I​hrFussel> code* 17:27 MTDiscord <11I​hrFussel> That's easy player:get_meta():set_string("somekey", "value") 17:27 MTDiscord <11I​hrFussel> And to get player:get_meta():get_string("somekey") 17:28 MTDiscord <11I​hrFussel> And to get player:get_meta():get_string("somekey") 17:28 MTDiscord <11I​hrFussel> If you set the value to "" it gets deleted 17:29 MTDiscord <11I​hrFussel> And if get_string() returns "" the value doesn't exist 17:29 daiNoZord aha! so after_place (node1) player:set_string, and on_punch (node2) player:get_string? ooh - that could work :) 17:30 MTDiscord <11I​hrFussel> There is also set_int() get_int() and more...but for your usecase string sounds like what you need 17:31 daiNoZord fantastic! thankyou very much! 17:31 MTDiscord <11I​hrFussel> No no... local meta = player:get_meta(); local val = meta:get_string("key"); meta:set_string("key", value) 17:32 MTDiscord <11I​hrFussel> Like that 17:32 daiNoZord ah yes sorry - was short-handing it lol 17:33 MTDiscord <11I​hrFussel> But to load a specific position in MT it requires something called voxelmanip...look it up 17:34 daiNoZord yes.. voxelmanip was the thing I wanted to get to after this... I love it when a plan comes together 17:34 MTDiscord <11I​hrFussel> You forgot get_meta() though then 17:34 MTDiscord <11I​hrFussel> Also you cannot store tables as player meta...use minetest.serialize(table) 17:36 MTDiscord <11I​hrFussel> Or wait is that the wrong one...one sec 17:36 daiNoZord yes the tab is open on serialize/deserialize. I need to learn what that means. I just closed 194 crucial browser tabs... and im building it back up quickly.. 17:36 MTDiscord <11I​hrFussel> Nope it's correct 17:37 MTDiscord <11I​hrFussel> Yes so serialize() then store in meta and later deserialize() the string from meta 17:37 MTDiscord <11I​hrFussel> And you have your table back 17:38 daiNoZord cool. but to set the player meta on_place and find it on_punch would work in this case? 17:39 MTDiscord <11I​hrFussel> What exactly is your goal? You wanna store meta in on_place() and check that meta in on_punch()? 17:40 MTDiscord <11I​hrFussel> If so then yes that works...meta is accessible anywhere where you have an actual player object 17:40 MTDiscord <11I​hrFussel> Player meta* 17:41 daiNoZord after_place (node1) "this is your player-specific-block", ... on_punch (node2) "teleport to node1 (per-player)" 17:41 MTDiscord <11I​hrFussel> But there is one big limitation for player meta...it can only be accessed while that player is in the game 17:41 daiNoZord is serialization/deserialization necessary in this scenario? 17:42 daiNoZord Ah yes but theyre the puncher 17:42 MTDiscord <11I​hrFussel> Will the meta just have 1 position? 17:42 daiNoZord yes just 1 17:42 MTDiscord <11I​hrFussel> Then you can just store it as minetest.pos_to_string(pos) in the meta 17:43 daiNoZord in player meta? 17:43 MTDiscord <11I​hrFussel> And to convert it back minetest.string_to_pos(metavalue) 17:44 MTDiscord <11I​hrFussel> Yes like local postr = minetest.pos_to_string(pos); player:get_meta():set_string("somekey", postr) 17:46 daiNoZord ok that is really helpful - thankyou IhrFussel! :) 17:47 MTDiscord <11I​hrFussel> And to convert back from meta to pos: local pstr = player:get_meta():get_string("somekey"); ifpstr == "" then return end; local realpos = minetest.string_to_pos(pstr) 17:47 blaise Texes is getting double fisted with no ky 17:47 blaise XD 17:49 daiNoZord blaise you shouldn't do things like that to your mum 18:32 zceejkr How do I create a new world on my server? 18:32 sfan5 you want to throw away the old one and start from scratch? 18:34 zceejkr I would not mind yes. I installed the mineclone2 mod, do I even need a new world for it? 18:34 zceejkr Or will it work fine if I use it in the old world? 18:34 sfan5 mineclone2 is a game, not a mod 18:35 sfan5 and yes it needs an entirely new world 18:35 sfan5 in any case you'll need to locate your world folder and just ... delete it 18:35 zceejkr :D 18:35 zceejkr alright 18:35 zceejkr Thanks :) 18:36 zceejkr How would I run multiple worlds? 18:36 zceejkr Is there a command to create a fresh world next to an old one? 18:38 daiNoZord ive never tried it but i reckon if i open multiple terminal windows and run mts on each then that just might work. its a stretch tho. try that :) 18:39 zceejkr Ah, what I meant is how can I have multiple worlds, but run one at a time. Something like minetestserver --worldinit worldname 18:40 zceejkr To create a fresh world in the worlds folder. 18:40 sfan5 you can run multiple server instance, make sure to pass different locations for --config --logfile and --worldname 18:46 zceejkr Ok I got my world/game running now. Thanks for all the help sfan5. 18:57 Extexo I'm gonna post this again cause it was ignored yesterday: 18:57 Extexo Say you're typing in a formspec and the formspec updates while you're typing and what you were typing gets erased, is there a way to prevent that? 18:59 Extexo Ping me when an answer is given 18:59 daiNoZord what does the formspec belong to and what causes it to update? 19:32 Extexo It's a node's formspec 19:32 Extexo And it gets updated when new information is added 19:33 Extexo Which is done realtime 19:33 MTDiscord <09s​rinivas> hm 19:34 MTDiscord <09s​rinivas> Extexo: perhaps look into somehow getting the text value when you are redrawing? and add that in 19:36 Extexo How do I get the text value without it being entered yet? 19:36 sfan5 you can't 19:36 MTDiscord <09s​rinivas> oh? fun 19:37 sfan5 your best bet probably is to hold off updating it until the player finishes doing stuff 19:37 Extexo Oof 19:37 Extexo Kk 19:42 MinetestBot 02[git] 04SmallJoker -> 03minetest/minetest: Server-side authority for attached players (#10952) 137832b68 https://git.io/JtXoK (152021-02-15T19:41:19Z) 20:55 MinetestBot 02[git] 04NathanielFreeman -> 03minetest/minetest_game: Update Spanish translation (#2824) 1373ea8e2 https://git.io/JtXPC (152021-02-15T20:54:48Z) 21:29 MTDiscord <10L​apis Lazuli Wolf> @paramat If I sleep in a bed,it doesn't set my spawn point there. I'll respawn at my original point. 21:29 MTDiscord <09s​rinivas> paramat is around? 21:31 sfan5 he is not 21:31 MTDiscord <09s​rinivas> @Lapis Lazuli Wolf 21:36 MTDiscord <10L​apis Lazuli Wolf> Well,is this where I can report bugs? 21:36 MTDiscord <09s​rinivas> github.com/minetest/minetest_game 21:52 Conradish006 ~cdb Draconis 21:53 MTDiscord <09s​rinivas> hehe 21:53 * Conradish006 snickers then runs away 21:57 MTDiscord <10L​apis Lazuli Wolf> I submitted it there now. 21:57 Conradish006 While you wait for a response, you can always play ~cdb Draconis 21:58 MTDiscord <09s​rinivas> hehe 21:58 MTDiscord <09s​rinivas> this video is sponsored by raid draconis legends