Minetest logo

IRC log for #minetest-hub, 2017-08-16

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

All times shown according to UTC.

Time Nick Message
00:31 bigfoot547 joined #minetest-hub
01:33 rdococ does mt use lua 5.2?
01:33 rdococ if not, it should :P
01:33 rdococ although it might break mesecons (specifically the luacontroller).
01:33 rdococ (though that's an easy fix).
01:35 bigfoot547 It might :P
01:38 kaeza rdococ, 5.2 is the black sheep of the family IIRC
01:38 kaeza :P
01:38 kaeza most people use 5.1, or jumped directly to 5.3
01:39 kaeza also, greetings
01:42 rdococ or 5.3 :P
01:43 rdococ I just like the new goto feature they added.
01:43 kaeza :I
01:43 rdococ ikr, I'm weird :P
01:43 kaeza they still don't have `continue`, though
01:43 kaeza just don't tell #lua
01:44 rdococ heh
01:44 rdococ continue is easy, though. it's a simple goto just before the "end".
01:44 rdococ okay, well, as long as no local variables get defined between then
02:02 CalebDavis joined #minetest-hub
03:23 rdococ what is 4!
03:23 rdococ aw, made it obvious :P
06:03 nerzhul joined #minetest-hub
07:50 nore joined #minetest-hub
08:47 rdococ Does anyone want to see my bot?
08:49 jas_ is it a minetest bot?  just curious.  do you have a video?
08:49 rdococ no, an IRC bot :P
08:49 rdococ who needs MT bots when you have MT mods? :P
08:49 jas_ my current location: https://www.youtube.com/watch?v=x0Fu4LpMv5w
08:49 rdococ meh, I don't really like youtube
08:50 jas_ my current selection: https://soundcloud.com/charts/new?genre=drumbass&country=all-countries
08:50 rdococ used to, but it's just... boring. also, it's google, and anything google is automatically evil.
08:50 jas_ my videos are a little dull
08:50 jas_ i admit
08:50 rdococ (which might sound insane to an ordinary person, but it's actually true :P)
08:55 rdococ jas_: I used a lua hashing library to implement my own authentication system for the IRC bot.
08:55 jas_ oh nice work.  are you talking about for the mt mod 'irc' ?
08:55 rdococ no, just a regular IRC bot...
08:55 jas_ oh ok.  i was working on an mt bot
08:56 rdococ ah.
08:56 jas_ good company
08:56 rdococ an MT bot that connected to IRC, I assume :P
08:56 jas_ followed me around, even
08:56 rdococ oh, nvm then
08:56 jas_ you know i WISH mt->irc or any outside socket were easier for me
08:56 jas_ like, i'm not gonna fuss with stuff
08:56 jas_ and i tried the irc mod but i'm all set with the extra setup and ... lag?
08:56 rdococ to be fair, my IRC bot is actually a heavily modified version of an existing one I found on the internet
08:56 rdococ (on GitHub, in fact)
08:57 rdococ it seemed to be a very insecure one, though. allowed anyone to execute un-sandboxed lua.
08:58 jas_ it would be nice to have more remote functionality from minetestserver
08:59 jas_ this would be different story then
08:59 jas_ maybe i'm just doing it wrong ;)
09:01 rdococ I might set up my bot on this network, too.
09:30 lisac joined #minetest-hub
09:34 nerzhul joined #minetest-hub
09:40 Calinou morning! I got back from driving theory exam
09:46 rdococ Hi!
09:46 Dumbeldor Hi
09:47 Fuchs Calinou: hi! Passed?
09:49 Calinou Fuchs: I don't have the results yet
09:49 Calinou not sure, I did my best…
09:50 CWz joined #minetest-hub
09:51 Fuchs Calinou: oh, okay, here you get results immediately
09:51 Fuchs I shall keep paws crossed :)
09:52 rdococ Oh, I was planning on creating a brainfuck interpreter as a Minetest mod.
09:54 rdococ Anyone interested?
09:55 rdococ eh...I take that as a no then
10:12 Megaf joined #minetest-hub
10:14 lisac Hey Calinou
10:14 lisac Calinou, everyone else: http://gamebanana.com/tuts/12455
10:15 lisac I noticed a lot of 'modders' write their own data storage systems instead of using the new attributes
10:15 lisac and I need the bonus points on gamebanana.
10:15 lisac :P
10:24 Calinou >2017 >gamebanana
10:25 nerzhul joined #minetest-hub
11:04 Fixer joined #minetest-hub
11:09 DI3HARD139 joined #minetest-hub
11:14 Jordach joined #minetest-hub
11:29 CalebDavis joined #minetest-hub
11:30 ThomasMonroe joined #minetest-hub
11:54 IhrFussel joined #minetest-hub
11:55 IhrFussel lisac, extended attributes were added in 0.4.16 AFAIK not 0.4.14
11:55 nerzhul exact
11:55 nerzhul (it was my pr it's why i confirm that :p)
11:56 IhrFussel So it kinda makes sense why many mods refuse to switch: They want to support older versions
11:57 nerzhul it's lgtm to think that, but it's a game, it's better to encourage end users to update
11:57 nerzhul performance and features between 0.4.14 & 0.4.16 are very high :)
12:00 IhrFussel nerzhul, that's true but If I create an app for phones for example I usually try to reach as many customers as possible...I cannot expect from them to have the newest phones on the market
12:00 nerzhul wrong
12:01 IhrFussel So a modder is happier when more people use the mod
12:01 nerzhul phone means support various OS versions, not various app version, you have a store to ensure users have the latest version every time
12:01 IhrFussel Usually that is how logic goes
12:01 nerzhul more users = more OS versions to support, not software versions
12:01 nerzhul and not hardware versions
12:02 nerzhul upgrade means add some platforms hardware, not remove them, except after a EOL
12:02 IhrFussel It was an example ... if I work hard on a certain MT mod and make it only available to the newest client/server versions, the success of my mod will be limited
12:02 RobbieF Good morning.
12:03 IhrFussel You guys always say "keep backwards compatibility wherever it's possible"
12:04 nerzhul yes it's important :)
12:05 nerzhul i hope modders keep 2 years compat as a maximum as it's the core contract with end users
12:06 IhrFussel nerzhul, well so you agree that mods shouldn't use extended atrributes yet or add a fallback for 0.4.14/0.4.15
12:07 IhrFussel Not sure how to check if extended attributes are supported in a mod
12:07 IhrFussel attributes*
12:08 nerzhul yes a fallback is good
12:08 nerzhul check is setter/getter is defined else use raw library
12:08 nerzhul same for mod storage, try to get mod storage, else use raw library
12:08 nerzhul it's anoying for a moment but should be used
12:08 nerzhul also modders should migrate data
12:08 nerzhul if raw library data found, migrate it to new storage
12:09 nerzhul it's not simple for everybody but should be implemented
12:09 nerzhul maybe a compat mod should be developped to help modders to do that
12:09 nerzhul and in 2 years, remove compat
12:10 IhrFussel Will set_attribute("x:y","z") return something if successful or failed?
12:11 nerzhul if function is not defind you will have a lua error to handle
12:11 IhrFussel So will this work? local set = player:set_attribute("x:y","z") if set == nil then --fallback end ?
12:13 nerzhul i don't really know i'm not lua expert, but if i remember in lua you can verify is a function is defined
12:19 IhrFussel nerzhul, is "player" a userdata?
12:20 nerzhul yes
12:20 nerzhul it's a PlayerRef
12:23 IhrFussel Is there a way to get a table with all API functions?
12:24 IhrFussel I'm guessing that only works for minetest.x functions
12:35 IhrFussel nerzhul, if type(player.set_attribute) == "function" then --feature supported end
12:36 nerzhul if it works go, and player:set_attribute
12:37 IhrFussel My test code was "if type(player.set_attribute) ~= "function" then minetest.log("error","ERROR") end ... it only triggered when I removed the "t" from set
12:39 IhrFussel You can't use : inside the type check it has to be .
12:41 nerzhul oh yes
12:41 nerzhul exact, it's a dict
12:58 IhrFussel !tell nerzhul My server is set to 0.4 secs per step...how big will be the performance impact if I reduce it?
12:58 ShadowBot IhrFussel: O.K.
13:05 Fixer lol
13:05 Fixer thats slow as hell imo
13:05 Fixer i mean server response is slow
13:05 Fixer not sure about perf impact
13:07 Calinou 0.4 step rate is huge
13:07 Calinou 0.1 is pretty large already, and unfortunately it's the default
13:07 Calinou things feel more responsive with 0.05 already (that's what Minecraft uses)
13:08 Calinou moderen games would use something like 0.025 or maybe 0.033333
13:10 Fixer 0.4 sec step should be very noticable
13:26 lisac 0.4.16?
13:26 lisac nice, I'll edit it lol
13:26 lisac thanks
13:26 lisac sorry for late response
13:27 lisac was sleeping
13:33 ThomasMonroe joined #minetest-hub
13:36 lisac Okay, I edited the guide
13:38 Tre joined #minetest-hub
13:39 lisac hey, anyone here watches Game of Thrones?
13:39 rubenwardy Yes
13:39 lisac New episode is out early
13:39 rubenwardy I heard
13:39 lisac I'm downloading it right now
13:40 lisac before I find any spoilers
13:40 rubenwardy The problem with watching it early is that there's more time to wait until the finale
13:40 rubenwardy And the problem with leaving it is the spoilers
13:40 rubenwardy So, lose lose
13:40 lisac :(
13:41 rubenwardy #firstworldproblems
13:41 lisac it at exactly 03:00 here
13:41 lisac and that's monday
13:41 Calinou AT THE END, CELERON55 DIES
13:41 Calinou #spoiler
13:41 rubenwardy Nooooooo
13:41 lisac oh
13:41 lisac that would be sad
13:41 Calinou hi :P
13:41 lisac he still hasn't moved my post
13:41 lisac :P
13:41 Calinou and no, I don't watch Game of Thrones, but I never tried
13:41 sniper570 joined #minetest-hub
13:43 lisac https://www.youtube.com/watch?v=9NZDwZbyDus
13:43 rubenwardy !title
13:43 ShadowBot rubenwardy: Error: That URL appears to have no HTML title within the first 4KB.
13:44 rubenwardy ShadowBot amazing as ever
13:44 lisac :P
13:45 lisac https://askubuntu.com/questions/938606/dwarf-fortress-starting-during-apt-get-upgrade
13:45 lisac !title
13:45 ShadowBot Dwarf Fortress starting during apt-get upgrade - Ask Ubuntu
13:45 lisac :P
13:45 rubenwardy Can't click that YouTube link atm
13:46 lisac doesn't matter. It's meet the sniper by valve
13:46 lisac "I'm not a crazed gunman, dad, I'm an assassin!"
13:46 lisac "The difference is, one is a job, the other is mental illness"
13:50 rubenwardy I'm trying to decide on a scripting language for my game
13:51 rubenwardy I'd like a language with type safety and compile time type checking
13:51 rubenwardy Preferably with optionals
13:52 rubenwardy However, the only one I know of is kotlin, and including the whole JVM is probably a bad idea :(
13:52 rubenwardy There's Typed Lua, but I get the impression it's not very tried and tested
13:53 rubenwardy Any suggestions?
13:55 CWz question do new bones instantly become old bones in protected areas not beloing to dead
13:58 rubenwardy No
13:58 rubenwardy Bones won't be created in protected areas
13:58 rubenwardy Instead the items are just dropped
13:58 rubenwardy However, protecting the area after a death doesn't unlock the bones
13:58 jas_ my precious items!
13:59 rubenwardy Wait
13:59 jas_ waiting
14:00 rubenwardy Ah, yes bones are unlocked
14:00 rubenwardy They're only dropped if the node you die at has something there is can't replace, and there's no unprotected nodes near by
14:01 rubenwardy Dropping in the middle of a protected area will unlock them immediately
14:01 jas_ neat
14:08 nerzhul joined #minetest-hub
14:14 ThomasMonroe joined #minetest-hub
14:55 Fixer joined #minetest-hub
15:01 CalebDavis joined #minetest-hub
16:21 Krock joined #minetest-hub
16:21 Krock \o
16:22 Calinou hi
16:22 Calinou I passed my driving theory exam, with 37/40 :)
16:22 Calinou (the minimum score is 35/40)
16:27 lisac rubenwardy, new episode is awesome. You should watch it. I won't spoil :)
16:27 Krock congrats Calinou
16:30 lisac y congrats Calinou
16:31 lisac my grandpa is trying to persuade Raven to do his driving exam a year early
16:31 lisac he believes he won't be around to see him finish it if he waits too long
16:31 Calinou I could have done it last year, but I probably wasn't ready back then
16:38 cx384 joined #minetest-hub
16:58 nerzhul joined #minetest-hub
17:13 DI3HARD139 joined #minetest-hub
17:32 Fixer_ joined #minetest-hub
17:36 CWz can someone tell rnd that basic mechines has an item duplication bug
17:37 RobbieF uh oh
17:38 CWz i just tried it on my server
17:39 CWz RobbieF, do you need me to show it off?
17:39 RobbieF are you able to open an issue on github?
17:40 CWz Better be someone with better language skills than me
17:42 Shara Hello all
17:43 Shara If you have a dupe bug, maybe better to avoid putting exact explanations in public.
17:43 twoelk joined #minetest-hub
17:44 CWz that's why i want to show it to someone that can be trusted
17:45 Shara I don't know how to contact the mod owner, so I'm probably not the best for it.
17:45 Shara Do you know if it would be an easy one to fix?
17:45 CWz No idea
17:50 Shara I'm always kind of cautious about trying to do anything with machine type mods.
17:50 Shara I don't use them enough or like them enough to figure out what they really do :P
17:52 CWz RobbieF, do you have basic_mechine on your server?
17:57 RobbieF Yeah it's on TPS-Domes
17:59 RobbieF It may be best to speak with NathanS21 or TenPlus1 or someone else who can fork it and fix it
17:59 RobbieF we'd certainly want to fix it if it allows duplication
18:07 CWz TPS-Domes?
18:15 CWz i will record the bug soon
18:26 RobbieF thanks CWz
18:26 RobbieF if you can email me a video of the bug?
18:27 CWz would msg also work
18:27 RobbieF on here?
18:27 RobbieF yes if I happen to be here
18:27 RobbieF during the day tomorrow
18:27 RobbieF tonight is bad though - show night
18:30 RobbieF CWz please be careful not to show players how to do it.
18:30 CWz Alright.
18:30 RobbieF thanks!
18:41 CWz I can email it when at somepoint
18:48 RobbieF sure thanks!
18:48 RobbieF either me - contact@category5.tv or feel free to pass it on to Shara and she'll discuss it with me.
18:54 behalebabo joined #minetest-hub
19:07 RobbieF night all
19:11 RobbieF left #minetest-hub
19:14 tenplus1 joined #minetest-hub
19:14 tenplus1 hi folks
19:14 Raven262 Hi tenplus1
19:14 Raven262 How do i register an air like node?
19:15 tenplus1 hi raven :P
19:17 tenplus1 raven: https://github.com/minetest/minetest_game/blob/master/mods/tnt/init.lua#L402
19:17 tenplus1 check that for airlike
19:17 Raven262 Ahh
19:17 Raven262 So i do need to add walkable and pointable flags?
19:18 tenplus1 to make them false, yes
19:18 tenplus1 I think they default to true
19:19 Raven262 I did it, thanks
19:19 Raven262 It works
19:19 tenplus1 :P
19:19 Megaf joined #minetest-hub
19:19 tenplus1 hi Megaf
19:20 Raven262 One more question, how do i disable these default game ores from generating inside my air blobs?
19:20 tenplus1 default ores only generate inside default:stone... your air blobs shouldnt be affected
19:20 Raven262 Well, my air blobs also generate inside that stone
19:21 Raven262 and default ores are flying all over the place
19:21 tenplus1 hrm... they'd affect one another but I dunno... would have to test
19:24 calcul0n joined #minetest-hub
19:24 tenplus1 hi calcul0n
19:24 calcul0n hi
19:25 Shara Hi tenplus1
19:25 tenplus1 hi Shara :) whass new ?
19:25 Shara Nothing much.
19:26 Shara How you doing?
19:26 tenplus1 commiserating Shinji...  his area was hit by a huge electrical storm... his 75" tv is toast as is the router for the server
19:26 tenplus1 but server is fine
19:26 lisac joined #minetest-hub
19:26 Shara Ouchy
19:26 Shara Hi lisac
19:27 tenplus1 indeed... hi lisac
19:27 lisac hey tenplus1, Shara
19:27 tenplus1 o/
19:27 Megaf hey tenplus1
19:28 * Shara pokes the tiger
19:29 tenplus1 o.O
19:29 Shara :D
19:35 lisac tenplus1, Xanadu is still down?
19:35 tenplus1 yeah, huge electrical storm blew up Shinhi's 75" tv and router
19:35 tenplus1 the rest was UPS protected
19:37 Megaf Shara, careful
19:37 Megaf I may bite
19:37 Megaf The side of your neck
19:38 Megaf And you ear
19:38 Shara Oh oh
19:38 Megaf And if you keep poking, I will bite your nose
19:38 Shara Not the nose!
19:39 tenplus1 *nom*
19:39 Megaf I like biting noses
19:41 Shara Wouldn't you prefer... you know, doughnuts?
19:44 Megaf Depends on the situation
19:44 Megaf I might take cookies
19:45 Megaf and a cake
19:45 Megaf cakes are good
19:45 Megaf hm, cakes with cookies
19:45 Megaf and oreo
19:45 Megaf and vanilla icecream!
19:48 Shara That sounds greedy.
20:16 IhrFussel joined #minetest-hub
20:16 tenplus1 hi fussel
20:18 IhrFussel I don't quite understand the dtime var in globalstep() ... if I do "local timer = 0 minetest.register_globalstep(function(dtime) timer = timer + dtime if timer >= 2 then --do stuff timer = 0 end end)" will it 100% only run every 2 secs? And can I apply that code to as many mods as I want? different mod dtimes have no conflicts with each other?
20:19 tenplus1 you can register as many globalsteps as you need, or timer carivables using the same dtime...
20:19 tenplus1 dtime is just ticks per second
20:19 IhrFussel Ohh so it's just the amount of time a server_step takes configured in minetest.conf
20:20 tenplus1 yeh
20:20 tenplus1 since it can be changed to anything functions use dtime so you can count using proper seconds for routines
20:21 IhrFussel Until now I just used "timer = timer + 1"
20:21 tenplus1 now ya know :))
20:22 IhrFussel But of course that means it will run every ~ 10 times per sec with default settings...and if the server step is set to 0.2 it will be only 5 times per second
20:22 IhrFussel -every*
20:23 tenplus1 makes for creative programming :D
20:23 IhrFussel tenplus1, do you think reducing server step will increase server load greatly? Or just slightly?
20:24 IhrFussel Mine is set to 0.4 secs currently which is pretty laggy...but I'm not sure how well it will run with 0.2 secs steps
20:24 tenplus1 all depends on the functions in question... e.g.  my playerplus mod gets 3x nodes every second... but if you had to get those every 1.4 second instead you'd feel lag
20:25 tenplus1 some things are light on server, some are heavy
20:28 IhrFussel I will have to change all bad methods to dtime methods and then just give it a test run I guess
20:28 IhrFussel And hello back by the way xP
20:28 tenplus1 best way to do it :)
20:29 tenplus1 you can also time functions and print overall needed
20:32 tenplus1 nite folks
20:32 tenplus1 left #minetest-hub
21:30 bigfoot547 joined #minetest-hub
21:37 IhrFussel Am I right thinking that when you edit minetest.conf during runtime it will only apply those changed values if you start the engine as server? If you edit in singleplayer the values get overwritten when cloding the game again
21:38 IhrFussel closing*
21:39 rubenwardy minetest.conf is read on start up, and then never again
21:39 rubenwardy it is then written when the process closes
21:39 rubenwardy clients and servers don't differ in this
21:40 lisac joined #minetest-hub
21:41 sofar afaict minetest.conf is written over if you modify it while minetest is running
21:41 sofar so you should never edit it when minetest is running
21:44 calcul0n joined #minetest-hub
21:53 IhrFussel That's not what I'm experiencing: When I edit my server conf during runtime it doesn't change back to the old state after restart
21:55 IhrFussel Maybe it's cause I use minetestserver instead of minetest --server
21:58 rubenwardy there's like zero difference
22:04 Fixer joined #minetest-hub
23:13 JordachL joined #minetest-hub
23:14 lumidify joined #minetest-hub
23:20 IhrFussel IMO it's expected behavior to have runtime changes applied to the global settings...who shuts their server down before editing minetest.conf?
23:31 IhrFussel rubenwardy, confirmed: If the --server option is used the conf will APPLY all changes you do during runtime
23:31 IhrFussel And it should not be changed either
23:35 behalebabo joined #minetest-hub

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