Minetest logo

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

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

All times shown according to UTC.

Time Nick Message
01:43 Grandolf_ joined #minetest-hub
06:14 nerzhul joined #minetest-hub
07:23 CWz joined #minetest-hub
07:39 Zeno` joined #minetest-hub
08:27 rdococ YaY
09:11 nerzhul joined #minetest-hub
09:13 CWz why when players become solid thay walk wierd
09:15 rdococ I'm not used to bipedals either.
09:15 rdococ :P
09:15 rdococ anyway, depends what you mean by weird
09:54 IhrFussel joined #minetest-hub
09:55 IhrFussel What's the syntax to delay a function in on_joinplayer() BUT also to give that function the player var? is it minetest.after(2,FUNCTIONNAME(player) end) ?
09:56 rdococ minetest.after(2, function (player) doStuffWith(player) end)
09:57 IhrFussel rdococ, that didn't seem to work...it said player was nil when it ran
09:58 rdococ minetest.register_on_join_player(function (player) minetest.after(2, function (player) doStuffWith(player) end) end)
09:58 rdococ s/join_player/joinplayer
09:58 IhrFussel I'm pretty sure I tried that and it crashed the server with a nil error
09:59 rdococ odd
09:59 rdococ ah
09:59 rdococ minetest.register_on_join_player(function () minetest.after(2, function (player) doStuffWith(player) end) end)
10:00 rdococ wait
10:00 rdococ minetest.register_on_joinplayer(function (player) minetest.after(2, function () doStuffWith(player) end) end)
10:00 rdococ if that doesn't work, try this:
10:01 rdococ minetest.register_on_joinplayer(function (player) minetest.after(2, function (player) doStuffWith(player) end, player) end)
10:14 sfan5 while the first might work you should definitely use the second
10:38 lisac my fucking phone decided it would be a good idea to format the SD card while reseting settings.
10:38 lisac I specifically told it NOT to do it
10:39 lisac I'm now in the process of installing some actual android, and not this shitty bloatware version I got it with.
10:43 CWz how does one install andriod os on pone
10:44 lisac I'll just grab latest cyanogen and install it as an update
10:44 lisac luckily google backed up my images
10:44 rdococ can someone wipe my iPad and replace it with a Linux installation?
10:45 rdococ currently it's got Apple ShitOS, and I don't want that
10:45 lisac not sure if you can install it on ios phone
10:45 rdococ eh, I'll just get a chainsaw.
10:46 lisac why would you get an iphone, though?
10:47 lisac I always found androids cheaper and nicer
10:47 rdococ because I was an idiot back then
10:47 lisac and I only ever saw Bosnians using iPhones.
10:47 rdococ probably barely even knew what an android was
10:47 lisac lol okay
10:47 rdococ what I really want is a small computer that's at least capable of running an actual OS, not these dumb phone versions
10:48 Fixer joined #minetest-hub
10:48 lisac ubuntu touch was like that
10:48 lisac sadly, the project died
10:48 rdococ even if it requires a keyboard, I'd be fine as long as I could carry it around
11:01 IhrFussel sfan5, ok thanks...any clue why the profiler affects some callbacks it seems? If I enable mod profiler the server seems to think that players have no armor when falling or in lava
11:07 sfan5 sounds like a bug
11:14 rdococ YaY
11:17 Jordach joined #minetest-hub
11:22 rdococ 2 + 2 = 5[citation needed]
11:23 Calinou [1] + [2] - [3] = 9
11:25 rdococ ah, but [dubious -- discuss] * [4] = 9.25[citation needed].
11:34 ThomasMonroe joined #minetest-hub
11:36 CalebDavis joined #minetest-hub
12:00 Zeno` that's not true. 2 + 2 = 10 however
12:02 Grandolf joined #minetest-hub
12:03 Zeno` Are you allowed in here Grandolf?
12:04 rdococ 2 + 2 = 10.... IN QUATERNARY!
12:10 Zeno` Grandolf, are you OldCoder?
12:11 Fuchs Grandolf: unrelated: what was the poke about Lausefuchs about?
12:11 Fuchs also as far as I can tell: he is not.
12:11 Fuchs (the former, he is allowed in here I think)
12:12 Fuchs oh, it was +m, sorry
12:12 Shara No problem. Figured he should be able to answer the questions himself at least.
12:12 Grandolf hi
12:13 Fuchs yes :)
12:13 Fuchs hi!
12:13 Grandolf it was bc someone was saying they ideling for a year was long, and i had read the idle hours as days
12:13 ThomasMonroe hey Fuchs
12:14 Fuchs Grandolf: impressive, but no, he didn't idle for that long :)
12:14 Fuchs Grandolf: it's an alt of mine
12:14 Fuchs (an obvious one)
12:14 Grandolf i figured
12:14 Fuchs decent clients convert it
12:15 Fuchs [Whois] Lausefuchs has been idle for 41 days, 16 hours, 15 minutes, and 51 seconds.
12:15 Fuchs ThomasMonroe: hi! :)
12:15 ThomasMonroe hey Grandolf
12:15 Grandolf hi thomas
12:20 * rdococ hugs Minetest somehow
12:24 Shara Did it hug you back?
12:25 ThomasMonroe somehow XD
12:25 * Grandolf writes minetest on a pole for rdococ to hug
12:26 * rdococ hugs Grandolf instead
12:26 Shara My server bot has been known to hug people (somehow)
12:26 Shara Though it's also been known to try and eat people as well.
12:26 rdococ O_o
12:26 Shara You never noticed that?
12:27 rdococ Your server bot?
12:27 Grandolf ??
12:27 * Grandolf is conused
12:28 * Grandolf is also unsure of what to say, or do
12:29 * rdococ hugs Grandolf again
12:35 Grandolf if i use a command/commandblock/player detector to make a sound, how do i make the sound stop once noone is in range?
12:37 rdococ WITH HUGS!
12:37 Grandolf i dont want 50 of a song playing at the same time bc someone goes back and forth, and i dont want to manually start it every 5 mins, and i dont want to just play the song with 5,000,000 delayers
12:37 Grandolf hm...
12:37 Grandolf maybe
12:38 * Grandolf will make a delayer that delays for the exact song time and call it :mesecons_delayer:hugs :P
12:44 RobbieF joined #minetest-hub
12:48 rubenwardy rdococ: never store the player object between callbacks
12:49 rubenwardy Instead, store the name and look up the player again
12:49 rubenwardy And make sure the player is non nil
12:49 rubenwardy If the player leaves between it joining and the 2 seconds, then the server will crash
12:50 rdococ rubenwardy: mw ha ha ha
12:51 xerox123 my server keeps throwing this error when I place a homedecor bed https://paste.ubuntu.com/25362400/
12:54 nerzhul lua core related objects can change between loop steps
12:55 xerox123 what does that mean? I'm no programmer
12:56 rubenwardy Nerzhul: scripting is run in the main thread and blocks networking etc logic
12:56 rubenwardy Surely there's no race conditions
12:57 nerzhul rubenwardy, yes, but if you store LuaPlayerRef in your mod and multiple server steps are done, it 's possible that the RemotePlayer pointer ref will become invalid in a loop step in core engine and the LuaPlayerRef just become unstable
12:58 rubenwardy Ah, you mean server steps not Lua steps
12:58 rubenwardy I thought you meant whilst stepping through a Lua loop
12:59 rubenwardy Yeah, a Lua ObjectRef is essentially just a pointer to a player or an entity
13:00 rubenwardy It may be worth using a weak pointer at some point, or just storing the player name in the objectref, so we can give a more informative message
13:00 rubenwardy Although the latter wouldn't work for entities
13:01 nerzhul rubenwardy, yeah i mean the sync between core and lua :)
13:01 nerzhul never store a LuaRef between steps if it's a removable cores-die object
13:01 nerzhul coreside*
13:01 nerzhul you have same problem with entities, you should store entity id
13:02 nerzhul and yes, it's less performant because you store and lookup on each call you do across lua steps , but no choice
13:02 Grandolf in mesecons_delayer how long is delaytime = 0.1 ?
13:07 Grandolf joined #minetest-hub
13:16 Fixer_ joined #minetest-hub
13:16 Grandolf hi fixer
13:18 lisac joined #minetest-hub
13:18 Megaf joined #minetest-hub
13:23 cx384 joined #minetest-hub
13:25 rdococ chromium is cool and all, but I wish it supported flash
13:31 nerzhul nobody should support flash
13:32 rdococ Sorry, but my computer does not support nerzhul.
13:33 nerzhul i run in 128bit it's why it doesn't work
13:34 rdococ Ha, 128bit. My computer migrated from that aaaaages ago.
13:35 rdococ My computer utilizes 18,446,744,073,709,551,616-bit architecture - and that's a number that a 64-bit computer can't even /grasp/ in an unsigned integer!
13:41 Grandolf joined #minetest-hub
13:41 Megaf Im not sure if you are serious or ironic rdococ
13:42 Grandolf joined #minetest-hub
13:42 Zeno` rdococ, sure it can
13:42 Zeno` it's 2^64
13:43 Zeno` oh wait
13:43 Zeno` would need 65 bits I guess
13:44 Megaf arent some if not most SIMD instructions 128 bit?
13:45 Megaf "The IBM System/370 could be considered the first simple 128-bit computer, as it used 128-bit floating-point registers. Most modern CPUs feature SIMD instruction sets (SSE, AltiVec etc.) where 128-bit vector registers are used to store several smaller numbers, such as four 32-bit floating-point numbers. A single instruction can then operate on all these values in parallel. However, these processors do not operate on individual numbers that are 128
13:45 Megaf binary digits in length, only their registers have the size of 128-bits."
13:45 Calinou Rust now has i128
13:45 Calinou 128-bit signed integer
13:45 Calinou (I don't think there's u128?)
13:45 Zeno` But it could of course be represented with any computer with an arbitrary precision library
13:47 Megaf Lets just get a 5 GHz 64 bit CPU and emulate 128 bit CPU running at 1 GHz on it
13:47 Megaf (That's not supposed to be a serious sentence)
13:48 Calinou let's make CPUs go to 6 GHz and have 24 cores, all this to emulate the Nintendo Switch
13:48 Zeno` since it only needs65 bits it's easy anyway
13:51 nerzhul 128bit integer is useless except in mathematics
13:51 Megaf and in the Minetest database
13:52 nerzhul useless in mt database, map uses 16b
13:54 * Calinou joined the Just Test server for the laughs
13:55 Calinou I should take a screenshot of the spawn area, and we'll have the answer to "What will Minetest look like in 10 years from now?"
13:55 * CWz wonders how his server all of the sudden got more players
13:56 Calinou heh, camera offset is broken, since I'm using a recent dev build
13:56 Calinou uh uh, found two bugs with that offset thing
13:57 CWz hello Zeno`
13:57 Calinou 1) I can't get out of water without sneaking and jumping (usually, only jumping is required)
13:57 Calinou 2) my character can be underwater (from third person view), but since my view isn't, I'm not losing air bubbles
13:57 Calinou (this works both in third person and first person)
13:57 rdococ Calinou: The big money is in the bignums.
13:59 Calinou meh, chat2 output looks bad with my font size
13:59 Calinou I wish we had a built-in chat log
13:59 Calinou (and move away chat messages from the console)
13:59 CWz +1
14:04 sniper338 joined #minetest-hub
14:07 Calinou https://i.imgur.com/GkFXfYe.png
14:07 Calinou best anticheat
14:08 CWz wow
14:08 CWz every spammy
14:08 rdococ heh
14:09 * benrob0329 thinks a out getting another hour if sleep
14:09 rdococ a good anticheat should look at the player's privs and physics table.
14:09 benrob0329 *about
14:10 Calinou what about an anticheat that asks for $0.50 payment every time a violation is detected?
14:10 Calinou this could be better than hat sales
14:12 lisac hey IhrFussel, after some time on your server, I was wondering if I should write a guide detailing the use of minetest.chat_send_player
14:13 lisac seeing that your mods all use chat_send_all instead of it
14:13 rdococ hah
14:14 IhrFussel lisac, No, there are 150+ commands on my server (yes you heeard right) and many output in PM/chat_send_player() ... but there is also info I consider important for the public
14:15 IhrFussel When players spam a public command too much I either put them on a blacklist for that command or I think about making it private
14:16 Bobr joined #minetest-hub
14:18 lisac IhrFussel, your server reminds me of facebook. :P
14:18 lisac hijenavuk enjoys it, though. So I guess it is nice.
14:24 Megaf Why was the view offset thing broken in the first place?
14:27 Megaf gtg
14:31 IhrFussel My server offers a lot ... players have levels, there is a shop system, friend lists, players can be with each other, there are different chat channels, profiles, events, challenges that make sure nobody can cheat...really it's too much to list ... I'm most proud of the ingame-bot cause I coded it 100% myself
14:33 Shara In fairness, it's one of the nicest servers I found yet.
14:34 Shara Though I'm still not sure I like seeing so many public messages :P
14:35 DI3HARD139 joined #minetest-hub
14:36 Bobr joined #minetest-hub
14:40 Bobr2 soz
14:42 lisac Shara, IhrFussel, I do think it has some very interesting features. I just don't like the concept of social networking in minetest.
14:42 lisac especially seeing that most players are kids who might share a bit too much.
14:42 lisac I myself might have been guilty of that in my earlier years.
14:42 Raven262 Playstyle: What?!
14:43 Shara I'm not social enough to social network anyway :)
14:44 Bobr2_ joined #minetest-hub
14:46 lisac I do reddit
14:49 IhrFussel My server is an entire social environment... IMO multiplayer without social features is boring
14:50 IhrFussel My goal is it to bring as much features to MT as possible...anything that makes sense should be in it
14:50 Raven262 So make a social network out of the server. Nice idea, but not for me xD
14:53 Shara I wouldn't want the responsibility of running such a thing to be honest
14:53 IhrFussel My server tracks player activity, uses a certain punishment system called Bad Score that adds points to a player's account for breaking rules...when the score reached a certain amount the account will be kicked or banned...the interesting part about it is that it goes down by 0.1 per day the player behaved fine, so players see that they have the chance to show that they can get another chance on the server
14:53 Shara Regular chat and a server IRC channel, plus an external site for updates, is quite enough for people to interact with already, and already plenty to manage
14:54 IhrFussel they have the chance to be "forgiven" on the server if they behave fine for a long time*
15:05 IhrFussel But I admit that there are commands/features that make no real sense...they exist just for fun when the players are bored (such as lovemeter)
15:06 rdococ a karma system would be cool
15:11 Calinou upnodes to the left
15:27 Krock joined #minetest-hub
15:39 Bobr2 wb krock
15:42 Krock ty Bobr2
16:28 Zeno`` joined #minetest-hub
16:41 IhrFussel Guys? What's wrong here? https://pastebin.com/ndLBuD6X
16:41 IhrFussel "unexpected symbol near 'end'"
16:42 Raven262 that "," at the last end looks suspicious
16:43 calcul0n yes, and it looks like there's an extra "end"
16:45 IhrFussel calcul0n, sorry that's the end) of on_joinplayer() ... Raven262 I tried with and without ,
16:45 Raven262 I doubt there should be an "," before that end
16:46 shivajiva the symbol would be player at the end?
16:46 calcul0n yes, the player at line 5 seems useless too
16:46 calcul0n the last one
16:50 IhrFussel what is wrong here now? minetest.after(2,function(player) u_skins.update_player_skin(player) end, player end)
16:50 shivajiva IhrFussel: remove last player
16:50 IhrFussel But sfan5 said it's the recommended syntax
16:51 shivajiva okay for minetest.after(1, function, parameter) maybe but not for what you are doing
16:52 lisac IhrFussel, do you even indent? :D
16:54 shivajiva i.e. minetest.after(1, foo.bar, player) where foo.bar = function(player)
16:54 lisac Y that would help
16:54 IhrFussel shivajiva, this doesn't worjk either minetest.after(2,u_skins.u​pdate_player_skin(player), player end)
16:55 Raven262 end?
16:55 Raven262 at the end
16:55 shivajiva try it as
16:55 shivajiva player,
16:55 shivajiva end)
16:55 shivajiva eww sorry
16:55 calcul0n something like minetest.after(2,function(player) u_skins.update_player_skin(player) end, player) end
16:55 calcul0n if the last end is needed by something upper
16:56 IhrFussel THis works minetest.after(2,u_skins.u​pdate_player_skin(player), player)
16:56 shivajiva try it as minetest.after(2,u_skins.update_player_skin, player)
16:57 IhrFussel Ok it crashed on_joinplayer() I'll try this one ^
16:57 shivajiva minetest.after(the delay, the function, the parameter)
16:58 shivajiva that's how it's expressed in the api I believe
16:59 IhrFussel Not sure what's wrong, the skin stays white
17:00 shivajiva out of interest what are you trying to do that uskins doesnt?
17:02 IhrFussel I want to delay the setting of the skin cause the profiler showed me that on_joinplayer() lags quite a bit
17:02 Fixer joined #minetest-hub
17:05 shivajiva I see
17:08 Calinou joined #minetest-hub
17:08 shivajiva then I'd expect to be able to get away with minetest.after(2,u_skins.update_player_skin, player) for line 171
17:09 sfan5 yes that should work
17:14 shivajiva I noticed 0.4.16 was showing players white occasionally until they moved around a bit on my server
17:34 rdococ O_O
17:34 rdococ shivajiva: that seems to happen if you repeatedly punch a player
17:34 rdococ also, I just compiled minetest and the latest dev version calls itself 0.5.0 :P
17:36 Raven262 nrz's new version numbering?
17:36 * Raven262 voted for yes :P
17:37 rdococ I'm not sure - I'd have to compare 0.4.15 and 0.4.16 with 0.5.0's planned features to determine if it is worthy of a semi-major version incrementation :P
17:38 shivajiva lol
17:47 rdococ What's in the new dev release anyway?
17:48 Megaf joined #minetest-hub
17:48 benrob0329 all the things!
17:48 rdococ like what?
17:49 lisac joined #minetest-hub
17:49 benrob0329 all of them!
17:49 rdococ like nodes?
17:49 rdococ are there nodes?
17:49 benrob0329 Ikr
17:49 rdococ because I checked the changelog and it didn't say "added nodes"
17:49 benrob0329 *idk
17:50 rdococ so I'm worried if nodes exist or if we're just going to be playing in a void :/
17:50 Raven262 Cause they removed them! :(
17:50 rdococ Oh noes!
17:50 rdococ I will just have to emulate them with entities!
17:50 Raven262 And they added the directional lightning, what is it going to light! :(
17:50 Raven262 *?
17:51 rdococ wait
17:51 benrob0329 Did that get merged? I though it was still a PR
17:51 rdococ did they actually add directional lighting? O_O
17:52 rdococ (suck it, minecraft! :P)
17:52 benrob0329 For Sun + Moon
17:52 KaadmY No, it's not merged yet
17:52 benrob0329 And its more directional shading
17:52 benrob0329 Just an effect
17:55 Bobr2 joined #minetest-hub
18:05 nerzhul joined #minetest-hub
18:13 Miner_48er joined #minetest-hub
18:23 paramat joined #minetest-hub
18:46 IhrFussel shivajiva, sfan5 that is exactly what got me the white player skin and it didn't change after 2 secs
18:48 shivajiva doesn't make a lot of sense, I'll try adding a delay to simple skins to see what effect it has
19:07 * garywhite saw the eclipse on TV...clody
19:08 garywhite cloudy*
19:08 benrob0329 you can still see the sun through the clouds
19:08 garywhite very cloudy...
19:10 Raven262 What if eclipse happens during the night? Ah, yes.
19:19 IhrFussel I need a way to delete areas from the areas mod that were owned by accounts that don't exist anymore...the areas.dat file is so large, each adding/removing/changing takes up to 1 sec
19:25 Bobr2 isnt the command remove_player
19:26 IhrFussel Bobr2, yes /remove_area ID ... but that would take forever with 5,000+ protections
19:27 Bobr2 ah
19:27 DI3HARD139 @IhrFussel You could manually edit the file if you want. Just make sure the world is offline.
19:27 DI3HARD139 Had to do that a few times
19:27 IhrFussel I need a way in Lua to parse the playername, check the account existence and if not found, delete it from the file
19:28 Corvus_ joined #minetest-hub
19:28 IhrFussel The file is ONE huge line AFAIK...I'd be wayy too worried about corruption
19:29 Shara I worry about the areas file as well...
19:29 DI3HARD139 grep maybe?
19:30 IhrFussel The areas data is stored as a huge Lua table I think...I imagine it to be extremely difficult to use grep on it
19:30 IhrFussel Let me ask in #bash
19:31 sfan5 i doubt you can do that efficiently in bash
19:57 Fixer joined #minetest-hub
19:58 IhrFussel sfan5, the only answer I got was "do it in Lua"
19:58 IhrFussel xP
20:07 IhrFussel Can I do this somehow externally? Without MT functions? "self.areas = minetest.deserialize(file:read("*a"))" ?
20:11 sfan5 copy the functions from mt
20:23 Fixer PAM_PAM_PAM
20:26 soupfly joined #minetest-hub
20:28 IhrFussel sfan5, That looks cryptic as heck
20:29 IhrFussel No matter what I do I get nil
20:47 IhrFussel This MIGHT work...I put it inside the /remove_area command https://pastebin.com/7RZ21Ji9
20:48 IhrFussel Oops it's areas:remove(id)
21:01 shivajiva seems viable, can you objectify the table length for the loop?
21:02 IhrFussel Improved version (checks if ID exists first): https://pastebin.com/0FM6qtEq
21:03 shivajiva I hope you indent your code :)
21:03 IhrFussel shivajiva, not sure how to do that (getting table length)
21:05 shivajiva simple table length is #table, then we have table.getn(table)
21:05 IhrFussel DISCLAIMER: I do not guarantee the success of that code, ALWAYS make a backup of the areas file before editing it
21:07 IhrFussel shivajiva, I'm not sure if that would work because deleted area IDs get reused o.o
21:08 IhrFussel In theory the table should have a fixed length, but I'll keep it at 1, 8000 for myself cause I know the highest ID is 7XXX
21:13 RobbieF left #minetest-hub
21:13 shivajiva ipairs would be better then
21:14 IhrFussel shivajiva, I just ran it...it took only 3 secs
21:16 IhrFussel It deleted ~ 1,000 protections
21:17 shivajiva cool
21:22 shivajiva btw the test adding delay to the update player skin on join didn't produce any noticeable effect, skin shows correctly
21:24 IhrFussel Maybe it's u_skins specific then
21:24 shivajiva maybe but that part of the code is identical
21:31 shivajiva the logic is common to the skin mods regardless of where it acquires the textures or how it presents them to the user afaik
21:36 shivajiva I'm guessing your sever is heavy on player join because of the amount of mods processing that event
21:58 IhrFussel Yes I know that's why I try to delay some stuff that usually runs on_joinplayer()
23:14 * sofar back from eclipse
23:15 * sofar & kids enjoyed totality - was awesome - hope others got a chance to see it today as well
23:16 KaadmY The eclipse was partial here
23:16 VanessaE it just barely reached totality here too, sofar
23:16 KaadmY 70-80% totality here
23:16 VanessaE lasted for like 1 minute, got a full "diamond ring"
23:17 VanessaE clouds got in the way but what was visible was spectacular.
23:29 * Wayward_One saw it partially as well
23:35 sofar we had not a cloud in the sky
23:43 bigfoot547 joined #minetest-hub

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