Minetest logo

IRC log for #minetest, 2015-12-07

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

All times shown according to UTC.

Time Nick Message
00:02 deltib joined #minetest
00:13 roboman2444 joined #minetest
00:33 thePalindrome Is there a way to have a callback for a key press?
00:51 afflatus I seem to remember that being an issue thePalindrome
00:54 thePalindrome I'm trying to create my own key binding to govern a mod function
00:55 afflatus Sure - I'd look for another option
00:56 thePalindrome Best I think I could do is have minetest call my lua every frame and check if the key is pressed
00:56 afflatus Ouch
00:58 afflatus I remember there being a resistance to enabling more keybindingd, sorry I don't remember the context.
01:00 thePalindrome I'm not even sure if I can check for arbitrary keys
01:02 afflatus Let us know if you do find a way ;-)
01:17 est31 joined #minetest
01:26 GunshipPenguin joined #minetest
01:41 DFeniks_ joined #minetest
01:46 STHGOM joined #minetest
02:02 afflatus Very boring. Can't connect to my server again.
02:03 afflatus How the hell do you troubleshoot something that works intermittently?
02:08 rubenwardy very difficultly
02:09 afflatus Best I give up before I defenestrate something.
02:09 afflatus If you see something flying past your window, it'll be my router :D
02:13 * Sokomine catches the router
02:13 * Sokomine puts it on a shelf for later usage
02:14 * afflatus must have thrown it harder than he thought
02:30 afflatus I think it's something to do with my router not recognising the server box properly
02:31 afflatus !server Grail Test
02:31 MinetestBot afflatus: Grail Test | grailtest.gigaworld.org:30001 | Clients: 0/12, 0/0 | Version: 0.4.13 / grailtest | Ping: 21ms
02:31 afflatus FFS
02:39 rubenwardy http://doxy.minetest.net/     OoOOOooOOOo
02:39 phantombeta joined #minetest
02:50 STHGOM joined #minetest
02:54 est31 joined #minetest
03:00 Glorfindel afflatus: you have one of those free vps's from gigaworld?
03:00 Player2 joined #minetest
03:04 GunshipPenguin joined #minetest
03:08 Taoki joined #minetest
03:18 yunfan joined #minetest
03:24 MinetestBot [git] paramat -> minetest/minetest: Mapgen: Add propagate_shadow bool to calcLighting 49073ba http://git.io/vRwiu (2015-12-07T03:18:24Z)
03:31 Viper168_ joined #minetest
03:34 nolsen joined #minetest
03:36 Taurith joined #minetest
03:38 Miner_48er joined #minetest
03:53 TC01 joined #minetest
03:58 roboman2444 joined #minetest
04:04 kaeza joined #minetest
04:04 nolsen_ joined #minetest
04:30 sofar joined #minetest
04:47 TheBonsai joined #minetest
04:47 TheBonsai joined #minetest
04:54 Weedy joined #minetest
04:54 Weedy joined #minetest
05:26 ungali joined #minetest
05:26 ungali joined #minetest
05:26 roboman2444 joined #minetest
05:28 superfly joined #minetest
05:49 jin_xi joined #minetest
06:03 est31 joined #minetest
06:41 MinetestBot [git] est31 -> minetest/minetest: lua_api.txt: add blank lines before * lists 9a5a538 http://git.io/vRrtj (2015-12-07T07:27:51+01:00)
07:00 Telesight joined #minetest
07:00 CWz joined #minetest
07:14 asl97 joined #minetest
07:50 Obani joined #minetest
08:17 meldrian joined #minetest
08:30 Pest joined #minetest
08:38 est31 joined #minetest
08:55 Trustable joined #minetest
09:04 Yepoleb joined #minetest
09:13 MinetestBot [git] est31 -> minetest/minetest: Fix threshold type 51e8c2b http://git.io/vRrbQ (2015-12-07T09:57:45+01:00)
09:19 nrzkt joined #minetest
09:20 Trustable joined #minetest
09:31 Viper168_ joined #minetest
09:36 dadix joined #minetest
09:37 dadix hello , how to install minetest version 13 on gnu/linux from ppa ?
09:38 dadix I have 14.04  lts
09:38 dadix distribution
09:38 VanessaE 14.04 is obsolete.
09:38 VanessaE get 15.10 :)
09:39 dadix I can/t   / I run Trisquel   distribuition  which is based on that version
09:39 VanessaE meanwhile, should be something like:  sudo add-apt-repository ppa:minetestdevs/stable ; sudo apt-get update ; sudo apt-get install minetest
09:40 dadix I did this , but is only version 10
09:40 VanessaE you mean 0.4.10.
09:40 dadix yes
09:41 VanessaE hm, yep
09:41 VanessaE repo listing doesn't show a 0.4.13 build for ubuntu 14.04-derivs
09:41 VanessaE but there IS one for 14.04.1
09:41 VanessaE est31: *poke*
09:42 dadix My distribution don't have yet 14.04.1
09:42 VanessaE well you could perhaps build from sources
09:42 VanessaE that's easy on linux
09:43 est31 VanessaE, there is a 0.4.13 build for 14.04
09:43 VanessaE est31: doesn't appear to work for 14.04.1..
09:43 dadix I wnat to host a server so I want to have a ppa to update more easy
09:43 dadix and without problems
09:44 VanessaE or trisquel is too different from upstream for the repo to work
09:44 est31 idk then
09:44 est31 the ppa itself has it
09:44 est31 https://launchpad.net/~minete​stdevs/+archive/ubuntu/stable
09:44 VanessaE wait,...  dadix did you install "minetest" or "minetestc55"?
09:44 dadix is not to different it is a distribution without any blobs (proprietary code)
09:44 dadix http://trisquel.info/
09:45 VanessaE (why the hell are c55's old-ass builds even still there anymore?)
09:45 dadix which based on Ubuntu lts
09:45 dadix minetest55
09:45 VanessaE that's why
09:45 VanessaE uninstall that and install just "minetest"
09:45 dadix ok I will do thay now
09:46 CWz a VanessaE
09:46 VanessaE hi CWz
09:48 CWz Hosting public servers feel like burden now days
09:48 dadix thank you VanessaE , now I have version 13  from that ppa
09:48 dadix :)
09:48 VanessaE good deal
09:49 * CWz is worried that minetest will adopt firefox's versions scheme
09:50 VanessaE and it's 0.4.13 please :)
09:50 VanessaE the 0.4 part is significant :)
09:50 dadix maybe tonight whwn I come from work I will finish the rest of the setting from a server
09:50 dadix when
09:50 CWz dadix, will it be public or unlisted
09:50 dadix publick
09:51 dadix on my laptop
09:51 VanessaE laptops do not work well for servers.
09:51 VanessaE easy to overheat
09:52 dadix well I will tray to see what is with this game , I am new to this
09:52 VanessaE ok, good lucjk
09:52 VanessaE luck*
09:52 dadix thanks
09:53 dadix have a nice day
09:53 VanessaE good night
09:53 dadix ohh is not night here
09:53 VanessaE it is here :)
09:53 dadix is 11:53
09:54 dadix is midday
09:54 dadix in Romania
09:54 dadix :)
09:55 Ingar I wish it were night here
09:55 Ingar I so hate monday mornings :D
09:59 dadix left #minetest
10:00 VanessaE not in this case.  one more day closer to receiving some stuff I have on order :)
10:00 VanessaE (otherwise, yeah, monday mornings can stuff it. :P )
10:04 aheinecke joined #minetest
10:44 JamesTait joined #minetest
11:11 proller joined #minetest
11:21 yyt16384 joined #minetest
11:28 October21 joined #minetest
11:57 proller joined #minetest
12:02 troller joined #minetest
12:04 troller joined #minetest
12:11 nrzkt joined #minetest
12:11 nrzkt sun
12:19 robert_|disconne joined #minetest
12:20 afflatus !tell Ingar I'm getting used to the sounds. Just need dirt sounds to match.
12:20 MinetestBot afflatus: I'll pass that on when Ingar is around
12:23 afflatus mmm sun ... hurtz eyez
12:23 afflatus iz nice :D
12:36 themanwiththepla joined #minetest
12:36 themanwiththepla twoelk around?
12:37 afflatus themanwiththepla: run out of letters?
12:37 themanwiththepla yup
12:37 afflatus :)
12:38 themanwiththepla truth i really dont have a plan
12:38 afflatus !seen twoelk
12:38 themanwiththepla just kind of free wheeling it
12:38 MinetestBot afflatus: twoelk was last seen at 2015-12-06 20:28:00 UTC on #minetest
12:39 themanwiththepla ok ..
12:39 themanwiththepla was hoping he was around so he could see the fruit of his inspiration
12:39 afflatus best way ...
12:48 proller joined #minetest
12:57 kaeza joined #minetest
12:58 kaeza o/
13:04 kimfy joined #minetest
13:10 Fixer joined #minetest
13:15 proller joined #minetest
13:19 SylvieLorxu joined #minetest
13:19 * Fixer connected second monitor :3
13:23 Fixer looks nice
13:23 Fixer any zombie movements today?
13:31 arsdragonfly joined #minetest
13:33 fohria joined #minetest
13:42 behalebabo joined #minetest
13:45 SylvieLorxu joined #minetest
13:49 troller joined #minetest
13:49 unclemarc joined #minetest
13:51 phantombeta joined #minetest
13:58 grimelle joined #minetest
14:03 Nitori joined #minetest
14:08 arsdragonfly_ joined #minetest
14:13 turtleman_ joined #minetest
14:13 Yepoleb joined #minetest
14:16 zat joined #minetest
14:23 MinetestBot joined #minetest
14:23 MinetestBot joined #minetest
14:24 proller joined #minetest
14:33 fohria joined #minetest
14:40 Ingar afflatus: saw your message, will try to update the dirt sound ASAP :)
15:00 troller joined #minetest
15:03 dv- joined #minetest
15:05 DFeniks joined #minetest
15:14 joelmx joined #minetest
15:14 Obani joined #minetest
15:18 SylvieLorxu joined #minetest
15:19 zat joined #minetest
15:22 josianito joined #minetest
15:24 troller joined #minetest
15:24 PenguinDad joined #minetest
15:26 est31 joined #minetest
15:28 zupoman joined #minetest
15:28 zupoman joined #minetest
15:30 AndDT joined #minetest
15:30 CraigyDavi joined #minetest
15:35 Viper168_ joined #minetest
15:39 STHGOM joined #minetest
15:44 heno72 joined #minetest
16:00 heno72 joined #minetest
16:03 troller joined #minetest
16:04 JohnnyComeL8ly joined #minetest
16:08 kaeza *chirp*
16:09 est31 meow
16:09 * est31 tries not to eat kaeza
16:10 kaeza here? you sure it's fine?
16:10 kaeza <3
16:10 sfan5 est31: imo servers.minetest.net doesn't need TLS
16:10 sfan5 even if we have letsencrypt now
16:11 est31 sfan5, it does need TLS if we ever want to support TLS on minetest.net
16:12 est31 mixed sources and such
16:12 sfan5 meh
16:12 sfan5 maybe later
16:12 est31 https://developer.mozilla.org/en-US/docs/Security/​MixedContent/How_to_fix_website_with_mixed_content
16:13 sfan5 the only fix is to use TLS
16:13 sfan5 i know
16:14 proller joined #minetest
16:17 est31 and if we want to add encryption to the minetest protocol itself, we perhaps want to authrize it over the masterlist as well
16:18 est31 but idk about that one
16:25 hmmmm joined #minetest
16:29 jin_xi joined #minetest
16:32 Taurith joined #minetest
16:32 JohnnyComeL8ly joined #minetest
16:52 alket joined #minetest
16:55 sofar encryption of the minetest protocol itself means that every server will have to create certificates
16:57 ungali joined #minetest
16:57 ungali joined #minetest
16:58 JohnnyComeL8ly joined #minetest
17:03 fusion44 joined #minetest
17:08 kimfy joined #minetest
17:14 kaeza joined #minetest
17:14 Jordach joined #minetest
17:15 Fixer sfan5, any chance for a new build?
17:27 Krock joined #minetest
17:27 JohnnyComeL8ly joined #minetest
17:46 MinetestBot [git] BlockMen -> BlockMen/minetest_next: Correct new sounds license d7b6452 http://git.io/vRigx (2015-12-07T18:45:15+01:00)
17:50 est31 joined #minetest
17:51 turtleman_ joined #minetest
17:52 SylvieLorxu_ joined #minetest
17:53 JohnnyComeL8ly joined #minetest
17:54 Calinou joined #minetest
17:59 rubenwardy joined #minetest
18:08 GunshipPenguin joined #minetest
18:09 ElectronLibre joined #minetest
18:12 * Fixer .oO(zombie movement detected)
18:13 * Krock runs away and prepares his zombie apocalypse weapons
18:14 LazyJ joined #minetest
18:20 JohnnyComeL8ly joined #minetest
18:22 Ingar joined #minetest
18:27 BlockMen joined #minetest
18:30 Fixer Krock, any chance for a new build?
18:31 Guest83420 joined #minetest
18:39 * Jordach meeps at Krock
18:39 Krock Fixer, there's already a newer one..
18:40 * Krock meeps at Jordach
18:40 Fixer Krock, don't see any in =Builds=. except some Dark ones
18:42 Krock Fixer, 151205 is the newest - 3 days young
18:42 Krock *2
18:42 Fixer Krock, where is it? I can't find it :(
18:43 Krock Fixer, https://forum.minetest.net/vi​ewtopic.php?p=200842#p200842
18:44 Fixer Krock, ah ok, misread it first time, ty
18:44 Fixer on a dnld
18:44 Krock misread? Version numbery may be a bit confusing sometimes
18:44 Krock -y+s
18:45 Fixer Krock, it is confusing, i was reading that thread like few times already
18:45 Fixer and have not noticed it, lol
18:46 Krock Fixer, the main topic contains a link to the Dropbox directory. You can Ctrl+D it to check for updates ;)
18:46 Fixer okay
18:47 JohnnyComeL8ly joined #minetest
18:50 thefamilygrog66 joined #minetest
18:50 thefamilygrog66 Hey, is it possible to remove all metadata from a node with one command?
18:53 CraigyDavi joined #minetest
18:53 Jordach thefamilygrog66, try placing one with worldedit
18:53 Jordach (worldedit uses VM which doesn't place meta)
18:53 Jordach afaik
18:53 MinetestBot [git] ShadowNinja -> minetest/minetest: Add seperate cache path ea2964f http://git.io/vRPUd (2015-12-07T13:51:41-05:00)
18:55 thefamilygrog66 Jordach, I'm working on a mod that adds unique metadata to a node every time a player interacts with it. So I'm looking for a quick and easy way to remove all of that metadata when the node is removed.
18:55 Jordach thefamilygrog66, no idea :)
18:55 thefamilygrog66 No probs, thanks for your reply!
18:55 MinetestBot [git] ShadowNinja -> minetest/minetest: Fix Event implementation 696148e http://git.io/vRPTa (2015-12-07T13:53:56-05:00)
18:56 est31 thefamilygrog66, minetest.set_node removes metadata too
18:56 est31 that's basically the difference between set_node and swap_node
18:56 sofar thefamilygrog66: or meta:from_table({})
19:02 rubenwardy Somehow players on my server are acquiring uncraftable nodes, which are also immortal
19:03 Obani rubenwardy, modified client ? ^^
19:04 rubenwardy Is it possible to modify that way? It shouldn't be
19:04 Obani It is, you are able to modify the client to have /give command
19:04 Obani to have godmode in fact :p
19:04 Obani And it's quite easy
19:04 Yst joined #minetest
19:05 rubenwardy really?
19:05 Obani Yes
19:05 Jordach rubenwardy, damage is handled clientside ;)
19:05 rubenwardy I'm sure it's client side?
19:05 est31 ROFL
19:05 sfan5 Fixer: sure
19:05 rubenwardy * server-side
19:05 Obani rubenwardy, you can disable death by removing a line
19:05 est31 Obani, tell me how adding /give command works
19:06 Obani I don't know, but I knew someone who made a godmode version of his client
19:06 Obani davedevils, if you know him :p
19:07 Krock Hybrid Dog (forums) played with the source too.. but that's an old story
19:11 rubenwardy Minetest is broken
19:11 sfan5 no
19:11 sfan5 you are broken
19:12 sofar it's designed in a way which some people perceive as broken
19:12 sofar and then implemented accordingly :^)
19:12 SylvieLorxu joined #minetest
19:12 Fixer sfan5, hold on, i found Krock's build it is 5 Dec, good enough, false alarm %)
19:13 Krock sfan5, I doupt rubenwardy himself is broken
19:13 Krock Fixer, "good enough" but not something special to be happy about, eh? :P
19:14 rubenwardy The whole point of server side authority is to stop this happening
19:14 sfan5 Fixer: here is one anyway https://forum.minetest.net/vi​ewtopic.php?p=201141#p201141
19:14 Fixer sfan5, well, thank you
19:14 sfan5 np
19:14 sfan5 it's just a few commands in the terminal
19:14 sfan5 not a big deal
19:16 Tux[Qyou] joined #minetest
19:16 JohnnyComeL8ly joined #minetest
19:16 Calinou rubenwardy, server-side authority is harder to code :P
19:16 rubenwardy Turns out that it was due to falling sand - flags being dropped.
19:17 Calinou rubenwardy, so, what about having health regeneration? and/or apples spawning in chests
19:17 Calinou or being rewarded with 2 apples per kill
19:24 Calinou anyway CTF is pretty fun, brings me into Minetest again
19:25 Calinou (I don't have the time to play on "regular" servers anymore)
19:25 Jordach ^^
19:25 Calinou and few people go to my Hunger Games server nowadays
19:25 est31 yeah, there should be some way for health regen
19:26 est31 except "go back to your base, climb the ladder and let yourself fall so that you die and then collect stuff"
19:35 thefamilygrog66 Thanks est31 and sofar, I'll try those out.
19:36 rubenwardy apples currently exist, but I like the idea of slow health regen
19:40 Fixer joined #minetest
19:41 afflatus First ERROR[CurlFetchThread]: (response code 100) since last reboot.
19:41 proller joined #minetest
19:42 afflatus Anyone know how often minetest makes server announcements?
19:42 JohnnyComeL8ly joined #minetest
19:44 Krock everytime?
19:44 rubenwardy 3 minutes
19:44 rubenwardy once initially, then every 3 minutes
19:44 Krock 180 seconds
19:44 afflatus thanks rubenwardy
19:44 rubenwardy the code is in server.cpp
19:45 afflatus :)
19:46 nicoalta01 joined #minetest
19:57 smumu joined #minetest
19:59 SylvieLorxu joined #minetest
20:01 smumu Hello ! I know this question is everywhere on IRC logs and on the forum but ... I can't enable TNT. I use my remote server on Debian 8, Minetest is installed from backports so in version 0.4.13, I putted "enable_tnt = true" on minetest.conf and "load_mod_tnt = true" in worlds/world/world.mt, restarted the server and ... Nothing. And when I check with the /mods command, tnt is listed ... A "/giveme tnt:tnt" say "Connot give an unknow
20:01 smumu So can you please tell me if I done something wrong ? Or do I need to configure the TNT differently to enable it ?
20:01 smumu Thanks !
20:01 nicoalta01 I don't know to do........
20:02 nicoalta01 i'm sorry
20:03 smumu No problem, but do you think I made an error ? Or maybe this is a bug ?
20:03 sofar smumu: minetest.conf in the world folder or in a different location?
20:03 afflatus Why are you loading a mod?
20:03 smumu minetest.conf is ocated /var/games/minetest/.minetest/minetest.conf
20:03 smumu *located
20:04 smumu this is a global file if I understand
20:04 afflatus TNT is already in minetest_game
20:04 afflatus so you don't need to load it in world.mt
20:04 sofar I have 'enable_tnt = true' in the world's folder server.conf and start minetest_server with --config worldfolder/server.conf
20:05 smumu I try all what I see on the Web, but I removed this line after enabled it and seeing it doesn't work because I seen TNT is know integrated in Minetest and no more an external mod
20:05 smumu But if enable_tnt is in minetest.conf it should load it for all worlds, no ?
20:05 afflatus so remove "load_mod_tnt = true"
20:06 smumu I did it
20:06 afflatus yes it should enable it for all worlds
20:06 sofar load_mod_tnt = false doesn't currently do anything, even
20:06 smumu But it doesn't work, with or without load_mod_tnt
20:06 sofar I think you're assuming minetestserver is reading your minetest.conf
20:07 sofar are you using systemd to start it?
20:07 smumu yes
20:07 smumu the default unit file
20:08 sofar here, use something like this:
20:08 sofar https://gist.github.com/sofar/9f3fcb9cf130a8ff7765
20:08 sofar put a "server.conf" INSIDE your world folder
20:09 sofar then systemctl enable minetest@name-of-your-world-folder / systemctl start ....
20:09 sofar modify User= or remove it... whatever your preference
20:09 afflatus That shouldn't matter where it is if it's referenced in the invocation
20:10 afflatus better to use the full path though
20:10 sofar well I have several servers
20:10 afflatus just in case
20:10 sofar this allows me to use different configs for each of them
20:10 JohnnyComeL8ly joined #minetest
20:10 sofar I could add /home/minetest/worlds/%I to --config server.conf but that's just extra pixels
20:10 smumu I see, I give it a try
20:11 afflatus If smumu is calling it from the minetest folder, all well and good
20:12 sofar somehow I think that's exactly where his issue is
20:12 smumu Oh, I the default unit file is not taking the /var/games/minetest/.minetest/minetest.conf file but a /etc/minetest/minetest.conf file
20:12 afflatus sofar: agreed
20:12 sofar /var/games/minetest/.minetest ?
20:13 sofar lol, no wonder
20:13 smumu Yes, with the Debian minetest-server package it created this folder
20:13 smumu with a Debian-minetest user
20:13 afflatus It should be reading the one in /etc/minetest/
20:13 afflatus that's the expected behaviour
20:13 smumu So I assumed I should put all my config here
20:13 smumu Yes that is what minetest service do by default
20:13 smumu I did not understand this
20:14 smumu I didn't know /etc/minetest exists :)
20:14 smumu Sorry
20:14 afflatus In that case it should read /home/Debian-minetest/.minetest/minetest.conf
20:15 smumu But the package is configured to put Debian-minetest's user home in /var/games
20:15 smumu I guess
20:16 afflatus it should read the .conf you specify on the command line, if not there  /home/Debian-minetest/.minetest/minetest.conf, If no .conf there it will look in /etc/ - I think that's right
20:16 afflatus You're using the Debian package?
20:17 smumu You're right, except for /home : for game's users, home is /var/games :) But in the systemd unit file, /etc/minetest/minetestconf is forced so no problem
20:17 smumu Yes
20:17 smumu In jessie backports
20:18 afflatus /var/games/minetest-server/.minetest/worlds/ - /home/Debian-minetest/.minetest
20:19 afflatus Is what I have (Debian testing)
20:20 smumu No /home/Debian-minetest for me
20:20 Fixer mainloop_draw jumps up to 0.08 ._.
20:21 afflatus OK, if you launch the server without specifying a --config it will read /etc/minetest
20:21 afflatus That's probably safest then
20:23 afflatus And tnt should be enabled by default
20:23 sofar it isn't, I think
20:24 sofar of course, the implementation is less than spectacular, to say the least
20:24 smumu yes, but I won't touch the default systemd unit file, for me it's a good thing to have the configuraiton in /etc
20:26 dadix joined #minetest
20:27 afflatus My knowledge of tnt is also less than spectacular
20:28 sofar tnt needs a visual artist's overhaul
20:28 sofar better particles and timing
20:29 sofar and it shouldn't eject 1 entity in the air with all blocks in it, but each one separately
20:29 afflatus My preferred tech-level stops just before the invention of gunpowder, so I'm thinking of designing a blasting rod :-)
20:29 sofar even better if it would eject full-size node entities that would "on_place()" where they land :)
20:30 sapier joined #minetest
20:31 smumu It works really nice, thank's for your help :)
20:31 smumu Furthermore, I really appreciate Minetest so if there is any contributor here, thank's for all !
20:33 GunshipPenguin joined #minetest
20:35 Fixer seeing some strange underground glow o.O
20:35 afflatus !next
20:35 MinetestBot Another satisfied customer. Next!
20:37 sofar Fixer: could mean your tunnel reaches end of generated blocks and you're looking out in the void
20:38 afflatus No human can ever reach the end of generated blocks in one lifetime.
20:38 JohnnyComeL8ly joined #minetest
20:39 Fixer sofar, no
20:40 sofar afflatus: sure, just walk 32km one way... not that hard
20:41 afflatus I'm now thinking of the minetest answer to farlands or bust
20:41 afflatus But mining
20:41 afflatus downwards
20:41 afflatus It could be the next big thing in video blogging
20:43 Fixer afflatus, lolwhat? I walked at least in MT
20:44 afflatus :D
20:50 proller in one server road build to ~26km
20:51 proller also road reach 11km height
20:51 sofar lol
20:57 SylvieLorxu joined #minetest
21:03 swift110 joined #minetest
21:06 swift110 joined #minetest
21:23 SylvieLorxu joined #minetest
21:32 AnotherBrick joined #minetest
21:36 Hirato joined #minetest
21:46 Viper168 joined #minetest
21:49 AnotherBrick joined #minetest
21:51 xet7 joined #minetest
21:53 xet7 How do I setup minetest server as init.d service on Ubuntu 14.04 server?
21:53 Fixer joined #minetest
22:07 dadix left #minetest
22:07 dadix joined #minetest
22:12 thefamilygrog66 joined #minetest
22:14 thefamilygrog66 How can I copy a node's metadata inventory into an array, and then at a later time, replace the node's metadata inventory with the contents of that array?
22:15 afflatus make a discreet copy
22:16 afflatus which needs to be persistent
22:16 thefamilygrog66 I can use local, since it's a later time in the same function, I believe.
22:17 afflatus ok, hang on
22:17 thefamilygrog66 I'm just not sure about the syntax - been messing around with meta:get_inventory(), but not really getting anywhere
22:18 afflatus something like http://paste.debian.net/342081/
22:18 afflatus Is that what you're asking?
22:20 thefamilygrog66 I'm not sure exactly.
22:22 afflatus So you have an invref
22:23 afflatus invref:get_list("main") ?
22:23 afflatus or something
22:24 thefamilygrog66 Basically, I'm defining a node that contains an inventory within its metadata. Once the owner of the node places items within that node, I want those items to remain consistent, so that if a player removes one or more items, afterwards the inventory of the node reverts back to before the items were taken.
22:24 thefamilygrog66 Does that make sense?
22:25 thefamilygrog66 So I'd like to be able to copy the node's inventory into an array before the items are taken, and then afterward, replace the node's inventory with the contents of that array.
22:25 thefamilygrog66 I think.
22:25 afflatus Yes, so if you use the function I pasted, you can copy the result of invref:get_list("main") with invref:set_list("main")
22:25 thefamilygrog66 Cool, I'll try that - thanks afflatus.
22:26 afflatus Otherwise you just return a pointer to the same object. IIUC
22:30 afflatus invref:set_list("main", inv_copy) to be more precise
22:35 rubenwardy http://rubenwardy.com/minetest_modding_b​ook/chapters/inventories.html#lua-tables
22:45 thefamilygrog66 afflatus & rubenwardy, I don't have those options when working with node metadata: http://dev.minetest.net/NodeMetaRef
22:45 rubenwardy you do
22:45 rubenwardy local inv = meta:get_inventory()
22:45 rubenwardy inv:get_list()
22:45 rubenwardy or inv:get_lists()
22:46 rubenwardy http://rubenwardy.com/minetest_modding_book​/chapters/inventories.html#node-inventories
22:46 thefamilygrog66 ah, missed that part, sorry
22:56 Miner_48er joined #minetest
22:57 sapier left #minetest
23:05 phantombeta joined #minetest
23:05 Yepoleb joined #minetest
23:07 STHGOM joined #minetest
23:19 DMackey joined #minetest
23:20 LazyJ joined #minetest
23:28 STHGOM joined #minetest
23:35 Taurith joined #minetest
23:36 tsquar3d joined #minetest
23:51 Player2 joined #minetest

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