Minetest logo

IRC log for #minetest, 2017-05-11

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

All times shown according to UTC.

Time Nick Message
00:02 halt_ joined #minetest
00:03 Grandolf joined #minetest
00:23 halt_ joined #minetest
00:23 Grandolf joined #minetest
00:26 proller joined #minetest
01:07 slemonide joined #minetest
01:14 slemonide1 joined #minetest
01:26 kaeza joined #minetest
01:39 ThomasMonroe joined #minetest
02:41 mrtux joined #minetest
03:07 slemonide joined #minetest
03:10 Blo0D joined #minetest
03:11 mrtux joined #minetest
03:11 mrtux joined #minetest
03:28 slemonide1 joined #minetest
04:33 ShadowBot joined #minetest
05:00 kimitux joined #minetest
05:02 mrtux left #minetest
05:15 slemonide joined #minetest
05:26 AlexYst joined #minetest
05:29 LazyJ joined #minetest
05:40 lisac joined #minetest
05:43 QwertyDragon joined #minetest
05:45 slemonide joined #minetest
06:05 iZacZip_m joined #minetest
06:29 CWz joined #minetest
07:12 Lunatrius` joined #minetest
07:15 Hawk777 joined #minetest
07:22 ensonic joined #minetest
07:30 proller joined #minetest
07:36 zyabin101 joined #minetest
08:22 YuGiOhJCJ joined #minetest
08:26 JamesTait joined #minetest
08:32 sonicpp joined #minetest
08:33 JamesTait Good morning all! Happy Thursday, and happy Eat What You Want Day! 😃  ðŸ” 🍗 🍕
08:40 MinetestBot [git] red-001 -> minetest/minetest: Rework escape/pause menu (#5719) 0e0c824 https://git.io/v9Dmf (2017-05-11T08:39:37Z)
08:47 aheinecke joined #minetest
09:06 zyabin101 @JamesTait hallo! Today... uh... not much is happening. Heard of the 80th Anniversary of Los Glaciares National Park?
09:07 JamesTait 👋 Hi zyabin101! Can't say I've heard of that one, no.
09:07 JamesTait Where is that?
09:08 zyabin101 @JamesTait https://en.wikipedia.org/wiki/Los_Glaciares_National_Park
09:10 proller joined #minetest
10:40 slemonide joined #minetest
10:45 Brackston joined #minetest
10:46 zyabin101 joined #minetest
10:50 Pie-jacker875 joined #minetest
11:00 proller joined #minetest
11:01 Fixer joined #minetest
11:20 QwertyDragon joined #minetest
11:22 Markow joined #minetest
11:26 Darcidride joined #minetest
11:39 halt_ joined #minetest
11:39 Grandolf joined #minetest
11:46 ThomasMonroe joined #minetest
12:06 Jordach joined #minetest
12:14 Tux[Qyou] joined #minetest
12:39 slemonide joined #minetest
12:58 Weedy joined #minetest
13:01 lumidify joined #minetest
13:15 ensonic joined #minetest
13:16 octacian joined #minetest
13:18 twoelk joined #minetest
13:24 nowhereman joined #minetest
13:29 iZacZip joined #minetest
13:41 slemonide1 joined #minetest
13:42 Tux[Qyou] joined #minetest
13:44 ensonic joined #minetest
14:03 halt_ joined #minetest
14:03 Grandolf joined #minetest
14:04 halt_ joined #minetest
14:04 Grandolf joined #minetest
14:26 YuGiOhJCJ joined #minetest
14:35 admicos joined #minetest
14:42 svartarmar joined #minetest
14:43 svartarmar hi. quick question, i'm in the process of setting up a minetest server. if i install games on the server and someone connectes who doesn't have that game it auto downloads for them?
14:43 svartarmar or do they have to install it too?
14:44 hoodedice joined #minetest
14:44 hoodedice mfw sfan5 contribs to nyaapantsu
14:44 hoodedice I mean
14:44 hoodedice hi
14:44 admicos joined #minetest
14:44 hoodedice well fuck
14:44 sfan5 you mean dev team / moderator
14:45 hoodedice I have been away from IRC too long
14:45 sfan5 indeed
14:45 sfan5 svartarmar: clients will get media and all needed files automatically if they connect
14:45 hoodedice if that whois got logged in this chat, moushiwake arimasen
14:45 svartarmar sfan5: thankyou.
14:45 hoodedice how's everyone been?
14:45 halt_ joined #minetest
14:45 hoodedice PilzAdam still around?
14:46 hoodedice VanessaE?
14:46 Grandolf joined #minetest
14:48 sfan5 yes and no
14:48 sfan5 wait wrong way around
14:49 hoodedice rip in piece, pilz
14:51 CWz What happened to that Iconic chracter?
14:51 CWz did he commit MT-Sudoko
14:52 hoodedice sudoku: http://images-cdn.9gag.com/photo/agvRwKn_700b.jpg
14:57 whodeadeyes joined #minetest
14:57 sfan5 >9gag
15:08 hoodedice joined #minetest
15:08 hoodedice I am going old, did all that spam get logged in here when I changed my nick?
15:26 davisonio joined #minetest
15:37 Taose joined #minetest
15:43 thefamilygrog66 joined #minetest
15:45 PsychoVision joined #minetest
15:51 Alcyone2 joined #minetest
15:53 kaeza joined #minetest
15:53 ThomasMonroe joined #minetest
15:56 cx384 joined #minetest
15:59 proller joined #minetest
16:05 svartarmar https://pastebin.com/9YQxxeqf technic_game is broken. :(
16:05 svartarmar bah
16:06 svartarmar i used the git repo. should i download a stable version of technic_game instead?
16:07 red-002 iirc technic_game is obsolete
16:07 red-002 use the mod pack + subgame of your choice instead
16:08 svartarmar gotcha.
16:08 svartarmar thanks.
16:09 svartarmar red-002: if i want to run a mod on a server is there a --mod option or something?
16:10 svartarmar or do i install the subgame, then make a mod folder within that?
16:10 svartarmar (new to this)
16:17 red-002 windows or linux?
16:17 svartarmar linux
16:17 svartarmar also, minimal and minetest don't seem to work. they spawn an empty world.
16:17 svartarmar just sky.
16:17 svartarmar odd.
16:18 red-002 put mods in ~/.minetest/mods
16:19 red-002 you are runing this on a server without a gui right?
16:19 svartarmar yeah.
16:19 svartarmar keeps making maps with just sky. o_O
16:19 red-002 alright you want to make a folder for storing the map
16:19 FreeFull joined #minetest
16:20 svartarmar /usr/share/minetest/map ?
16:20 red-002 your choice
16:20 red-002 just make sure minetest will be able to access it
16:21 svartarmar i thought that if you ran the server it would generate it's own map.
16:21 svartarmar but you have to make one first?
16:21 red-002 well yes it does generate the map
16:21 red-002 but you will but the world configuration in this folder
16:21 svartarmar ah
16:22 red-002 then create a file called world.mt
16:23 svartarmar ok. done.
16:23 red-002 are you using latest dev?
16:23 red-002 paste something like this in it https://pastebin.com/zrNkKLqP
16:23 svartarmar no. installed from centos repo.
16:24 red-002 oh you don't need the player_backend then
16:24 red-002 being able to use a real database for that is a new feature
16:24 red-002 what does minetest --version output?
16:25 svartarmar ok. made the folder /usr/share/minetest/maps and in it is world.mt with that text
16:25 svartarmar 1.8.1
16:25 Fritigern joined #minetest
16:26 red-002 not irrlich
16:26 red-002 something like VER=
16:26 red-002 e.g. Build info: VER=0.4.15-dev-1670bc736-dirty
16:26 svartarmar VER=0.4.14
16:26 fwhcat joined #minetest
16:26 red-002 oh that's pretty badly outdated for a server
16:27 svartarmar i can build from git if need be.
16:27 red-002 you are releasing 0.4.16 in less then a month
16:27 red-002 s/you/we
16:27 red-002 yeah you might want to build from git
16:27 svartarmar so how do i run maps/world.mt ?
16:28 red-002 minetest --server --world /usr/share/minetest/maps
16:28 red-002 since that seems to be the path you used
16:29 svartarmar minetestserver --gameid minimal --world /usr/share/minetest/maps
16:30 svartarmar that worked. got a game with a map in it now. :D
16:30 red-002 you don't want to use minimal
16:30 svartarmar progress.
16:30 red-002 plus you have already set the game id in world.mt
16:30 svartarmar yeah.
16:30 svartarmar ah
16:30 red-002 minetest_game has a gameid of just minetest
16:31 red-002 some sort of backwards compatibillity thing
16:31 svartarmar so i can set everything i need in world.mt ?
16:31 svartarmar nice.
16:31 red-002 eh no sadly
16:31 red-002 settings are kinda a mess on that level
16:31 svartarmar :)
16:32 red-002 there is a seperate file called minetest.conf
16:32 svartarmar ah
16:32 red-002 if you are planning to run more then one server you can also pass that using the commandline
16:32 red-002 (path to the file)
16:33 svartarmar /games/minetest_game/minetest.conf
16:33 red-002 huh??
16:33 red-002 it shouldn't be there
16:34 svartarmar /usr/share/minetest/games/minetest_game/minetest.conf
16:34 svartarmar sorry. :)
16:34 red-002 it should be in ~/.minetest/minetest.conf
16:34 red-002 the one in minetest_game is some sort of strange accident
16:35 svartarmar ah
16:35 svartarmar # ls ~/.minetest/
16:35 svartarmar debug.txt  worlds
16:35 red-002 I think it got removed from the repo
16:35 red-002 yeah that worlds folder is the default location for storing worlds
16:36 svartarmar ah
16:36 svartarmar red-002: i'm learning a hell of a lot here. much appreciated. :D
16:36 red-002 it's usually safer imo to chose a path and pass it to minetest
16:36 red-002 chosse*
16:37 red-002 in case you build minetest with diffrent settings or something like that latter on
16:37 svartarmar makes sense.
16:37 svartarmar do it all in ~/.minetest
16:37 red-002 (you can change where minetest stores userdata with cmake settings)
16:39 svartarmar so i can put my minetest.conf anywhere and get the server to load it with --config ?
16:39 red-002 yes
16:39 svartarmar nice.
16:39 svartarmar i think i'm getting this.
16:39 red-002 minetest should be able to write to the file
16:40 svartarmar makes sense.
16:40 red-002 enable mods by setting load_mod_<mod name> to true in world.mt
16:40 svartarmar ah
16:40 svartarmar cool.
16:41 svartarmar so in world.mt i can specify the game and mods to use?
16:41 svartarmar that's pretty cool.
16:41 svartarmar i *think* i've got everything i need to set up a server now.
16:41 red-002 yes
16:41 svartarmar red-002: you've been a great help. you've saved me days of frustration. :)
16:41 svartarmar red-002++
16:42 svartarmar hah
16:42 red-003 oh if you have want to add your server to the server list set server_announce to true
16:42 svartarmar got it.
16:43 DS-minetest joined #minetest
16:44 svartarmar if i build from git my friend will need to build their clients from git too if they want to join?
16:45 red-003 no
16:45 red-003 useless their version is really old
16:45 red-003 unless*
16:46 red-003 0.4.11 the oldest version currently supported
16:46 red-003 is*
16:47 red-003 iirc it used to be 0.4.9
16:49 svartarmar cool.
16:49 svartarmar that'll save a lot of hassle.
16:49 svartarmar red-003: thanks so much for your help. :)
16:49 cx384 what is the "formname" (formspecname) when you right click a node which do have a meta formspec string?
16:50 red-003 np
16:51 DS-minetest ""?
16:52 cx384 I thought it is the nodename.
17:00 cx384 Thank you DS-minetest it works.
17:01 kaeza why does on_rec_fields even have a formname anyway
17:01 kaeza (the nodedef one)
17:01 DS-minetest perhaps so, that the modders could find that out
17:09 DS-minetest joined #minetest
17:12 DS-minetest joined #minetest
17:13 proller joined #minetest
17:26 Telesight joined #minetest
17:39 Krock joined #minetest
17:47 svartarmar channel: #minetest | Deutscher Kanal: #minetest-de | Canal en español: ##minetest-es | Canal en
17:47 svartarmar français : #minetest-fr
17:48 svartarmar ?
17:48 svartarmar sorry
17:48 svartarmar 2017-05-11 17:47:37: WARNING[Main]: Couldn't find a locale directory!
17:48 svartarmar 2017-05-11 17:47:37: [Main]: Supplied world.mt file - stripping it off.
17:48 svartarmar 2017-05-11 17:47:37: ERROR[Main]: ServerError: Failed to initialize world
17:48 svartarmar i've built minetest from git, but it doesn't like my world.mt
17:48 svartarmar https://pastebin.com/zrNkKLqP < world.mt
17:52 nowhereman joined #minetest
17:52 Krock joined #minetest
17:52 Krock joined #minetest
17:52 red-003 is that all it printed?
17:52 svartarmar yeah
17:53 Fixer twoelk: do you have mipmaps on?
17:53 twoelk ?
17:53 twoelk Minimap?
17:55 Out`Of`Control svartarmar: did you create minetest.conf ?
17:56 red-003 what command line did you use to start the server?
17:57 twoelk svartarmar: wouldn't it be easier to start a local singleplayer world and study the content it creates?
17:57 Fixer twoelk: nevermind
17:57 svartarmar one sec...
17:58 XtremeHacker joined #minetest
17:58 svartarmar https://pastebin.com/KzwZSZNw
17:58 svartarmar hmm
17:59 svartarmar i was running it from the build directory.
17:59 red-003 oh I see the issue
17:59 svartarmar did make install and now it's giving more error messages.
17:59 red-003 you need to install minetest_game
17:59 svartarmar ah
17:59 svartarmar cool.
18:00 red-003 did you build with -DRUN_IN_PLACE=1 ?
18:00 svartarmar i think i did.
18:00 red-003 then cd to build dir
18:01 red-003 cd ./games
18:01 svartarmar yep
18:01 red-003 git clone https://github.com/minetest/minetest_game.git
18:03 svartarmar done
18:03 red-003 try running minetest again
18:04 twoelk Fixer: sorry was am on a server and was playing with minimap when you asked so I wondered how you could know :-D.  To answer the question; nope, mipmapping is off
18:04 svartarmar red-003: i cant run mintest, it's on a vps.
18:05 svartarmar no gui
18:05 XtremeHacker Is there a way I can stop a mod from loading?
18:05 twoelk different ways depending on where it lives
18:05 XtremeHacker I want to setup a config mod on my subgame, and want to be able to disable the mods from there
18:06 XtremeHacker As I can't do so from the MT configure menu for mods that are part of a subgame
18:06 red-003 by runing minetest I meant trying to start the server again
18:06 rubenwardy joined #minetest
18:06 red-003 not the client ofc
18:07 XtremeHacker WB Ruben
18:07 twoelk as 10+1 stated make a mod folder of the same name in worldmods within the worlds folder. Add an empty init.lua into that and the mod will be overridden
18:08 twoelk for that map only of course
18:08 svartarmar red-003: since i used make install i probs need to install minetest_game in /usr/share/minetest/games ?
18:08 red-003 sounds like it
18:08 svartarmar i'll do that.
18:09 XtremeHacker OK, thanks
18:09 red-003 if you have time you might want to rebuild minetest with -DRUN_IN_PLACE=0
18:09 red-003 doesn't make much sense to use that setting if you want to use make install
18:14 twoelk svartarmar: you might also want to study this: http://wiki.minetest.net/Help:Getting_Started and http://wiki.minetest.net/Help:Setting_up_a_server
18:15 svartarmar red-003: https://pastebin.com/Dn392KZj
18:15 svartarmar red-003: ok. i'll rebuild. thanks.
18:16 red-003 or wait a sec
18:16 red-003 just run it from the build dir
18:16 svartarmar ok
18:16 red-003 bin/minetest
18:17 svartarmar ./bin/minetestserver works
18:17 svartarmar i'll try it with the args
18:18 svartarmar nope, as soon as i add --config and --world it breaks
18:20 red-003 try --gameid fake_id
18:20 red-003 try --gameid list*
18:21 Out`Of`Control svartarmar: paste your config and world.mt
18:21 svartarmar https://pastebin.com/hfR2Kpp2 < Out`Of`Control
18:22 Out`Of`Control svartarmar:  edite your minetest.conf
18:23 svartarmar editing...
18:23 svartarmar what should i change?
18:24 Out`Of`Control gameid = minimal game name has to be in config too "default_game = minimal"
18:27 Out`Of`Control svartarmar: https://github.com/minetest/minetest/blob/master/minetest.conf.example#L838
18:27 red-003 oh are you trying to use minimal now?
18:29 svartarmar default_game = minetest
18:29 svartarmar added that to minetest.confg
18:29 svartarmar still crashes
18:30 Out`Of`Control change world.mt too
18:30 Out`Of`Control to minetest
18:30 svartarmar same line
18:30 svartarmar ?
18:30 svartarmar or
18:30 svartarmar gameid = minetest
18:31 Out`Of`Control [20:26:22] <Out`Of`Control> gameid = minimal game name has to be in config too "default_game = minimal"
18:31 svartarmar which one?
18:31 svartarmar gameid =
18:31 svartarmar or
18:31 svartarmar default_game
18:32 svartarmar there are two options in that line
18:33 svartarmar i've put gameid = minetest in world.mt
18:33 svartarmar crashes.
18:34 Out`Of`Control both has to be same in config and world.mt
18:34 sofar gameid = minetest
18:34 sofar in my world.mt
18:34 svartarmar thanks sofar
18:34 sofar $ cat game.conf
18:34 sofar name = Minetest Game
18:35 sofar my minetest.conf has nothing related
18:35 svartarmar i'll pastebin both files
18:38 svartarmar sofar: [user@grimnir minetest]$ cat minetest.conf
18:38 svartarmar # This file contains settings of Minetest Game that can be changed in minetest.conf
18:38 svartarmar # By default, all the settings are commented and not functional.
18:38 svartarmar # Uncomment settings by removing the preceding #.
18:38 svartarmar default_game = minetest
18:38 svartarmar # Whether creative mode (fast digging of all blocks, unlimited resources) should be enabled
18:38 svartarmar creative_mode = true
18:38 svartarmar # The time in seconds after which the bones of a dead player can be looted by everyone
18:39 svartarmar # 0 to disable
18:39 svartarmar #share_bones_time = 1200
18:39 svartarmar # How much earlier the bones of a dead player can be looted by
18:39 svartarmar # everyone if the player dies in a protected area they don't own.
18:39 svartarmar # 0 to disable. By default it is "share_bones_time" divide by four.
18:39 svartarmar #share_bones_time_early = 300
18:39 svartarmar # Whether standard fire should be disabled ('basic flame' nodes will disappear)
18:39 svartarmar # 'permanent flame' nodes will remain with either setting
18:39 Out`Of`Control sofar: strange my game refuse to start if it has dif names
18:39 svartarmar #disable_fire = false
18:39 svartarmar # Whether the stuff in initial_stuff should be given to new players
18:39 svartarmar #give_initial_stuff = false
18:39 svartarmar #initial_stuff = default:pick_steel,default:axe_steel,default:shovel_steel,default:torch 99,default:cobble 99
18:39 svartarmar # Whether the TNT mod should be enabled
18:39 svartarmar #enable_tnt = <true in singleplayer, false in multiplayer>
18:39 svartarmar # The radius of a TNT explosion
18:39 svartarmar #tnt_radius = 3
18:39 rubenwardy ShadowBot!
18:39 svartarmar # Enable the stairs mod ABM that replaces the old 'upside down'
18:39 svartarmar # stair and slab nodes in old maps with the new param2 versions.
18:39 svartarmar #enable_stairs_replace_abm = false
18:39 svartarmar # Whether you allow respawning in beds
18:39 svartarmar # Default value is true
18:39 svartarmar #enable_bed_respawn = true
18:39 kaeza sfan5, ^
18:39 svartarmar # Whether players can skip night by sleeping
18:40 svartarmar # Default value is true
18:40 svartarmar #enable_bed_night_skip = true
18:40 svartarmar [user@grimnir minetest]$
18:40 svartarmar [user@grimnir minetest]$
18:40 svartarmar [user@grimnir minetest]$ cat world.mt
18:40 svartarmar gameid = minetest
18:40 svartarmar backend = sqlite3
18:40 sfan5 !kick svartarmar .
18:40 svartarmar was kicked by MinetestBot: .
18:40 svartarmar joined #minetest
18:40 kaeza you kicked him with a boob?
18:40 sfan5 heh
18:41 svartarmar was the kick for the accidental paste?
18:41 GNU[BDC] ass
18:41 svartarmar sorry about that.
18:41 sfan5 yes
18:41 GNU[BDC] flood
18:41 svartarmar using a mac. got the paste wrong.
18:41 svartarmar sofar: https://pastebin.com/cE1iQ1Y8
18:42 KaadmY Does 0.4.15 support colored text, and how would I use it?
18:42 KaadmY Are they just VT100 escapes, ie. \033[31m;
18:43 rubenwardy minetest.colorise or something
18:43 KaadmY Thanks
18:44 rubenwardy lua_api.txt sucks
18:44 rubenwardy searching should be a solved problem by now
18:44 kaeza it's colorize BTW
18:44 rubenwardy bloody americans
18:44 rubenwardy :D
18:44 kaeza silly brits
18:44 kaeza :D
18:44 rubenwardy there's like 175 mentions of color in lua_api.txt
18:45 KaadmY yeah
18:45 * Markow <--- American Expat in Europe here, lol.
18:45 KaadmY Mostly in the formspec stuff >.
18:45 KaadmY Also I asked about this yesterday, everyone seemed to be away though
18:45 KaadmY object:getyaw sometimes returns nan
18:45 rubenwardy *get_yaw
18:46 KaadmY Does anybody know what could trigger that? I haven't tested, but it _seems_ to be after 0.4.13
18:46 rubenwardy although only on 0.4.15 and above
18:46 kaeza rubenwardy, BTW, here in south america we hate when you say "americans" and refer only to USAians
18:46 rubenwardy this should be in offtopic: https://forum.minetest.net/viewtopic.php?f=5&amp;t=17576
18:46 KaadmY Nope, the Lua API shows getyaw
18:46 KaadmY And it mostly works except when it returns nan
18:47 KaadmY The API has no mention of get_yaw
18:47 svartarmar i'm going to rebuild with cmake . -DRUN_IN_PLACE=TRUE
18:47 svartarmar i'm going to rebuild with cmake . -DRUN_IN_PLACE=0
18:47 svartarmar ^
18:51 calculon KaadmY, i have "get_yaw()`: returns number in radians" here
18:51 calculon and no getyaw
18:52 KaadmY calculon: I'm using 0.4.15 release
18:52 KaadmY Is that in dev?
18:52 calculon I don't know, got it from here : https://github.com/minetest/minetest/blob/master/doc/lua_api.txt
18:52 KaadmY Yeah, that's the dev version of 0.4.16
18:52 Krock joined #minetest
18:52 Krock joined #minetest
18:53 calculon ha, ok
18:54 KaadmY Also any suggestions as to what could be causing it on my end would be great
18:54 KaadmY Since this is kinda getting to me it's crashing with nan every 20 seconds or so
18:55 calculon maybe it happens when it's not initialised ?
18:55 calculon i mean if the value is not set by the mod which create the entity
18:55 KaadmY t
18:55 KaadmY It wasn't happening with 0.4.13 though :/
18:56 KaadmY So either something changed or it just happened to work 100% of the time
18:56 KaadmY And I didn't change anything, the first report of it happening was someone using 0.4.15 when I was using 0.4.14 still
18:57 kaeza wasn't getyaw() broken for players?
18:58 KaadmY I'm using it on an entity, not a player
18:58 kaeza ah
18:58 KaadmY I think get_look_horizontal or something is for players
19:01 Player_2 joined #minetest
19:07 Blo0D joined #minetest
19:09 KaadmY What's the new debug privilege?
19:09 KaadmY Is it a way to disable the F5 debug info?
19:11 GNU[BDC] debug privs???
19:11 KaadmY There's a priv called `debug` now
19:11 KaadmY No idea what it does
19:12 GNU[BDC] sfan5: what can you do with debug privs?
19:15 sfan5 you can enable wireframe IIRC
19:25 PsychoVision joined #minetest
19:32 KaadmY Yeah
19:32 KaadmY Just figure that out ;)
19:32 KaadmY figured*
19:44 KaadmY Hm, the "Minetest 0.4.15" watermark in the upper-left corner of the screen is part of debug info now?
20:26 Calinou I think it has been removed from normal HUD
20:26 Calinou not sure
20:27 Calinou that's pretty logical IMO, Minecraft did the same thing a while ago, and other games never had this in the first place
20:29 qrr joined #minetest
20:29 KaadmY Yeah
20:29 KaadmY Although showing it in the menu would be nice still
20:33 twoelk having the worldname or servername in F5 might be usefull for screenshot sorting :-D
20:33 red-002 best you can hope for in the near future is server ip/domain name
20:34 red-002 the client doesn't know the server name
20:35 twoelk now I often go by seed
20:37 twoelk maybe the worldfoldername could be stored in world.mt
20:38 red-002 I tried
20:38 twoelk actually the serverlist is downloaded, cant that be quarried from ingame?
20:39 * twoelk provides a pickaxt for the job
20:57 TestyRabbit joined #minetest
20:58 TestyRabbit Hey everyone! Is there a way to update a node registration to add a callback? I want to add a callback to on_rightclick for some of the default nodes like cobblestone
20:58 kaeza TestyRabbit, yes, with override_item
20:59 TestyRabbit perfect
20:59 TestyRabbit thank you
20:59 kaeza the item must be defined beforehand, so you would likely need to also depend on the mod providing it
20:59 kaeza e.g. in your case, it is "default"
21:00 TestyRabbit yeah, well i found the minetest.registered_nodes table
21:07 rubenwardy joined #minetest
21:33 fireglow so I've just had a player give himself noclip and fly using the worldedit gui... he doesn't even have the worldedit, let alone the server priv...
21:33 fireglow w T F
21:36 Fixer logs
21:41 rubenwardy sounds like a modified android client
21:48 red-002 b a n
21:50 sfan5 ban
21:50 Hijiri fireglow: do you know that they did it that way, or is that what they told you?
22:01 TestyRabbit joined #minetest
22:03 YuGiOhJCJ joined #minetest
22:08 TestyRabbit So I used override_item to override the on_rightclick method for every node (just testing something) and I can not place blocks anymore. Is there a way I could still preserve the block placing behavior, but if my hand is empty then do my custom on_rightclick?
22:11 calculon i don't think you can have an on_rightclick handler when your hand is empty
22:11 calculon the only way i see would be a globalstep which checks player controls, but that looks expensive
22:13 TestyRabbit so for example, the default:brick now has an event on_rightclick which just prints stuff
22:13 TestyRabbit but if i try to place a block against the brick
22:13 TestyRabbit it will do my new on_rightclick that I have for brick
22:13 TestyRabbit which makes sense, but I want it to place the block lol
22:14 calculon you can store the old on_rightclick handler somewhere and call it in you own
22:15 calculon *your
22:15 TestyRabbit is taht just accessed by node.on_rightclick? because I have been unable to find where it's stored
22:16 calculon you'll find it with registered_items[itemname].on_rightclick just before you override it
22:16 calculon but i'm not sure i understood the question :)
22:16 TestyRabbit ok awesome, thank you
22:16 TestyRabbit yeah
22:16 TestyRabbit thats basically what i wanted
22:16 calculon ok
22:18 calculon note that there is a global minetest.on_place handler, maybe it's better for what you're doing here
22:24 TestyRabbit hm, how so?
22:25 KaadmY Doesn't on_rightclick etc have a return value for if it was "used"?
22:25 KaadmY So it knows to ignore any other rightclick callbacks
22:26 sfan5 don't think so
22:26 sfan5 doesnt the api doc answer this
22:27 TestyRabbit api just says that when it's defined, minetest.on_place() calls it. if it is nil, then it tries to place the node instead
22:28 calculon so you can simply override minetest.on_place instead of overriding every node
22:29 TestyRabbit Yeah but the action im looking for is when I right click a block, not when I try to place a block
22:29 calculon and save and call its old value the same way
22:29 calculon ho, i see
22:29 TestyRabbit yeah
22:29 TestyRabbit https://pastebin.com/z4sqbw0F here is a sample of the code
22:30 TestyRabbit if i am holding a block, and right click a brick block, it just prints "TEST" but does not place the block
22:32 calculon i'd just create an old_on_rightclick table, with itemname as key and the function as value
22:32 calculon and you just have to call old_on_rightclick[itemname](params...) in your handler
22:33 TestyRabbit yeah, I tried that and the issue is that if I add an on_rightclick handler, then it is no longer nil, and therefore minetest does not try to place the block
22:33 TestyRabbit "When defined (not nil), this method is called by minetest.on_place(...) instead of minetest.item_place_node(...)"
22:34 calculon then you can do that yourself : if func == nil : minetest.place_node(...) else func(...)
22:34 TestyRabbit ill give that a shot
22:36 TestyRabbit Yeah just calling place_node() myself works, thanks!
22:37 TestyRabbit idk why i didnt think of that lol
22:37 TestyRabbit too tired i guess
22:52 KaadmY Does place_node work with all paramtypes?
22:53 KaadmY Ie. rotated?
22:57 AlexYst KaadmY: It should. It takes a table, one with three properties: name, param, and param2.
22:58 KaadmY Ah, okay
22:58 AlexYst KaadmY: I don't recall, but I think rotation is param2.
22:58 KaadmY Yeah it is
23:07 rubenwardy joined #minetest
23:23 slemonide joined #minetest
23:35 twoelk left #minetest
23:36 proller joined #minetest
23:40 proller joined #minetest
23:45 KaadmY That feels good, I just changed "minetest." with "core." in my subgame :D
23:45 KaadmY About time I did that too
23:46 rubenwardy heh
23:47 rubenwardy kinda feel like doing an API overhaul mod
23:47 rubenwardy like thexyz's stress
23:47 rubenwardy or maybe more on https://github.com/rubenwardy/mesecode

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