Time Nick Message 11:27 phoenix_ hi, good people. I have some DPI (?) weirdness, in minecraft interface and in-game inventory. I know most likelly its not minecraft's fault,but Nvidia's drivers,ince when I use Intel HD ,doesnt happen. BUt maybe someone has an idea howto fix ? 11:27 phoenix_ Im on ubuntu,with nvidia proprietary drivers 11:27 phoenix_ https://gyazo.com/bf6c6710c74702da3431cfec2c1c8b64 11:27 phoenix_ and this is the screenshot 11:28 phoenix_ since* 11:28 phoenix_ minetest* Sorry :D 11:28 phoenix_ they so similar 11:52 sfan5 it reads the DPI from your system so that must be set wrong or something 12:04 Ingar if the DPI is wrong you can set it in the Xorg config file (had to do that once when I had the most tiny letters on a TV) 12:04 Ingar but then I'd expect your Desktop Environment to look funky as well 12:06 tango_ it's possible that the DE is using a different way to set it 12:06 tango_ there's the server DPI, the xrm Xft.dpi setting, XSETTINGS ... 12:26 phoenix_ Ingar, the DPI doesnt *seem* wrong. most apps and the desktop itself looks good. Only some apps dont : minetest, freeoffice, etc.. 12:27 phoenix_ tango_, I guess is possible. I tendn to think its the proprietary nvidia thingie,since eith free drivers (amdgpu,intel) all looks good 12:28 phoenix_ excuse my tpos, tiny keyboard ^^ 12:31 phoenix_ https://gyazo.com/c2e779bececadeaf134d2e29bd7406f0 12:31 phoenix_ also, the menus .. gigantic 12:52 tango_ phoenix_: same monitor? 12:56 phoenix_ same monitor 12:59 phoenix_ BUt I need the nvidia driver. NOuveau is only good for..well, for almost nothing, considering newer cards . Just basic stuff 15:38 MTDiscord <11I​hrFussel> Nouveau is good enough for MT 15:39 MTDiscord <11I​hrFussel> User probably left 16:01 sfan5 they did 16:35 Fleckenstein If I want to make a default for a setting, should I do if not minetest.settings:get(...) then minetest.settings:set(..., default) end on the beggining of my script or just do minetest.get(...) or default when accessing the setting? I'm pretty sure least is the way to go, but I'm currently having a fight about it with someone else. 16:38 MTDiscord <08a​ppguru> Neither 16:38 MTDiscord <08a​ppguru> You should use modlib to handle all settings for you 16:39 MTDiscord <08a​ppguru> 1. settingtypes.txt specifies defaults 16:40 Fleckenstein what if it is a CSM? 16:40 MTDiscord <08a​ppguru> 2. if a setting is not set, you should check for == nil and not for truthiness (that will fail with false) 16:40 Fleckenstein settingtypes.txt only affects main menu 16:41 MTDiscord <08a​ppguru> minetest.settings:set is blatantly wrong though, as it will modify the users settings 16:41 Fleckenstein yea, i agree with that 16:41 MTDiscord <08a​ppguru> but as said, remember to check for nil and not for truthiness 16:41 MTDiscord <08a​ppguru> else your users will be unable to disable stuff which has a default of true 16:42 MTDiscord <08a​ppguru> i would still recommend modlib though 16:42 MTDiscord <08a​ppguru> https://github.com/appgurueu/disable_build_where_they_stand/blob/master/schema.lua 16:55 rubenwardy truthiness only affects get_bool, which has a default param 16:58 MTDiscord <09s​rinivas> https://github.com/samarth-ramesh/mtlauncher a shameless plug of my project. while 0.4x support is there, you need to compile it first... very pre alpha, written in qt, have fun 16:58 Wuzzy Honest question: Why does the world need this? 16:59 MTDiscord <09s​rinivas> eh, the current one sucks 16:59 MTDiscord <09s​rinivas> imho 16:59 MTDiscord <09s​rinivas> and, if i do it correct, adds in auto updates (assuming it is stored in a writable directory) 17:00 MTDiscord <09s​rinivas> and, allows you to switch client versions easily 17:00 MTDiscord <09s​rinivas> no hitting alt+tab etc 17:10 Krock @s​rinivas My approach for using multiple Minetest versions. Including a few compat patches in builtin https://i.postimg.cc/2jBLPL0z/grafik.png 17:11 Krock no need for a launcher at all 17:16 MTDiscord <09s​rinivas> i see... The usecase that i envisioned was two fold: 1) have both 5.x and 0.4x clients for servers that need 4.x... and to have a password manager 17:17 MTDiscord <09s​rinivas> Krock ^ 17:18 MTDiscord <09s​rinivas> and, Wuzzy ^ 17:18 Krock hmm I see. My 0.4.x setup is long gone, hence didn't consider this to be a potential use-case. whatever. I hope other people find an use in it 17:20 MTDiscord <09s​rinivas> i know people who play on redcat etc 17:20 MTDiscord <09s​rinivas> and, thanks 17:20 MTDiscord <09s​rinivas> my hope is to include enough setups ootb that it works with almost all servers ootb 17:21 MTDiscord <09s​rinivas> multicraft, 0.4x, 5.x and when 6.x comes, that too 17:22 MTDiscord <09s​rinivas> auto updates so you never miss a new feature, a merged server list that includes all that you can join, and hopefully, a clean experience that gets you ingame with as few keystrokes/clicks as possible 17:30 Wuzzy the real solution would be for JT2 to upgrade to 5.3.0 ? 17:34 Krock just shovel more quicksand so that you don't drown 17:34 Krock i.e. 0.4.x support and custom binaries until the end of the world 17:41 MTDiscord <09s​rinivas> havent you heard of the irc & singularity joke? 17:41 MTDiscord <09s​rinivas> https://xkcd.com/1782/ 17:43 MTDiscord <09s​rinivas> > the real solution would be for JT2 to upgrade to 5.3.0 ? > mine not to advise servers, but to provide compat and die charge of 4x brigade, into the valley of 5.x rode a n<100> 17:44 MTDiscord <09s​rinivas> https://www.poetryfoundation.org/poems/45319/the-charge-of-the-light-brigade btw, for those who did not get it 17:48 Krock no not at all. this xkcd hasn't ever been posted here. like never at all. 17:48 Krock but it's something I can totally agree with 17:55 MTDiscord <09s​rinivas> the asme way, as long as there is a market for 4.x clients, there is a service for me to provide lol 19:04 daiNoZord I've spent the past few hours just trying to move a player up 2 blocks when a platform raises but I'm having no luck :( If anyone has a mo: https://pastebin.pl/view/8bd3f172 19:09 Wuzzy what is your goal with this? 19:10 Wuzzy oh i can see the problem 19:10 daiNoZord just to make a platform raise, take the player up with it, i think coming down gravity does the rest :) 19:10 Wuzzy so i guess you start with dadmin:plat1_off, right? 19:10 daiNoZord That's right 19:10 Wuzzy and when player rightclicks on it, they are supposed to teleort 2 node up? 19:10 daiNoZord Yep 19:11 Wuzzy is dadmin:plat1_on supposed to be player-placed? 19:11 Wuzzy or shall this node only appear via code action only? 19:11 daiNoZord it's just replacing the original node - so code based 19:11 Wuzzy ok 19:12 Wuzzy then the mistake is clear. the function after_place_node is wrong 19:12 Wuzzy this callback is never called. this function is only called when the PLAYER places the node, which never happens 19:12 daiNoZord ah, I see 19:12 Wuzzy you might want to use on_construct instead, which is called when the node is created, e.g. with set_node 19:13 Wuzzy also... 19:13 Wuzzy minetest.get_player_by_name() 19:13 Wuzzy this function does nothing lol 19:13 Wuzzy you forgot to assign the player variable... 19:14 Wuzzy oh this entire function is completely wrong... you will probably figure it out with the error messages you get ? 19:14 daiNoZord aha.. I tried on_construct but with the other mistakes in the way I guess it wouldn't work. Thanks Wuzzy :) 19:16 Wuzzy on_construct can be used here, but there are other ways to solve this problem as well. 19:16 daiNoZord originally i included it in the on_rightclick but that broke the raising of the platform 19:42 daiNoZord now it executes without errrors in terminal.... ugh lol 20:54 daiNoZord In "minetest.is_player(obj)`: boolean, whether `obj` is a player" - What is "obj"? 20:56 Krock whatever you want 20:56 Krock preferably an ObjectRef 20:57 daiNoZord so if that follows get_objects_inside radius, it'll return true if a player is present? 21:01 daiNoZord or maybe local obj = minetest.get_objects_inside_radius then minetest.is_player(obj) 21:02 Krock get_objects_inside_radius returns a table 21:03 Krock you iterate through that table. the value of each pair will be the ObjectRef to pass to is_player 21:03 daiNoZord oh nuts - is this in pairs / in ipairs? 21:04 Krock like this, but using is_player(obj) instead of get_luaentity. https://github.com/SmallJoker/boost_cart/blob/master/cart_entity.lua#L348-L351 21:04 Krock both, pairs and ipairs work because it's a numeric indexed table 21:05 daiNoZord ah - i was meant to learn this. now would be a good time then - thanks! :) 21:09 Krock browse other project code. it'll be helpful. 21:09 Guest22 What setting in the server configuration file controls the distance at which blocks can be placed? 21:10 Krock none 21:10 Krock that's a mod/game thing 21:10 Guest22 oh. So without creating a mod I can't change it then? 21:11 Guest22 It's hurting my wrists having to move for every 3 blocks. 21:11 Krock exactly. either write a mod or adjust the "creative" mod which changes the wieldhand AFAIK 21:11 Krock if you turn on creative mode in your world, this should happen automatically 21:12 daiNoZord I often do - to begin with all I did was change mods to suit my design but now I gotta learn to do things properly 21:12 Guest22 i have survival mode though 21:12 Krock Guest22: https://github.com/minetest/minetest_game/blob/master/mods/creative/init.lua#L58-L60 21:13 Krock put these two lines plus closing brackets into a new mod 21:13 Guest22 Then I can use it on survival mode too? 21:13 Krock yes 21:13 Guest22 Thank you Krock. Very helpful. 21:13 Krock !next 21:13 MinetestBot Another satisfied customer. Next! 21:34 Guest22 What files are minimally required for a mod? I have made the init.lua and a mod.conf, are any other files required, or will that do? 21:36 Krock init.lua alone is fine, but mod.conf is a good addition 21:37 Guest22 ok, I'm about to test it out. 21:50 Guest22 It works. :D That was my first experience 'making' a mod. Even though I borrowed code from the example you posted. Thanks for making my first experience a pleasant one, Krock. 21:51 Guest22 it lets me place blocks further distance, but didn't seem to affect the distance at which I can hit blocks. Is that line of code also nearby in the code you shared to me? If not too difficult I may want to add a line to change hitting distance too. 21:56 Guest22 Actually I think it did change the hitting block distance. I had the wrong tool equipped. 21:57 Guest22 It's so much nicer, because now my wrists don't feel like they are cramping up. :) 22:49 daiNoZord There's a missing link there.. somewhere. After 10hours of trying, I've concluded I'm having a bad day - I'll come back to it when my head stops hurting..