Time Nick Message 00:07 cimbakahn Good Evening Everyone! 00:09 cimbakahn Does this mod have something to do with the inventory? If so, can i delete it and replace it with unified inventory? /home/cimbakahn/.minetest/games/stampy_game/mods/craftingpack 00:10 cimbakahn I don't like the inventory in the game. It is too small, not enough slots to store stuff. 00:36 octacian cimbakahn: hello 00:36 octacian yes. craftingpack is inventory. You can safely delete it and replace it with unified inventory. 00:37 octacian * has to do with the inventory 00:41 cimbakahn octacian, Thank you very much! 00:41 octacian YW 07:53 Calinou who needs torches when you have display_gamma = (some high value)? :P 07:53 Calinou https://lut.im/mGPSXbmujN/V5f8Se2vDQIaOypZ.png 07:55 agaran Calinou: ;) heh 11:56 Nyarg Is it possible to pitch and roll assembled entity by set_bone_position() ? 15:08 Gundul Hello jungle :) 15:09 riff-IRC Hi 15:09 Gundul Lol sry wrong channel. Forgot my glasses :D 15:10 riff-IRC ? 15:11 Gundul Minetest was right, but this is not my server channel :) 15:12 ^7heo riff-IRC: people don't see that well without their prescription glasses when they need them. 15:12 ^7heo riff-IRC: that's like, you know, hearing aids. 15:12 ^7heo riff-IRC: but for the eyes. 16:39 Nyarg somebody here ? 16:39 Nyarg Is it possible to pitch and roll assembled entity by set_bone_position() ? 17:40 riff-IRC Hello ptv 18:48 cimbakahn I deleted the bedrock mod because i didn't want bedrock, now i have unknown nodes left over in the game. How do i get rid of all the unknown/bedrock nodes? 18:49 cimbakahn This is the only file that even has the word 'bedrock' in it ----> /home/cimbakahn/.minetest/games/stampy_game/tools/tomtweschem.py 18:49 riff-IRC I don't know 18:49 cimbakahn And it reads: (7 , -1, "bedrock:bedrock"), <---- Should i delete this line? 18:49 riff-IRC I honestly don't know 18:49 riff-IRC I don't have much experience with this stuff 18:50 cimbakahn riff-IRC, Thank you for responding. 18:50 riff-IRC No problem. :) 18:50 riff-IRC How large is the map? 18:50 rubenwardy cimbakahn, https://forum.minetest.net/viewtopic.php?t=2777 18:50 riff-IRC And do you have WorldEdit installed? 18:50 cimbakahn riff-IRC, It's not big at all. 18:51 cimbakahn rubenwardy, Thanks! I'll check it out. 18:51 sfan5 cimbakahn: sorry but deleting "bedrock" from random files isn't going to make unknown nodes disappear 18:52 riff-IRC Is WorldEdit installed? 18:54 cimbakahn It reads: They will be removed when a player is close to them. This means my character is going to have to no-clip through the entire map for them to disappear. 18:54 riff-IRC Is WorldEdit installed??? 18:55 cimbakahn Yes, it is installed. 18:56 cimbakahn How does the game even remember that those blocks were bedrock? 19:00 twoelk blocks are stored in the map database with their names of course. When that database is opened with a missing description of how a block is to be rendered (aka missing mod) minetest complains und pastes the Unknownnode texture to it 19:03 Nyarg bump: Is it possible to pitch and roll assembled entity by set_bone_position() ? 19:08 YuGiOhJCJ hello, two months after the release, there is no official ChangeLog: https://forum.minetest.net/viewtopic.php?f=18&t=16167 http://dev.minetest.net/Changelog#0.4.14_.E2.86.92_0.4.15 is it because of laziness or because of the high number of commits please? 19:08 rubenwardy are you offering? 19:09 rubenwardy you need to go through each of the commits from 0.4.14 to 0.4.15 and sort them into categories, making sure you keep author info. You also need to remove things that fix issues introduced since 0.4.14, and things no one cares about (such a refactoring) 19:18 YuGiOhJCJ no I am not offering it seems to be hard work 19:19 YuGiOhJCJ and I am a lazy person :p 19:19 YuGiOhJCJ I must admit 21:03 Sokomine was anything changed regarding minetest.request_insecure_environment ? i do not seem to be able to request an insecure environment anymore even though the mod is listed in secure.trusted_mods 21:41 nore Sokomine: well, it won't work if you try to request it inside a function 21:41 nore but it has been so for quite a long time 21:43 Yawin hi! 21:44 Yawin do you know how can I set metadata on an entity? 21:58 octacian Yawin: I think it's something like entity:set_attribute and get_attribute 21:58 octacian That's how it is for players anyway. 21:59 octacian NVM, that's only for players 22:00 octacian Personally, I'm not sure even after looking at the lua api. 22:00 Yawin and if my entity is an item? 22:01 Yawin i'm trying to do that but don't works: http://pastebin.com/6yazLKQu 22:07 octacian Yawin: it's item:get_metadata() 22:08 Yawin the line where i'm trying to change the name don't works 22:08 Yawin how can i change the description of the item? 22:09 octacian Yawin: you can't. 22:09 Yawin oh! 22:09 Yawin I don't like than hahaha 22:09 Yawin *that 22:10 octacian There was a PR open, sofar was working on it I think. 22:10 octacian However, it's got some problems. You'd have to ask him about it though.. 22:10 Yawin if i do this 22:10 Yawin local meta = item:get_metadata() 22:10 Yawin meta:set_string("luck", "3") 22:11 octacian That should work. 22:11 Yawin the second line says: attempt to call method set_string (a nil value) 22:11 Sokomine nore: hmm. definitely not inside a function. very strage 22:11 Nyarg I am sorry foe bump agin but I need something "yes it's to be able" or "no it's unworkable" so - bump last time: Is it possible to pitch and roll assembled entity by set_bone_position() ? 22:12 octacian Yawin: huh, that's weird. 22:12 rubenwardy you can, octacian 22:12 nore Sokomine: did you also check minetest.get_current_modnane() gave the right result? 22:12 octacian wait... 22:12 octacian Wait.. 22:13 Sokomine what seems to fail is the following ie = req_ie() part. 22:13 octacian rubenwardy: you can change the name of an item? 22:13 rubenwardy Yawin, local meta = item:get_meta(); meta:set_string("description", "new description") 22:13 octacian YOU HAVE TO BE KIDDING ME 22:13 rubenwardy you'll need 0.4.15 though 22:13 rubenwardy sorry, 0.4.15-dev 22:13 octacian yep 22:13 Sokomine nore: i'm trying to run another mod which requires to be trusted; but my mod (which uses the same mechanism) doesn't seem to be able to get trusted anymore either 22:14 nore I don't know if spaces in spaces in trusted_mods are important or not btw though 22:14 octacian I just spent the past nearly hour working on trying to implement an item counter inside a formspec as I thought I couldn't change the description 22:14 rubenwardy also, get/set_metadata is deprecated, you should use get_meta instead 22:14 Yawin i'm on 0.4.15-dev 22:15 rubenwardy so you can set the description :D 22:15 octacian Now, I'm trying to create a chest with a button to transfer everything in the player inv. This is my code, but it doesn't always transfer everything: https://gist.github.com/octacian/3db609143ada1160e761775b6ec376d9 22:15 nore well, if it's not that, I don't know what it is 22:15 Sokomine nore: https://github.com/Sokomine/handle_schematics/blob/master/save_restore.lua line 64 on. pretty standard code (i think it's more or less the one from the example from mod security) 22:15 nore Need to sleep now though 22:15 Yawin well, i have some problems 22:15 Yawin My metadata actualization is this 22:16 Yawin local item = ItemStack(object:get_luaentity().itemstring) 22:16 Yawin local meta = item:get_meta() 22:16 Yawin meta:set_string("description", meta:get_string("description") .. " (luck)") 22:16 Yawin meta:set_string("luck", "3") 22:16 Yawin 22:16 Yawin object:remove() 22:16 Yawin minetest.env:add_item(node.under, item) 22:16 Sokomine octacian: my chesttools mod does such transfers as well. probably won't help you much with your problem, but if you want to take a look.. 22:16 octacian Sokomine: link? 22:16 Yawin in the hot bar when with the wheel i select the item it writes the original name 22:16 Yawin if in the inventory i put the mouse on, it writes the new name 22:17 octacian Yawin: you're using an old mod then 22:17 Yawin well, description i mean 22:17 Sokomine octacian: er, the one above. just replace handle_schematics with chesttools. it can transfer items from bags into chests and vice versa 22:17 rubenwardy what mod are you using to show the description? Because that mod hasn't been updated 22:17 octacian One of those mods that displays the item description when you switch to it 22:17 Yawin i'm on the last version of minetest writing a new mod 22:17 octacian and as rubenwardy just said, it hasn't been updated 22:17 rubenwardy also, meta:get_string("description") is "" unless you set it 22:17 octacian Yawin: the mod that shows the item description needs to be updated. 22:17 Yawin ah!! unified inventory 22:18 rubenwardy so local def = minetest.registered_items[item:get_name()] or minetest.registered_items["ignore"]; def.description .. " (luck)" 22:18 Yawin i'm thinking i need to update 22:18 rubenwardy ie: get the initial description from the item def 22:19 octacian Sokomine: yep, I think that'll actually help. 22:19 octacian Still unsure as to what's wrong with my code, but 22:20 Yawin so, i have more problems, i'm making: meta:set_string("luck", "3") 22:20 Yawin but when i do item:get_metadata("luck") it returns "" 22:21 octacian Yawin: it should be meta:get_string("luck") 22:21 rubenwardy also, get/set_metadata is deprecated, you should use get_meta instead 22:21 octacian (meta being equal to stack:get_meta()) 22:22 Yawin ok, it's going to work 22:22 Yawin Metadata is so difficult 22:22 Yawin I don't know what i was thinking when i started to make an tool enchanting mod 22:22 rubenwardy not really, the old API is just confusing you :D 22:22 Yawin hahaha 22:23 rubenwardy octacian: your logic is weird. Shouldn't you leave the leftovers in the old inv, or drop them/ 22:23 octacian rubenwardy: I think it is. 22:23 octacian I'm testing Sokomine's method, hopefully it works. 22:24 octacian It's less code too, so 22:24 octacian it works! Yay 22:24 rubenwardy the problem is that you should be removing the stuff you take, not removing the left overs. But it's good to reuse code :D 22:25 octacian And this is what it looks like when it works https://gist.github.com/octacian/3db609143ada1160e761775b6ec376d9 22:25 octacian (thanks Sokomine!) 22:25 octacian Though I have modified the style a bit 22:25 octacian Now, for the big question... 22:25 rubenwardy that has rather inconsistent style 22:25 octacian yeah, I made it consistent. It was copy-pasted from the chesttools mod 22:26 octacian So, my chest has multiple pages of inventory. Is it worth trying to implement something to take only the current page into the player inv? 22:26 octacian I'm personally thinking no. 22:29 Sokomine that depends on your mod and what you have in mind 22:29 octacian It's a mod that allows you to store thousands of items in a single item that can be accessed thru a special chest 22:32 octacian How can I change the background of an item description (rubenwardy?) 22:32 octacian rubenwardy: ^ 22:36 Yawin why if i do a register_on_dig_node(function(bla bla bla 22:36 Yawin the funcion execs a lot of times? 22:36 Yawin how can i execute only once 22:36 rubenwardy it executes everytime a node is dug 22:36 octacian Yawin: what do you mean? It executes a bunch of times when digging one node? 22:36 Yawin yes 22:36 octacian ok, that be weird 22:37 rubenwardy what's your code? 22:37 Yawin function magic.adapt_tools() 22:37 Yawin local tool_list = minetest.registered_tools 22:37 Yawin for item in pairs(tool_list) do 22:37 Yawin minetest.register_on_dignode(function(pos, oldnode, digger) 22:37 Yawin magic.use_tool(pos, oldnode, digger) 22:37 Yawin end) 22:37 Yawin end 22:37 Yawin end 22:37 rubenwardy please use a paste bin 22:38 rubenwardy it's because you register it one time for each tool 22:38 Yawin but, i don't need to say with what tools it works? 22:38 rubenwardy register_on_dignode registers a call back, and you've called it multiple times 22:39 rubenwardy you'd do minetest.registered_aliases[digger:get_wield_item():get_name()] == "magic:toolname" to check the tool 22:39 Yawin oh, ok! i'm understanding 22:40 rubenwardy so, you'd only call register_on_dignode once 22:41 Yawin thank's for all! 22:45 kaeza greetings 22:49 octacian rubenwardy: since what commit does setting the description meta work? 22:51 rubenwardy https://github.com/minetest/minetest/commit/f2f9a923515386d787a245fac52f78e815b3a839 22:53 octacian It's not working for yes. 22:53 octacian * me 22:54 octacian oh wait.. duh >_< 22:54 octacian I have to update the itemstack somehow 22:54 octacian I'm calling on_meta_inventory_put 22:54 octacian *metadata 22:54 octacian rubenwardy: so, how would I update a specific itemstack? 22:55 rubenwardy inv:set_stack ? 22:55 octacian I guess. 22:57 octacian what the rest of the set_stack syntax, rubenwardy? 22:57 octacian set_stack("cells", 1, itemstack)? 22:57 rubenwardy yeah, where 1 is the index 22:59 octacian OK, my fonts in MT suddenly look super weird... 22:59 rubenwardy they changed recently due to legal issues 22:59 octacian oh.. 22:59 octacian the old ones looked better 22:59 octacian so how do I change the colour of the item description? 22:59 octacian minetest.colorize? 23:00 octacian cause I want part of it to be grey 23:00 rubenwardy probably 23:00 rubenwardy I literally just made it so def.description can be per item 23:00 octacian Nice. 23:00 octacian BTW, how can I compile MT with a different font? 23:01 octacian And yes, minetest.colorize works. 23:02 rubenwardy just replace stuff in fonts/ 23:02 rubenwardy well no 23:02 octacian OK 23:02 rubenwardy octacian: add fonts to fonts/ then change font_path in minetest.conf 23:02 octacian Ah, so nice being able to change the description. I can display the number of items stored in the item right there! 23:02 octacian OK, will test in a minute 23:03 octacian wait, so I don't need to recompile? 23:03 rubenwardy no need to recompile 23:05 octacian ok