Universal Storage Keys

Universal Storage Keys 2.0.6

No permission to download

Ishya

Well-Known Member
Apr 2, 2015
112
16
34
Hello, everyone, I am running the newest ServUO shard and I have an issue I need help with.

It is not an issue that I get an error with when starting the server!

Ok here is the issue and I was wondering if anyone could help me fix it. I added both pictures of both so that you can see what I see.

I get the same error on the original key I wanted to make sure it was not something I did. I have added both my new key and the old key of the offending item if anyone could please look at it and help me out? Thank you in advance!
 

Attachments

Last edited:

Quasar

Well-Known Member
Oct 26, 2018
146
14
is that the only place you see "unused tiles"? because that is not a problem with the keys it is most likely a separate issue.
 
Last edited:

Ishya

Well-Known Member
Apr 2, 2015
112
16
34
Ok, I fixed it but I am going to post this somewhere because it is the granite.cs file and I fixed it by adding a file from an older copy of the serveUO shard I had on hand. I reported this in the bug tab thank you for the help and making me think to look elsewhere lol.
I was also able to figure out how to make more pages on the keys as well. While I had many questions when I started my project I was able to figure them all out on my own.
Post automatically merged:

This is turning out to be quite fun maybe I will post some of my creations in the future so others can enjoy them as well :)
 
Last edited:
  • Like
Reactions: Quasar

tass23

Moderator
Aug 28, 2013
1,019
138
42
St. Petersburg, FL
www.uoexpanse.com
Shard Name
The Expanse
Donate
Donate money to this user
Just for future reference:
In most cases, when one sees "Unused Tile", it means the itemID is off in a script somewhere or worse...the tiledata file (clientside) is different than the engine being used to run the shard.
 
  • Like
Reactions: Quasar

Ishya

Well-Known Member
Apr 2, 2015
112
16
34
It was the script I had for the granite it was missing the normal granite part of the script for some reason
 

TheDoc

Well-Known Member
Jun 16, 2014
287
43
44
Atlanta, Georgia
Shard Name
MAGA
Donate
Donate money to this user
These will crash the shard if you have an empty master key and click "Fill from backpack". There used to be a fix on runuo but obviously those were better days.
Post automatically merged:

change...

C#:
//these are accessed through the context menu use
        public void Fill( Mobile from )
        {
                
            FillEntriesFromBackpack( from );
        
        }

To...

//these are accessed through the context menu use
public void Fill( Mobile from )
{
if( _KeyTypes == null )
{
return;
}

FillEntriesFromBackpack( from );

}
C#:
//these are accessed through the context menu use
        public void Fill( Mobile from )
        {
            if( _KeyTypes == null )
                {
                    return;
                }
                
            FillEntriesFromBackpack( from );
        
        }

Works for me.. maybe someone knows a better way, but that has me good to go and no crash if you click fill from backpack with no keys in the master key.
 
Last edited:

TheDoc

Well-Known Member
Jun 16, 2014
287
43
44
Atlanta, Georgia
Shard Name
MAGA
Donate
Donate money to this user
Here's another fix done by DatGuy awhile back...

Change...

C#:
public void FillEntriesFromBackpack( Mobile from )
        {
       
            foreach( ItemStore store in _Stores )
            {
                //don't resend this gump if it's not up
                store.FillFromBackpack( from, false );
            }
}
To...

C#:
   /// Fix By datguy
        /*http://www.runuo.com/community/threads/runuo-2-0-svn-universal-storage-keys.87815/page-9#post-3814209*/
        //this triggers all fill from backpack methods in all entries contained within the master keys
        public void FillEntriesFromBackpack(Mobile from)
        {
            if (_Stores == null)
                return;

            foreach (ItemStore store in _Stores)
            {
                //don't resend this gump if it's not up
                store.FillFromBackpack(from,false);
            }
        }
Without this fix, if someone has only the master key and selects "Fill from backpack" it will 100% crash your shard.
 

PyrO

Well-Known Member
Jan 27, 2015
1,137
89
I would rather keep it all in one space really

C#:
        //these are accessed through the context menu use
        public void Fill( Mobile from )
        {
            if( _KeyTypes == null || _Stores == null)
            {
                return;
            }               
            FillEntriesFromBackpack( from );       
        }
 
  • Like
Reactions: TheDoc

TheDoc

Well-Known Member
Jun 16, 2014
287
43
44
Atlanta, Georgia
Shard Name
MAGA
Donate
Donate money to this user
Yep. I just noticed that the old issue wasn't covered here. It was a fix on RunUO a long time ago that had been lost.