Jump to content
Sign in to follow this  
Pois0n

Zamron | Ateria 718/742 release

Recommended Posts

JqE1YQz.png


5_4_ATERIA_LOGO%232.png
Quote

I think its time i let Zamron go, i've handed it over to a few people already and gave it to Ateria. I worked pretty hard on this back when i hosted it last year, i've started a new project and i thought i'd just let this one go instead of it just sitting on my D:/...
i hope you guys enjoy :)


MEDIA:

i72v6Tw.png
haN6ScU.png
sZ4Wv1G.png
0OAQ7mH.png
m23CbSd.png
QlMumrX.png
j9WHTa1.png


Downloads:

Please login or register to see this link.


Please login or register to see this link.


Please login or register to see this link.

Release by: Stoked

Share this post


Link to post
Share on other sites
On 12/15/2016 at 11:48 AM, Sylvanas said:

 

JqE1YQz.png


5_4_ATERIA_LOGO%232.png


MEDIA:

Please login or register to see this link.


Please login or register to see this link.


Please login or register to see this link.


Please login or register to see this link.


Please login or register to see this link.


Please login or register to see this link.


Please login or register to see this link.


Downloads:

Please login or register to see this link.


Please login or register to see this link.


Please login or register to see this link.

Release by: Stoked

 

 

Could def use your assistance getting this going on my side getting a cache error no matter what i do 

Share this post


Link to post
Share on other sites
9 hours ago, RSPS 2017 said:

Could def use your assistance getting this going on my side getting a cache error no matter what i do 

Put your cache into source\data\cache

Share this post


Link to post
Share on other sites
5 hours ago, Fallout said:

Put your cache into source\data\cache

Yes i know it is there

Share this post


Link to post
Share on other sites
2 minutes ago, RSPS 2017 said:

Yes i know it is there

Please show the error output.

Share this post


Link to post
Share on other sites

And before you say it tells you where the errors are yes i know i just dont know how to fix it i probably made it worse

 

 

 

k0lweg.png

Edited by RSPS 2017

Share this post


Link to post
Share on other sites

Well an ArrayIndexOutOfBoundsException is thrown when you are trying to access an index of an array outside the range you have set for the array.  For example:

Please login or register to see this code.

Here you are trying to print out the 4th index of the array, however the array contains index 0: 1, index 1: 2 and index 2: 3. There is no 4th index, meaning an ArrayIndexOutOfBoundsException will be thrown.

So somewhere you are trying to use an index of an array outside of a specified range. Go to the mentioned files in your error output and see if you can find the error, then increase the range of the array. 

Also were you trying to mess with something and then you got the error? Or did it come with this?

 

Edited by Fallout

Share this post


Link to post
Share on other sites
1 hour ago, Fallout said:

Well an ArrayIndexOutOfBoundsException is thrown when you are trying to access an index of an array outside the range you have set for the array.  For example:

Please login or register to see this code.

Here you are trying to print out the 4th index of the array, however the array contains index 0: 1, index 1: 2 and index 2: 3. There is no 4th index, meaning an ArrayIndexOutOfBoundsException will be thrown.

So somewhere you are trying to use an index of an array outside of a specified range. Go to the mentioned files in your error output and see if you can find the error, then increase the range of the array. 

Also were you trying to mess with something and then you got the error? Or did it come with this?

 

 

It came like this 

Share this post


Link to post
Share on other sites
30 minutes ago, RSPS 2017 said:

It came like this 

show me your getItemDefinitionSize method from utils.java and the whole of your ItemsEquipids.java

Edited by Fallout

Share this post


Link to post
Share on other sites
14 minutes ago, Fallout said:

show me your getItemDefinitionSize method from utils.java and the whole of your ItemsEquipids.java

//22314


    public static final int getItemDefinitionsSize() {
        int lastArchiveId = Cache.STORE.getIndexes()[19].getLastArchiveId();
        return (lastArchiveId * 256 + Cache.STORE.getIndexes()[19]
                .getValidFilesCount(lastArchiveId)) - 22314;
    }

    public static boolean itemExists(int id) {
        if(id >= getItemDefinitionsSize()) //setted because of custom items
            return false;
        return Cache.STORE.getIndexes()[19].fileExists(id >>> 8, 0xff & id);
    }
 

 

 

 

 

package com.rs.cache.loaders;

import java.util.HashMap;

import com.rs.utils.Utils;

public final class ItemsEquipIds {

    private static final HashMap<Integer, Integer> equipIds = new HashMap<Integer, Integer>();

    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++);
        }
    }

    public static int getEquipId(int itemId) {
        Integer equipId = equipIds.get(itemId);
        return equipId == null ? -1 : equipId;
    }
    


    private ItemsEquipIds() {

    }
}
 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×