Thread: Dump maps

Results 1 to 8 of 8
  1. #1 Dump maps 
    Registered Member
    Join Date
    Jan 2015
    Posts
    70
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Hey guys im using necrotic here does anyone have a dumping map code without erroring or nulling, i have been trying to dump some maps but i could not do it cause im gettting nulls

    this is the code for the map dump

    (OnDemandfetcher.java)

    Code:
     public void dump() {
    		int exceptions = 0;
    		for (int element : mapIndices2) {
    			try {
    				byte abyte[] = clientInstance.decompressors[4].decompress(element);
    				File map = new File(Signlink.getCacheDirectory() + "/mapdata/" + element + ".gz");
    				FileOutputStream fos = new FileOutputStream(map);
    				fos.write(abyte);
    				fos.close();
    			} catch (Exception e) {
    				// e.printStackTrace();
    				exceptions++;
    			}
    		}
    		for (int element : mapIndices3) {
    			try {
    				byte abyte[] = clientInstance.decompressors[4].decompress(element);
    				File map = new File(Signlink.getCacheDirectory() + "/mapdata/" + element + ".gz");
    				FileOutputStream fos = new FileOutputStream(map);
    				fos.write(abyte);
    				fos.close();
    			} catch (Exception e) {
    				e.printStackTrace();
    				exceptions++;
    			}
    		}
    
    		System.out.println("dumped maps with " + exceptions + " exceptions.");
    	}
    Then running the method in Client.java

    onDemandFetcher.dump();

    please?

    What i wanna fix is more the clipping problem, when one edit maps and the repack the new maps, im trying to fix the clipping... tryng to dump the recpacked new maps then put them in the source clipping map.. idk if i have to do with the file map_index if anyone could give me some hints thanks
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jan 2015
    Posts
    70
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Attached image
    Reply With Quote  
     

  3. #3  
    Development Services

    Tutus Frutus's Avatar
    Join Date
    Feb 2018
    Posts
    466
    Thanks given
    228
    Thanks received
    217
    Rep Power
    687
    Quote Originally Posted by baraa View Post
    Hey guys im using necrotic here does anyone have a dumping map code without erroring or nulling, i have been trying to dump some maps but i could not do it cause im gettting nulls

    this is the code for the map dump

    (OnDemandfetcher.java)

    Code:
     public void dump() {
    		int exceptions = 0;
    		for (int element : mapIndices2) {
    			try {
    				byte abyte[] = clientInstance.decompressors[4].decompress(element);
    				File map = new File(Signlink.getCacheDirectory() + "/mapdata/" + element + ".gz");
    				FileOutputStream fos = new FileOutputStream(map);
    				fos.write(abyte);
    				fos.close();
    			} catch (Exception e) {
    				// e.printStackTrace();
    				exceptions++;
    			}
    		}
    		for (int element : mapIndices3) {
    			try {
    				byte abyte[] = clientInstance.decompressors[4].decompress(element);
    				File map = new File(Signlink.getCacheDirectory() + "/mapdata/" + element + ".gz");
    				FileOutputStream fos = new FileOutputStream(map);
    				fos.write(abyte);
    				fos.close();
    			} catch (Exception e) {
    				e.printStackTrace();
    				exceptions++;
    			}
    		}
    
    		System.out.println("dumped maps with " + exceptions + " exceptions.");
    	}
    Then running the method in Client.java

    onDemandFetcher.dump();

    please?

    Its more the clipping problem, when one edit maps and the repack the new maps, im trying to fix the clipping... tryng to dump the recpacked new maps then put them in the source clipping map.. idk if i have to do with the file map_index if anyone could give me some hints thanks
    Just pick out the map with RSAM (Runescape Asset Manager) and add it to your Data/world folder, there should be one in Necrotic I think that handles the clipping...

    Attached image
    Attached image
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jan 2015
    Posts
    70
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Tutus Frutus View Post
    Just pick out the map with RSAM (Runescape Asset Manager) and add it to your Data/world folder, there should be one in Necrotic I think that handles the clipping...
    Thanks alot for the answer. i did download it added the gz maps into the client meaning i repacked them.. now clientsided is done i guess, the thing is there is a map in the source called clipping with gz files, the question is how to get the right clipped gz files to add them to the server where the clipping map is, that is the problem.. i tired to repack them into the client to chance the map then dump them out again to decompress them to add them to the source where the clipping map is, i am pretty sure it is the gz that need to be added to the source clipping map but cant get it right any tips x.x
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jan 2015
    Posts
    70
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    back me up guys

    1. I did pack my map models into the cache (as you can see on the gif)
    2. the same gz files that i packed into my cache is also now in the clipping folder inside the source.. still problem witht he clipping
    now i have the same clipping and object registration both in server and client..
    3. and i cant get further.. did some heavy reaserch.. but just some hints here too pls guys
    thanks

    I understand that the client show the visible things... and the source is now left idk what to go for more

    i have tried to compress the gz files.. i have tried RSAM i have tried to dump and repack the map_index.. anything?
    Reply With Quote  
     

  6. #6  
    Development Services

    Tutus Frutus's Avatar
    Join Date
    Feb 2018
    Posts
    466
    Thanks given
    228
    Thanks received
    217
    Rep Power
    687
    Quote Originally Posted by baraa View Post
    back me up guys

    1. I did pack my map models into the cache (as you can see on the gif)
    2. the same gz files that i packed into my cache is also now in the clipping folder inside the source.. still problem witht he clipping
    now i have the same clipping and object registration both in server and client..
    3. and i cant get further.. did some heavy reaserch.. but just some hints here too pls guys
    thanks

    I understand that the client show the visible things... and the source is now left idk what to go for more

    i have tried to compress the gz files.. i have tried RSAM i have tried to dump and repack the map_index.. anything?
    Just add the gz corresponding to the region you added, in other words.. if you add 327.gz to the cache, also add it to the server-sided folder that handles your clipping.

    If that does not work, check if it actually gets the clipping correctly from that path & wether the custom map is actually saved/configured correctly through the map-maker tool you're using.

    Attached image
    Attached image
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Jan 2015
    Posts
    70
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Tutus Frutus View Post
    Just add the gz corresponding to the region you added, in other words.. if you add 327.gz to the cache, also add it to the server-sided folder that handles your clipping.

    If that does not work, check if it actually gets the clipping correctly from that path & wether the custom map is actually saved/configured correctly through the map-maker tool you're using.

    Thanks alot worked! flag clipping was the problem ty
    Reply With Quote  
     

  8. #8  
    Development Services

    Tutus Frutus's Avatar
    Join Date
    Feb 2018
    Posts
    466
    Thanks given
    228
    Thanks received
    217
    Rep Power
    687
    Quote Originally Posted by baraa View Post
    Thanks alot worked! flag clipping was the problem ty
    Glad to hear

    Attached image
    Attached image
    Reply With Quote  
     


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. Error dumping maps
    By 7upiter in forum Help
    Replies: 0
    Last Post: 08-16-2011, 10:42 AM
  2. Buying Dumped Map Regions $50
    By Armo in forum Buying
    Replies: 4
    Last Post: 01-18-2011, 09:28 PM
  3. Dumping maps...
    By Streax in forum Help
    Replies: 2
    Last Post: 06-15-2010, 12:27 AM
  4. How do I dump map data?
    By JalYt Marcel in forum Help
    Replies: 3
    Last Post: 11-03-2009, 04:04 PM
  5. Dumping 'map data'
    By veer in forum Informative Threads
    Replies: 12
    Last Post: 01-13-2009, 09:08 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
  •