Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Zanderfax on March 20, 2017, 12:43:52 PM

Title: Expected top level layout group missing! HashTable Proxy Error[SOLVED]
Post by: Zanderfax on March 20, 2017, 12:43:52 PM
I have Unity 5.5.1f1 installed with Playmaker 1.8.3 and ArrayMaker 1.1.5.2F

When I run my game and add data to a blank hash table I am getting the following error:

Expected top level layout group missing! Too many GUILayout.EndScrollView/EndVertical/EndHorizontal?
UnityEditor.DockArea:OnGUI()

I have no prefilled data in the hash table. I know the data is getting into the table due to being able to get it out via scripts but I need to stop the errors due to it generating hundreds of errors.

Any solution to this issue?

Any help would be great!

Z
Title: Re: Expected top level layout group missing! HashTable Proxy Error
Post by: jeanfabre on March 21, 2017, 02:25:41 AM
Hi,

 How do you add data? I am not sure I fully understand how to repro this.

 Bye,

Jean
Title: Re: Expected top level layout group missing! HashTable Proxy Error
Post by: Zanderfax on March 21, 2017, 08:37:56 AM
First defined the var:

    public System.Collections.Hashtable _tableInfo;

Then get the reference:
   _tableInfo = GameObject.Find("DO_tableInfo").GetComponent<PlayMakerHashTableProxy>().hashTable;

Then add data:

    //Update the tableInfo hash with new data
        _tableInfo.Add("tableID", tID);
        _tableInfo.Add("numPlayers", tnumPlayers);
        _tableInfo.Add("numRuns", tnumOfRuns);
        _tableInfo.Add("gameNum", tgameNum);


Title: Re: Expected top level layout group missing! HashTable Proxy Error
Post by: jeanfabre on March 22, 2017, 02:33:46 AM
Hi,

I see, It's likely because you are sending null values, I fixed the inspector. Please redownload ArrayMaker from the Ecosystem.

Bye,

 Jean
Title: Re: Expected top level layout group missing! HashTable Proxy Error
Post by: Zanderfax on March 22, 2017, 09:18:15 AM
That fixed it!

Thank you very much for the help and I just wanted to say you made an amazing tool! Keep up the great work!

Z