Minetest logo

IRC log for #minetest, 2022-08-15

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

All times shown according to UTC.

Time Nick Message
00:02 sparky4 joined #minetest
00:04 vampirefrog https://git.vampi.tech/vampi/minetest-bridge-socket/src/branch/master/init.lua
00:04 vampirefrog sparky4 get out of here
00:13 vampirefrog needs cleanup but I'll do that later
00:32 Pope_Rigby How do I password protect a server without access to the GUI?
00:32 asdflkj_sh joined #minetest
00:52 Soni joined #minetest
01:13 smk joined #minetest
01:36 stormchaser3000 joined #minetest
02:12 sparky4 joined #minetest
02:59 fluxionary_ Pope_Rigby, if you want to create a publicly accessible server where new accounts need to know a password, set `default_password` in minetest.conf. see https://github.com/minetest/minetest/blob/8bf1609cccba24e2516ecb98dbf694b91fe697bf/builtin/settingtypes.txt#L650-L651
02:59 Pope_Rigby Thanks!
02:59 fluxionary_ :)
03:12 sys4 joined #minetest
04:00 MTDiscord joined #minetest
04:40 specing joined #minetest
04:54 sys4 joined #minetest
05:02 Ingar joined #minetest
05:02 bigfoot547 joined #minetest
05:03 m42uko joined #minetest
05:03 meskarune joined #minetest
05:03 degradka[m] joined #minetest
05:04 hedae[m] joined #minetest
05:04 arielaw[m] joined #minetest
05:10 calcul0n_ joined #minetest
05:17 celeron55 joined #minetest
05:17 ShadowNinja joined #minetest
05:18 Oksanaa joined #minetest
05:18 varadwillsome[m] joined #minetest
05:19 schwarzwald[m] joined #minetest
05:25 Arya[verncc][m] joined #minetest
05:40 sparky4 joined #minetest
05:40 Noisytoot joined #minetest
05:41 behalebabo joined #minetest
06:28 definitelya joined #minetest
07:21 Talkless joined #minetest
07:22 craigevil[m] left #minetest
07:43 TomTom joined #minetest
07:45 proller joined #minetest
07:54 vampirefrog joined #minetest
07:58 justache joined #minetest
08:03 orwell96 joined #minetest
08:18 orwell96 joined #minetest
08:40 vampirefrog joined #minetest
08:49 MinetestBot [git] farribeiro -> minetest/minetest: Remove resolution of appstream screenshots (#12652) bce1078 https://github.com/minetest/minetest/commit/bce1078ced2c3aef09c5511abb61ab961912ab23 (2022-08-15T08:47:09Z)
08:49 MinetestBot [git] sfan5 -> minetest/minetest: Cut back on Gitlab-ci & misc pipeline updates cae7ec1 https://github.com/minetest/minetest/commit/cae7ec1eb4c5fb56a9f4666a16d5937ac1e4c527 (2022-08-15T08:47:47Z)
09:37 vampirefrog how do I get info about what killed a player in register_on_dieplayer
09:45 mrkubax10 joined #minetest
09:47 appguru joined #minetest
09:51 sfan5 vampirefrog: there's a `reason` table, second argument
09:51 vampirefrog yes but when, let's say, a zombie kills me, how can I tell it was a zombie
09:52 justache joined #minetest
09:53 MTDiscord <luatic> reason.object:get_luaentity().name == "zombiemod:zombie"
09:53 vampirefrog thx
09:53 MTDiscord <luatic> you'll need a couple nil checks for (1) reason.object (2) reason.object:get_luaentity()
09:53 vampirefrog okay
09:56 vampirefrog is there a way to just spawn a zombie?
09:57 vampirefrog in game, I mean, so it can kill me
10:18 definitelya vampirefrog: The command  /help  is your friend.
10:18 vampirefrog I've been reading /help for half an hour now
10:20 definitelya The command is  /spawnentity  , but read its parameters.
10:20 justache joined #minetest
10:21 Fixer joined #minetest
10:24 vampirefrog okay what's the entity type for a zombie then?
10:25 sfan5 you're supposed to know that already
10:25 vampirefrog no u
10:26 vampirefrog I can't figure out where they're listed
10:28 justache joined #minetest
10:29 justache joined #minetest
10:31 definitelya \\
10:31 definitelya -<HH3D8B<
10:31 definitelya //
10:31 definitelya you
10:37 justache joined #minetest
10:43 justache joined #minetest
10:43 vampirefrog in fly mode, the game puts me at ground level every second or so, is there a way to disable that?
10:45 MTDiscord <ROllerozxa> which game?
10:48 definitelya vampirefrog: When moving?
10:48 definitelya Maybe you have automatic jumping enabled in the controls settings
10:48 vampirefrog mineclone5 but let me test with the minetest game too
10:50 vampirefrog okay minetest game doesn't do that
10:50 vampirefrog definitelya, no, when in fly mode
10:51 MTDiscord <ROllerozxa> mineclone5 does not allow flying in survival mode for some god forsaken reason
10:51 definitelya I guess I didn't understand what you meant, sorry.
10:51 MTDiscord <ROllerozxa> you'll need to switch to creative
10:54 vampirefrog okay, thanks
10:55 vampirefrog is there a way to get the file descriptor from luasocket so I can use it as an index in a table?
11:00 justache joined #minetest
11:03 justache joined #minetest
11:08 Talkless joined #minetest
11:11 vampirefrog do background color escape codes not work anymore?
11:13 vampirefrog @#000)@#fff)vampirefrog@#ffffffff)@#00000000)
11:13 ShadowBot vampirefrog: Error: That URL raised <HTTP Error 404: Not Found>
11:13 ShadowBot vampirefrog: Error: That URL raised <HTTP Error 404: Not Found>
11:14 vampirefrog is this what it's supposed to look like? black text on white background
11:14 rubenwardy what's the Lua code?
11:15 sfan5 we have background color escapes?
11:15 rubenwardy yeah https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L3315
11:15 rubenwardy I suspect it's only supported in a few places
11:15 appguru joined #minetest
11:15 rubenwardy which is one of the reasons I asked for the code
11:16 vampirefrog "Only defined for item descriptions and tooltips."
11:16 vampirefrog so that's why I can't use it for the chat?
11:17 rubenwardy checks out
11:17 vampirefrog okay thanks
11:17 vampirefrog I'm bridging to and from other chat platforms, one of them being IRC
11:17 vampirefrog so I figured I should support background colors
11:17 vampirefrog oh well
11:17 MTDiscord <luatic> Pretty sure the only place where they work are item tooltips...
11:17 vampirefrog there's no bold either, right?
11:18 MTDiscord <luatic> Not in chat
11:18 MTDiscord <luatic> only colors
11:18 vampirefrog okay, thanks
11:18 MTDiscord <luatic> I implemented bridging with color translation :)
11:18 vampirefrog nice, me too
11:19 vampirefrog I have a whole system, supports a bunch of platforms including stream chat
11:20 Alias joined #minetest
11:21 justache joined #minetest
11:25 vampirefrog to what kind of service are you bridging, luatic
11:28 vampirefrog https://git.vampi.tech/vampi/minetest-bridge-socket/src/branch/master/init.lua
11:28 vampirefrog this is my code
11:30 vampirefrog https://i.imgur.com/lEDg5vo.png
11:33 MTDiscord <luatic> vampirefrog: Discord & IRC
11:33 MTDiscord <luatic> https://github.com/appgurueu/adv_chat
11:33 MTDiscord <luatic> I'll admit I would not write the code the same way now though
11:34 vampirefrog nice, how do you handle sockets?
11:35 vampirefrog I used register_globalstep and use a zero timeout select() call
11:35 MTDiscord <luatic> which sockets?
11:35 MTDiscord <luatic> I use Java processes for the Discord & IRC bot
11:35 vampirefrog well, do you have some sort of main loop which waits for socket data and events?
11:35 vampirefrog Java??
11:36 MTDiscord <luatic> The IPC uses LuaSocket usually but may fall back to files
11:36 vampirefrog wat da
11:36 MTDiscord <luatic> vampirefrog: Yes, Java. This is another decision I partially regret. And there's even Gradle in there.
11:37 vampirefrog okay mine is written with node.js
11:37 MTDiscord <luatic> Better than Java frankly
11:37 MTDiscord <luatic> nowadays I'd try to keep it all in Lua
11:38 vampirefrog https://i.imgur.com/WtMVYum.png
11:38 vampirefrog did you make four converters?
11:39 vampirefrog I used an internal format for chat, a list of spans, and each span can be bold, italic, underline, color, background color
11:39 sparky4 joined #minetest
11:43 MTDiscord <luatic> Yes, I wrote four converters. Using an abstract representation would have been smarter.
11:44 vampirefrog hang on I have a markdown to spans converter
11:45 vampirefrog http://paste.debian.net/1250484/
11:46 vampirefrog it's JS
11:46 vampirefrog if it's the same markdown used by matrix and odysee, it should work for discord too
11:47 vampirefrog maybe I should add discord support to my thing lol
11:51 est31 joined #minetest
11:53 MTDiscord <luatic> Don't worry, I have six MD to AST converters in JS lying around ;)
12:09 sparky4 joined #minetest
12:15 justache joined #minetest
12:19 pumpkkin[m]1 minetest people, share some stuff you've been workin on
12:26 x_ joined #minetest
12:32 proller joined #minetest
13:02 Swat1 joined #minetest
13:06 Rafi59 joined #minetest
13:23 TomTom joined #minetest
13:34 grouinos joined #minetest
13:39 vampirefrog https://i.imgur.com/tJ78PAm.png
13:42 Swat1 beautiful
13:44 vampirefrog https://i.imgur.com/leUO2xt.png
13:45 definitelya joined #minetest
13:47 MTDiscord <Bastrabun> When I try to compile MT with prometheus enabled, I do -DENABLE_PROMETHEUS=ON , but cmake says "Prometheus client disabled." is there some dependency I'm missing?
13:53 MTDiscord <Bastrabun> For future reference: Ofc dumb Alias found the solution a minute after he asked. apt-get install prometheus-cpp-dev
13:53 vampirefrog so the prometheus code has a http server?
13:55 vampirefrog would be nice if the engine implemented both server and client http code, including websockets, that would be very useful indeed
14:01 lemonzest joined #minetest
14:11 vampirefrog is there a way to get the full death string in a mod, so I don't have to compose it myself?
14:11 vampirefrog like instead of {["node"] = "mcl_fire:fire", ["from"] = "engine", ["type"] = "node_damage"}
14:12 vampirefrog it would just be a string "burned to a crisp" or "floor was lava" or whatever
14:12 MTDiscord <luatic> No
14:12 MTDiscord <luatic> mods exist that generate these messages though
14:36 Thelie joined #minetest
14:38 Flabb joined #minetest
14:46 vampirefrog joined #minetest
14:50 justache joined #minetest
14:50 sfan5 there are no death strings by default so if this is for a chat bridge mod you shouldn't be involving yourself with that
14:54 vampirefrog I guess I just wanted to get the minetest death strings
14:54 vampirefrog the mineclone5 death strings, I mean
14:55 fizi joined #minetest
14:56 sfan5 you probably have to wrap minetest.chat_send_all for that
14:58 Fixer joined #minetest
15:00 MTDiscord <Bastrabun> Look at https://content.minetest.net/packages/cronvel/respawn/ and their death mesages. They read "Alias was killed by stone monster near Spawn" or "Alias should not play with lava source, near Spawn"
16:37 specing_ joined #minetest
16:49 sys4 joined #minetest
17:13 AFCM joined #minetest
17:45 mrkubax10 joined #minetest
17:48 appguru joined #minetest
18:06 Guest68 joined #minetest
18:11 wsor40351 joined #minetest
18:12 Taoki joined #minetest
18:41 sys4 joined #minetest
18:49 vampirefrog joined #minetest
19:05 Verticen joined #minetest
19:43 YuGiOhJCJ joined #minetest
20:05 Ofnirarc[m] joined #minetest
20:13 diceLibrarian joined #minetest
20:17 wallabra joined #minetest
20:19 MinetestBot [git] rubenwardy -> minetest/minetest: Fix crash when trying to overwrite a package 0090446 https://github.com/minetest/minetest/commit/0090446ccfc9a2d29f2d3b172415c757700fe706 (2022-08-15T20:19:24Z)
20:19 MinetestBot [git] rubenwardy -> minetest/minetest: Refactor pkgmgr.install_dir to simplify logic db612c1 https://github.com/minetest/minetest/commit/db612c10ee5405c42ebf7a0f74d0decfbf507de3 (2022-08-15T20:19:24Z)
20:19 MinetestBot [git] rubenwardy -> minetest/minetest: Add unit tests for pkgmgr.install_dir adc89f7 https://github.com/minetest/minetest/commit/adc89f7977ae4b1e86cb413fb52406865150b064 (2022-08-15T20:19:24Z)
20:22 MinetestBot [git] ElliottLester -> minetest/minetest: Apply DPI Scaling to GUIModalMenu (#12693) 7c5e3ca https://github.com/minetest/minetest/commit/7c5e3cac6a36a41baea5e308cad7e74bbc6e1cbe (2022-08-15T20:19:47Z)
20:32 kamdard joined #minetest
20:41 wallabra joined #minetest
20:42 proller joined #minetest
21:47 diceLibrarian joined #minetest
22:13 cranezhou joined #minetest
22:16 sagax joined #minetest
22:18 est31 joined #minetest
22:33 panwolfram joined #minetest
22:39 mazes_81 joined #minetest
22:42 mazes_81 hi why repeat_place_time is now thresholded to 0.25 ? I feeled there was something weird when I was building
22:44 mazes_81 I know some people abused repeat_place_time and set it to incredible values
22:45 mazes_81 from my side I was used to 0.125 (which is nice when I use lavastuff boots)
22:47 mazes_81 shouldn't this repeat_place_time should be thresholded ?
22:47 mazes_81 s/?/server side ?/
23:03 AliasAlreadyTake joined #minetest
23:13 Lesha_Vel joined #minetest
23:38 natewrench joined #minetest
23:40 grouinos joined #minetest

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