Minetest logo

IRC log for #minetest-hub, 2018-12-13

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

All times shown according to UTC.

Time Nick Message
00:01 Fixer i actually hate this layout
00:01 Fixer only 24 items per page...
00:32 rubenwardy https://i.rubenwardy.com/KyhTE.png
00:33 rubenwardy all that wasted oil!
00:36 Fixer i have no idea what is going on
00:37 rubenwardy it's a fractional distillation column
00:37 rubenwardy crude oil comes in on the left, and is heated in a burner
00:37 rubenwardy the column then sorts the heated gas into tanks
00:37 rubenwardy in that photo, part of the column is missing so gas is escaping
00:54 IcyDiamond Cool!
00:58 bobr joined #minetest-hub
00:58 bobr joined #minetest-hub
01:20 rubenwardy to do list:   fix tanks having the wrong color liquid,    and variable output percentages to match different efficiencies
01:50 IcyDiamond I think I'll make my own in game guide book for elepower
01:52 rubenwardy Noo
02:22 ssieb joined #minetest-hub
05:28 sys4_ joined #minetest-hub
05:39 jas_ joined #minetest-hub
05:41 jas_ !server ele
05:41 MinetestBot jas_: *** SkyWars *** by Telesight | skywars.telesight.nl:30010 | Clients: 8/50, 15/47 | Version: 0.4.16 / minetest | Ping: 8ms
06:56 sys4_ joined #minetest-hub
07:10 red-001 joined #minetest-hub
07:47 jluc joined #minetest-hub
08:12 CWz joined #minetest-hub
09:03 twoelk joined #minetest-hub
10:18 IcyDiamond ok i added UI support for elepower recipes
10:20 IcyDiamond cuz i can
10:22 IcyDiamond https://gitlab.icynet.eu/evert/elepower/commit/8daed7e05e59ff86c5565105334b664c2d3f4e22
10:22 IcyDiamond craftguide needs this luxury
10:38 Gael-de-Sailly joined #minetest-hub
11:18 calcul0n_ joined #minetest-hub
11:59 Megaf joined #minetest-hub
12:04 Fixer joined #minetest-hub
12:37 bobr joined #minetest-hub
12:37 bobr joined #minetest-hub
13:18 aerozoic joined #minetest-hub
13:20 _Xenon joined #minetest-hub
13:32 DI3HARD139 joined #minetest-hub
14:12 bobr_ joined #minetest-hub
14:32 bobr joined #minetest-hub
14:43 Unarelith joined #minetest-hub
15:46 Jordach joined #minetest-hub
16:14 IcyDiamond !mod bows
16:14 MinetestBot IcyDiamond: Minecraft-like Bows!!! [bow] by Arcelmi - https://forum.minetest.net/viewtopic.php?t=18310
16:14 twoelk hmm, if I set a nodecorations flag for mapgen in map_meta.txt shouldn't all mods setting plants und natural stuff respect that?
17:08 IhrFussel joined #minetest-hub
17:21 bobr wb IhrFussel
17:22 IhrFussel Hello bobr and the others
17:22 shivajiva Hello IhrFussel
17:25 IhrFussel Did anyone try now to to add "#define stderr (&__sF[2])" to the Android source code to see if it fixes backward compatibility with Android 4/5 ?
17:28 * twoelk assumes to spy some black magic and waves his hay fork at IhrFussel
17:33 Andrey01 joined #minetest-hub
17:34 twoelk left #minetest-hub
17:38 tumeninodes joined #minetest-hub
17:38 MinetestBot tumeninodes: Dec-12 04:26 UTC <paramat> please restrain offtopic on -hub
17:38 tumeninodes guilty as charged I plead no contest
17:38 Andrey01 hi, trying to call function cabinets.put_data_into_cabinet(), however it gives an error about 'put_data_into_cabinet' field doesn`t exist inside 'cabinets' table.
17:39 tumeninodes twoelk, nodecorations flag will only read the default code, not deco code from mods though it probably should and could with some tweaking
17:39 Andrey01 https://pastebin.com/8s1eZWxP -- code with error on the latest line
17:41 Andrey01 can anybody know how to edit pasted code on pastebin.com? i don`t know how
17:41 Andrey01 i forgot to write the error itself
17:43 tumeninodes yeh... purchase the pro version :P
17:44 tumeninodes you're telling your mod to look for something which does not exist..., you have to create that which does not exist
17:45 tumeninodes that's about as helpful as I can be atm
17:46 Andrey01 ?
17:46 Andrey01 are you about my mod?
17:47 Andrey01 in any case i`ve written an erro in RAW paste data
17:47 Andrey01 error*
17:51 Andrey01 why does that field not exist in that table, if actually this exists? (i checked i wrote correctly function name in that place where this is registered and where this is called)
17:51 Krock joined #minetest-hub
17:51 Krock hi *
17:51 Andrey01 hi
17:53 rubenwardy /home/minetest/minetest_5/src/util/ieee_float.cpp:76:6: warning: ‘exp’ may be used uninitialized in this function [-Wmaybe-uninitialized]   exp += 126;
17:53 rubenwardy /home/minetest/minetest_5/src/util/ieee_float.cpp:73:6: note: ‘exp’ was declared here     int exp;
17:53 rubenwardy oh noes
17:53 Andrey01 Krock, can you help me please? i`m trying to call function cabinets.put_data_into_cabinet() and it gives me an error about this field doesn`t exist inside the table 'cabinets'
17:53 Andrey01 code: https://pastebin.com/8s1eZWxP
17:54 Krock Andrey01: added your request to my priority list. you're currently at position 3/3
17:54 Andrey01 however, it exists actually because i checked function name where it is registered and where it is called
17:54 Krock rubenwardy: unused? it is used
17:54 Andrey01 what`s request?
17:55 rubenwardy unintialized
17:55 Krock oh. I see. Initialization state does not matter there
17:55 Krock although I see why the compiler does not like it :/
17:55 Andrey01 are you about my #7930 request?
17:55 ShadowBot https://github.com/minetest/minetest/issues/7930 -- Support for Mesh Animations in Mesh Nodes
17:56 nerzhul hi Krock, do you got 10 mins for me ?
17:57 nerzhul #7939 is solved :)
17:57 ShadowBot https://github.com/minetest/minetest/issues/7939 -- Add an activeobject manager to hold active objects by nerzhul
17:57 Krock Andrey01: Line 10. You're trying to index a string value
17:57 nerzhul and i added #7969 documentation pr for the docker image
17:57 ShadowBot https://github.com/minetest/minetest/issues/7969 -- Add docker image documentation by nerzhul
17:57 nerzhul if you can review the doc
17:58 Krock Andrey01: what should that "formspec" table contain? player name and formspec?
17:58 Andrey01 it contains formspec itself
18:03 rubenwardy IcyDiamond: 😠 https://i.rubenwardy.com/lU6GW.png
18:06 rubenwardy don't worry, it's my bug - not yours :(
18:08 Gael-de-Sailly joined #minetest-hub
18:10 Andrey01 Krock: i realized my error (this was of incorrect datatype of 'form', it should be table, not string), after i deleted minetest.serialize(), but it also insistly reports me the same error.
18:11 Andrey01 'minetest.serialize()' was deleted on line 5
18:11 Krock but you're passing the function a string on the bottom of your file
18:11 Andrey01 no, on line 10
18:11 Krock what should "formspec[name]" and "formspec[data]" each contain?
18:12 Krock what kind of value do you want from these?
18:12 Krock player name and formspec string?
18:14 Andrey01 "formspec" contains name of node and formspec string itself
18:14 Andrey01 that node to which the formspec is attached
18:16 Andrey01 but as i see the error about that i reported says quite about other: about 'put_data_into_cabinet' doesn`t exist inside 'cabinets'
18:17 Andrey01 i don`t understand why it happens so, if that function is put there actually
18:22 Andrey01 and btw i even tried to print values of 'cabinets' by minetest.debug() after their registrations when a player is joining and it gave nil to my surprise, at fact it should print content of functions
18:25 Andrey01 and why can it happen then?
18:25 Andrey01 hmm...
18:28 Andrey01 it`s really odd error...
18:28 Krock maybe you forgot to define   cabinets = {}
18:29 Andrey01 no
18:29 Krock more or less on top of your file
18:29 Andrey01 it`s defined
18:29 Krock also "cabinet_num" is nowhere set to an initial value
18:31 Krock cab_boxes[not_in_creative_inventory]  maybe you want to use cab_boxes["not_in_creative_inventory"] here, to actually read out that value from the table
18:33 Andrey01 then i think it won`t be correct
18:33 Andrey01 although not_in_creative_inventory is integer
18:33 Andrey01 not string
18:34 Krock you're indexing the table "cab_boxes" with the variable not_in_creative_inventory
18:34 Krock what value does not_in_creative_inventory have?
18:34 Krock because I cannot see it in your file
18:35 Andrey01 not_in_creative_inventory = 1
18:36 IhrFussel Does obj:set_texture_mod() work on the fly?
18:36 Krock so cab_boxes[1] yields the group name?
18:37 Krock IhrFussel: if your fly is a LuaEntity, then yes. https://github.com/minetest/minetest/blob/master/src/script/lua_api/l_object.cpp#L959
18:37 Andrey01 https://pastebin.com/5i6Ptt31   new paste, i pasted the code entirely
18:37 Krock also works "on the fly" :P
18:38 IhrFussel So I could theoretically colorize a texture during runtime the way I want?
18:38 Andrey01 Krock: yes
18:39 IhrFussel For entities*
18:39 Krock Andrey01: no. it doesn't. replace cab_boxes[not_in_creative_inventory] with cab_boxes["not_in_creative_inventory"]
18:39 Andrey01 why?
18:39 Krock you need to index the table with a string value
18:40 Krock otherwise Lua will look out for a local or global variable called not_in_creative_inventory
18:40 Krock but there is none. so it will get the value of cab_boxes[nil]  instead
18:41 Andrey01 ok, i`ll try
18:41 Andrey01 now
18:43 Andrey01 Krock: it appeared true value (my code stopped to display all sorts of cabinets in creative inventory), but this also gives me same error as before
18:44 Krock use meta:set_string(formspec["name"], formspec["data"])
18:44 Krock same issue as before
18:46 Andrey01 this doesn`t change anything :(((((
18:46 Krock https://pastebin.com/jQqujnvt
18:47 Krock a little demonstration of how you index tables
18:51 Krock it changes your error message
18:52 IhrFussel What happens if I call set_texture_mod() without a texture? Like only "[colorize:"..color ?
18:53 IhrFussel Will it colorize the base texture then?
18:53 Andrey01 thx, Krock
18:55 Krock IhrFussel: it will append the texture mod string simply to the texture (tile) definition field
18:55 Krock "unknown_node.png" .. texture_mod   (in Lua)
18:56 Krock although you need to use the caret (^) to combine textures in the texture mod string
18:57 IhrFussel What do I need exactly to colorize JUST the existing entity texture?
18:58 Krock either [colorize  or ^[colorize   dunno
19:06 Andrey01 Krock: i saw the demonstration and fixed mistakes in my code by your sample, but it reports me the same error again!
19:06 Krock it cannot be the same error if you fixed it according to my instructions
19:06 Andrey01 https://pastebin.com/JGvfwiMR  -- here how i fixed
19:08 Krock looks good. what's the error now?
19:08 Andrey01 the same error
19:08 Andrey01 attempt to call field 'put_data_into_cabinet' (a nil value)
19:11 IhrFussel Try cabinets.put_data_into_cabinet = {} below cabinets = {}
19:11 IhrFussel If you haven't already
19:11 Krock IhrFussel: see code. it's already this way
19:11 Andrey01 this error will be called if right click a cabinet (in this case on_construct callback has being worked out)
19:13 Andrey01 IhrFussel, cabinets.put_data_into_cabinet is function, not table, why make it a table?
19:14 shivajiva so what line is blamed?
19:14 IhrFussel Then the function somehow doesn't get defined
19:14 Andrey01 line 249
19:15 IhrFussel registered*
19:15 Krock no problem here. works fine.
19:15 Andrey01 why? it is defined at beginning of the file
19:16 Krock I cannot reproduce your errors. apart from missing errors I can construct the nodes just fine
19:16 Andrey01 https://ufile.io/dqcan
19:17 Andrey01 Krock: try to put the cabinet in-world and click it
19:17 Andrey01 i`ve linked you my mod where this cabinet is
19:17 Andrey01 it`s named "Kitchen Wooden Cabinet"
19:18 Andrey01 when you click you will see same error
19:20 Krock https://i.imgur.com/O0gEAOV.png
19:20 shivajiva it's defined as a function correctly that sits inside an initialised global, it couldn't be out of scope
19:22 Andrey01 shivajiva, did you try to put my cabinet from my mod that i linked just? do you get same error?
19:24 garywhite joined #minetest-hub
19:24 Andrey01 Krock: try my mod and put kitchen wooden cabinet in-world
19:24 shivajiva no I'm just examining your code from my perspective to see what's wrong, I jumped in at the last paste
19:24 Andrey01 i`m sure you`ll surely get the error
19:24 Krock Andrey01: I did that. see screenshot
19:26 Andrey01 why does the cabinet not have a model on your screenshot? it should be have
19:26 Andrey01 should have*
19:27 Krock I don't have the model or textures
19:27 Krock only testing the code
19:27 shivajiva I to wondered that
19:27 Andrey01 Krock, i requested you to test my mod and put the cabinet
19:27 Andrey01 https://ufile.io/dqcan
19:27 Andrey01 install it
19:27 Krock > mod.conf
19:28 Krock how do you expect me to install the mod from that file?
19:28 shivajiva pls unzip this malicious file lol
19:28 Andrey01 i forgot to pack it
19:30 Andrey01 https://ufile.io/770id
19:30 Andrey01 now it`s packed
19:31 Andrey01 https://uploadfiles.io/770id
19:32 Andrey01 now you can upload
19:33 Andrey01 Krock, are you trying it?
19:34 Krock pls
19:34 IcyDiamond lol
19:34 Krock why did you not send the entire file from the beginning
19:34 shivajiva seems broken
19:34 Krock there's "cabinets" defined in L289 AND L1
19:34 Krock the one in line 289 will overwrite the table
19:35 Krock i.e. remove L289 and L290
19:35 Krock no no, just L289. You seem to need "cabinets_funcs" there
19:36 Andrey01 now all works!
19:37 Andrey01 i forgot to delete 'cabinets = {}' at bottom
19:37 Andrey01 it seems it redefined the table and it appeared empty
19:37 Krock yes
19:37 shivajiva yep it would
19:38 Andrey01 oh, formspec is broken
19:39 bobr joined #minetest-hub
19:39 bobr joined #minetest-hub
19:41 Andrey01 ok, tomorrow i`ll fix the formspec
19:41 Andrey01 bye
19:41 shivajiva keeping your global defines at the top of the file is good practice to stop this sort of thing occurring
19:41 shivajiva o/
19:50 Krock np
20:06 tumeninodes https://forum.minetest.net/viewtopic.php?p=337971#p337971
20:09 _Xenon joined #minetest-hub
20:47 IhrFussel Is there a way to specify the amount of colorizing when colorizing textures?
20:47 IhrFussel I guess I mean the alpha value
20:56 IhrFussel Looks like appending AA - FF at the end works?
21:09 garywhite joined #minetest-hub
21:09 IhrFussel Nope I found it... you have to append ":[0-255]" after the hex color
21:39 zRubenBot joined #minetest-hub
21:55 IhrFussel I just hope set_texture_mod() isn't something recent
22:09 FrostRanger joined #minetest-hub
22:40 Fixer heh https://hytale.com/news/2018/11/simon-and-rezzus
22:40 Fixer one more block game
22:58 ssieb joined #minetest-hub
22:59 tumeninodes Fixer, hmmm let's see if they dev it for Linux (and not by means of Steam or Android)
23:30 Ruslan1 joined #minetest-hub

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