suriyun-production / mmorpg-kit-docs

This is document for MMORPG KIT project (https://www.assetstore.unity3d.com/#!/content/110188?aid=1100lGeN)
https://suriyun-production.github.io/mmorpg-kit-docs
49 stars 10 forks source link

190 update #2619

Closed moepi2k closed 9 hours ago

moepi2k commented 10 hours ago

updated project to 190 and when i click play (not even in home screen) i get this error

https://gyazo.com/b2bc69ebf99fe38172d6bcddfe96a10b

when i click the error it shows my diffren scriptable which not even have something todo with that script. i removed the script and then i just spam the same error with another script.

insthync commented 10 hours ago

Did you try to close unity and reopen it?

insthync commented 9 hours ago

You may try to replace codes in BaseGameData

        [Tooltip("Game data ID, if this is empty it will uses file's name as ID")]
        [SerializeField]
        protected string id = string.Empty;
        public virtual string Id
        {
            get { return string.IsNullOrEmpty(id) ? (this == null ? string.Empty : name) : id; }
            set { id = value; }
        }

I don't know how is your scriptable object instance is empty, do you have any scripts which create game data instance at runtime ?

moepi2k commented 9 hours ago

yes even removed whole library folder, thoguht there is a serialization issue.

moepi2k commented 9 hours ago

no most of my custom scriptables have just custom conditions like https://gyazo.com/2f107e030069a409ca1d5c821927e089

insthync commented 9 hours ago

Try what I've told you

moepi2k commented 9 hours ago

You may try to replace codes in BaseGameData

        [Tooltip("Game data ID, if this is empty it will uses file's name as ID")]
        [SerializeField]
        protected string id = string.Empty;
        public virtual string Id
        {
            get { return string.IsNullOrEmpty(id) ? (this == null ? string.Empty : name) : id; }
            set { id = value; }
        }

I don't know how is your scriptable object instance is empty, do you have any scripts which create game data instance at runtime ?

this is working but then im wondering why i have empty data..

insthync commented 9 hours ago

Maybe just an empty ref to any game data scripts

moepi2k commented 9 hours ago

ok i will check thx