Search found 14 matches

by njg
Sat Jun 27, 2015 5:23 pm
Forum: Dialogue System for Unity
Topic: Object does not match target type
Replies: 11
Views: 3499

Re: Object does not match target type

An Update: Whilst driving through the pouring rain to pick my wife up from work I had an ephipany strike me square in the forehead. I have two characters sharing the same script registering the same function. Could this be the cause of the problem? After a day spent shopping I got back to the comput...
by njg
Sat Jun 27, 2015 2:31 pm
Forum: Dialogue System for Unity
Topic: Object does not match target type
Replies: 11
Views: 3499

Re: Object does not match target type

It used to work just fine, then something happened...given that I have your debug switch set on "error" and "Selector: line 243" is executing just fine in my onconversationstart function but failing in the speakConversation call, I don't believe the stack trace anymore, which is ...
by njg
Fri Jun 26, 2015 2:08 pm
Forum: Dialogue System for Unity
Topic: Object does not match target type
Replies: 11
Views: 3499

Re: Object does not match target type

Hi

I am using the default Lua version.

Unity 4.6.5f1

------------------------------
Dialogue System for Unity
Version 1.4.5

Copyright © Pixel Crushers
------------------------------

Thanks,

Nick
by njg
Fri Jun 26, 2015 12:55 pm
Forum: Dialogue System for Unity
Topic: Object does not match target type
Replies: 11
Views: 3499

Re: Object does not match target type

I posted the wrong function before, (lack of sleep/migraine), but its much the same, and i did what you suggested. the odd thing is the debug statement never comes out in the editor.log file. Very weird. public bool speakConversation(string npc,string conversation,string stage) { /* string query = &...
by njg
Fri Jun 26, 2015 12:16 pm
Forum: Dialogue System for Unity
Topic: Object does not match target type
Replies: 11
Views: 3499

Re: Object does not match target type

here is the full stack trace: Dialogue System: Lua code 'return speakConversation("charles anderson","when darkness falls","first")' threw exception 'Object does not match target type.' UnityEngine.Debug:Internal_Log(Int32, String, Object) UnityEngine.Debug:LogError(Obj...
by njg
Fri Jun 26, 2015 12:38 am
Forum: Dialogue System for Unity
Topic: Object does not match target type
Replies: 11
Views: 3499

Object does not match target type

Hi, my code started throwing the following exception Dialogue System: Lua code 'return speakConversation(sidson,sidson,smokeweed)' threw exception 'Object does not match target type.' It doesn't matter whether the parameters are quoted or not (question: do they have to be quoted? this may be a silly...
by njg
Tue Jun 09, 2015 1:17 am
Forum: Dialogue System for Unity
Topic: how to switch conversations (or not)
Replies: 2
Views: 765

Re: how to switch conversations (or not)

thanks very much,

Nick
by njg
Mon Jun 08, 2015 5:55 pm
Forum: Dialogue System for Unity
Topic: how to switch conversations (or not)
Replies: 2
Views: 765

how to switch conversations (or not)

Hi, This is not a bug, but rather a question about how to do something. I have an NPC who has a dialog tree which is composed of several sub trees each of which get activated depending on the stage of development of the PC. The NPC is a cross between quest giver and friendly advisor. His dialog tree...
by njg
Mon Jun 08, 2015 4:17 pm
Forum: Dialogue System for Unity
Topic: exception 'invoke function call on non function value'
Replies: 3
Views: 2176

Re: exception 'invoke function call on non function value'

yes there might be a typo … three p's in a row instead of two and my tired old eyes aren't what they used to be, thanks for the pointer,

Nick
by njg
Sat Jun 06, 2015 12:55 pm
Forum: Dialogue System for Unity
Topic: exception 'invoke function call on non function value'
Replies: 3
Views: 2176

exception 'invoke function call on non function value'

Hi,

the subject says it all,

exception 'invoke function call on non function value'

could someone tell me what this means? the c# function is defined to Lua the same as all the rest of them and has the same pattern. Its kind of odd…to me at least.

Thanks,

Nick