behaviours missing from dropdown list
by Isaac Mensah · in Torque Game Builder · 08/16/2009 (11:30 am) · 6 replies
Everytime i create a behaviour and save to my behaviors folder it does not show up in the dropdown list in editor Is this a bug or what??? ... this is about 10th post i've seen with the same problem and no resolution.. i'm having the same problem now.. behaviors in the right folder but not showing up in drop down list!!
#2
08/16/2009 (12:22 pm)
Tried that. Reinstalling tgb I may be missing something
#3
08/16/2009 (12:27 pm)
Maybe there's an error in the behaviors code. Helping might be easier if you post your behavior here.
#4
08/16/2009 (12:33 pm)
Does the code have to be error free before you can assign it as a behaviour? .. That can't be a good thing. Really counter intuitive if that's the case. It should appear in the list as long as it is a valid . Cs file even if I saved a blank .cs document
#5
What name should be listed in the behavior rollout if you have an empty script file? The name isn't determined by the filename of a script, it's the friendlyName field of the BehaviorTemplate instance you should create in the behavior script file. A basic behavior structure looks like this:
Hope this helps.
08/16/2009 (12:57 pm)
Quote:It should appear in the list as long as it is a valid . Cs file even if I saved a blank .cs document
What name should be listed in the behavior rollout if you have an empty script file? The name isn't determined by the filename of a script, it's the friendlyName field of the BehaviorTemplate instance you should create in the behavior script file. A basic behavior structure looks like this:
if (!isObject(TestBehavior))
{
%template = new BehaviorTemplate(TestBehavior);
%template.friendlyName = "This is the name in the behavior list";
%template.behaviorType = "This is the behavior catergory";
%template.description = "This text is displayed on mouse over";
}Hope this helps.
#6
Took a break for a while.. I'll let you know if it works
Thanks for your help.
08/16/2009 (1:06 pm)
Ok. I'll check the code again. Took a break for a while.. I'll let you know if it works
Thanks for your help.
Torque Owner Zilla