Thread: Need help with OSRS Deob/Apollo FS

Results 1 to 5 of 5
  1. #1 Need help with OSRS Deob/Apollo FS 
    Registered Member

    Join Date
    Sep 2016
    Posts
    384
    Thanks given
    1
    Thanks received
    117
    Rep Power
    311
    Looking for some information regarding connecting the Apollo FS to the #130 OSRS deob. Currently, the only thing that has been changed is the decoder.

    Don't want to disable the update server, so would like to know how it works and what needs to be changed in order to make it compatible with the deob.

    ___________________________________________

    One of the errors

    Code:
    java.io.FileNotFoundException: Could not find indexIndex: 255 Des: 255 Index shit: 96
    	at org.apollo.cache.IndexedFileSystem.getIndex(IndexedFileSystem.java:335)
    	at org.apollo.cache.IndexedFileSystem.getFile(IndexedFileSystem.java:183)
    	at org.apollo.net.update.OnDemandRequestWorker.service(OnDemandRequestWorker.java:44)
    	at org.apollo.net.update.OnDemandRequestWorker.service(OnDemandRequestWorker.java:1)
    	at org.apollo.net.update.RequestWorker.run(RequestWorker.java:70)
    	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    	at java.util.concurrent.FutureTask.run(Unknown Source)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)
    at

    Code:
      private Index getIndex(FileDescriptor descriptor) throws IOException {
            int index = descriptor.getType();
            Preconditions.checkElementIndex(index, indices.length, "File descriptor type out of bounds.");
    
            byte[] buffer = new byte[FileSystemConstants.INDEX_SIZE];
            RandomAccessFile indexFile = indices[index];
            System.out.println("Index: " + index + " " + "Des: " + descriptor.getFile());
            synchronized (indexFile) {
                long position = descriptor.getFile() * FileSystemConstants.INDEX_SIZE;
                
                System.out.println(descriptor.getFile());
                System.out.println(position);
                System.out.println(position + FileSystemConstants.INDEX_SIZE);
                System.out.println(indexFile.length());
                if (position >= 0 && indexFile.length() >= position + FileSystemConstants.INDEX_SIZE) {
                    indexFile.seek(position);
                    indexFile.readFully(buffer);
                } else {
                    throw new FileNotFoundException("Could not find index" + "Index: " + index + " " + "Des: " + descriptor.getFile() + " " + "Index shit: " + indexFile.length());
                }
            }
    
            return Index.decode(buffer);
        }
    Reply With Quote  
     

  2. Thankful users:


  3. #2  
    Donator
    Mr Sandman's Avatar
    Join Date
    Oct 2011
    Posts
    657
    Thanks given
    176
    Thanks received
    26
    Rep Power
    38
    did you put the cache in directory "data/fs/130" folder?
    Reply With Quote  
     

  4. Thankful user:


  5. #3  
    SERGEANT OF THE MASTER SERGEANTS MOST IMPORTANT PERSON OF EXTREME SERGEANTS TO THE MAX!

    cube's Avatar
    Join Date
    Jun 2007
    Posts
    8,871
    Thanks given
    1,854
    Thanks received
    4,745
    Rep Power
    5000
    Apollo FS isnt compatible with 400+/osrs caches afaik, you'd have to replace it with OpenRS

    Attached image

    Reply With Quote  
     

  6. Thankful user:


  7. #4  
    Registered Member

    Join Date
    Sep 2016
    Posts
    384
    Thanks given
    1
    Thanks received
    117
    Rep Power
    311
    Quote Originally Posted by Mr Sandman View Post
    did you put the cache in directory "data/fs/130" folder?
    Ye, it reads the cache but I don't think it's reading idx255.

    Quote Originally Posted by S Quare Quxx View Post
    Apollo FS isnt compatible with 400+/osrs caches afaik, you'd have to replace it with OpenRS
    I'll take a look, thanks.
    Reply With Quote  
     

  8. #5  
    Registered Member

    Join Date
    Sep 2016
    Posts
    384
    Thanks given
    1
    Thanks received
    117
    Rep Power
    311
    Fixed .
    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. Need help with 117 Deob
    By H ULK in forum Help
    Replies: 0
    Last Post: 07-11-2016, 03:56 PM
  2. Replies: 0
    Last Post: 02-24-2016, 11:32 PM
  3. [Apollo] Need help with Plugins
    By Faris in forum Help
    Replies: 0
    Last Post: 01-02-2012, 04:14 PM
  4. need help with making a client with new stuff
    By yahoo112 in forum RS2 Client
    Replies: 1
    Last Post: 09-19-2007, 08:06 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •