Minetest logo

IRC log for #minetest, 2020-11-19

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

All times shown according to UTC.

Time Nick Message
01:02 bobbertson for a moment i didn't realize i was in #minetest and i was confused why you were asking for diet advice
01:02 TomTom joined #minetest
01:07 Splyncryth Hello everyone, the minetest fishing mod seems to be crashing on this line   table.insert(minetest.registered_items["default:dirt"].drop.items, { rarity = 30, items = {"fishing:worm"} })
01:07 Splyncryth Unfortunately I do not know enough about lua or minetest lua.
01:08 Splyncryth if I comment this line out everything works, but I lose the ability to get worms.
01:08 Splyncryth Maybe its an old syntax?
01:09 Verticen joined #minetest
01:14 Splyncryth 2020-11-18 18:13:26: ERROR[Main]: ModError: Failed to load and run script from /usr/share/games/minetest/mods/fishing/init.lua:
01:14 Splyncryth 2020-11-18 18:13:26: ERROR[Main]: /usr/share/games/minetest/mods/fishing/baits.lua:8: attempt to index field 'drop' (a nil value)
01:14 Splyncryth 2020-11-18 18:13:26: ERROR[Main]: stack traceback:
01:14 Splyncryth 2020-11-18 18:13:26: ERROR[Main]: /usr/share/games/minetest/mods/fishing/baits.lua:8: in main chunk
01:14 Splyncryth 2020-11-18 18:13:26: ERROR[Main]: [C]: in function 'dofile'
01:14 Splyncryth 2020-11-18 18:13:26: ERROR[Main]: /../fishing/init.lua:3: in main chunk
01:14 Splyncryth 2020-11-18 18:13:26: ERROR[Main]: Check debug.txt for details.
01:14 Splyncryth Thats the error I get when I uncomment
01:26 MadScientist joined #minetest
01:36 bobbertson well
01:36 bobbertson that means minetest.registered_items["default:dirt"].drop is nothing
01:36 bobbertson idk how to help beyond that but ya
01:37 rubenwardy get_node_drops
01:37 oobleck joined #minetest
01:37 rubenwardy might be useful
01:38 oobleck Ah, a group where people actually talk. How relieving
01:38 rubenwardy *crickets*
01:38 rubenwardy *tumbleweed rolls past*
01:38 bobbertson now we are going to not talk because you said something about it
01:38 oobleck Well you've already far surpassed any other room, so
01:38 rubenwardy I like this video   https://www.youtube.com/watch?v=hsWr_JWTZss
01:38 rubenwardy !title
01:38 MinetestBot No title found.
01:38 rubenwardy thanks MTB
01:41 Splyncryth bobbertson, would wrapping it in a if/then statement help it not crash?
01:41 oobleck left #minetest
01:50 bobbertson you could do if minetest.registered_items["default:dirt"].drop then blah, ya, but it wont execute
01:51 * Splyncryth shrugs
01:51 bobbertson i only just started working with lua so idk if im right about that but pretty sure thats how it is, thats how it works in javascript
01:51 Splyncryth yeah, its been ages since ive programmed
01:51 Splyncryth i was a big python and java person
01:52 bobbertson i imagine something with the .drop part changed? is it an old mod?
01:52 bobbertson you'll have to figure out how to get that same data with some other field or something
01:53 Splyncryth i took it from another minetest game pack
01:54 bobbertson i think minetest.get_node_drops("defualt:dirt", toolname) is what yo want like rubenwardy was saying
01:54 bobbertson if you go into minetest-5.3.0-win64 (or whatever your thing is) then docs, then open lua_api.txt that has all the documentation for the fields and functions Splyncryth
01:55 Splyncryth onice
01:55 bobbertson i think minetest.get_node_drops is what you need
01:55 bobbertson toolname can be nil apparently
02:23 Taoki joined #minetest
02:36 Hawk777 joined #minetest
02:43 Conradish006 joined #minetest
02:49 Verticen joined #minetest
04:14 YuGiOhJCJ joined #minetest
04:55 milkt_ joined #minetest
05:06 asdew joined #minetest
05:07 olliy joined #minetest
05:48 Flabb joined #minetest
06:34 m42uko joined #minetest
07:04 est31 joined #minetest
07:11 Peppy joined #minetest
07:35 olliy joined #minetest
07:41 NetherEran joined #minetest
07:55 calcul0n joined #minetest
07:59 olliy joined #minetest
08:00 ShadowNinja joined #minetest
08:08 submariner joined #minetest
08:31 est31 joined #minetest
08:34 bobbertson_ joined #minetest
08:40 proller joined #minetest
08:59 olliy joined #minetest
09:03 FeXoR joined #minetest
09:24 NetherEran joined #minetest
10:07 submariner joined #minetest
10:07 proller joined #minetest
10:17 olliy joined #minetest
11:03 est31 joined #minetest
11:18 Jhalman joined #minetest
11:26 submariner joined #minetest
11:36 jluc joined #minetest
11:37 Thomas-S joined #minetest
11:37 Thomas-S joined #minetest
12:01 seeker_ joined #minetest
12:06 jluc joined #minetest
12:16 drafran joined #minetest
12:18 YuGiOhJCJ joined #minetest
12:20 Thomas-S joined #minetest
12:20 Thomas-S joined #minetest
12:23 perrier joined #minetest
12:25 Fixer joined #minetest
12:47 Jhalman joined #minetest
13:09 Fixer joined #minetest
13:16 Fixer_ joined #minetest
13:17 fluxflux joined #minetest
13:42 erlehmann joined #minetest
14:25 perrier joined #minetest
14:28 sagax joined #minetest
14:31 Elouin joined #minetest
14:39 kamdard joined #minetest
14:51 tango_ am I missing the copper because I'm colorblind or there's really 2x the tin ore blocks than copper ore blocks?
14:52 scr267_ joined #minetest
14:55 Elouin joined #minetest
15:51 lisac joined #minetest
15:54 TC01 joined #minetest
16:02 absurb joined #minetest
16:12 bobbertson_ hey, can i issue client side commands from a server mod?
16:12 bobbertson_ i want to get client to download music files from server because dynamic_add_media i'm still getting a lag issue
16:13 bobbertson_ trying to look into client side mods but i can't find much detail about them
16:18 MadScientist joined #minetest
16:19 specing bobbertson_: there's a preview CSM in clientmods/ in repo
16:20 specing I think you could send the list of urls via modchannels, but idk if you are allowed to download content from CSMs
16:20 specing they are quite restricted
16:21 bobbertson_ ya that's fair
16:21 bobbertson_ ideally dynamic_add_media would use the remote_media server or there would be another function that does similar with remote_media server
16:22 bobbertson_ trying to figure out a work around
16:23 bobbertson_ remote_media is really only used when loading into a server, ya?
16:24 specing no idea there
16:24 specing I have a lot of experience writing CSMs, but from the client-side automation perspective
16:25 bobbertson_ ya my youtube_queue thing is kinda obscure/not many people would care to have it i think
16:25 FreeFull joined #minetest
16:25 bobbertson_ at least there is dynamic_add_media at all
16:27 Guest76735 joined #minetest
16:28 Guest76735 hi
16:28 basxto joined #minetest
16:32 Verticen joined #minetest
16:36 bobbertson_ hey
16:47 Guest76735 Is it a good idea to animate rigged models through lua code instead of having the animations made in blender?
16:48 basxto joined #minetest
16:58 sfan5 that'd be laggy and have high overhead
17:00 NetherEran joined #minetest
17:14 mrtomato joined #minetest
17:18 homthack joined #minetest
17:19 mrtomato joined #minetest
17:27 Talkless joined #minetest
17:30 m42uko_w520 joined #minetest
17:36 Peppy joined #minetest
17:37 Peppy joined #minetest
18:22 Flabb joined #minetest
18:23 I_am_6r1d joined #minetest
18:31 Andrey joined #minetest
18:34 Andrey can anybody explain me, does that passed rotation table in set_rotation() set RELATIVELY to the local axises of the object or to the world coordinate axises?
18:39 proller joined #minetest
18:40 Andrey does the rotation of an object happen relatively to its local or global axises? I just don`t understand
18:41 Andrey also lua_api.txt doesn`t say anything about it
18:51 NetherEran set_rotation is relative to the global axises
18:53 Andrey ok, thanks for clarification
18:54 NetherEran but the rotation is around the entity's positon point if that wasn't clear
18:55 Andrey I think it would be ok to have also a method that would set relatively to local axises, more comfortable in some cases IMO
18:55 Andrey yes, I know about it
18:56 NetherEran there are some functions in the global vector table that help with rotations
19:02 Andrey I know, I just say that method of rotation would be more comfortable because you could set rotations around certain axises, current set_rotation() requires to set around all three
19:03 Andrey by such way "resetting" again those of them that are not needed to be changed
19:06 NetherEran ye
19:40 Andrey is it nohow possible to set rotations in some own order, unlike XYZ default order?
19:40 Andrey just I need to use YXZ order
19:50 GreenXenith joined #minetest
19:54 MTDiscord joined #minetest
20:17 search_social joined #minetest
20:27 fluxflux joined #minetest
20:34 jonasbits joined #minetest
20:47 Fixer joined #minetest
21:13 NathanS21 joined #minetest
21:41 Lukwe joined #minetest
21:41 proller joined #minetest
21:52 NathanS21 joined #minetest
22:02 fluxflux joined #minetest
22:16 proller joined #minetest
22:25 hisforever joined #minetest
22:30 fleeky joined #minetest
22:36 hisforever Hi I'd like to know how to make water still? I want to make a fish pond beside my house
22:44 specing what
22:49 Emerald2 Make it all water source so there's no flowing.
22:59 hisforever ok Thanks
23:11 MTDiscord <e​xe_virus> Animated rigged models in lua with Luajit would only be about 30% slower than the current software animations in C
23:13 MTDiscord <G​reenXenith> If you could animate them clientside, perhaps
23:13 MTDiscord <G​reenXenith> When animated serverside they are not smooth at all
23:45 milkt joined #minetest
23:55 specing you could, with CSMs

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