Thread: Map Editor Source

Page 2 of 6 FirstFirst 1234 ... LastLast
Results 11 to 20 of 56
  1. #11  
    Super Donator

    RSPSi's Avatar
    Join Date
    Mar 2011
    Posts
    169
    Thanks given
    70
    Thanks received
    173
    Rep Power
    328
    Quote Originally Posted by Deadman World View Post
    E:/textures/
    E:/cache/archive/ i think ?
    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++;
    		}
    	}
    Reply With Quote  
     

  2. #12  
    Registered Member

    Join Date
    Dec 2009
    Posts
    774
    Thanks given
    367
    Thanks received
    455
    Rep Power
    927
    Definitely going to take a look at the source code, looks nice!
    Reply With Quote  
     

  3. #13  
    Registered Member
    Join Date
    Apr 2016
    Posts
    148
    Thanks given
    46
    Thanks received
    30
    Rep Power
    19
    Quote Originally Posted by Photon View Post
    Thanks for that Here's the archive folder https://mega.nz/#!tdVGWaZa!wHy4noF9t...3t3-LNLGx1bwb8

    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
    Reply With Quote  
     

  4. #14  
    Super Donator

    RSPSi's Avatar
    Join Date
    Mar 2011
    Posts
    169
    Thanks given
    70
    Thanks received
    173
    Rep Power
    328
    Quote Originally Posted by Deadman World View Post
    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
    Attached image
    Reply With Quote  
     

  5. #15  
    Registered Member

    Join Date
    Jul 2007
    Age
    32
    Posts
    466
    Thanks given
    90
    Thanks received
    52
    Rep Power
    87
    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
    Reply With Quote  
     

  6. #16  
    Super Donator

    Chivvon's Avatar
    Join Date
    May 2016
    Posts
    487
    Thanks given
    69
    Thanks received
    142
    Rep Power
    285
    Quote Originally Posted by wolfenzi View Post
    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
    Code:
    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);
                }
    Credits; Peter

    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.
    Reply With Quote  
     

  7. Thankful users:


  8. #17  
    Banned
    Join Date
    Aug 2017
    Posts
    37
    Thanks given
    3
    Thanks received
    8
    Rep Power
    0
    Quote Originally Posted by Photon View Post
    The only thing I request of whoever takes over this project is that if anyone decides to release a tool based on any of the code, they do it for free. I don't want people to pay for using my content.
    How rsps should be IMO, we're all here to learn.
    + repped
    Reply With Quote  
     

  9. #18  
    Registered Member

    Join Date
    Jul 2007
    Age
    32
    Posts
    466
    Thanks given
    90
    Thanks received
    52
    Rep Power
    87
    Work great, thank you very much. Rep+

    Quote Originally Posted by Chivvon View Post
    Code:
    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);
                }
    Credits; Peter

    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.
    Reply With Quote  
     

  10. #19  
    Super Donator

    RSPSi's Avatar
    Join Date
    Mar 2011
    Posts
    169
    Thanks given
    70
    Thanks received
    173
    Rep Power
    328
    Looking forward to seeing what you guys can make with this
    Reply With Quote  
     

  11. #20  
    Banned

    Join Date
    Dec 2016
    Posts
    181
    Thanks given
    61
    Thanks received
    52
    Rep Power
    0
    Quote Originally Posted by Photon View Post
    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
    Reply With Quote  
     

Page 2 of 6 FirstFirst 1234 ... LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 4
    Last Post: 01-12-2014, 12:59 AM
  2. Map editor
    By SODIO in forum Help
    Replies: 0
    Last Post: 03-23-2009, 02:32 AM
  3. Peters map editor
    By ViperSniper in forum Help
    Replies: 2
    Last Post: 02-17-2009, 05:22 PM
  4. MdScape Map Editor
    By noobbjorn999 in forum Tools
    Replies: 10
    Last Post: 04-24-2008, 12:26 AM
  5. Anyone got a map editor yet?
    By Reactor in forum RS2 Server
    Replies: 38
    Last Post: 04-18-2008, 05:14 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •