Minetest logo

IRC log for #minetest-delta, 2012-10-26

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

All times shown according to UTC.

Time Nick Message
01:35 Octupus joined #minetest-delta
01:36 mrtux_ joined #minetest-delta
01:36 Octupus joined #minetest-delta
02:27 Octupus left #minetest-delta
04:37 Calinou joined #minetest-delta
05:03 neko259 joined #minetest-delta
05:32 LunaVorax joined #minetest-delta
05:45 Anchakor_ joined #minetest-delta
05:58 Calinou joined #minetest-delta
06:02 Calinou joined #minetest-delta
07:10 Weedy joined #minetest-delta
07:10 Weedy joined #minetest-delta
10:00 Weedy_lappy joined #minetest-delta
10:00 Weedy_lappy joined #minetest-delta
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 :/
10:22 PilzAdam joined #minetest-delta
11:29 rubenwardy joined #minetest-delta
12:03 SpeedProg joined #minetest-delta
13:53 krayon joined #minetest-delta
13:54 jin_xi Taoki: what is broken about set_properties?
13:55 Taoki jin_xi: never mind, doing another code approach now
14:14 Calinou joined #minetest-delta
14:33 VanessaE joined #minetest-delta
14:48 celeron55 joined #minetest-delta
14:55 rubenwardy joined #minetest-delta
16:15 Calinou joined #minetest-delta
17:00 celeron55 joined #minetest-delta
17:01 Calinou joined #minetest-delta
19:04 Calinou joined #minetest-delta
19:18 neko259 joined #minetest-delta
19:31 LunaVorax joined #minetest-delta
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
20:56 mrtux joined #minetest-delta
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 :)

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