Time Nick Message 03:03 BamaHit Anyone know where i can read up or see examples of; getting all players connected listed into a dropdown menu? 03:20 bigfoot547 Hmm 03:20 bigfoot547 Wait 03:20 bigfoot547 are you writing a mod yourself to do this? 03:20 BamaHit Trying to add it to another one. 03:21 bigfoot547 Okay 03:21 BamaHit I have changed things on 'waypoints' mod. Was going to try to add this dropdown of players then you can teleport to them. 03:21 bigfoot547 you should be able to just do "for i in minetest.get_connectec_players() do" 03:22 bigfoot547 Well, first say names = {} 03:22 bigfoot547 then in the loop 03:22 bigfoot547 names[#names+1] = i:get_player_name() 03:22 bigfoot547 then end the loop 03:22 bigfoot547 then make a formspec element thing 03:23 bigfoot547 then in the "Items 1-n" section 03:23 bigfoot547 just put "table.concat(names, ",")" 03:23 bigfoot547 Then bam 03:23 bigfoot547 u got a names list 03:23 BamaHit I'm still kinda a noob. I'm reading it trying to catch up with you haha so bear with me 03:24 bigfoot547 Okay 03:24 bigfoot547 Are you the same as AlabamaHit? 03:24 bigfoot547 yes, you are 03:25 BamaHit Yeah 03:25 bigfoot547 I recognize the IP :P 03:25 bigfoot547 (And the location number) 03:26 BamaHit I made irc accounth so long ago i can't remember the any info that why i can't use it here lol 03:26 bigfoot547 I see 03:31 BamaHit I tried this https://pastebin.com/1skbdEbC by copying excatly how you said beacuse to be honest you lost me as "Well," haha. But it crashes to a grey screen 03:32 bigfoot547 Hmm 03:32 bigfoot547 What error message? 03:32 bigfoot547 Sorry if I haven't done lua in a while :P 03:33 BamaHit No error on screen. I'm goign to do it again and check the debug.txt 03:33 bigfoot547 Just run it from a terminal 03:33 bigfoot547 then stdout is your debug.txt :P 03:34 bigfoot547 I see a problem 03:34 bigfoot547 where is 'i' defined (First use line 9) 03:34 bigfoot547 ? 03:35 BamaHit I didn't. I just used that from what you said. But i is used for other stuff. 03:35 bigfoot547 python messed me up, because of the implicit declarations :P 03:35 BamaHit I'mm change that i to an h 03:35 bigfoot547 Okay 03:36 BamaHit The terminal thing you said. I'm not sure what you meant by that. 03:36 bigfoot547 Oh 03:36 bigfoot547 u use windows or POSIX? 03:36 BamaHit windows :( 03:37 bigfoot547 Okay... 03:37 bigfoot547 Uh, go into the dir of the executable 03:37 bigfoot547 (Please tell me you use win 10) 03:37 bigfoot547 and type 03:37 BamaHit yeah windows 10 03:37 bigfoot547 minetest.exe 03:38 bigfoot547 That should run minetest in a term 03:38 bigfoot547 (Or command prompt as you use windows) 03:40 bigfoot547 got that? 03:40 bigfoot547 BamaHit: ^^ 03:40 BamaHit i opened a cmd in the bin folder. typed minetest.exe and it just opened minetst like normal 03:41 bigfoot547 And the output is in the term, right? 03:41 BamaHit Nope. 03:42 BamaHit But i looked in debug.txt; error i guessing is " attempt to call field 'get_connectec_players' (a nil value)" 03:42 bigfoot547 Oh 03:42 bigfoot547 get_connected_players 03:42 bigfoot547 ^^ use that instead :P 03:43 bigfoot547 I made a typo 03:43 BamaHit ah crap 03:43 BamaHit lol 03:43 bigfoot547 Actually literally "minetest.get_connected_players()" 03:46 BamaHit WARNING[Server]: Assignment to undeclared global "names" 03:46 BamaHit where i have "names = {}" 03:47 BamaHit Should it be "local names = {}" 03:47 bigfoot547 Oh yeah :P 03:47 bigfoot547 sorry 03:47 bigfoot547 python has broken me 03:50 BamaHit Still doing that grey screen and i don't understand the debug txt 03:50 BamaHit "attempt to call a table value stack traceback" 03:51 BamaHit says for this line "for h in minetest.get_connected_players() do" 03:51 bigfoot547 hmm 03:52 BamaHit https://pastebin.com/7vba6LyV the snippet as it is 03:53 bigfoot547 for _,h in pairs(minetest.get_connected_players()) do 03:53 bigfoot547 ^^ Try that 03:54 bigfoot547 tell me how it goes :P 03:54 BamaHit OH OH OH 03:54 bigfoot547 Works? 03:54 BamaHit I think you did it 03:54 bigfoot547 Yay! 03:55 BamaHit I'mma connect with my phone to verify with 2 users 03:55 bigfoot547 Okay :D 03:57 BamaHit http://i.imgur.com/Nmhj0gF.png 03:57 BamaHit It is Beautiful! 03:58 bigfoot547 Haha! 03:58 BamaHit THank you so much man. That will help me progress so much adding/learning 03:58 bigfoot547 yay! 03:58 bigfoot547 You're welcome :D 03:58 * bigfoot547 high-fives BamaHit 03:58 BamaHit high-fives bigfoot547 03:59 bigfoot547 Well, I need to turn in for the night. See ya around BamaHit :) 04:00 BamaHit I'm about to hit the bed too. I only can because your help :D 04:00 bigfoot547 :) 04:05 skrp how to do i correctly use user parameter on the on_use -> hearth fn? https://pastebin.com/raw/pA8qz4W5 04:09 rmbeer This place is very very very active. :S 04:10 rmbeer but not understand why always ask if a code working instead of hope any report of bugs... 04:14 skrp rmbeer, 'get_player_by_name 04:14 skrp *derp 'get_player_by_name'(string expected, got userdata) 04:15 rmbeer ? 04:36 skrp i can find the userdata structure that the anony fn returns on_use 04:37 BamaHit Is there a method for using command in lua? 04:55 wilkgr This is weird - I'm starting a singleplayer world in 0.4.16 and getting this error: 04:55 wilkgr 2017-08-10 14:53:44: ERROR[Main]: ServerEnvironment::loadMeta(): EnvArgsEnd not found! 04:56 wilkgr and it says "the server is probably running a different version of Minetest" 04:56 BamaHit skrp: hearth = function() -> hearth = function(player) have youy tried that. 04:57 BamaHit wilkgr: have you tried deleting your "env_meta.txt" from the world folder? 04:57 skrp BamaHit, well i did hearth = function(user) 04:57 wilkgr BamaHit, that worked. Thank you :D 04:57 BamaHit skrp: what are you trying to do with that function? teleprot to their location? 04:57 BamaHit wilkgr: you're welcome 04:58 skrp well that would be nice. but its a teleporting stone with hardcoded destinations 05:03 BamaHit So when you hold it and you left cliick you want what to happen? 05:04 BamaHit I'm sorry I"m not all that great at this myself. but I don't mind trying to help :D 05:05 skrp BamaHit, its to teleport the user to a specific location 05:18 BamaHit I got to hit the bed. But check out 'waypoints' mod; it probably has the code you are needing. 08:09 MinetestBot 02[git] 04SmallJoker -> 03minetest/minetest_game: Beds: Do not crash when placing in an unknown node 1367c01a4 https://git.io/v7MoT (152017-08-10T08:08:24Z) 08:27 hisforever are there more than 1 mods for animals? 08:34 Krock yes. 08:53 hisforever ty Krock 08:54 hisforever I had a mod that had rabbits in it but I can't remember it? 09:05 zyabin101 How can I make the observation direction matter when placing a block? 09:06 zyabin101 So that the front side is facing the player at time of placement. 09:06 zyabin101 s/block/node/ 09:16 zyabin101 nvm found it 09:17 zyabin101 for rotation along xz only: set `paramtype2` to `facedir` 09:35 jas_ !server 09:35 MinetestBot jas_: *** SkyWars *** by Telesight | skywars.telesight.nl:30010 | Clients: 22/50, 24/39 | Version: 0.4.15 / minetest | Ping: 6ms 13:47 Tirifto Hello all! 13:48 jas_ hi 13:49 ThomasMonroe_ hi 13:52 ph3-der-loewe mau. 13:55 Tirifto I guess Minetest does not support fully assymetrical 3D skins (out of the box)? 13:56 ThomasMonroe_ no i dont think it does (atm) 14:01 Krock it's quite much possible to make asymmetrical skins with the current model 14:02 Krock but some parts are mirrored for easier design 14:12 Tirifto Yeah, my question mostly concerns those prats :P 14:14 Tirifto Would making a mod to alter that be possible and simple enough? 14:14 Calinou Tirifto: possible, but it would break compatibility with existing skins. (It however is possible to automatically convert them) 14:15 Calinou welcome to the most commented issue ever on minetest_game on GitHub: https://github.com/minetest/minetest_game/issues/1235 14:22 Calinou heh, I have the most commented issue on 2 repositories already now 14:22 Calinou (the other has even more comments, 227 comments) 14:22 Calinou (and it was locked since a troll derailed it) 14:28 Krock Calinou, there's a subgame from d00med (or similar), where discussions have way more posts because they think it's a chat 14:31 twoelk discussing and chating are two different things? hm that might explain a few things 14:32 CalebDavis i am regestering a decoration for a subgame of mine and i only have 4 biomes in the world but it is showing up in all of them why? 14:32 CalebDavis i have the biomes = "icecrystal_forest" in the decoration description 14:33 CalebDavis -description+definition 14:45 Tirifto Calinou: Whoa, thanks for that. I tried quickly reading through it, but at the end I'm still not sure if there's any progress. :P Good that it exists, though! 16:33 stujones11 Tirifto: You could try this mod https://forum.minetest.net/viewtopic.php?f=9&t=17543 16:37 Tirifto stujones11: Neat; thanks! :) 16:39 stujones11 You're welcome, see the last two posts if you are using a recent development build and/or 3d_armor 19:10 verndrman how do i capture a vector { old_pos = user:getpos() } in order to do { if vector.equals(old_pos, user:getpos()) then }) then 19:11 verndrman im trying to break a channel if player moves 19:11 sofar confusing question 19:11 sofar getpos() returns a vector 19:11 sofar what do you mean by "capture"? 19:16 verndrman sorry, the data structure to hold the return x=# y=# z=# 19:17 Krock that's a simple table. Lua doesn't know data structures 19:31 BamaHit What up everyone! 19:33 verndrman Krock, something like this? https://pastebin.com/raw/39kQEDRc 19:34 verndrman a type of packing/unpacking a table? 19:37 Krock user:setpos({x=0, y=80, z=0}) is correct, if you ask for that 19:37 calcul0n verndrman, you don't need from_table, if vector.equals(old_pos, user:getpos()) should work 19:38 verndrman damn it must be something else. cause that is what it was before all two hr research spree 19:38 Krock you also seem to use a lot global variables there, like "old_pos" and "h_wait". You could get problems with them, when not set to local 19:38 verndrman ahh will change 19:39 calcul0n maybe a floating point problem, as a == b is can be a problem with floats 19:39 calcul0n do you have an error message ? 19:39 verndrman never mind sorry guys it works now, ty calculon 19:40 verndrman https://pastebin.com/raw/42PLeMBd 19:40 BamaHit Anyone know if you can use get_players_control in formspec? 19:41 verndrman calcul0n, after some testing i believe u are correct, ill implement trucation 19:42 Krock BamaHit, someone just asked this yesterday. No. 19:43 Krock well, yes. you could use it but it would (most likely) return the last known keys before the formspec was opened 19:43 BamaHit I asked yesterday, I asked again because the two that answered didn't say for certain they said they "think". 19:43 Krock thinking is good. trying is better. tried yet? 19:43 BamaHit But thanks for confirming :D I can move to another method :) 19:47 Krock just tested it. all fields set to false, no matter how you open the formspec 19:48 BamaHit oh bro. Thank you for taking that time to test. 19:48 Krock !next 19:48 MinetestBot Another satisfied customer. Next! 19:48 BamaHit haha 19:53 verndrman who is working on clientside scripting? id like to check out the code 19:55 Fixer !!!back 19:57 BamaHit Anyone checked out this mod smart inventory? It looks really nice. 20:02 stujones11 BamaHit: Yes, it's nicely done and I rather like it, depending on the game-mode 20:07 rubenwardy verndrman: nerzhul and red-001, here is the code: https://github.com/minetest/minetest/blob/master/src/script/scripting_client.cpp 20:07 rubenwardy note that it includes other files 20:08 verndrman thanks rubenwardy i appreciate that link 20:25 verndrman rubenwardy, is your awards mod a better option than quests due to its awards feature? 20:26 verndrman i hate using 'better' but im looking for a replacement. and ur mod seems simpler/complete 20:56 rubenwardy verndrman, I've not used the quests mod 21:16 BamaHit Guys i added the 'invsaw' it don't have a "back" button. So been trying to add one. button is there https://pastebin.com/KmFtUtM1 when i hit it it says "no waypoint" so it is printing. But like line above and have tried many others but all just grey screen and crash 21:16 BamaHit I'm trying to add button to close the 'invsaw' and go back to unified inventory. 21:17 BamaHit I have tried many different combos. like "unified_inventory.set_inventory_formspec(name, "waypoints")". But everything just crashes. 21:46 rubenwardy ew, unified inventory 21:47 BamaHit I'd like to use smart invengoty but i can't get waypoints to work in it yet. 21:48 BamaHit When i get that figured out i will be swapping to that one. 21:48 rubenwardy do you know about sfinv? 21:49 bigfoot547 Hey BamaHit 21:49 BamaHit The default one? 21:49 BamaHit Hi bigfoot547 21:51 BamaHit rubenwardy: sfinv that is default inventory isn't it? 21:51 rubenwardy yeah 21:51 rubenwardy very simple with a nice API 21:51 rubenwardy but not very many mods for it yet 21:56 bigfoot547 Hi wilkgr 21:57 wilkgr Hi bigfoot547. 21:57 wilkgr Oh, yay, my internet works again :) 22:04 rubenwardy woo 22:39 jimmijohn how do you give a player a heart that wears a helmet. player effects, as far as i could tell, only give temp effects. not extra hearts 22:40 bigfoot547 jimmijohn: That is not currently supported by the game engine 22:41 BamaHit increase maxhp? 22:41 jimmijohn BamaHit, yes 22:41 BamaHit Can't we just set the hp higher? 22:42 BamaHit "set_hp(hp) — set number of hitpoints (2 * number of hearts)" 22:43 bigfoot547 Nope 22:43 bigfoot547 it's rangelim'd 22:43 BamaHit Not sure what that means...but it sounds bad haha 22:43 bigfoot547 It means you can't set it below 0 and above 20 22:43 rubenwardy you can override the hearts view 22:44 rubenwardy so theoretically you could add fake hp point 22:44 rubenwardy points 22:44 bigfoot547 Yes 22:44 rubenwardy you'd then override on_damage or whatever to use your fake points first 22:44 rubenwardy then consume hp 22:44 jimmijohn is there a hacky-way to give player health wearing x armor? 22:44 rubenwardy however, it won't be very compatible with other mods 22:44 BamaHit bigfoot547: imma post this agian i think you missed it but had an issue earlier. 22:44 rubenwardy ie: most use get/set_hp 22:45 BamaHit Guys i added the 'invsaw' it don't have a "back" button. So been trying to add one. button is there https://pastebin.com/KmFtUtM1 when i hit it it says "no waypoint" so it is printing. But like line above and have tried many others but all just grey screen and crash 22:46 BamaHit I'm trying to add button to close the 'invsaw' and go back to unified inventory. I have tried many different combos. like "unified_inventory.set_inventory_formspec(name, "waypoints")". But everything just crashes. 22:46 jimmijohn are you all sure there is no mod that kind of deals with this? seems like a general gaming feature 22:46 bigfoot547 instead of "waypoints" doesn't the formspec string need to be used? 22:46 BamaHit Those guys are pretty smart man 22:47 bigfoot547 I've never used the UI API so I don't really know :P 22:47 bigfoot547 That was just a guess 22:49 bigfoot547 BamaHit: u wanna try the thing? 22:49 BamaHit I thoguht waypoints was the string. 22:49 BamaHit Sure man 22:49 rubenwardy UI has an ugly API 22:49 bigfoot547 No, like the "size[100,2000]..." thing 22:49 rubenwardy and yes, I'm 90% sure it's the formspec string there 22:50 bigfoot547 Maybe make a variable named waypoints and fill it with the formspec string 22:50 BamaHit I copied that code form worldedit's back button that leads back to inventory. 22:50 rubenwardy ah 22:50 BamaHit that is why it is got me confussed. 22:50 bigfoot547 then call it (name, waypoints) 22:50 bigfoot547 ^^ arguments only 22:51 BamaHit ill try that now 22:52 bigfoot547 Okay 22:54 BamaHit Same results :( 22:54 bigfoot547 okay 22:54 bigfoot547 what message does it crash with? 22:56 BamaHit attempt to call method 'get_player_name' (a nil value) .. that is odd 22:56 bigfoot547 Line number? 22:56 BamaHit when it does print the message 22:57 BamaHit Oh in unified_inventory/internal.. 22:57 BamaHit which is "local player_name = player:get_player_name()" 22:58 bigfoot547 Where is "player" defined? 22:58 bigfoot547 It might not be a PlayerSAO 22:58 bigfoot547 Or 22:58 bigfoot547 uh 22:58 bigfoot547 Userdata I mean 22:58 BamaHit player is definded on the pastebine 22:58 BamaHit second line 22:58 bigfoot547 Passed to the function... 22:59 bigfoot547 The only way that could be a problem is if "player" is not a player object 22:59 bigfoot547 Hmm 23:00 bigfoot547 I see that the args are in the right order 23:00 bigfoot547 can you do a "print(player)" in there 23:00 bigfoot547 add it into line 2 23:00 rubenwardy print(dump(player)) 23:00 bigfoot547 Oh, yeah 23:00 BamaHit i can print "No waypoints" 23:00 bigfoot547 python has destroyed me again 23:01 bigfoot547 BamaHit: We need the player object 23:01 BamaHit if i comment out the _formspec 23:01 bigfoot547 to see if it is nil or what 23:01 BamaHit k 23:05 BamaHit Ok, player is not a string its userdata 23:05 bigfoot547 Yes 23:05 bigfoot547 good 23:06 BamaHit https://pastebin.com/CKqnZRV5 23:09 BamaHit maybe i should be trying to figure out how to use "minetest.show_formspec() instead of the unified_inventory.set_inventory_formspec 23:10 bigfoot547 Yes 23:10 rubenwardy or sfinv ;) 23:10 rubenwardy to switch a page you do sfinv.set_page(name, "sfinv:crafting") 23:10 bigfoot547 also, minetest.chat_send_player(, ) 23:10 rubenwardy although you'd have to make waypoints 23:10 bigfoot547 Don't send the player object 23:13 BamaHit sfinv seems harder to modify. 23:13 BamaHit It is like most of the code is in the engine and not in that sfinv folder. But I am a noob so..... 23:13 rubenwardy all of the code is in the sfinv folder :P 23:13 rubenwardy it's very easy to add pages 23:14 rubenwardy it's very easy to replace or remove pages 23:14 BamaHit You can search those 2 files and niether have the names of the Tabs in it so how is it there? 23:14 rubenwardy BamaHit, they're called pages as it may not necessarily be tab 23:14 rubenwardy *tabs 23:14 rubenwardy and all of sfinv's code is in sfinv/api.lua 23:15 rubenwardy modifying pages is harder, as you need to get the old page and call it to generate the formspec, then add your own stuff to it 23:15 BamaHit I can search that page for "all" and there is no results. 23:15 rubenwardy the creative tabs are defined in the creative mod 23:15 BamaHit I must be thinking about this all the wrong way lol 23:15 BamaHit See you just said it I was haha 23:15 rubenwardy sfinv is a inventory mod that provides only a crafting page/tab by default 23:16 rubenwardy creative is the mod that adds the creative inventory and creative features 23:16 BamaHit Now i'm starting to understand :D 23:17 BamaHit Thank you for that rubenwardy 23:18 BamaHit All the knowledge i can gain the better 23:18 rubenwardy :D 23:18 rubenwardy well, it helps that I wrote sfinv 23:18 BamaHit no shit? 23:18 BamaHit Very nice bro! 23:21 BamaHit There is a lot of talented people involved with this game