Thread: Adding Maps To Cache

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1 Adding Maps To Cache 
    Banned

    Join Date
    Jun 2008
    Age
    26
    Posts
    811
    Thanks given
    302
    Thanks received
    36
    Rep Power
    0
    This is exactly the same way as adding models, you have to Gzip the maps. If you need the maps get them from SWAT's tutorial or dump them from a client. I'm not telling you where to add them, use your brain.

    I haven't tested this myself but i assume it should work.

    Code:
        public void addMaps() {
            for(int MapIndex = 0; MapIndex < 5000; MapIndex++) {
                byte[] abyte0 = getMaps(MapIndex);
                if(abyte0 != null && abyte0.length > 0) {
                    decompressors[4].method234(abyte0.length, abyte0, MapIndex);
                    pushMessage("Maps added successfully!", 0, "");
                }
            }
        }
    
        public byte[] getMaps(int Index) {
            try {
                File Map = new File("./Maps/"+Index+".gz");
                byte[] aByte = new byte[(int)Map.length()];
                FileInputStream fis = new FileInputStream(Map);
                fis.read(aByte);
                pushMessage("aByte = ["+aByte+"]!", 0, "");
                fis.close();
                return aByte;
            }
            catch(Exception e) {
                return null;
            }
        }
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jan 2009
    Age
    28
    Posts
    2,662
    Thanks given
    66
    Thanks received
    207
    Rep Power
    0
    why would it matter were u add them?

    you can just make it a command
    Reply With Quote  
     

  3. #3  
    PokeNation! Xaves's Avatar
    Join Date
    Dec 2007
    Age
    29
    Posts
    3,478
    Thanks given
    356
    Thanks received
    787
    Rep Power
    646
    I thought cache suit still works


    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #4  
    Registered Member DestriX's Avatar
    Join Date
    Nov 2008
    Posts
    1,329
    Thanks given
    490
    Thanks received
    152
    Rep Power
    257
    Looks great
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  5. #5  
    Client God

    Join Date
    Aug 2009
    Posts
    3,130
    Thanks given
    3
    Thanks received
    614
    Rep Power
    896
    looks like it should work now just got to find 474+ maps gzipped or find 474+ maps and gzip them myself
    Reply With Quote  
     

  6. #6  
    Client God

    Join Date
    Aug 2009
    Posts
    3,130
    Thanks given
    3
    Thanks received
    614
    Rep Power
    896
    Got these from a 474 client, contains 0-1336 (hope i got the right ones), havnt tested them so post and tell me if they are

    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  7. #7  
    Registered Member
    cocoa's Avatar
    Join Date
    Jan 2008
    Age
    26
    Posts
    652
    Thanks given
    4
    Thanks received
    22
    Rep Power
    200
    Non-renamed
    Code:
    	public void maps() {
    		for(int MapIndex = 0; MapIndex < 5000; MapIndex++) {
    			byte[] abyte0 = GetMap(MapIndex);
    			if(abyte0 != null && abyte0.length > 0) {
    				aClass14Array970[4].method234(abyte0.length, abyte0, (byte)2, MapIndex);
    			}
    		}
    	}
    	public byte[] GetMap(int Index) {
    		try {
    			File Map = new File("./maps/"+Index+".gz");
    			byte[] aByte = new byte[(int)Map.length()];
    			FileInputStream Fis = new FileInputStream(Map);
    				Fis.read(aByte);
    				method77("aByte = ["+aByte+"]!", 0, "", aBoolean991);
    				Fis.close();
    			return aByte;
    		} catch(Exception e) {
    			return null;
    		}
    	}
    Project 377
    Reply With Quote  
     

  8. #8  
    Donator
    Tox Ow's Avatar
    Join Date
    Nov 2008
    Posts
    201
    Thanks given
    3
    Thanks received
    0
    Rep Power
    6
    So how will i get this acually working ?
    added methods, added maps, don't i need a command ?
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  9. #9  
    Kc
    Kc is offline
    Registered Member Kc's Avatar
    Join Date
    Jul 2009
    Posts
    289
    Thanks given
    70
    Thanks received
    10
    Rep Power
    25
    if(s.startswith("::addmaps"){
    addMaps();
    }

    I assume it works as the command, I haven't tested it.
    Demeaning yourself does not encourage people to help you. It just makes you look stupid and encourages people to not help you even more.
    Reply With Quote  
     

  10. #10  
    Enyalius
    Guest
    Quote Originally Posted by K4rn4ge View Post
    Got these from a 474 client, contains 0-1336 (hope i got the right ones), havnt tested them so post and tell me if they are

    [Only registered and activated users can see links. ]
    good luck decrypting those maps because nobody has the xtea keysets and brute forcing them will take millions of years
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •