Minetest logo

IRC log for #minetest, 2017-04-28

| Channels | #minetest index | Today | | Google Search | Plaintext

All times shown according to UTC.

Time Nick Message
00:30 Grandolf joined #minetest
00:32 halt_ joined #minetest
00:35 Freejack joined #minetest
01:00 benrob0329 joined #minetest
01:19 proller joined #minetest
01:22 Glorfindel joined #minetest
01:27 ThomasMonroe joined #minetest
01:34 GreenDimond joined #minetest
01:35 GreenDimond if I have a itemstack:take_item(2) in an on_use, how do I make it check if the player has 2? cuz rn even if there is only one it does what it is only supposed to do if the player puts in 2
01:48 GreenDimond bueller? bueller?
01:54 Out`Of`Control joined #minetest
02:10 admicos joined #minetest
02:11 admicos left #minetest
02:14 VanessaE GreenDimond:  if itemstack:get_count() > 2 then itemstack:take_item(2) end   ?
02:14 VanessaE (well maybe > 1 but anyway)
02:14 XtremeHacker__ joined #minetest
02:23 proller joined #minetest
02:27 GreenDimond I will try that VanessaE
02:29 GreenDimond VanessaE, where do I put the nodename? itemstack:get_count("modname:nodename") == 2 I am assuming?
02:29 VanessaE the item stack IS the node
02:29 VanessaE or whatever
02:30 GreenDimond derp.
02:30 VanessaE so you would get "itemstack" from somewhere else first
02:30 VanessaE the on_use callback should supply it
02:30 VanessaE I think.
02:31 GreenDimond alright it worked thx
02:31 VanessaE cheers :)
02:55 XtremeHacker joined #minetest
04:08 ssieb joined #minetest
05:01 kimitux joined #minetest
05:07 Fritigern joined #minetest
05:10 Markow joined #minetest
05:28 Menche joined #minetest
05:59 Elench joined #minetest
06:06 admicos joined #minetest
06:06 admicos left #minetest
06:06 bwarden joined #minetest
06:22 Taose joined #minetest
06:35 CWz joined #minetest
06:47 passant joined #minetest
06:52 Menche joined #minetest
06:59 TommyTreasure joined #minetest
07:09 ensonic joined #minetest
07:26 pandaro joined #minetest
07:38 redblade7 joined #minetest
07:38 Dargod joined #minetest
07:45 srbaker_ joined #minetest
07:59 aheinecke joined #minetest
08:00 Szkodnix joined #minetest
08:07 lumidify joined #minetest
08:08 Out`Of`Control hi
08:08 Out`Of`Control is it possible to have more than 1 spawn?
08:11 Out`Of`Control so game teleport you random to one of them on connect or death
08:14 kilbith joined #minetest
08:14 kilbith !seen kaeza
08:14 MinetestBot kilbith: kaeza was last seen at 2017-04-25 18:55:47 UTC on ##minetestbot
08:14 kilbith left #minetest
08:19 proller joined #minetest
08:30 ensonic joined #minetest
09:06 JamesTait joined #minetest
09:10 Fritigern_ joined #minetest
09:10 JamesTait Good morning all! Hapy Friday, and happy Hairball Awareness Day! 😃  ðŸˆ
09:40 Megaf joined #minetest
10:09 Fixer joined #minetest
10:28 Telesight joined #minetest
10:31 Megaf !up mt.megaf.info 30008
10:31 MinetestBot mt.megaf.info:30008 is up (7ms)
10:31 Megaf !server Self
10:31 MinetestBot Megaf: Self Wipe Up | 178.79.130.6:30008 | Clients: 0/20, 0/0 | Version: 0.4.15-Megaf / minetest | Ping: 7ms
10:32 Elench !help
10:32 MinetestBot https://github.com/sfan5/minetestbot-modules/blob/master/COMMANDS.md
10:32 Elench Neat
10:44 proller joined #minetest
10:47 YuGiOhJCJ joined #minetest
10:58 Jordach joined #minetest
11:01 troller joined #minetest
11:03 PsychoVision joined #minetest
11:07 DS-minetest joined #minetest
11:23 ThomasMonroe joined #minetest
11:26 Pie-jacker875 joined #minetest
11:38 JamesTait joined #minetest
12:00 sfan5 Out`Of`Control: just use a mod for that
12:49 juli joined #minetest
12:52 Tux[Qyou] joined #minetest
12:55 ThomasMonroe joined #minetest
12:57 Taoki joined #minetest
13:14 juli1 joined #minetest
13:16 lumidify joined #minetest
13:31 destt_ joined #minetest
13:43 rubenwardy joined #minetest
13:46 Grandolf joined #minetest
13:46 halt_ joined #minetest
13:52 Grandolf joined #minetest
13:53 Grandolf joined #minetest
13:58 octacian joined #minetest
14:10 Darcidride joined #minetest
14:21 DS-minetest joined #minetest
14:23 LordVlad joined #minetest
14:26 Fixer joined #minetest
14:31 Megaf joined #minetest
15:06 Elench joined #minetest
15:13 Kreaton joined #minetest
15:14 Kreaton Yo.
15:18 tokage hi
15:19 XtremeHacker joined #minetest
15:19 Kreaton Whats up?
15:20 Socralench Up is the direction of increasing gravitational potential
15:20 Kreaton Thanks,
15:23 rdococ joined #minetest
15:31 YuGiOhJCJ joined #minetest
15:34 Markow joined #minetest
15:35 Wuzzy joined #minetest
15:59 DS-minetest lol
16:08 TestyRabbit joined #minetest
16:08 TestyRabbit Hey everyone! Is there a way to set a world to be immutable using the API?
16:09 calculon i'd just drop the interact priv for all players
16:10 TestyRabbit Hm, will I still be able to capture punchnode?
16:10 calculon or register a global on_dig_node handler
16:10 calculon ho, maybe not
16:10 TestyRabbit the dig_node handler sounds like a good idea
16:10 DS-minetest just protect everything
16:11 calculon also on_place i guess, or players will be able to place nodes
16:11 TestyRabbit I can protect areas with the API?
16:12 calculon not sure, but i've never seen such function
16:13 calculon you'll have to use some protection mod i think
16:13 TestyRabbit yeah thats what it looks like
16:13 TestyRabbit thanks!
16:13 calculon ho, i see, you can just override minetest.is_protected and always return false
16:14 TestyRabbit yeah, does dig check for htat?
16:14 TestyRabbit ill try it out
16:14 calculon that depends, every mod has to handle that itself
16:18 sfan5 calculon: non-player action like e.g. mesecons contraptions or already active tnt will still modify the world
16:19 calculon hmm, i see
16:22 TestyRabbit thats alright, its mostly just to stop players from breaking blocks with clicks
16:22 TestyRabbit or placing blocks
16:22 TestyRabbit so dig and place could be a good place to change stuff
16:25 Krock joined #minetest
16:25 Krock joined #minetest
16:40 Megaf joined #minetest
16:57 Megaf joined #minetest
17:00 ek0 joined #minetest
17:07 ensonic joined #minetest
17:16 Paul27 joined #minetest
17:16 Paul27 Hello. Is possible to make a MT server with hamachi on linux?
17:18 red-001 probally
17:19 Krock http://help.logmein.com/articles/en_US/FAQ/Which-ports-and-protocols-does-LogMeIn-Hamachi2-use-en1
17:19 red-001 probably*
17:19 Krock make sure you've configured it the way that UDP works
17:20 Paul27 Ok thanks
17:21 Krock however, I'd recommend to use port-forwarding to allow some more players joining your server
17:22 red-001 Krock, iirc he is unable to do that
17:23 Paul27 ?
17:24 lumidify joined #minetest
17:25 tokage joined #minetest
17:48 ThomasMonroe joined #minetest
17:53 TestyRabbit @Calculon thanks for help, overwriting the is_protected and then the node_dig worked, now working on placenode
17:56 Exagone313 joined #minetest
18:01 papou84 joined #minetest
18:01 papou84 is there a sound design team i would like to contribute
18:01 papou84 ?
18:08 sofar papou84: you're it! welcome minetest sound design team!
18:09 papou84 great how does it work, wherecan i start ?
18:13 papou84 where are the sound files in minetest ubuntu
18:13 dabbill joined #minetest
18:13 sofar papou84: we don't have any "teams" as such, contributions are needed of course, people have submitted changes and there's actually a few patches
18:13 MinetestBot [git] HybridDog -> minetest/minetest: Fix click-digging torches (#5652) 7f4cdbc https://git.io/v9ccb (2017-04-28T18:12:28Z)
18:13 MinetestBot [git] sofar -> minetest/minetest: Allow mesh and nodeboxes to wave like plants or leaves. (#3497) e21a1ab https://git.io/v9ccN (2017-04-28T18:11:43Z)
18:13 sofar there's a footstep sound pr atm
18:14 sofar papou84: we use github with pull requests as our mechanism for reviewing and discussing changes, even for sounds and artwork
18:14 rubenwardy https://github.com/minetest/minetest_game
18:14 papou84 ok great
18:14 sofar yup, I was about to link that ^
18:16 papou84 I'm better with sounds than i am with github
18:17 papou84 how do i do that ? first i'd like to download step sound or find them in ubuntu and modify them
18:18 rubenwardy go to ~/.minetest/
18:18 rubenwardy (it's a hidden folder)
18:18 rubenwardy create games/ if it does not exist
18:18 rubenwardy install git     (sudo apt install git-core)
18:19 rubenwardy clone minetest_game       (git clone https://github.com/minetest/minetest_game.git)
18:19 rubenwardy go  minetest_game/mods   each folder is a mod, and each mod may have a folder called sounds
18:19 rubenwardy for example,    ~/.minetest/games/minetest_game/mods/default/sounds   is where you'll find the footstep sounds
18:20 lisac joined #minetest
18:20 rubenwardy (note that sudo apt install minetest installs minetest_game to /usr/share/minetest_game I believe, however we can ignore this. I'm 90% sure ~/.minetest/ overrides it)
18:22 rubenwardy see http://rubenwardy.com/minetest_modding_book/chapters/folders.html for a guide on mod folders
18:22 Allonphone joined #minetest
18:23 papou84 thanks a lot i'm working on it
18:42 Out`Of`Control sfan5:  do you know any mod?
18:43 Out`Of`Control sfan5:  for random spawn
18:43 sfan5 Out`Of`Control: don't know whether this one still worsk https://kitsunemimi.pw/tmp/spawnpoints.tar.gz
18:43 sfan5 works*
18:43 sfan5 just try it
18:43 Out`Of`Control sfan5: thanks
18:45 MinetestBot [git] ShadowNinja -> minetest/minetest: Clean up getTime helpers b662a45 https://git.io/v9c4x (2017-04-28T18:43:18Z)
18:46 iama200 joined #minetest
18:47 iama200 Hi ;)
18:47 Krock hello
18:47 iama200 hey
18:51 TestyRabbit Is there a way I can prevent a player from placing a block?
18:52 TestyRabbit Using the api?
18:52 iama200 taking interact out amybe
18:53 Krock you can define the on_place table value
18:53 sfan5 didnt you already get your answer
18:53 Krock yeah, déjà vu
18:54 TestyRabbit lol nah i asked about it, but never went into specifics on actually preventing a player from doing it
18:54 TestyRabbit i fixed to block breaking issue, but not the placing one
18:54 DS-minetest joined #minetest
18:55 Krock minetest.override_item("mod:node_that_cant_be_placed", { on_place = function() end })
18:55 TestyRabbit hm
18:55 TestyRabbit ok cool, ill try that
18:55 TestyRabbit thanks
18:56 sfan5 uhm
18:56 TestyRabbit oh wait, i don't want any blocks to be placed in a protected area.
18:56 sfan5 use minetest.register_on_placenode for that
18:56 TestyRabbit i know theres a mod
18:57 TestyRabbit i think minetest.register_on_placenode gets called after the block is placed, so i can't make it not placed. And when I try to replace it with air afterwards it doesn't get replaced
18:57 Krock hmm. nothing about the actual node placement in the documentation
18:57 sfan5 !api
18:57 MinetestBot Someone thinks you should read the API docs, please go to: https://github.com/minetest/minetest/blob/master/doc/lua_api.txt
18:58 sfan5 hm
18:58 calculon note that replacing the node with air would not work with the "buildable_to" nodes
18:58 Krock according to builtin/game/item.lua it only controls about the itemstack itself
18:58 sfan5 TestyRabbit: use minetest.is_protected ?
18:59 TestyRabbit yeah I'm using that, even though it's protected is returning true it still places it
18:59 DS-minetest oh, didn't know that MinetestBot command. client_lua_api.md should be added
18:59 TestyRabbit i had to overwrite node_dig as well to account for it
19:00 Krock protection movs overwrite minetest.item_place
19:00 Krock *mods
19:00 calculon then overwrite set_node and swaap_node maybe ?
19:00 calculon hmm, not sure they are called when it's a user action
19:00 Krock example: https://github.com/Bremaweb/landrush/blob/master/protection.lua#L157
19:01 TestyRabbit ahhh
19:01 TestyRabbit i see Krock
19:01 Krock looking how it's done in areas
19:01 TestyRabbit Well mine is either on or off for the map
19:02 TestyRabbit for some context, I'm modifying raspberryjammod to allow for the "set_immutability" to work, because right now it doesnt
19:02 Krock seems to work fine without overriding it in the areas mod o.o
19:03 Krock i.e. https://github.com/ShadowNinja/areas/blob/master/interact.lua#L3
19:03 TestyRabbit raspberryjammod opens a socket to accept python and then translates it to the lua API, because my team and I already have a ton of code built out for raspberry pi minecraft and it would take a very long time to rewrite it all in lua
19:03 TestyRabbit its not 1:1 of course but trying to get it closer
19:04 Krock speed loss is programmed already
19:08 TestyRabbit I'm gonna look into the itemplaced thing
19:08 TestyRabbit thanks everyone, appreciate it
19:08 LazyJ joined #minetest
19:09 admicos joined #minetest
19:10 Grandolf joined #minetest
19:10 halt_ joined #minetest
19:15 TestyRabbit Just so everyone knows, overwriting minetest.item_place works like a charm
19:15 TestyRabbit Thanks!!
19:18 Krock !next
19:18 MinetestBot Another satisfied customer. Next!
19:21 ShadowNinja TestyRabbit: Note: If you're trying to make an area protected you should use the is_protected API -- handling it with item_place will miss a lot of cases (for example, placing a door at (0,0,0) will also set a node at (0,1,0), which may be protected.
19:21 ShadowNinja Also, e.g., the technic mining machine will just mine through areas that aren't using the protection API.
19:22 ShadowNinja If `//lua minetest.is_protected = function() return true end` isn't working, then there's some larger issue.
19:24 TestyRabbit ShadowNinja: Thanks. I'm only modifying a mod so I'm not sure why just changing is_protected() doesn't work, but it seems like that function isn't even being checked when im placing or digging a block
19:25 cx384 joined #minetest
19:25 ShadowNinja TestyRabbit: Can you post the relevant code in a ,,pastebin ?
19:26 TestyRabbit Yeah give me a sec
19:29 TestyRabbit ShadowNinja: Are you familiar with the minecraft pi python api at all?
19:30 ShadowNinja TestyRabbit: Nope.
19:30 TestyRabbit Okay, ill add some explanation
19:34 TestyRabbit So there is a minetest mod called "Raspberryjammod" which just opens a lua socket and accepts incoming python calls, and then converts them to the matching lua calls. (i.e. mc.setBlock(pos, block) == minetest.place_node(pos, node)). There is a function which turns off mutability in minecraft pi api (mc.setting("world_immutabile", boolean)). What this does in raspberryjammod init.lua is changes the variable 'world_immutable', and
19:34 TestyRabbit then minetest.is_protected() is overwritten like this:
19:34 TestyRabbit https://pastebin.com/2eGeYbDj
19:35 TestyRabbit I'm not sure what else I could send, here is the git for the mod https://github.com/arpruss/raspberryjammod
19:38 TestyRabbit I added in these functions to the init and it made it work to stop players from placing blocks or breaking blocks: https://pastebin.com/RMRv2tW3
19:44 ShadowNinja TestyRabbit: Hmmm, that looks right.  You're running a recent version of Minetest, right>
19:44 ShadowNinja s/>/?/
19:44 TestyRabbit 0.4.15
19:44 TestyRabbit pretty sure
19:46 ShadowNinja Yeah, if thet's your version (including builtin) then is_protected should work fine and should already be integrated into all of the relevant functions.
19:47 TestyRabbit Yeah, let me do some testing and I'll get back to you
19:47 ShadowNinja TestyRabbit: Hmmm, looks like a protection_bypass privilege was added.  Do you have that privilege?
19:47 TestyRabbit ohh
19:47 TestyRabbit i might
19:47 TestyRabbit damn
19:49 TestyRabbit Yeh that was it
19:49 TestyRabbit thanks man haha, so much wasted time
19:49 TestyRabbit no more /grant all lol
19:50 ShadowNinja Alright.  Looks like it isn't granted in singleplayer by default, so you shouldn't have to mess with that.
19:50 ShadowNinja You're welcome, glad to help. :-)
19:50 TestyRabbit Yeah I'll keep that off then
19:51 Megaf joined #minetest
19:51 Out`Of`Control sfan5: do i have to remove spawn point from mt.config?
19:52 sfan5 yes
19:52 Out`Of`Control ok i wonder why it teleport me to same place
20:00 Out`Of`Control sfan5: looks as it works fine
20:00 sfan5 nice
20:26 stormchaser3000 joined #minetest
20:49 Out`Of`Control running recent minetest_game cotton does not grow, what could cause it?
20:55 cx384 not enough water or light?
20:56 Out`Of`Control soil get wet, glowglass next to it
20:59 Out`Of`Control cx384:  odd part wheat grows but not cotton
21:01 cx384 I don't know why it dose not grow.
21:03 rubenwardy joined #minetest
21:09 TommyTreasure i've been searching for a mod that will allow me to create a series of books that can be used in the autostore mod.  they would be used as a sort of help desk.  any ideas?
21:09 Jousway joined #minetest
21:15 TommyTreasure please ping or pm if you have any thoughts or ideas.
21:17 swift110 joined #minetest
21:26 Allonphone joined #minetest
21:28 LordVlad joined #minetest
21:57 nowhereman joined #minetest
22:00 srbaker_ joined #minetest
22:20 Allonphone joined #minetest
22:24 YuGiOhJCJ joined #minetest
22:26 troller joined #minetest
22:27 destt_ joined #minetest
22:30 destt_ joined #minetest
22:30 destt_ joined #minetest
22:31 troller joined #minetest
22:33 swift110 joined #minetest
22:49 benrob0329_ joined #minetest
22:50 Tmanyo joined #minetest
22:55 troller joined #minetest
23:02 nisa joined #minetest
23:07 nisa left #minetest
23:12 Fixer joined #minetest
23:24 MarioBranco joined #minetest
23:28 MarioBranco joined #minetest

| Channels | #minetest index | Today | | Google Search | Plaintext