Minetest logo

IRC log for #minetest, 2020-09-03

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

All times shown according to UTC.

Time Nick Message
00:02 twoelk left #minetest
00:29 MinetestBot [git] paramat -> minetest/minetest: Add 'ores' global mapgen flag (#10276) 4ba5046 https://git.io/JUOYT (2020-09-03T00:28:40Z)
00:32 specing Was the viewmode (F7) key changed?
00:32 specing I can no longer switch to 3rd person mode
00:34 rubenwardy C
00:34 rubenwardy or V
00:34 rubenwardy I don't agree with the change, but whatever
00:46 rcmaehl joined #minetest
01:00 kawaiipunk joined #minetest
01:19 Hawk777 joined #minetest
01:37 Hawk777 joined #minetest
01:57 LazyJ joined #minetest
02:01 MTDiscord <L​one_Wolf> It
02:02 MTDiscord <L​one_Wolf> 's nice when you can't see your keyboard like me
02:02 MTDiscord <L​one_Wolf> Although I guess I'll eventually form proper typing habits and be able to reach that consistently without mistakes
02:17 Lone_Wolf joined #minetest
02:27 Extex joined #minetest
02:41 muhdnurhidayat joined #minetest
02:43 muhdnurhidayat I actually read the IRC chat on discord but not replying there as the bridge would put up my username instead of nickname
02:43 muhdnurhidayat anyway
02:43 muhdnurhidayat Copenhagen_Bram : weblate actually do add custom language or script, you just need to contact them with details about it
02:43 muhdnurhidayat like I'm the one who requested addition of "Malay (Jawi)" on weblate (coded as ms_Arab) because I need that for some projects
02:44 muhdnurhidayat once Weblate add it then you can go the usual process of translating Minetest
02:45 muhdnurhidayat when looking through all languages available on Weblate, there are indeed few more custom language on it, including English Rude (en@rude)
02:48 muhdnurhidayat also lojban do have language code : jbo
02:50 muhdnurhidayat Toki Pona has requested for language code but it was denied, twice, one for code mis, the other for code tok
02:51 muhdnurhidayat reason being it's too small (ik that's kinda bad reason as language is language, but it is what it is)
02:51 muhdnurhidayat small as in too few people using it
02:54 FeXoR joined #minetest
02:57 muhdnurhidayat left #minetest
04:06 shangul joined #minetest
05:32 Neal16 joined #minetest
05:34 Guest75 joined #minetest
05:41 Guest61 joined #minetest
05:46 Flabb joined #minetest
06:23 TomTom joined #minetest
07:20 SoylentCow the remap was pointless, imho, but in the end, moot, who cares, right? though i could swear i had a weird update glitch on one host, where it should have remapped, but somehow it didn't, something with config
07:21 SoylentCow what really stood out for me, personally, is how build-in-place config is in build dir, not in ~/.minetest , am i not misinformed?
07:22 Krock I think you meant RUN_IN_PLACE?
07:22 SoylentCow i don't do caps
07:22 SoylentCow but yeah
07:23 Krock well, that's its entire purpose. if you want to use the system file structure, then don't use RUN_IN_PLACE
07:23 SoylentCow but
07:23 Krock because that will make Minetest use the files that are around the binary
07:23 SoylentCow we want it all and we want it NOW!
07:23 Krock !next
07:23 MinetestBot Another satisfied customer. Next!
07:25 shangul joined #minetest
07:31 dievri joined #minetest
07:33 dievri hello. function minetest.get_current_modname() return nil inside minetest.register_on_joinplayer(). Is this should be this way?
07:34 Krock hi yes
07:35 Krock use "debug." functions to figure out whether it's really executed within your mod, or hooked by another
07:43 mangul joined #minetest
08:00 ShadowNinja joined #minetest
08:00 dievri thanks, sorted out)
08:02 mangul Can someone please tell me in what situation(s) server does not send RemoveNode message to a client?
08:08 absurb joined #minetest
08:30 aheinecke joined #minetest
08:48 dievri how to make entity placed in air to fall?
08:50 mangul Guys, Is it a good idea to ping celeron or some other core developer about this matter?
08:55 Krock mangul: #minetest-dev is probably the best place
09:07 FennecCode joined #minetest
09:10 calcul0n joined #minetest
09:12 quater joined #minetest
09:15 absurb_ joined #minetest
09:18 proller joined #minetest
09:24 oil_boi joined #minetest
09:30 dievri I'm trying to put entity in space when the player in joined and make entity fall. But the entity is not falling https://github.com/dievri/minetest/blob/master/practicemod/init.lua Do I missing some properties?
09:32 mangul Krock, But you said that channel is not about related projects
09:32 oil_boi dievri, you need to add an on_activate set_acceleration vector to the entity
09:33 oil_boi The initial creation of an entity as defined in the source code gives the entity an attached acceleration vector of (0,0,0)
09:34 oil_boi A simple addition of this will help: https://github.com/dievri/minetest/pull/1
09:37 oil_boi Acceleration vs Velocity as per the source code is that the acceleration vector smoothly changes the velocity, where as applying the velocity per server step will create jerky movement
09:37 oil_boi This needs to be handled accordingly if you want this to sharply change direction or smoothly change direction, you can use both when each effect is desired
09:38 oil_boi Also keep in mind that if the object is moving extremely fast, the movement vs the actual client movement may appear different as the objects in the server are interpolated to give the effect that the object is moving very smoothly
09:39 oil_boi Also part 2, keep in mind if you set the acceleration vector too high in any direction you can actually crash the server from a float/integer overflow. I've forgotten which of these primitives the engine uses
09:40 dievri thank you, now it's working
09:40 oil_boi No problemo
09:59 bebebeko joined #minetest
10:12 calcul0n_ joined #minetest
10:23 Krock mangul: oh. I thought you were talking about the Minetest engine
10:24 Krock I think Q&A about the internals of Minetest fits into -dev. Though specific questions about other projects don't.
10:25 Krock mangul: check out server.cpp -> Server::sendRemoveNode  this function is called by map events (player dug node)
10:26 bebebeko joined #minetest
10:27 Krock minetest.remove_node triggers it
10:27 Krock to be fair, this could easily be replaced by minetest.set_node  air
10:28 Krock only difference is that the "on_construct" callback isn't attempted to run for remove_node
10:34 FennecCode joined #minetest
11:03 Thomas-S joined #minetest
11:03 Thomas-S joined #minetest
11:26 MTDiscord <a​ppguru> oil_boi: -9.81
11:47 shangul joined #minetest
11:54 shangul Krock, Thanks.
11:56 Fixer joined #minetest
12:12 oil_boi Actually appguru -9.81000000000000000000000001 heh heh heh
12:46 NathanS21 joined #minetest
12:55 MTDiscord <r​ubenwardy> oil_boi: doesn't that take a vector?
13:00 FeXoR joined #minetest
13:07 calcul0n__ joined #minetest
13:13 craigger joined #minetest
13:23 kamdard joined #minetest
13:48 calcul0n_ joined #minetest
13:59 oil_boi joined #minetest
14:44 Elouin joined #minetest
14:54 minduser00 joined #minetest
14:55 fluxflux joined #minetest
14:59 MTDiscord <a​ppguru> oil_boi: -9.81000000000000000000000001 == -9.81
15:00 oil_boi in cpp -9.81 != -9.81000000000000000000000001
15:01 MTDiscord <o​il_boi> That's it I'm coming in here boi
15:01 MTDiscord <o​il_boi> U done goofed now
15:01 rubenwardy does floating acurracy matter here?
15:02 MTDiscord <o​il_boi> Only if we're programming dna simulations, because what generates proteins can now give you spider powers
15:02 MTDiscord <a​ppguru> I was talking Lua
15:02 MTDiscord <o​il_boi> https://tenor.com/view/moana-delete-maui-delete-this-gif-15101621
15:02 Extex joined #minetest
15:02 MTDiscord <a​ppguru> As Lua uses doubles I doubt C++ would be able to offer higher precision?
15:02 rubenwardy Taking g as 9.81 is also silly when you don't have air resistance or whatever
15:03 MTDiscord <o​il_boi> Yes use 10 and let it get crazy
15:03 MTDiscord <o​il_boi> Well
15:03 MTDiscord <o​il_boi> Apply 1500 to it 1000 times in a server step and watch the game close
15:03 minduser00 joined #minetest
15:03 MTDiscord <a​ppguru> 9.81 implies to the reader that we're talking gravity here
15:04 rubenwardy I guess
15:04 MTDiscord <o​il_boi> The world is made of blocks, reality doesn't exist in these here parts
15:04 rubenwardy 9.8 or 9.81, just not 10:)
15:04 MTDiscord <o​il_boi> how about 1.89?
15:04 rubenwardy if that's not in meters, then potentially yes
15:04 Krock pi * 3
15:04 MTDiscord <o​il_boi> It's in feet kilomeinches
15:04 MTDiscord <a​ppguru> -9.81000000000000000000000001 == -9.81 also holds in C++
15:05 MTDiscord <o​il_boi> That better be a double you're talkin bout here partner
15:05 rubenwardy also, 9.81 isn't even correct in a lot of places
15:05 rubenwardy "At different points on Earth surface, the free fall acceleration ranges from 9.764 m/s2 to 9.834 m/s"
15:05 MTDiscord <o​il_boi> Aren't you literally a scientist?
15:05 MTDiscord <a​ppguru> Who? Me?
15:05 MTDiscord <o​il_boi> No the other you
15:06 rubenwardy Me? I'm a computer scientist, so no
15:06 Krock I'm a doctor, not a scientist, Scotty!
15:06 MTDiscord <o​il_boi> It still counts!
15:06 MTDiscord <o​il_boi> A scientist has proven us both wrong, now we have to duel
15:06 rubenwardy If I didn't go into CS, I would have probably done physics
15:07 MTDiscord <o​il_boi> Ah he's a physicist! Now we're double wrong
15:07 MTDiscord <o​il_boi> Fook
15:07 MTDiscord <a​ppguru> Bleh
15:07 MTDiscord <a​ppguru> You're wronger tho
15:07 MTDiscord <o​il_boi> Is Minetest earth though?
15:08 MTDiscord <a​ppguru> Minetest is earth but not The Earth.
15:08 MTDiscord <o​il_boi> Wait, let's think about this right, the average height in  MT world is around 0-20 meters from sea level no?
15:08 MTDiscord <o​il_boi> let's say ten, now what is the gravitational effect of 32010 meters of mass the density of average stone in real life
15:08 MTDiscord <o​il_boi> Then we will have the answer
15:09 Krock Minetest is hillier than the world
15:09 Krock hence the world is flat
15:09 MTDiscord <o​il_boi> UNLESS you use Jeija's fookin Taurus world then good luck
15:09 MTDiscord <a​ppguru> Hmmm
15:11 MTDiscord <a​ppguru> We'd have much higher gravity than on Earth with 32km instead of 6km
15:12 MTDiscord <o​il_boi> Oh no
15:12 rubenwardy no no no
15:12 rubenwardy Earth has 6000km
15:12 rubenwardy not 6km
15:12 MTDiscord <o​il_boi> Someone should write a hardcore mode that simulates real gravity
15:12 Talkless joined #minetest
15:12 MTDiscord <o​il_boi> One second
15:13 rubenwardy fun fact: knowing the radius of the earth helped in the interview for my current job
15:13 MTDiscord <o​il_boi> Oh no
15:13 MTDiscord <o​il_boi> The y element of the acceleration vector is 0.05231999996
15:13 rubenwardy they wanted me to estimate stuff to do with launching satellites at different latitudes
15:13 MTDiscord <o​il_boi> That's less than the moon 1.62 m/s²
15:14 MTDiscord <o​il_boi> Good lord man, good luck with that (no seriously)
15:14 Krock Minetest be like Pluto
15:14 specing I've always wished for proper mountains in minetest
15:14 rubenwardy the moon's radius is 54x Minetest's "radius"
15:14 rubenwardy 1,737 vs 32
15:14 rubenwardy (km)
15:15 MTDiscord <o​il_boi> I assumed linear Bezier curve
15:15 dzho minetest has a radius?
15:15 Krock !c sqrt(62**2/math.pi)
15:15 MinetestBot NameError: name 'sqrt' is not defined
15:15 Krock !c (62**2/math.pi)**0.5
15:15 MinetestBot 34.97975417996089
15:15 Krock minetest's radius is that^
15:16 Krock from square to circle
15:16 Krock because all planets are flat /s
15:17 dzho yeah I wasn't going to go there but now it's out
15:17 dzho I was sort of thinking about how it might be interesting for it to have actual curvature so that eventually you could travel back to where you started
15:18 rubenwardy see Jeija's youtube video
15:18 rubenwardy he modified Minetest to make it a sphere world
15:18 rubenwardy *videos
15:18 * dzho scrolls up
15:18 rubenwardy https://www.youtube.com/watch?v=ztAg643gJBA
15:18 Krock you gotta scroll til 2017
15:18 rubenwardy https://www.youtube.com/watch?v=joFWr3JzBOI
15:19 dzho Krock: heh
15:19 dzho rubenwardy: thanks
15:19 Krock would still be possible to rebase these patches
15:20 Krock though redoing using copy&paste might be quite a bit faster
15:22 olliy joined #minetest
15:34 Extex joined #minetest
15:35 dievri Is is possible to access entity self name from on_punch function? https://github.com/dievri/minetest/blob/master/practicemod/init.lua#L26
15:35 dievri getting nil value
15:36 sfan5 that should be self.object:get_nametag_attributes()
15:36 Lone_Wolf joined #minetest
15:38 dievri sfan5, thank you, yes, it's ok now
15:39 Lone_Wolf joined #minetest
16:01 macc24 joined #minetest
16:14 dabbill_ joined #minetest
16:28 SwissalpS joined #minetest
16:42 dabbill joined #minetest
16:44 newbie joined #minetest
16:46 Verticen joined #minetest
17:09 dievri is is possible to add custom property to an entity after it is added (minetest.add_entity ...)?
17:10 Krock yes
17:10 Krock self.my_value = "whatever"
17:12 oil_boi You can even change it's scale and rotation, along with it's mesh
17:14 dievri attempt to index local 'entity' (a userdata value)
17:16 Krock obj:get_luaentity
17:16 Krock ()
17:16 Krock that's equal to "self" passed to callbacks
17:16 Krock and obj == self.object:get_luaentity().object
17:16 Krock endless
17:17 oil_boi You can even save an array of objects and do things with them!! Woooo
17:19 dievri cool, once again it is working) thanks
17:20 Krock !next
17:20 MinetestBot Another satisfied customer. Next!
17:44 tpe joined #minetest
17:45 bingfengfsx joined #minetest
18:19 bj_990 joined #minetest
18:29 homthack joined #minetest
18:30 ssieb joined #minetest
18:46 twoelk left #minetest
19:22 Lone_Wolf joined #minetest
19:34 Lone_Wolf joined #minetest
20:24 olliy joined #minetest
20:43 est31 joined #minetest
21:22 specing What is the easiest way to load mod code outside minetest?
21:22 specing I'd like to plug my minetest.register_craft so I can do some analysis on the recipe interactions
21:31 MTDiscord <W​arr1024> probably you'd have to mock up the API
21:31 MTDiscord <W​arr1024> that might not be too bad, though, since you mostly just need the register calls and can stub out most of the world-modifying bits, e.g. set_node.
21:45 specing right now I use a pcre to grep out all calls of register_craft and then I mock up that function
21:46 specing but its not that simple as there are enough recipes using variable names and such to makke this a pointless endeavour
21:46 specing perhaps I should recompile minetest with my own code added to that function?
22:06 milkt_ joined #minetest
22:21 MTDiscord <W​arr1024> basically what I'm suggesting is that you load some lua code into a bare lua interpreter to mock up enough of the MT API that the register calls work and don't crash, and then run the mod code under that.  You don't have to actually start up the game loop, just get the register calls working.
22:21 MTDiscord <W​arr1024> That will work for like 99% of mods out there, probably
22:21 MTDiscord <W​arr1024> it'll catch variables, unusual syntax, etc.
22:22 MTDiscord <W​arr1024> it probably WON'T work with things like mods that read other mods' recipes and then modify theirs based on that, but I'd hope that'd be exceedingly rare and you could just handle special cases as special if that ever does happen.
22:33 cyberbanjo joined #minetest
22:48 testman8 joined #minetest
22:49 cyberbanjo left #minetest
23:08 norkle joined #minetest
23:33 clavi joined #minetest
23:34 Taoki joined #minetest

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