- Joined
- Dec 11, 2010
- Messages
- 2,955
- Reaction score
- 2,688
re: Icarus Server (Production) - [Python, Multi-DB/MySQL]
Thank you :
I was just experimenting with it. I'll worry that later. I'll do catalogue/item placement/furni interaction soon.
Its just basic zip compression.
Altough writing this camera is a pain in the butt. If I were you I wouldn't put my priorities there.
Code:this.packet.getBuffer().readFloat(); byte[] buffer = new byte[4096*3]; byte[] data = this.packet.getBuffer().readBytes(//packet bytes).array(); Inflater inflater = new Inflater(); inflater.setInput(data); ByteArrayOutputStream outputStream = new ByteArrayOutputStream(data.length); while (!inflater.finished()) { int count = inflater.inflate(buffer); outputStream.write(buffer, 0, count); } outputStream.close(); byte[] output = outputStream.toByteArray(); inflater.end(); System.out.println(new String(output));
Thank you :
I was just experimenting with it. I'll worry that later. I'll do catalogue/item placement/furni interaction soon.