Search found 6 matches

by patchfoot
Sun Mar 08, 2015 4:46 pm
Forum: Dialogue System for Unity
Topic: Reload lua environment?
Replies: 3
Views: 1207

Reload lua environment?

If I've added my own tables to the Lua environment (not through Dialogue System) does this toss those out as well?
by patchfoot
Wed Mar 04, 2015 9:33 am
Forum: Dialogue System for Unity
Topic: Reload lua environment?
Replies: 3
Views: 1207

Reload lua environment?

For debugging purposes it would be nice to have a quick way to just toss out any changes to the Dialogue System LUA environment since loading without restarting the build. Also to sort of hot reload changes made to the files it imports I guess. Is there a simple way to do that?
by patchfoot
Mon Nov 24, 2014 8:49 pm
Forum: Dialogue System for Unity
Topic: Nlua broken in the newest version and LuaTableWrapper question
Replies: 6
Views: 1937

Nlua broken in the newest version and LuaTableWrapper question

Upgraded to the newest version and it's still not quite what I expected but I'm probably doing something wrong. Lua.Run(@" blah = {5,1}"); var blah = Lua.Run("return blah").AsTable; foreach (var key in blah.Keys) { Debug.Log("key " + key); Debug.Log(blah[key]); } // pri...
by patchfoot
Fri Nov 21, 2014 3:44 pm
Forum: Dialogue System for Unity
Topic: Nlua broken in the newest version and LuaTableWrapper question
Replies: 6
Views: 1937

Nlua broken in the newest version and LuaTableWrapper question

I'll check nlua again, but how do you pull the value in the table? Or is the Count required so that foreach runs? LuaTableWrapper blah = result.AsTable; foreach (var value in blah.Values) { Debug.Log(value) // this never runs since it doesn't think there are any values even though I can access them ...
by patchfoot
Wed Nov 19, 2014 5:29 pm
Forum: Dialogue System for Unity
Topic: Nlua broken in the newest version and LuaTableWrapper question
Replies: 6
Views: 1937

Nlua broken in the newest version and LuaTableWrapper question

I noticed importing the Nlua package and deleting lua interpreter seems to break the lua environment. Is that a known issue? Also how do you work with LuaTableWrapper  values and how do you check for subtables?  Like how do you get both a list of the array values and all the values assigned to a key...
by patchfoot
Thu Sep 18, 2014 8:05 am
Forum: Dialogue System for Unity
Topic: Run time support?
Replies: 1
Views: 1730

Run time support?

Is there any support by default for bringing in conversations saved in csv, xml, or whatever at runtime to populate a dialogue db? The idea is that the writer can just dump their dialogue into a directory without having to do any fiddling in the editor.