bsimser / Inventory-Pro

https://devdog.io
MIT License
2 stars 0 forks source link

Unity Editor is locked up looking for item database #262

Open bsimser opened 5 years ago

bsimser commented 5 years ago

Original report by Anonymous.


I just started using this, and was following the tutorials on setting up a new scene. I clicked the <DB part of the editor window out of curiosity. BIG MISTAKE.

Now the entire Unity Editor is soft locked into a loop of looking for an item database. I've tried selecting various files with those extensions, but the editor won't accept anything. I can't even save the scene or get to any other unity controls.

Selecting "Create Database" just closes the window for about a quarter of a second, then reopens the same window. Selecting the other one brings up the file selection, but again, I have no idea what file it's looking for. (My Unity project has over 2000 files cause I was trying various plugins out before implementing one on my real game.)

What file is it looking for, why can't it create it, and how can I salvage this?

I'm assuming the answer to the latter is "You're screwed and need to close Unity using the task manager" for now. I can't afford to leave this running all day waiting for an answer here since I also use this computer for work.

I would strongly suggest that if this IS a way to get stuck, the interface for the editor should really throw a "Are you sure?" or have some way to abort whatever that menu option does. I've run into it twice now while trying out this plugin, and losing your entire unity scene by interacting with a new plugin stuck in an endless loop has not been a fun first experience. There is also nothing in the tutorials or documentation explaining what this dialog is asking for. (Keep in mind I literally just started using the plugin.)

bsimser commented 5 years ago

Original comment by Dark Griffin (Bitbucket: DarkGriffin, GitHub: DarkGriffin).


Ack, I forgot to log in before submitting. This is my posting, in case you need to get back to me for support/questions.

bsimser commented 5 years ago

Original comment by Dark Griffin (Bitbucket: DarkGriffin, GitHub: DarkGriffin).


Ah, figured it out using some file searching. It's still not user friendly to solve unless you know what the tool is supposed to work with.

IF you have created the item database before and find yourself stuck here, look under the folder you selected when doing the setup wizard for a file called "ItemDatabase.asset" (It should be in the folder you selected for storing the "database" in).

I should add that the first time I got stuck here, I hadn't done the wizard yet, so there was no such file. The "Create" button appears to do nothing in this case, so there was still no way to get out of it if the first thing the user opens is the item editor. Whatever that create item database button is supposed to do, I've never seen it do much.

To be honest, I'd rather have an option to "close the item editor window" to avoid being soft locked should we end up doing things in the wrong order. Or the item editor window needs a cooldown before asking again, to make it possible to "unstuck" yourself should you happen not to have a database to feed the editor window.

bsimser commented 5 years ago

Original comment by Herman Tulleken (Bitbucket: herman_tulleken, ).


Another way to get into this loop is when you select a file that is not in your project's Assets folder. I added a temporary Error.Log message for this situation, but we need something more robust.