Minetest logo

IRC log for #minetest, 2021-04-03

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

All times shown according to UTC.

Time Nick Message
00:15 Taoki joined #minetest
00:51 somtalgutoo joined #minetest
01:00 MTDiscord <jordan4ibanez> Extremely specific, with move_to could there be more options? Like the speed of interpolation, and delete upon interpolation?
01:12 MTDiscord <Warr1024> pretty sure interpolation is intended to take 1 tick, and to delete after, I guess ... just delete on the next on_step?
01:12 MTDiscord <Warr1024> I'll be surprised if anyone is eager to expand the existing API to add any kind of convenience features though
01:34 specing_ joined #minetest
01:36 Verticen joined #minetest
02:00 Verticen joined #minetest
02:05 MTDiscord <jordan4ibanez> Yes the only issue with that is that the client doesn't see the interpolation even happen if you go on the next tick in a server and half the time in a singleplayer environment, it just disappears. Oh well
02:11 MTDiscord <Warr1024> yeah, and doing all that from the server-side, network jitter could eat up the entire effect, as well as out-of-order packet arrival
02:11 Surfer2011 joined #minetest
03:02 craigger joined #minetest
03:06 Hawk777 joined #minetest
03:28 TechDude joined #minetest
04:00 MTDiscord joined #minetest
04:39 LazyJ joined #minetest
04:42 Verticen joined #minetest
05:30 TomTom joined #minetest
06:27 FeXoR joined #minetest
08:00 ShadowNinja joined #minetest
08:03 Flabb joined #minetest
08:16 olliy joined #minetest
08:41 Fixer joined #minetest
08:41 hlqkj joined #minetest
09:13 hlqkj_ joined #minetest
09:53 absurb joined #minetest
10:06 riff-IRC joined #minetest
10:07 calcul0n__ joined #minetest
10:36 galex-713 joined #minetest
10:38 Fractalis joined #minetest
10:54 MTDiscord <Danil_2461> guys, how can i register my own formspec list (inventory)??
10:58 sfan5 if you need a per-player inventory list you can just call set_size to create it
11:05 MTDiscord <Danil_2461> thx
11:56 MTDiscord <Danil_2461> https://cdn.discordapp.com/attachments/749727888659447960/827874179965517854/unknown.png
11:56 MTDiscord <Danil_2461> what does this mean
11:56 calcul0n_ joined #minetest
11:57 MTDiscord <Danil_2461> how do i fix it
12:00 MTDiscord <appguru> well uhm
12:00 MTDiscord <appguru> either you omit the last thing
12:00 MTDiscord <appguru> (;0)
12:00 MTDiscord <appguru> or you upgrade to 5.5-dev
12:03 MTDiscord <Danil_2461> ohk
12:06 MTDiscord <Danil_2461> how the fuck do i stop anims from playing
12:06 MTDiscord <Danil_2461> or set a anim
12:19 sfan5 was that possible in 5.4? dunno
12:20 MTDiscord <Danil_2461> aa
12:20 MTDiscord <Danil_2461> dammit!
12:20 Talkless joined #minetest
12:28 MTDiscord <Danil_2461> minetest.register_on_joinplayer(     set_list(armor, armor),     set_size(armor, 4) ) why it give eror
12:28 MTDiscord <Danil_2461> https://cdn.discordapp.com/attachments/749727888659447960/827882253065125959/unknown.png
12:31 hlqkj minecraft game... already love it 0\
12:33 MTDiscord <Danil_2461> yes
12:33 MTDiscord <Danil_2461> i am trying to recreate alpha 1.0.0 in mt
12:39 SwissalpS joined #minetest
12:43 eraserhead joined #minetest
12:45 MTDiscord <Danil_2461> plsss help somebody
12:59 Flabb joined #minetest
13:15 appguru joined #minetest
13:32 specing_ joined #minetest
13:49 hlqkj joined #minetest
14:06 luk3yx joined #minetest
14:29 Fixer redcrab posted :o
14:32 VanessaE shocking huh
14:41 Verticen joined #minetest
15:04 TechDude joined #minetest
15:05 DS-minetest joined #minetest
15:08 Hawk777 joined #minetest
15:12 NathanS21 joined #minetest
15:15 erlehmann joined #minetest
15:20 Taoki joined #minetest
15:24 Wuzzy joined #minetest
15:24 craigger joined #minetest
15:29 I_am_6r1d joined #minetest
15:56 delta23 joined #minetest
16:00 Taoki joined #minetest
16:01 hlqkj joined #minetest
16:31 DivideByZero Having some issues with this line in my code, if someone can provide some input:  if minetest.get_node_or_nil(pos).name == "air" then
16:31 DivideByZero client side scripting
16:32 DS-minetest if minetest.get_node_or_nil, you'll have an "attempt" to index a nil value
16:32 DivideByZero error is: attempt to access a nil value
16:32 DS-minetest s/_nil/_nil returns nil/
16:32 DivideByZero attempt to index* a nil value
16:32 Krock ".name"
16:32 Krock this is the problem
16:32 DivideByZero I'm trying to get the name of the node at the position
16:32 Krock "get_node_or_nil()" returns nil and you attempt to index it with ["name"]
16:33 Krock then just use get_node(pos)
16:33 DivideByZero .get_node() seems no longer available
16:33 Krock lolwhat
16:33 Krock it definitely is
16:33 DivideByZero for client side? it's not in the doc
16:33 DivideByZero https://raw.githubusercontent.com/minetest/minetest/master/doc/client_lua_api.txt
16:33 DS-minetest true
16:34 Krock oh well then
16:34 Krock local mynode = minetest.get_node_or_nil(pos)
16:34 Krock local name = mynode and mynode.name or "ignore"
16:34 MTDiscord <y5nw> minetest.get_node_or_nil(pos) or {name = "ignore", param2=0}
16:35 DS-minetest local function get_node(...) return get_node(...) or {name = "ignore", param1=0, param2=0} end
16:40 DivideByZero local function get_node(...) return get_node(...) or {name = "ignore", param1=0, param2=0} end
16:41 DS-minetest oops
16:41 DivideByZero still getting a nil valkue error
16:41 DS-minetest /s/n get_node/n minetest.get_node_or_nil
16:44 appguru DS-minetest: at that point get_node == minetest.get_node :P
16:44 expert975 joined #minetest
16:44 DS-minetest yes
16:44 DS-minetest that was the point
17:09 hlqkj_ joined #minetest
17:09 NathanS21 joined #minetest
17:14 DivideByZero joined #minetest
17:15 DivideByZero Thanks Krock for your suggestion. I'm not getting an error and crashing now. I'm getting "ignore" each time though instead of the node name.
17:15 Krock wrong position then
17:15 sfan5 https://github.com/minetest/minetest/blob/88783679cf95803a615b70ed3686daaac65a74a6/minetest.conf.example#L1583-L1599
17:24 DivideByZero Krock: You are correct again. :D
17:24 Krock lucky me
17:24 DivideByZero I'm making progress now. Thank you.
17:25 Krock for use on servers, check the link above tho
17:25 Krock some servers restrict CSM functionality
17:25 DivideByZero I'm doing this on my own personal server so it's ok.
17:25 DivideByZero I'm going to attempt to make a server mod version of it afterwards as well.
17:25 DivideByZero And then share on github
17:36 DivideByZero is there some external MT Lua editor to run code in?  I keep reloading my game every time to test a change in code.
17:36 DivideByZero ..for Linux
17:39 MTDiscord <y5nw> I think there is a testing system for MT mods on LuaRocks, if that helps
17:39 MTDiscord <y5nw> Also, if it's not specific to MT, you can use a regular Lua interpreter or LuaJIT
17:40 Krock write less errors
17:40 Krock or wrap them into pcall()
17:40 DS-minetest use luacheck to avoid runtime errors without testing
17:41 tech_exorcist joined #minetest
17:43 deltaepsilon23 joined #minetest
17:49 Kimapr joined #minetest
17:53 DivideByZero Thank you all for the suggestions.
17:53 erlehmann hey just a question
17:53 tech_exorcist joined #minetest
17:54 erlehmann why is anticheat so stupid
17:54 erlehmann like it prevents my entirely legitimate teleporters to work in mineclone2
17:54 sfan5 huh?
17:55 erlehmann sfan5, mesecons is bugged to hell and mcl2 redstone is a copy of that
17:55 erlehmann sfan5, and anticheat has a speed limit horizontally
17:55 tech_exorcist joined #minetest
17:55 erlehmann like more than 5 m/s and you get rubberbanded
17:55 erlehmann or sth like that
17:55 erlehmann what i'm saying is is there an anticheat that works with game physics defying mesecons/redstone automatons?
17:56 sfan5 are pistons involved?
17:56 erlehmann kiiiinda
17:56 erlehmann hehe
17:56 sfan5 or whatever else generates movement
17:56 erlehmann pistons and oscillators and other stuff
17:56 erlehmann so players can be pushed if the ground moves, but not pulled
17:56 MTDiscord <Jonathon> anticheat makes boats rubberband in mtg as well 🤷‍♂️
17:57 tech_exorcist joined #minetest
17:57 erlehmann sfan5, the solution is easy, make a redstone device that oscillates the ground back and forth very fast
17:57 erlehmann it also makes minecarts rubberband
17:57 erlehmann sfan5 the trick is to get it tickless
17:57 erlehmann sfan5 or rather, get it all in 1 tick
17:57 erlehmann sfan5 cause redstone is not executing in lockstep, but async, so you can kinda glitch it
17:58 erlehmann its probably not as impressive as the thing where you can do a lua stack overflow from inside the game (find a function that does recursive calls, make a device that triggers it a bunch of times)
17:58 erlehmann but its very useful
17:58 tech_exorcist joined #minetest
17:59 erlehmann sfan5, coincidentally, the shitty redstone/mesecons also means my anxiety machines do not work
17:59 erlehmann imagine 2 pistons
17:59 erlehmann both same input, but one input is NOTed with a torch
17:59 erlehmann on one piston a redstone block, on the other TNT
17:59 erlehmann so when i switch the power, those should update at the same time!
17:59 erlehmann but no
17:59 erlehmann the TNT ignites
17:59 erlehmann and blows up the machine
18:00 erlehmann bc they do not update at the same time
18:00 tech_exorcist joined #minetest
18:00 erlehmann sfan5, any idea how to execute ABMs in lockstep?
18:00 est31 joined #minetest
18:01 erlehmann sfan5, like that they all execute based on the prev world state and set the next
18:01 sfan5 hold
18:01 erlehmann i mean
18:01 sfan5 hold on*
18:01 sfan5 do those mechanics even use ABMs?
18:01 erlehmann probably not
18:01 erlehmann i looked into mesecons and it uses a VM with voxelmanip?
18:01 erlehmann and writeback or sth
18:01 erlehmann its still cursed
18:01 sfan5 that's orthogonal
18:02 DS-minetest what is "lockstep"?
18:02 erlehmann in mesecons/redstone, if you power something with two inputs and rapidly oscillate both, you can end up in an impossible state where the thing is powered even though the inputs are off
18:02 sfan5 and to the earlier thing: mesecons will be using add_player_velocity() to push the player somewhere, anticheat remembers that so it shouldn't trigger when you have achieved 5m/s by non-cheaty means
18:02 erlehmann DS-minetest, so all blocks update at the same time like a cellular automaton
18:03 sfan5 that sounds like a feature mesecons could only provide itself
18:03 sfan5 back to player velocity: it hasn't been tested in advanced cases though so who knows maybe it is buggy
18:03 erlehmann sfan5 yeah but what if i managed to get pushed by several pistons within 1 mesecon tick
18:03 sfan5 shouldn't make a difference
18:03 erlehmann sfan5, which i have, indeed, managed
18:03 erlehmann its how the teleporter works
18:03 erlehmann hmmm
18:03 erlehmann so what you are saying is
18:04 erlehmann if i exceed the speed limit it is bc add_player_velocity() was not called often enough?
18:04 erlehmann i'll try that out
18:04 erlehmann and report back
18:04 sfan5 well no, if that doesn't get called then you wouldn't be moving
18:05 erlehmann but the only server with long teleporter lines i know has had anticheat turned off
18:05 sfan5 https://github.com/minetest/minetest/commit/cf64054390970f3cf974afb2b174340a3e1da382
18:05 sfan5 here's the best overview
18:06 sfan5 content_sao.cpp remembers which speed you were pushed with and tries to take that into account for anticheat
18:08 Talkless joined #minetest
18:08 sfan5 looking at it again I can't figure out wtf the m_max_speed_override_time calculation is doing
18:09 erlehmann > Adds to player velocity, this happens client-side
18:10 erlehmann anticheat happens server side
18:10 erlehmann checkmate
18:10 erlehmann (i have no idea)
18:10 erlehmann sfan5, can you come to a server and i show you?
18:11 erlehmann what kind of device i mean
18:11 erlehmann or rather
18:11 erlehmann lets not do it, i need to figure out more about the code
18:11 erlehmann i built a test case
18:11 erlehmann and report back
18:13 Flabb joined #minetest
18:13 sfan5 sure
18:14 sfan5 it might be an engine bug after all
18:14 sfan5 we'll see
18:15 hlqkj_ joined #minetest
19:05 TechDude joined #minetest
19:12 TechDude Hi
19:12 TechDude i have a suggestion for the minetest engine
19:12 TechDude its called “sound muffling”
19:13 TechDude I was startled by a zombie moaning underground when I was above ground a few blocks up
19:13 TechDude in mineclone2
19:13 MTDiscord <y5nw> -> https://github.com/minetest/minetest/issues
19:15 hlqkj joined #minetest
19:17 TechDude https://github.com/minetest/minetest/issues/11164
19:18 MTDiscord <Jonathon> people who react to there own issues/PR's are low key annoying tbh
19:19 MTDiscord <Danil_2461> guys.. is there a way to set what anim should the model play? (talking about the model formspec model[])
19:22 DS-minetest > Objects That Absorb Sound
19:22 DS-minetest https://vimeo.com/77647572#t=234s
19:23 DS-minetest !title
19:23 MinetestBot DS-minetest: Look Around you 7 - Iron on Vimeo
19:23 DS-minetest Did anyone yet make a Bumcivilian mod yet?
19:24 MTDiscord <jordan4ibanez> I'm just going to bring this back up - https://github.com/Desour/minetest/commit/53de1f4b88e5aae00efa22c9fe929bcd764abb54
19:26 DS-minetest ^ I'm currently too lazy to finish that.
19:26 MTDiscord <jordan4ibanez> You can do it, I believe in you
19:32 DS-minetest thanks! but I estimate the effort per probability of merge ratio pretty low, so I will need to get more bored to continue that. sorry.
19:37 awell joined #minetest
19:38 Verticen joined #minetest
19:53 erlehmann TechDude, zombie moaning is bugged since forever, they are always too loud
19:56 Peppy joined #minetest
20:04 rubenwardy When I first played Minetest, I accidentally got a zombie stuck in walls. I could hear the moaning
20:04 rubenwardy The house burnt down soon after, it was made entirely of wood and I built a fireplace
20:06 DS-minetest once when I've captured a guest into a grave, I couldn't hear anything
20:07 DS-minetest heh, my first house was also built entirely out of wood, and burned. I've used the mapgen'ed stone as floor
20:14 Flabb joined #minetest
20:33 absurb joined #minetest
20:38 Gustavo6046 joined #minetest
20:39 Gustavo6046 joined #minetest
20:52 redneonglow joined #minetest
21:15 FrostRanger[m] my first build was tower made of gold and diamond blocks
21:15 FrostRanger[m] this was also before I figured out how to give myself fly...
21:15 FrostRanger[m] needless to say it was ugly
21:15 Verticen joined #minetest
21:17 jess joined #minetest
21:25 MTDiscord <Danil_2461> my first build was a brick house
21:25 MTDiscord <Danil_2461> a tiny brick house
21:25 MTDiscord <Danil_2461> i didnt know how to give myself fly too
21:26 MTDiscord <Benrob0329> My first house was either a cobble shack or a mineshaft.
21:26 MTDiscord <Danil_2461> lol
21:27 MTDiscord <Benrob0329> The latter has been phased out in favor of cabins, but the former is still very much a thing.
21:57 expert975 joined #minetest
22:29 jluc joined #minetest
22:48 galex-713 joined #minetest
23:34 Sven_vB joined #minetest
23:39 MTDiscord <Emojidiscord> The newest commit of MT and Irrlicht makes the program directly Segment Faulted. MT version:  Minetest 5.5.0-dev-0d90ed6d9 (Linux) Using Irrlicht 1.9.0mt2 Using LuaJIT 2.1.0-beta3 BUILD_TYPE=Release RUN_IN_PLACE=1 USE_CURL=1 USE_GETTEXT=1 USE_SOUND=1 USE_FREETYPE=1 STATIC_SHAREDIR="." STATIC_LOCALEDIR="locale"
23:39 MTDiscord <Emojidiscord> https://cdn.discordapp.com/attachments/749727888659447960/828051175412465744/unknown.png

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