|
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)
Then running the method in Client.javaCode: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."); }
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
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
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.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |