Drag and Drop Setup (Classic Schema)

GilbertT

New member
I am having trouble setting up a simple drag and drop for the inventory system for the Classic Schema setup. I have read the documentation, and it seems to be setup correctly, but obviously something is not correct

I have provided images to showcase how i set it up, any help would be greatly appreciated!


Image20260109141624.pngImage20260109141626.pngImage20260109141615.png
 
Thank you for the reply! I have added in the Drag Handler and Move Cursor, but now it's throwing an Item ID error and I am not sure what I did wrong with the setup. I have added images showcasing the item in question and the error itself.

Any help would be appreciated!
 

Attachments

  • Image20260114152040.png
    Image20260114152040.png
    80.5 KB · Views: 3
  • Image20260114152046.png
    Image20260114152046.png
    1.1 MB · Views: 3
  • Image20260114152049.png
    Image20260114152049.png
    402.7 KB · Views: 3
I've never scene this error before. I can't see the full error message from your screenshot.
Please whenever you haver errors in the console. make sure to copy paste the entire stack in your post. This way I can know where the error originates from

From your screeshot I can see the error coming from a crafting recipe. Could you check all your recipes and make sure none of them has a null item in their list of ingredients and/or results

I don't know how that could have anything to do with drag and drop though...
 
Thanks for the reply!

Here is the full error that it is currently throwing:

The database has errors and some could not be automatically fixed.
UnityEngine.Debug:LogError (object)
Opsive.UltimateInventorySystem.Editor.Managers.InventoryMainWindow:ValidateDatabase () (at ./Packages/com.opsive.ultimateinventorysystem/Editor/Managers/InventoryMainWindow.cs:333)
Opsive.UltimateInventorySystem.Editor.Managers.InventoryMainWindow:OnEnable () (at ./Packages/com.opsive.ultimateinventorysystem/Editor/Managers/InventoryMainWindow.cs:221)
UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()

I do not plan on using crafting in my project, so I removed all the recipes which seemed to have fixed the Item ID error.

The drag and drop is still not working.
 
As the error says, the inventory database has some issues and could not be fixed automatically. This means something is corrupted on your InventoryDatabase.
Usually this comes with some additional logs specifying what could be the problem. The error message you sent on it's own is not enough to know what the issue is.

Make sure to read all the logs and see if you can figure out the problem is with your Database. Usually when an error cannot be automatically fixed is because you made multiple breaking changes to your database in a row, possibly from deleting some categories.

I'm sorry there is not much I can help with without more information
 
Yes I removed certain categories that I would not be using in my project.

What I did was duplicate a database which was recommended in the videos and then built it up from there removing what I wouldn't use.

Do you think the database has been corrupted beyond repair? Should I create a new one from scratch?

If I have to start the database over, how do I properly remove items/categories that I will not use without corrupting the database?
 
Normally you should always be able to fix a database manually. Usually they get corrupted because you made a change that cannot be automatically fixed. This in theory can only happen if you edited some database elements (categories, item definitions, recipes, etc...) outside of the InventorySystem Editor window

As mentioned before, when you should have more information in the console saying what could be wrong with your database. make sure to read the logs carefully and see if there is some insight you can get from there
 
First off I really appreciate all your help on my various topics. I really want to get this working!

I have gone through all of my items/definitions/categories to try and remove anything that might be causing the issue, but its still throwing this error. I have attached the error log in a picture below.

Another thing I have noticed is that the buy values are different in various sections. For instance in the main page, it lists one value to buy an item for but when you actually select the item it lists a different value. Could this be part of the issue? I have also attached a photo showcasing that.

Again thank you for all the help!
 

Attachments

  • Image20260128153430.png
    Image20260128153430.png
    498.1 KB · Views: 4
  • Image20260128153434.png
    Image20260128153434.png
    118.5 KB · Views: 5
Please do copy paste the errors AND warning logs in full. a screenshot of just one error is not enough to go on.
In theory you should not be getting this error without some warnings prior to it. The warning should give you detaile information about what is wrong with your database


Most likely the reason the price in the list and the buy price in the description is different is because you've set a Buy Modifier of -5%, It might be ronding the value down which would be the reason it goes from 3->2 | 1->0
1769634120734.png
 
Warning 1:
Item Category Equipment has two definition with the same name: Icon.
UnityEngine.Debug:LogWarning (object)
Opsive.UltimateInventorySystem.Editor.Managers.DatabaseValidator:Validate (Opsive.UltimateInventorySystem.Core.ItemCategory,bool) (at ./Packages/com.opsive.ultimateinventorysystem/Editor/Managers/DatabaseValidator.cs:211)
Opsive.UltimateInventorySystem.Editor.Managers.DatabaseValidator:CheckIfValid (Opsive.UltimateInventorySystem.Storage.InventorySystemDatabase,bool) (at ./Packages/com.opsive.ultimateinventorysystem/Editor/Managers/DatabaseValidator.cs:104)
Opsive.UltimateInventorySystem.Editor.Managers.InventoryMainWindow:ValidateDatabase () (at ./Packages/com.opsive.ultimateinventorysystem/Editor/Managers/InventoryMainWindow.cs:328)
Opsive.UltimateInventorySystem.Editor.Managers.InventoryMainWindow:OnEnable () (at ./Packages/com.opsive.ultimateinventorysystem/Editor/Managers/InventoryMainWindow.cs:221)

Warning 2:
The database is not valid. An autofix process will now run.
UnityEngine.Debug:LogWarning (object)
Opsive.UltimateInventorySystem.Editor.Managers.InventoryMainWindow:ValidateDatabase () (at ./Packages/com.opsive.ultimateinventorysystem/Editor/Managers/InventoryMainWindow.cs:330)
Opsive.UltimateInventorySystem.Editor.Managers.InventoryMainWindow:OnEnable () (at ./Packages/com.opsive.ultimateinventorysystem/Editor/Managers/InventoryMainWindow.cs:221)

Error:

The database has errors and some could not be automatically fixed.
UnityEngine.Debug:LogError (object)
Opsive.UltimateInventorySystem.Editor.Managers.InventoryMainWindow:ValidateDatabase () (at ./Packages/com.opsive.ultimateinventorysystem/Editor/Managers/InventoryMainWindow.cs:333)
Opsive.UltimateInventorySystem.Editor.Managers.InventoryMainWindow:OnEnable () (at ./Packages/com.opsive.ultimateinventorysystem/Editor/Managers/InventoryMainWindow.cs:221)
UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()
 

Attachments

  • Image20260130141730.png
    Image20260130141730.png
    496 KB · Views: 2
  • Image20260130141343.png
    Image20260130141343.png
    425 KB · Views: 2
So as you can see from the warning the issue is this:
"Item Category Equipment has two definition with the same name: Icon."

This means you this category has the "Icon" attribute twice. It cannot autofix this because it doesn't know which one is the "real" one.

This makes me think you have both an ItemDefinition attribute called "Icon" AND a ItemCategory attribute called called the same: "Icon". Which is not allowed

First look at the category and definition and item attributes for this item category. And see if you can find "Icon" twice. If so delete the one that shouldn't be there.
 
Back
Top