Jump to content

Featured Replies

Posted
comment_96345

Hello all, 

This tutorial is for: 

 

Object translations are read incorrectly from the object definitions. They are currently read as a readUShort when they should be read as a readShort.

 

To fix, go to your ObjectDefinition.java and change the following:

            } else if (opcode == 70) {
                translateX = buffer.readUShort();
            } else if (opcode == 71) {
                translateY = buffer.readUShort();
            } else if (opcode == 72) {
                translateZ = buffer.readUShort();

 

To 

            } else if (opcode == 70) {
                translateX = buffer.readShort();
            } else if (opcode == 71) {
                translateY = buffer.readShort();
            } else if (opcode == 72) {
                translateZ = buffer.readShort();

 

Edited by mr2adv
fix tags

Create an account or sign in to comment