Thread: Index Repacking

Page 25 of 25 FirstFirst ... 15232425
Results 241 to 250 of 250
  1. #241  
    Registered Member
    Join Date
    May 2015
    Posts
    29
    Thanks given
    0
    Thanks received
    6
    Rep Power
    11
    I don't seem to have a 'Decompressor.java' so I am getting an when I pasted the code into Client.java.. Anyone knows a solution? I know I am a little bit late to the party lol.
    Reply With Quote  
     

  2. #242  
    Registered Member Grandpa's Avatar
    Join Date
    Dec 2015
    Posts
    106
    Thanks given
    13
    Thanks received
    3
    Rep Power
    13
    Someone know how to solve this?
    I'm stuck at Quote* In the startup method, simply call 'repackCacheIndex(#)'.

    I've placed repackCacheIndex(4); (maps), underneath void startup() in client.java
    Error:
    Code:
    Started repacking index 4.
    Exception in thread "Thread-2" java.lang.NullPointerException: Cannot read the array length because the return value of "java.io.File.listFiles()" is null
    	at client.repackCacheIndex(client.java:7665)
    	at client.startUp(client.java:7278)
    	at RSApplet.run(RSApplet.java:40)
    	at client.run(client.java:4673)
    	at java.base/java.lang.Thread.run(Thread.java:832)
    Reply With Quote  
     

  3. #243  
    Rune-Server Affiliate

    Join Date
    Apr 2014
    Posts
    1,761
    Thanks given
    75
    Thanks received
    714
    Rep Power
    1073
    Quote Originally Posted by Grandpa View Post
    Someone know how to solve this?
    I'm stuck at Quote* In the startup method, simply call 'repackCacheIndex(#)'.

    I've placed repackCacheIndex(4); (maps), underneath void startup() in client.java
    Error:
    Code:
    Started repacking index 4.
    Exception in thread "Thread-2" java.lang.NullPointerException: Cannot read the array length because the return value of "java.io.File.listFiles()" is null
    	at client.repackCacheIndex(client.java:7665)
    	at client.startUp(client.java:7278)
    	at RSApplet.run(RSApplet.java:40)
    	at client.run(client.java:4673)
    	at java.base/java.lang.Thread.run(Thread.java:832)
    There are no files in your "index4" folder
    Reply With Quote  
     

  4. #244  
    Registered Member Grandpa's Avatar
    Join Date
    Dec 2015
    Posts
    106
    Thanks given
    13
    Thanks received
    3
    Rep Power
    13
    Quote Originally Posted by Zion View Post
    There are no files in your "index4" folder
    Thanks for reply, but i have files inside the folder. still same problem.

    I downloaded 474 maps from https://www.rune-server.ee/runescape...map-files.html
    And placed them inside index4.
    the files are in gz format.

    Could it be it can't reach my files somehow?
    my indexes are inside my source/data/cache/index#
    Reply With Quote  
     

  5. #245  
    Banned


    Join Date
    Jul 2020
    Posts
    157
    Thanks given
    100
    Thanks received
    166
    Rep Power
    0
    Quote Originally Posted by Grandpa View Post
    Thanks for reply, but i have files inside the folder. still same problem.

    I downloaded 474 maps from https://www.rune-server.ee/runescape...map-files.html
    And placed them inside index4.
    the files are in gz format.

    Could it be it can't reach my files somehow?
    my indexes are inside my source/data/cache/index#
    make sure u dont have a nested foldor like index4->somthingelse->1.gz

    it should look like this

    https://prnt.sc/14r0yna
    Reply With Quote  
     

  6. #246  
    Registered Member Grandpa's Avatar
    Join Date
    Dec 2015
    Posts
    106
    Thanks given
    13
    Thanks received
    3
    Rep Power
    13
    Quote Originally Posted by Mark_ View Post
    make sure u dont have a nested foldor like index4->somthingelse->1.gz

    it should look like this

    https://prnt.sc/14r0yna
    It looks like this, i'm pretty sure i done that part correct.
    https://imgshare.io/image/pWmh15
    Reply With Quote  
     

  7. #247  
    Banned


    Join Date
    Jul 2020
    Posts
    157
    Thanks given
    100
    Thanks received
    166
    Rep Power
    0
    Quote Originally Posted by Grandpa View Post
    It looks like this, i'm pretty sure i done that part correct.
    <img src="https://imgshare.io/images/2021/06/08/image0da92bab7c403aa0.png" alt="image0da92bab7c403aa0.png" border="0" />
    source/data/cache/index#

    source Are you sure you are in the client cache. [source/data] gives me the feeling you are in server
    Reply With Quote  
     

  8. #248  
    Registered Member Grandpa's Avatar
    Join Date
    Dec 2015
    Posts
    106
    Thanks given
    13
    Thanks received
    3
    Rep Power
    13
    Quote Originally Posted by Mark_ View Post
    source/data/cache/index#

    source Are you sure you are in the client cache. [source/data] gives me the feeling you are in server
    Yea, i'm using PI / Project insanity.
    I was told that Project insanity has cache inside the source, which is fked up but when i think about it makes sence that i should try to do this inside my client instead.

    When i look inside my client folder, there are no other than sprites to be found.
    My main_file_cache.dat# files are only to be found inside my source/data/cache.
    https://imgshare.io/image/pWmTRu


    Edit: I found this post about server sided cache loading, https://www.rune-server.ee/runescape...e-loading.html
    I should reverse & make it load from client side right?

    This post here should work for me i think; https://www.rune-server.ee/runescape...directory.html

    Heres my method
    Code:
     public static String findcachedir() {
            String[] possibleFolders = {
                "C:/", "D:", "E:",
                "/tmp/", "/"
            };
            String subfolder = "CleanPICache/";
            for(String folder : possibleFolders)
                if(new File(folder).exists()) {
                    if(new File(folder + subfolder).exists()
                    || new File(folder + subfolder).mkdirs())
                        return folder + subfolder;
                }
            return null;
        }
    Not sure what subfolder "CleanPICache is.. do i have 2 caches?I found CleanPICache inside "C:" drive.


    I've tried to simply just move my cache over to the client part without doing anything with any code.
    It gave me this error in eclipse: [09.06.2021, 00:00]: Launching fileserver..
    [09.06.2021, 00:00]: java.lang.Exception: No index file(s) present
    [09.06.2021, 00:00]: at RS2.jagcached.net.IndexedFileSystem.detectLayout(I ndexedFileSystem.java:83)
    [09.06.2021, 00:00]: at RS2.jagcached.net.IndexedFileSystem.<init>(Indexed FileSystem.java:52)
    [09.06.2021, 00:00]: at RS2.jagcached.dispatch.RequestWorkerPool.start(Req uestWorkerPool.java:57)
    [09.06.2021, 00:00]: at RS2.fileserver.impl.FileServer.start(FileServer.ja va:56)
    [09.06.2021, 00:00]: at RS2.GameEngine.main(GameEngine.java:139)
    [09.06.2021, 00:00]: Took 197 milliseconds to launch.

    (IndexedFileSystem.java:83)
    Code:
    private void detectLayout(File base) throws Exception {
    		int indexCount = 0;
    		for (int index = 0; index < indices.length; index++) {
    			File f = new File(base.getAbsolutePath() + "/main_file_cache.idx"
    					+ index);
    			if (f.exists() && !f.isDirectory()) {
    				indexCount++;
    				indices[index] = new RandomAccessFile(f, readOnly ? "r" : "rw");
    			}
    		}
    		if (indexCount <= 0) {
    			throw new Exception("No index file(s) present");
    		}
    
    		File oldEngineData = new File(base.getAbsolutePath()
    				+ "/main_file_cache.dat");
    		File newEngineData = new File(base.getAbsolutePath()
    				+ "/main_file_cache.dat2");
    		if (oldEngineData.exists() && !oldEngineData.isDirectory()) {
    			data = new RandomAccessFile(oldEngineData, readOnly ? "r" : "rw");
    		} else if (newEngineData.exists() && !oldEngineData.isDirectory()) {
    			data = new RandomAccessFile(newEngineData, readOnly ? "r" : "rw");
    		} else {
    			throw new Exception("No data file present");
    		}
    	}
    (IndexedFileSystem.java:52)
    Code:
     public IndexedFileSystem(File base, boolean readOnly) throws Exception {
    		this.readOnly = readOnly;
    		detectLayout(base);
    	}
    (RequestWorkerPool.java:57)
    Code:
    public void stop() {
    		for (RequestWorker<?> worker : workers) {
    			worker.stop();
    		}
    (FileServer.java:56)
    Code:
     public void start() throws Exception {
    		pool.start();
    		start("ondemand", new OnDemandPipelineFactory(handler, timer),
    				NetworkConstants.SERVICE_PORT);
    	}
    (GameEngine.java:139)
    Code:
     public static void main(java.lang.String args[])
    			throws NullPointerException, IOException {
    
    		long startTime = System.currentTimeMillis();
    		System.setOut(new Logger(System.out));
    		System.setErr(new Logger(System.err));
    		System.out.println("Launching fileserver..");
    		try {
    			new FileServer().start();
    			new RS2.fileserver.FileServer().bind();
    		} catch (Exception e) {
    			e.printStackTrace();
    		}
    
    		bind();
    
    		playerManager = PlayerManager.getSingleton();
    		playerManager.setupRegionPlayers();
    		stillGraphicsManager = new StillGraphicsManager();
    
    		/**
    		 * Successfully loaded the server.
    		 */
    		long endTime = System.currentTimeMillis();
    		long elapsed = endTime - startTime;
    		System.out.println("Took " + elapsed + " milliseconds to launch.");
    
    		/**
    		 * Main server tick.
    		 */
    		scheduler.schedule(new Task() {
    			@Override
                        protected void execute() {
                            itemHandler.process();
                            playerHandler.process();	
                            npcHandler.process();
                            shopHandler.process();
                            objectManager.process();
                            }
                    });
    	}
    I'm gonna try to break out the methodes & see if i can solve this, but i do appreciate if somebody has a suggestion to fix this
    Reply With Quote  
     

  9. #249  
    Banned


    Join Date
    Jul 2020
    Posts
    157
    Thanks given
    100
    Thanks received
    166
    Rep Power
    0
    Quote Originally Posted by Grandpa View Post
    Yea, i'm using PI / Project insanity.
    I was told that Project insanity has cache inside the source, which is fked up but when i think about it makes sence that i should try to do this inside my client instead.
    It needs to go in CleanPICache. do you have anydesk and discord if so add me and ill help you on anydesk
    Reply With Quote  
     

  10. #250  
    Registered Member

    Join Date
    Aug 2011
    Posts
    766
    Thanks given
    105
    Thanks received
    59
    Rep Power
    114
    can someone help me with decompressor error please!
    Spoiler for vouches:

    Quote Originally Posted by TheMrClassic View Post
    Vouch for Insidia X. Fast and friendly.
    Quote Originally Posted by Vernorexia View Post
    Vouch for insidia x added clipped following and a timer on my gates. I paid first was fast work. I highly recommend using him!
    Quote Originally Posted by Matts B ring View Post
    Bought 5b ikov, vouch
    Quote Originally Posted by InsinuateRS View Post
    Vouch for me lad, bought 3b

    Reply With Quote  
     

Page 25 of 25 FirstFirst ... 15232425

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. 634 map index for 317
    By mige5 in forum Downloads
    Replies: 223
    Last Post: 09-27-2016, 05:08 AM
  2. index?t=something
    By minutes in forum Application Development
    Replies: 0
    Last Post: 02-20-2011, 12:38 PM
  3. model_index archive repacking
    By Xaves in forum Help
    Replies: 9
    Last Post: 01-07-2011, 11:36 PM
  4. Repacking Data
    By Stewie in forum Help
    Replies: 1
    Last Post: 05-02-2010, 07:45 AM
  5. Index Help
    By Streetwave in forum Application Development
    Replies: 6
    Last Post: 10-21-2009, 12:38 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
  •