Time Nick Message 08:45 tenplus1 hi folks 08:45 tenplus1 Q. is there any way to disable or replace an existing ABM ??? 08:54 Krock A. They have no names but you can loop through minetest.registered_abms and try to delete them out if it 08:54 tenplus1 ooh, didn't know I could do that... testing 08:55 Krock No it's not possible 08:56 tenplus1 damn... that's one feature I would really like... to be able to remove an abm so it can be replaced 08:56 Krock ugh.. the code is complicated 08:57 Krock meh, just try to remove it. 09:00 Krock All entries of the table registered_abms get added in the function initializeEnvironment (C++), so when you remove the ABM on-load it must be possible to get it work 09:00 tenplus1 I can loop through and have it find leafdecay for instance due to the .label reference 09:02 tenplus1 it only seems to read the abm information, not allow you to edit it 09:03 tenplus1 wait, it let me change label... hrm 09:07 tenplus1 w00t, did it... disabled an ABM 09:07 tenplus1 :PPPPPP 09:08 tenplus1 in fact, I can replace the action function with anything I please :P even better 09:26 tenplus1 alll default Abm's should have the label field set in order for mods to FIND them easily and replace functions 12:40 est31 ABMs can be replaced 12:41 est31 but only while initialisation 12:41 est31 afaik 12:41 Krock before they are applied into the core, yes 12:41 est31 yes 13:32 rubenwardy #4416 13:32 ShadowBot https://github.com/minetest/minetest/issues/4416 -- Fix background formspec elements from interferring with each other by rubenwardy 13:33 rubenwardy background are defined using background[x,y;w,h;image;clip] 13:33 rubenwardy it turns out that clip was stored globally for all backgrounds (as a class member variable) rather than being specific for a particular background 14:19 rubenwardy updated #4294 14:19 ShadowBot https://github.com/minetest/minetest/issues/4294 -- Add container[] and container_end[] formspec elements by rubenwardy 14:27 est rubenwardy, https://emmanuelbernard.com/blog/2014/04/14/split-a-commit-in-two-with-git/ 14:27 est also there is git add -p 14:27 est it allows you to do fine grained adding 14:27 est and if its not fine grained enough, you can always chose to split the chunk 14:28 est instead of adding or not adding it 14:28 rubenwardy awesome 14:28 rubenwardy I'll do that 14:28 rubenwardy *later 14:28 rubenwardy currently rewriting #4295 14:28 ShadowBot https://github.com/minetest/minetest/issues/4295 -- Add enter_button[] to press button on enter key by rubenwardy 14:30 rubenwardy I wonder if it would be better to not click a button but rather make a new type of fs event 14:30 est yeah that would be best imo 14:30 rubenwardy is closing when pressing enter wanted behaviour, anyway? 14:31 rubenwardy in any cases? 14:31 est idk, maybe 14:31 rubenwardy Ah 14:31 rubenwardy chat dialog 14:31 rubenwardy / signs 14:31 est yeah 14:32 thePalindrome I'd say have it default to close, but allow an overright to something else 14:32 rubenwardy latency though, it's much better UI/UX wise for it to not disappear for half a second 14:33 thePalindrome Maybe disable the prediction for that? Or possibly mention if it's overwritten? 14:33 rubenwardy heh, I'll leave it as it is for now 14:35 rubenwardy also, for the inventory: after it's closed, doing minetest.show_formspec() is a little hacky 14:40 thePalindrome A lot of minetest modding is "a little hacky" :P 14:53 rubenwardy est, what's the best way to submit? fields.key_enter_field = "textfieldname" ? 15:00 est yeah that sounds good 15:25 rubenwardy #4417 15:25 ShadowBot https://github.com/minetest/minetest/issues/4417 -- Add field enter event, allow fields to disable form close on enter by rubenwardy 15:30 Zeno` I have no objection to rubenwardy being an engine dev as well 15:30 Zeno` (reading backlogs) :) 15:31 est that's an official +1? 15:31 Zeno` from me? yeah 15:31 est great 15:33 Megaf I'm not non official but I have nonthing against either 15:33 Megaf oops 15:33 Megaf I'm not official but I have nonthing against either 15:34 Megaf est: You lost 31 15:34 est :) 15:35 Megaf The last guy I voted to be a core dev was Zeno`, and it was a good choice, so I vote for good people, I vote for rubenwardy, It is a good choice 15:35 Megaf I don't vote for Trump tho, bad choice. 15:35 Zeno` :D 15:37 est :D 15:37 thePalindrome ^ 15:43 Megaf I wonder if c55 has a hilight for c55 15:43 Megaf highlight* 15:44 thePalindrome Depends on his client 15:44 est afaik not 15:44 est but he has one for celer on 15:45 Megaf you just highlighted him then 15:45 thePalindrome There was a space ;) 15:46 Zeno` I think he meant celeron55 but his tab autocomplete seems to be broken 15:46 Megaf oh, I though you meant the highlight for "celer" was on 15:46 Megaf Zeno`: ok, now you definetelly just highlighted him 15:46 thePalindrome lol 15:46 Zeno` oops 15:47 thePalindrome But yeah, nick highlighting is purely a client-side feature, unless there's a bot that listens as well 15:48 Megaf I used to have gihhlights for all nicks I used 15:48 Megaf we need a channel #Minetest-Dev-OffTopic 15:49 thePalindrome #minetest-dev-lelno mayhaps? 15:50 Megaf I like my suggestions btter 15:50 Megaf and either my keyboard can follow my fingers or my fingers can follow my brain, much typos 15:51 Megaf and missing keys 15:52 thePalindrome Welp, I'm head off for a while. 15:52 thePalindrome /) 18:07 juhdanad What is the difference between mod API and script API in the source code? 18:09 Krock huh? There's lua_api and cpp_api 18:09 juhdanad I wrote the classes name: "ModApiBase" and "ScriptApiBase", but yes, they are in seperate folders. 18:10 juhdanad classes'* 18:15 juhdanad So pushPointedThing() is in ScriptApiItem, bot I would like to use it in ModApiEnvMod too. I don't know where should I replace/copy the method. 18:28 juhdanad OK, I think I understood 18:29 juhdanad Script API is an object, which can interact with C++. Mod API is a collection of static methods built on top of the Script API. Am I right? 18:30 thePalindrome not particularly 18:30 thePalindrome If I'm understanding you right they are both the same thing 18:30 thePalindrome To be more precise, cpp_api is the Engine part of the modding api, and lua_api is the exposed lua functions 18:32 juhdanad Ah, thanks! I try to write code to the correct place. 18:33 thePalindrome What are you adding? 18:34 juhdanad A raycast(pos1, pos2) method: same as line_of_sight, but this is based on selection boxes. 18:34 juhdanad And returns a pointed_thing. This is my problem. 18:35 thePalindrome So you want raycast to return a pointed_thing? 18:35 juhdanad Yes, because object can be pointed as well. 18:35 juhdanad objects* 18:38 thePalindrome In that case you'd pretty much re-define line_of_sight in order to check for other things as well 18:40 juhdanad No, because raycast() will be able to see trough the fence's holes and detect large nodes (refrigeator). 18:40 thePalindrome oh geez, then in that case you'd have to detect if it's a block and then grab the mesh to determine if it intersects 18:42 juhdanad Yes, I solved that: #4346 (and also gregorycu: #4027). I made getPointedThing() independent of the client. 18:42 ShadowBot https://github.com/minetest/minetest/issues/4346 -- Improved getPointedThing() by juhdanad 18:42 ShadowBot https://github.com/minetest/minetest/issues/4027 -- Make getPointedThing faster by gregorycu 19:14 rubenwardy #4416 #4417 #4294 19:14 ShadowBot https://github.com/minetest/minetest/issues/4416 -- Formspecs: Fix background elements from interferring with each other by rubenwardy 19:14 ShadowBot https://github.com/minetest/minetest/issues/4417 -- Formspecs: Add field enter event, allow fields to disable form close on enter by rubenwardy 19:14 ShadowBot https://github.com/minetest/minetest/issues/4294 -- Formspecs: Add container[] and container_end[] elements by rubenwardy 19:15 rubenwardy would you mind taking a look at those, hmmmm, Zeno`, nore? The first two in particular 19:16 rubenwardy *please would you take 20:40 Megaf rubenwardy: Thank you so much for doing what you are doing man, thanks, really. I do appreciate that a lot! 22:19 paramat game#1238 22:19 ShadowBot https://github.com/minetest/minetest_game/issues/1238 -- Default: Optimise and simplify leafdecay ABM by paramat