Originally Posted by
Deadp00l
good luck bro pls make it simple to use!
Yeah I just started a few days ago but I plan on making it very easy to use, but also have a lot of features.
Originally Posted by
Supah Fly
i'd love to peek at the source after you get further along. looks really cool.
Thanks man and I'll let you know when I create a public repo for it.
Originally Posted by
EthanBeMe
Is there anyway to get a heightmap of geilinor, or any usable height data?
Yeah theres lots of useful data you can use.
for 317 (got this from majors client)
Code:
private final void decodeMapData(ByteBuffer buffer, int x, int y, int z, int regionX, int regionY, int orientation) {
if (x >= 0 && x < 104 && y >= 0 && y < 104) {
tileFlags[z][x][y] = 0;
do {
int type = buffer.getUnsignedByte();
if (type == 0) {
if (z == 0) {
tileHeights[0][x][y] = -calculateHeight(0xe3b7b + x + regionX, 0x87cce + y + regionY) * 8;
} else {
tileHeights[z][x][y] = tileHeights[z - 1][x][y] - 240;
}
return;
} else if (type == 1) {
int height = buffer.getUnsignedByte();
if (height == 1) {
height = 0;
}
if (z == 0) {
tileHeights[0][x][y] = -height * 8;
} else {
tileHeights[z][x][y] = tileHeights[z - 1][x][y] - height * 8;
}
return;
} else if (type <= 49) {
overlays[z][x][y] = buffer.getByte();
overlayTypes[z][x][y] = (byte) ((type - 2) / 4);
overlayOrientations[z][x][y] = (byte) (type - 2 + orientation & 3);
} else if (type <= 81) {
tileFlags[z][x][y] = (byte) (type - 49);
} else {
underlays[z][x][y] = (byte) (type - 81);
}
} while (true);
}
do {
int in = buffer.getUnsignedByte();
if (in == 0) {
break;
} else if (in == 1) {
buffer.getUnsignedByte();
return;
} else if (in <= 49) {
buffer.getUnsignedByte();
}
} while (true);
}
as you can see it has several data such as overlay id, underlay id, tile rotation, tile shapes and of course height data and you should be able to use that data in the game engine your using like i did for jme3.
Originally Posted by
mrexiled
nice, are you going to be able to drag things around?
yeah thats the plan. you're going to be able to modify existing tiles and objects and also be able to place new ones. i also plan to have some config editors for overlay, underlay and objects so you can create new floor definitions and objects