Time Nick Message 11:19 celeron55 darkrose: https://github.com/darkrose/minetest/commit/fa2d578bdbc91e070d218d21e267808c56347fed 11:19 celeron55 src/guiFormSpecMenu.h:97 11:19 celeron55 why is that 11:23 darkrose needed for getting variables in string from metadata, I think 11:24 celeron55 and why did you move the implementations of TextDest and IFormSource to there 11:25 darkrose they were in cpp files, needed them in a header, make sense to put form related things in a form related header 11:26 celeron55 it's horrible style and makes you need to pollute the formspec menu with client.h as a dapendency and so 11:26 celeron55 the header, that is 11:27 celeron55 i think none of the #includes you added to guiFormSpecMenu.h should be needed in the the .h 11:28 celeron55 adding headers to headers is terrible, it bloats up compile times very quickly and i just previously got rid of crap like thta 11:28 celeron55 that* 11:28 celeron55 i will not take any of such in anymore 11:28 celeron55 s/style and/style which/ 11:30 celeron55 and i think nothing uses IFormSource::m_p 11:32 celeron55 insted of stuffing the implementations of TextDest and IFormSource into guiFormSpecMenu.h, you should add the necessary things to the interfaces 11:33 celeron55 that way you get rid of the casts all around there too 11:37 celeron55 or you might need to remake the interfaces a bit; i won't study this throughly enough to be able to figure it out 11:37 celeron55 (unless you will stop here) 11:40 darkrose not doing any more for a bit, got other projects, but can give it a rework when I look at it again 11:42 celeron55 i guess i will rework it then 11:45 celeron55 ugh, nothing is worse than undoing changes inside a large commit 11:46 celeron55 well, needing to cope with crappy code upstream is worse 12:27 Nemo08 hi all 12:30 sfan5 hi 12:46 celeron55 hmm, figured that out; not a long patch 12:46 celeron55 now i am looking at https://github.com/darkrose/minetest/commit/d412ea17462853cdbfe0e267169b8ca50589eacd 12:46 celeron55 i don't think there would need to be anything carried by PlayerSAOs 12:47 celeron55 just a single callback with the player passed as a parameter 12:47 darkrose yeah, wasn't entirely sure where to store the reference, but figured that way more callbacks could be added easily enough 12:48 celeron55 no callbacks will be added that way; that's a horrible thing to debug 12:48 celeron55 any player can have any callback completely independently of anyone else 12:48 celeron55 it's just... unmanageable 12:49 darkrose yeah, allowing for different ones depending on permissions, or something 12:49 darkrose s/ones/callbacks/ 12:50 darkrose if the callback is assign in on_join_player it kind of implies per-player callbacks 12:50 celeron55 no; just a list of callbacks which mind their own business or if there is nothing they should do, they do nothing 12:50 celeron55 just a regular minetest.register_* 12:52 celeron55 they should be called from later registered to earlier registered, and if a later registered on returns true, it'll break the loop 12:52 celeron55 so that mods can redefine behaviour 12:52 celeron55 one* 12:53 celeron55 selectively 12:56 celeron55 if you wonder why i put set_inventory_formspec() in the player object, it is because there isn't really any universal way to have many mods co-operate with it 12:57 celeron55 AND it must be different for different players 12:58 celeron55 or, well, has to have the possibility of being 12:58 darkrose ok, think I misread / was distracted when you were talking about player_on_receive_fields the other day too 12:58 celeron55 callbacks don't have those properties 12:59 darkrose hence why It got lumped in with the player object 13:01 celeron55 hmm, what does bp_set do 13:02 celeron55 i see it uses some magic constants as it's value 13:02 celeron55 give me a comment to put near it 13:03 darkrose / bp_set state of basepos, 0 = not set, 1= set by formspec, 2 = set by size[] element 13:03 celeron55 ...aand what is basepos? 8) 13:04 darkrose something in IGUIElement I think... base position for the menu 13:05 celeron55 i guess it's something made by me, actually 13:06 darkrose if bp_set != 2 then there's no size[] element so 1. needs to be calculated (such as in the sign menu) and 2. simple forms automatically get a procedd button (such as the sign menu again) 13:59 celeron55 here's something I added to roadmap: "Implement /give command in builtin rather than game" 13:59 celeron55 if somebody is lacking stuff to do 13:59 VanessaE good morning 14:41 celeron55 whew 14:42 celeron55 so now there is proper formspec and minetest.register_on_player_receive_fields: https://github.com/celeron55/minetest/commits/master 14:45 celeron55 you can make... umm... a tetris in the inventory view 14:45 VanessaE heh 14:45 VanessaE curious - return can use a variable instead of a constant I assume? 14:45 celeron55 anything 14:45 VanessaE ok. 14:46 celeron55 it's like passing stuff as a parameter to a function 14:46 celeron55 you just pass it downwards 14:47 VanessaE I'm probably wrong here but likes 1155 to around 1164 (as patched) look like you could trim one or two lines by only setting s.send and then return'ing that variable at the end of the section 14:47 VanessaE likes/lines. 14:47 celeron55 doesn't matter 14:48 VanessaE I suppose not - the compiler will optimize it out anyway won't it 14:52 sfan5 how high can the gcc -O vlue go? 14:53 VanessaE this i why I don't get much into modern languages - the way the computer actually behaves at the CPU level can be wildly different from what I coded. 15:01 celeron55 darkrose: i see you implemented the furnace using a node timer in the node timer commit but you didn't do anything to the ABM implementation? 15:03 celeron55 oh well, that isn't a full implementation anyway... i wonder what it is for 15:04 darkrose uh, if that wasn't removed it should have been 15:22 celeron55 darkrose: what is this for? like is there a bug report or something? https://github.com/darkrose/minetest/commit/10baf8e1a2f2561655f104ae69eecaa66122ed07 15:24 celeron55 hmm actually i guess that is needed 15:24 darkrose came from a forum post 15:25 celeron55 actually no 15:25 celeron55 it should be able to loop through, buffering it in parts 15:25 darkrose and was the simplest way around the issue I could find, without reading the zlib docs 15:25 celeron55 that is not a bugfix, it's a laughable crapfix 15:25 darkrose it's called "hack it till it works" 15:45 celeron55 i assume the decompress output buffer works if the problem has occurred on the compress output buffer 15:46 celeron55 because the decompress output buffer will will up quicker compared to the amount of compressed data and the size of it is the same 15:46 celeron55 fill* 15:47 VanessaE Larger buffer sizes would be more efficient, especially for inflate(). If the memory is available, buffers sizes on the order of 128K or 256K bytes should be used. 15:47 VanessaE ^^^ http://www.zlib.net/zlib_how.html 15:48 celeron55 it does not mean it is acceptable for it to be broken for sizes larger than the size of a buffer 15:49 VanessaE oh of course not. 15:49 darkrose celeron55: the problem occurs on inflate, oddly increasing the deflate buffer makes inflate work 15:49 VanessaE just pointing out what the zlib docs say about it. 16:03 darkrose problem occurs in mapblock deserialization, immediately following register nodes 16:07 celeron55 what the flying fuck 16:07 celeron55 http://paste.dy.fi/rWF 16:07 celeron55 i made a test. 16:08 celeron55 and yes, the loop goes for(u32 i=0; i