Definitely going to take a look at the source code, looks nice!
|
Thanks for that Here's the archive folder https://mega.nz/#!tdVGWaZa!wHy4noF9t...3t3-LNLGx1bwb8
As for textures, replace your unpackTextures in Rasterizer with
Code:public static void unpackTextures(JagexArchive jagexArchive) { loadedTextureCount = 0; for (int i = 0; i < textureImages.length; i++) { try { textureImages[i] = new IndexedImage(jagexArchive, String.valueOf(i), 0); if (lowMem && textureImages[i].libWidth == 128) { textureImages[i].resizeToHalfLibSize(); } else { textureImages[i].resizeToLibSize(); } } catch (Exception exception) { textureImages[i] = textureImages[i - 1]; if(!(exception instanceof NoSuchFileException)) exception.printStackTrace(); } loadedTextureCount++; } }
Definitely going to take a look at the source code, looks nice!
Looks like i'm almost there! but getting a nullpointer in rs2.Rasterizer.unpackTextures() on line
Code:textureImages[i] = new IndexedImage(jagexArchive, String.valueOf(i), 0);
Also to actually get the editor to launch i have to comment out a bunch of addChangeListener() in the ToolSelectionBar class for the various buttons, any idea what could be causing it? The work you've done looks great and i'd love to get it working
I think I extended the texture count to 54 instead of the original which is 50? Those nullpointers should be handled though.
As for the change listeners I'm not sure. Sometimes the window either pops up hidden with an "OK" box that you have to press about loading a config and it takes a few seconds.
My imports are like this if you need them
Hello, I got problem with Overlays. After I pack edited maps to cache it dont apply to game. Object editor work for me also with OSRS map. But any floor edits do nothing
Credits; PeterCode:for (int _x = 0;_x < mapWidth;_x++) for (int _z = 0;_z < mapHeight;_z++){ int terrainIdx = onDemandFetcher.getMapIndex(0, z + _z, x + _x); Packet mapStorage = new Packet(new byte[1024*300]); mapRegion.save_terrain_block(_x * 64, _z * 64, mapStorage); byte[] terrainData = new byte[mapStorage.pos]; System.arraycopy(mapStorage.data,0,terrainData,0,mapStorage.pos); terrainData = GZIPWrapper.compress(terrainData); jagexFileStores[4].put(terrainData.length,terrainData,terrainIdx); }
This decodes it straight into the cache and you can use tom's cache suite to dump the .dat. After that you can repack it.
Looking forward to seeing what you guys can make with this
Attempting to get it working
https://www.rune-server.ee/black-mar...map-maker.html
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |