Hello, I've added a custom map to the client, it comes up fine (Client Side)
but when I go to add clipping, I get this error.
Code:
java.util.zip.ZipException: Not in GZIP format
at java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:165)
at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:79)
at java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:91)
at com.elvarg.util.CompressionUtil.gunzip(CompressionUtil.java:27)
at com.elvarg.util.FileUtil.getDecompressedBuffer(FileUtil.java:70)
at com.elvarg.world.collision.region.RegionClipping.loadRegion(RegionClipping.java:118)
at com.elvarg.world.collision.region.RegionClipping.addObject(RegionClipping.java:450)
at com.elvarg.world.collision.region.RegionClipping.addObject(RegionClipping.java:494)
at com.elvarg.world.entity.impl.object.ObjectHandler.spawnGlobalObject(ObjectHandler.java:41)
at com.elvarg.definitions.ObjectDefinition$1.load(ObjectDefinition.java:51)
at com.elvarg.util.JsonLoader.load(JsonLoader.java:53)
at com.elvarg.Elvarg.lambda$main$3(Elvarg.java:85)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
And yes the files are in Gzip format, ive tried exporting as a .dat (and then compressing them).
I've also tried to export straight as gzip.
Both don't work, when trying to add them server-side.
Code:
if (readUShort(in) != GZIP_MAGIC) {
throw new ZipException("Not in GZIP format");
}
Code:
public final static int GZIP_MAGIC = 0x8b1f;