Luanti logo

IRC log for #minetest, 2020-04-02

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

All times shown according to UTC.

Enable nick filtering
Time Nick Message
00:25 oil_boi_ joined #minetest
00:25 MinetestBot oil_boi_: Apr-01 21:38 UTC <texmex> iron ore fence?! :D
00:26 oil_boi_ texmex: Yes! Everything is a fence now :D
00:27 oil_boi_ MinetestBot: help
00:27 swift110 joined #minetest
00:27 oil_boi_ @MinetestBot Hi
00:27 oil_boi_ Hmm I dunno how to use it :P
00:40 oil_boi_ Also is this true? https://forum.minetest.net/viewtopic.php?p=370403#p370403
17 more elements. Show/hide.
03:45 orbea when dying and using the ethereal mod with minetest-5.1.1 it causes the player to respawn in the same exact coordinates that they died. I reproduced this with only the default game and no other mods, any ideas? https://notabug.org/TenPlus1/ethereal
03:53 orbea i made an issue explaining it more https://notabug.org/TenPlus1/ethereal/issues/9
4 more elements. Show/hide.
04:35 * orbea grumbles at the error that vanishes without a trace just when I think I have a fix
04:36 orbea (not the same one as that issue I made)
3 more elements. Show/hide.
05:08 oil_boi_ orbea: Sometimes bugs are sentient
05:08 oil_boi_ "Ghost bug!" ?
05:10 cheapie Looks like in about three hours now (if I remember the time right), the update for mesecons_carts that adds digilines-controlled rails should go live on the server that I play on most... should be fun to see what all can be built with that.
05:10 oil_boi_ I say you keep running /kill until the mod breaks :D
05:11 cheapie Unfortunately I wasn't able to get said rails to switch cart directions under digilines control, but they are able to start/stop/accelerate/decelerate them as well as detect their speed and any players riding in them.
05:18 oil_boi_ Very fancy, cheapie
05:18 cheapie If you think that's fancy then clearly you've never been on that server :P
05:19 oil_boi_ I have no idea what the server is called
05:19 cheapie VanessaE's Dreambuilder creative server, daconcepts.com:30000
05:20 cheapie There's a survival one with more or less the same mods on port 30001.
2 more elements. Show/hide.
05:39 oil_boi_ that was nice
05:40 * cheapie nods
05:40 erlehmann_ joined #minetest
05:40 cheapie There are probably better servers for building some things, but I imagine I'd probably be correct in saying that we have the most technology there.
05:40 * oil_boi_ wonders how to make a server
5 more elements. Show/hide.
07:39 absurb irc genocide!
07:39 galaxie joined #minetest
07:40 absurb freenode aught to be held responsible for these war crimes!
07:44 Unit193 Please note that 'Quit:' means it's a quit message.  Aka, Matrix quit everyone off the network.
07:44 Ingar it's a Holy Cleansing of matrix  users
2 more elements. Show/hide.
08:03 oil_boi_ Holy shit freenode is getting ddosed
28 more elements. Show/hide.
09:01 oil_boi_ What makes a mob good?
09:01 oil_boi_ Like, quality wise
4 more elements. Show/hide.
09:49 rubenwardy oil_boi_: interactions are believable and responsive, not an eyesore, not an ear sore
09:49 rubenwardy Mob redo is not a good mobs mod, the interactions are terrible
09:50 rubenwardy Mobkit is promising - the interactions are nice, but the code quality isn't
09:55 oil_boi_ hmm very interesting rubenwardy
09:55 oil_boi_ I also noticed the dtime varies based on how the player's moving on the level I'm utilizing it
09:56 oil_boi_ maybe I'm missing a way to set the mob's yaw smoothly without resorting to automatic_face_movement_dir
09:57 rubenwardy Entity yaw is smoothed in 5.0 and above
09:58 oil_boi_ rubenwardy: from what I'm seeing with set_yaw it is a literal instantanious action, aka, jittery when used to turn an entity
09:58 erlehmann joined #minetest
09:58 rubenwardy It's smoothed on the client though
09:58 rubenwardy So the client will rotate smoothly to the yaw
09:58 oil_boi_ Maybe it's broken from the github version I'm using?
09:59 rubenwardy If you're calling set yaw a lot, then you won't benefit from the smoothing so much
09:59 oil_boi_ Will automatic_face_movement_max_rotation_per_sec  smooth the yaw beyond what I can do server side?
10:00 oil_boi_ Also rubenwardy either way, if I called it when the mob changed direction state or if I'm utilizing it as a literal translation to smoothly turn the entity it does not seem to make a difference
10:00 oil_boi_ Very frustrating :<
3 more elements. Show/hide.
10:13 oil_boi_ Yes it's very strange, that dtime seems to sleep when you stop moving then goes full speed when you're moving, I guess no one though anyone would utilize dedicated server step at 1e-05
5 more elements. Show/hide.
10:46 oil_boi_ But that's alright, time to work around it :D
22 more elements. Show/hide.
13:26 oil_boi_ What is vector.angle used for?
3 more elements. Show/hide.
15:09 Quiark ok I fixed my REPL plugin
15:09 Quiark and here's a little demo too https://asciinema.org/a/315964
21 more elements. Show/hide.
17:25 MinetestBot [git] ryvnf -> minetest/minetest: Fix texture distortion for flowing liquids (#9561) 3d6b55d https://git.io/JvFWW (2020-04-02T17:24:35Z)
14 more elements. Show/hide.
19:07 adfeno Hi there, how do I make an edible item store its original recipient/vessel/container and when eaten replace that edible item with the container?
19:10 behalebabo adfeno: https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L4998 you can use `on_use = minetest.item_eat(value, "original_vessel")`
19:11 adfeno What if for example, I'm using an item group as original vessel?
19:11 adfeno In the recipe, I mean
19:11 behalebabo then you'll probably need to use minetest.register_on_craft to save which vessel you're using in the output metadata, then have a custom on_use function that restores it
19:12 behalebabo *in the output itemstack metadata
19:12 adfeno Hm I see.
19:14 troller joined #minetest
19:15 adfeno I asked because I know a server which uses xdecor, and this mod adds xdecor:bowl while the server already has ethereal:bowl, with same recipe for both. xdecor:cauldron however explicitly expects xdecor:bowl to give player a soup, which when eaten gives xdecor:bowl.
19:16 adfeno That outcome I'm trying to avoid, or at least have xdecor:bowl_soup a way to store the original member of group:food_bowl which was used to take soup.
19:17 behalebabo yeah, that's a bit tricky; it might be better to merge ethereal:bowl into xdecor:bowl through some mod modification
19:20 adfeno Hm, I think I know a way.
6 more elements. Show/hide.
19:45 adfeno How do I convert nested Lua tables to stirng?
19:46 rubenwardy `minetest.serialise(tab, true)`   or   `minetest.write_json(tab)`
19:46 rubenwardy former supports recursive types
19:46 rubenwardy latter is more standard
19:49 sfan5 serialize*
19:50 rubenwardy bloody americans
19:51 rubenwardy I'm currently implementing a class called "ChunkSerialiser"
19:51 rubenwardy ok, that's a lie, I'm currently shitposting on reddit
19:51 rubenwardy but I was writing a class called that
19:52 adfeno rubenwardy: As a non-native English speaker, I always confuse "former" and "later", so by "former" you mean "minetest.write_json(tab)" ?
19:52 Krock former = 1st, latter = 2nd
19:52 rubenwardy former is before  =   minetest.serialize(tab)
19:52 rubenwardy latter is the later  = minetest.write_json(tab)
19:52 rubenwardy former,  beFore
19:52 rubenwardy latter, later
19:53 rubenwardy well, of those the latter is the more useful and correct way to remember
19:53 Vargos joined #minetest
19:55 adfeno Oh I see :D
3 more elements. Show/hide.
20:17 adfeno How do I make a new ItemStack but not add it to inventory, or how to refer to that recently added ItemStack? I want to add some metadata to the new ItemStack.
20:18 rubenwardy `local stack = ItemStack("default:dirt")`
12 more elements. Show/hide.
21:53 adfeno If ItemStack:set_metadata() is deprecated, how should I set metadata ?
21:57 sfan5 use the metadata object returned by get_meta()
21:57 rubenwardy ~book storage
21:57 rubenwardy !book storage
21:57 MinetestBot rubenwardy: Storage and Metadata - https://rubenwardy.com/minetest_modding_book//en/map/storage.html
21:58 rubenwardy specifically the meta data section
21:59 GreenXenith oh, IRC MinetestBot has that command now
21:59 GreenXenith :]
21:59 sfan5 it does since 2 years
21:59 rubenwardy it had it before MinetestBot on Discord existed, GreenXenith
21:59 GreenXenith damn ok
21:59 rubenwardy citation needed
22:00 GreenXenith let's fact check
22:00 GreenXenith darn
22:00 GreenXenith 6 months before
22:01 rubenwardy actually, it definitely had it first because I made the API for the IRC MinetestBot
22:01 rubenwardy the feed being https://rubenwardy.com/minetest_modding_book/sitemap.json
22:01 Ex joined #minetest
22:01 rubenwardy *API
22:02 adfeno hm, strange, for some reason the recipe I'm making works in regards to replacing the vessel/empty container with liquid/soup, but in the same nesting fails to set metadata just for every itemstring in the same group but one.
22:02 rubenwardy I need to fix that double slash at some point
22:02 rubenwardy adfeno: are you setting the stack back?
22:02 GreenXenith thankfully you gave the API a lot more functionality than IRC MB ever used
22:02 rubenwardy what callback are you in?
22:03 rubenwardy GreenXenith: the IRC bot uses all of it for searching, but doesn't display all of it
22:03 Extex joined #minetest
22:03 adfeno I'm trying to improve xdecor:cauldron, I'll give a paste link with my improvements so far
22:04 GreenXenith Hm, maybe I oughta take notes from MinetestBot IRC commands
22:12 adfeno rubenwardy: http://adfeno.mooo.com:8080/P%c3%bablico/Software/xdecor%202020-04-02.zip
22:12 adfeno The most significant change is in cooking.lua
22:12 adfeno Other files weren't touched
22:13 adfeno I meant /src/cooking.lua
22:13 adfeno I expect to take a soup from xdecor:cauldron
22:13 rubenwardy can't see any immediately obvious issues - have you tried using print statements to make sure things are called?
22:14 adfeno And that soup to carry a metadata called "container" containing the ItemString (string) of the original container.
22:16 fluxflux joined #minetest
22:21 adfeno rubenwardy: I did try sending some stuff to chat, particularly so far I printed the container (line 246), but for some reason, every soup that was not taken with xdecor:bowl returns nothing (while those taken with xdecor:bowl return this itemstring)
22:35 adfeno Hm, I think I found the bug
22:40 adfeno OK. That was solved, now the soup has the metadata related to  the container, regardless of the container used
22:40 Extex joined #minetest
22:43 adfeno Now I wonder, how to make the custom on_use function for minetest.register_craftitem("xdecor:bowl_soup", .. , work in such a way that the container is returned to the player inventory.
22:50 Extex joined #minetest
22:53 adfeno What does on_use should return?
22:56 Extex itemstack
22:56 adfeno Hm, OK
22:59 adfeno Strange, the on_use for the custom xdecor:bowl_soup I made doesn't seem to work, even if I put "return " before minetest.item_eat .
23:01 Extex Return has to be at the very end of the function
23:02 behalebabo adfeno: look up minetest.do_item_eat
23:02 behalebabo minetest.item_eat is a function that returns a function to be used for on_use
23:02 behalebabo https://github.com/minetest/minetest/blob/478e7532985320c5ddacc0280f77b67956715a65/builtin/game/item.lua#L503
23:15 adfeno Ah-ha! It worked :D
23:15 adfeno Thank you for everything :D

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