Page 1 of 1

"Failed to insert item. Menu item insert limit is reached."

Posted: Wed Oct 25, 2023 10:48 am
by Abelius
Hi there,

It seems I've hit some kind of limitation.

I was building a fairly big conversation with more than a thousand dialogue entries. And when I tried to link one entry to another conversation, just after clicking the "Another Conversation" option from the dropdown, I got this error:

Image

It also happens in Outline Mode. And it doesn't happen with a small conversation.

So, searching a bit I've found this...:

https://issuetracker.unity3d.com/issues ... 00-scripts

I'm still in a fairly old DS version (can't happily update...), so I don't know if you've already modified DS according to that recommendation. If not, it would even be possible?

The thing is, if I need to stay under 1000 entries for each conversation, just to avoid this issue... that's going to hurt my workflow a bit... :|

Thanks.

Re: "Failed to insert item. Menu item insert limit is reached."

Posted: Wed Oct 25, 2023 11:13 am
by Tony Li
Hi,

That is unfortunately a limitation of the Unity editor. Can you reorganize things or use an additional dialogue database to reduce the size of the dropdown menu? If you use an additional database, set its Base ID value to a high value such as 10000 so it won't be likely to use the same internal ID numbers as your main database.

Re: "Failed to insert item. Menu item insert limit is reached."

Posted: Wed Oct 25, 2023 11:46 am
by Abelius
Ah well, if no workaround is possible other than avoiding the issue entirely, then indeed I'll do things differently. :roll:

Kind of lame of Unity to set a limit like that.

Re: "Failed to insert item. Menu item insert limit is reached."

Posted: Wed Oct 25, 2023 3:28 pm
by Tony Li
If you're open to updating the editor-side code, if not the runtime code, I could add an option to 2.2.41 or 2.2.42 to split the dropdown menu into two dropdowns: one to select a conversation, the next to select a dialogue entry within that conversation.

Re: "Failed to insert item. Menu item insert limit is reached."

Posted: Wed Oct 25, 2023 4:41 pm
by Abelius
I'm unsure what you mean by "editor-side code" and "runtime code".

Do you mean it would be possible to partially update DS to include that change even with my old version?

If that's the case, yeah, by all means, I'd do that.

Re: "Failed to insert item. Menu item insert limit is reached."

Posted: Wed Oct 25, 2023 7:51 pm
by Tony Li
I think so. The Dialogue System's editor code is in Plugins/Pixel Crushers/Dialogue System/Scripts/Editor. After I make the change, I'll try importing just that folder (and all of its subfolders and many scripts) into a vanilla DS version 2.2.15 project to see if there are any conflicts.

Re: "Failed to insert item. Menu item insert limit is reached."

Posted: Thu Oct 26, 2023 8:08 am
by Abelius
Much appreciated, Tony.

I'm sure I'm missing out a lot of features staying in this version, but this isn't a good time to make an upgrade. :|

Let's see after I release an update.

Re: "Failed to insert item. Menu item insert limit is reached."

Posted: Wed Nov 01, 2023 4:30 pm
by Tony Li
This change is implemented in the upcoming 2.2.41, but there are too many changes to be able to import only the changed script into version 2.1.5. You'll need to update to 2.2.41 to get this new feature.

Re: "Failed to insert item. Menu item insert limit is reached."

Posted: Wed Nov 01, 2023 9:05 pm
by Abelius
Alrighty. I'll see if I can upgrade in a civilized way after the upcoming update of my game.

Thank you for your efforts, Tony!

Re: "Failed to insert item. Menu item insert limit is reached."

Posted: Wed Nov 01, 2023 9:13 pm
by Tony Li
Glad to help!