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

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
Abelius
Posts: 312
Joined: Fri Jul 21, 2017 12:45 pm

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

Post 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.
Unity 2019.4.9f1
Dialogue System 2.2.15
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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.
User avatar
Abelius
Posts: 312
Joined: Fri Jul 21, 2017 12:45 pm

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

Post 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.
Unity 2019.4.9f1
Dialogue System 2.2.15
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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.
User avatar
Abelius
Posts: 312
Joined: Fri Jul 21, 2017 12:45 pm

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

Post 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.
Unity 2019.4.9f1
Dialogue System 2.2.15
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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.
User avatar
Abelius
Posts: 312
Joined: Fri Jul 21, 2017 12:45 pm

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

Post 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.
Unity 2019.4.9f1
Dialogue System 2.2.15
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

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

Post 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.
User avatar
Abelius
Posts: 312
Joined: Fri Jul 21, 2017 12:45 pm

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

Post 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!
Unity 2019.4.9f1
Dialogue System 2.2.15
User avatar
Tony Li
Posts: 21679
Joined: Thu Jul 18, 2013 1:27 pm

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

Post by Tony Li »

Glad to help!
Post Reply