Thread: An error that I get when I attempt to run my server

Results 1 to 5 of 5
  1. #1 An error that I get when I attempt to run my server 
    Registered Member
    Fredo Santana's Avatar
    Join Date
    Apr 2013
    Age
    28
    Posts
    726
    Thanks given
    28
    Thanks received
    86
    Rep Power
    87
    when I run my server, i get this:
    Code:
    [Launcher] Initing Cache...
    Exception in thread "main" java.lang.NullPointerException
            at com.rs.utils.Utils.getItemDefinitionsSize(Utils.java:268)
            at com.rs.cache.loaders.ItemsEquipIds.init(ItemsEquipIds.java:13)
            at com.rs.Launcher.main(Launcher.java:65)
    Press any key to continue . . .
    this is what's in my utils.java:
    Code:
     public static final int getItemDefinitionsSize() {
                    final Cache cache = new Cache();
                    if (cache != null) {
                            int lastArchiveId = cache.STORE.getIndexes()[19].getLastArchiveId();
                            return (lastArchiveId * 256 + Cache.STORE.getIndexes()[19]
                                            .getValidFilesCount(lastArchiveId)) - 22314;
                    } else {
                            System.out.println("Cache is null");
                    }
            }
    This is whats in my itemsequipids.java:
    Code:
    public static final void init() {
    		int equipId = 0;
    		for (int itemId = 0; itemId < Utils.getItemDefinitionsSize(); itemId++) {
    			ItemDefinitions def = ItemDefinitions
    					.getItemDefinitions(itemId);
    			if (def.getMaleWornModelId1() >= 0 || def.getFemaleWornModelId1() >= 0) 
    				equipIds.put(itemId, equipId++);
    		}
    	}
    And this is what's on line 65 of my launcher.java:
    Code:
    ItemsEquipIds.init();

    What shall I do?
    FU Tooka Gang
    FU FBG
    FU JojoWorld
    FU D-Block
    #GDK #600 #065th #OTF #ScrewLilJay #BDN
    Reply With Quote  
     

  2. #2  
    私はちょうど何が重要か

    Jae`'s Avatar
    Join Date
    Mar 2012
    Posts
    1,496
    Thanks given
    236
    Thanks received
    246
    Rep Power
    79
    Are you missing your cache? If not, you might have to update your ItemDefinitions for that cache.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Fredo Santana's Avatar
    Join Date
    Apr 2013
    Age
    28
    Posts
    726
    Thanks given
    28
    Thanks received
    86
    Rep Power
    87
    Quote Originally Posted by Jae` View Post
    Are you missing your cache? If not, you might have to update your ItemDefinitions for that cache.
    I happen to not have the cache, lmao. I mean, I do but it's only like 8mb so it's obviously not the whole cache. I'm using a 718 hexium emulation source, do you know where I can get the cache for that?
    FU Tooka Gang
    FU FBG
    FU JojoWorld
    FU D-Block
    #GDK #600 #065th #OTF #ScrewLilJay #BDN
    Reply With Quote  
     

  4. #4  
    私はちょうど何が重要か

    Jae`'s Avatar
    Join Date
    Mar 2012
    Posts
    1,496
    Thanks given
    236
    Thanks received
    246
    Rep Power
    79
    Quote Originally Posted by Wu Tang View Post
    I happen to not have the cache, lmao. I mean, I do but it's only like 8mb so it's obviously not the whole cache. I'm using a 718 hexium emulation source, do you know where I can get the cache for that?
    You can probably just download any 718 cache out there, i'm unsure though, haven't done 718 in a while.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Fredo Santana's Avatar
    Join Date
    Apr 2013
    Age
    28
    Posts
    726
    Thanks given
    28
    Thanks received
    86
    Rep Power
    87
    Quote Originally Posted by Jae` View Post
    You can probably just download any 718 cache out there, i'm unsure though, haven't done 718 in a while.
    Alright, thank you for the assistance.
    FU Tooka Gang
    FU FBG
    FU JojoWorld
    FU D-Block
    #GDK #600 #065th #OTF #ScrewLilJay #BDN
    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. Replies: 1
    Last Post: 03-19-2014, 01:01 AM
  2. When I try to run my server 718
    By Cameroniscool in forum Help
    Replies: 6
    Last Post: 06-24-2013, 10:20 PM
  3. Replies: 3
    Last Post: 06-10-2013, 09:47 PM
  4. Replies: 6
    Last Post: 02-18-2012, 11:19 PM
  5. Replies: 2
    Last Post: 08-30-2009, 03:57 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
  •