Luanti logo

IRC log for #minetest, 2022-08-15

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

All times shown according to UTC.

Enable nick filtering
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?
5 more elements. Show/hide.
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_ :)
31 more elements. Show/hide.
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
2 more elements. Show/hide.
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.
2 more elements. Show/hide.
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
2 more elements. Show/hide.
10:31 definitelya \\
10:31 definitelya -<HH3D8B<
10:31 definitelya //
10:31 definitelya you
2 more elements. Show/hide.
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?
3 more elements. Show/hide.
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
2 more elements. Show/hide.
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 ;)
2 more elements. Show/hide.
12:19 pumpkkin[m]1 minetest people, share some stuff you've been workin on
6 more elements. Show/hide.
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
4 more elements. Show/hide.
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"
15 more elements. Show/hide.
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)
9 more elements. Show/hide.
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 ?/
4 more elements. Show/hide.

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