Time Nick Message 10:07 Taoki Is there anything that individual nodes can be identified by? Such as an ID, number, etc 10:21 Taoki Really stuck with ideas on my code if anyone can help :/ 13:54 jin_xi Taoki: what is broken about set_properties? 13:55 Taoki jin_xi: never mind, doing another code approach now 20:31 Taoki celeron55: I'm implementing a model feature to colorize objects via code. For that I need to implement ARGB8 read / write in serialize.h. Do you approve of that? Here is how I did it, and so far it compiles at least (not sure if it works yet): http://pastebin.com/raw.php?i=jnwaL3rF 20:32 Taoki I need the new type because it's a scolor, holgs RGB-A. So it's sort of a 4 vector value 20:32 Taoki Since textures and materials are part of an array, I make these an array too 20:32 celeron55 well, you at least have a nice buffer overflow in there 20:34 celeron55 otherwise there's essentially nothing bad in those themselves; a wholly another thing is where you are using them but i don't want to think about that 20:36 Taoki Yes, there is a value where I need to check exactly what limit to assign 20:36 Taoki I have no examples since this is the first and only 4-value type 20:37 celeron55 in the bottom two functions you make the buffers two bytes too short 20:37 celeron55 that is what i was saying 20:38 Taoki Yes. Hope it's ok to ask a noob question, but how do I know how long to make them? So I don't use more memory than needed either 20:41 Taoki Would ask on #c++ but I'd probably have to explain the whole read / write implementation in MineTest, so I'd rather ask someone who knows specifically 20:47 celeron55 i just spotted even more errors in it 20:47 celeron55 you can ask it there, it's pretty standard C++ stuff and the relation to minetest is irrelevant 20:47 Taoki ok 20:47 celeron55 you need to understand how you want your values to go into the stream 20:47 celeron55 and how much space they take there 20:48 celeron55 stream or data buffer 20:48 celeron55 currently it's all messed up 21:16 Taoki Someone clarified me on c++. I was actually underflowing the whole thing :P alpha, red, green and blue are integers between 0 and 255, so they take 1 byte each. I only need a value of 4 in the buffer there. Well thought :)