theTrav wrote:loftar wrote:Yeah. Isn't that a pest? :-/
Actually I don't really understand the benefit of unsigned bytes very well... Some sort of storage/networking optimization so you can send large numbers over the wire with less overhead?
I guess in your case bandwidth is an issue so it's probably worth it...
I hope i am right about this.
An signed byte is a 'normal' byte, 8 bits long.
An unsigned byte is only 7 bits long, so smaller.
The bit that was taken away is used to decided if the number is positive or negative.
So
00000001 = 1
00000011 = 3
10000011 = -3
Say you only need positive numbers, the the minus can be skipped to save space
0000001 = 1
0000011 = 3
-- = -3 (not possible)
Also, thanks so showing us how to extract them i was going to look into this in February and did very briefly but didn't get around to it, come May im going to have a bit more of a play with them. I totally agree to a new set of images for buildings, whilst only 5-10pixels high so we can see behind them, rather than just make them totally invisible.