Game Development Community

Making Changes to Behaviors??

by Kevin Epps · in Torque Game Builder · 03/10/2008 (9:15 pm) · 7 replies

I just added some functionality to the Camera Mount Behavior, but the new changes just won't show, no matter what I do. I deleted all the dso files for the whole projects and nothing. I even removed the behavior from the Behaviors folder and it still gets listed without my changes. Is there some type of behavior cache in place or something??? Argh!

#1
03/11/2008 (3:23 am)
Um, try your UserName\AppData\Roaming folder, it should be hidden.
#2
03/11/2008 (5:23 am)
Is "Roaming" the actual name of the folder, or is the folder called TorqueGameBuilderPro? If it's the latter, then that didn't work for me. I deleted all the dso files in that folder as well, and everything remains the same.
#3
03/11/2008 (5:28 am)
Figured it out. Didn't realize that TGB could read files inside of a zip file. That's where it was pulling it from, even though the cs file wasn't there.
#4
09/08/2008 (9:39 pm)
Kevin, would you mind posting the details on how you solved the problem? I'm having a similar situation with Behaviors and I'd like to try your fix before starting a new thread specific to my issue.

Thanks!
#5
09/09/2008 (5:42 am)
The issue with my problem was the fact that I had downloaded the behavior zip into my "behaviors" folder and left it there after I unzipped the contents. I moved the zipped file from the behaviors folder and it worked just fine.

Make sure that behavior .cs file is the ONLY reference to it inside of the behaviors folder. Get rid of any zip files or subfolders.
#6
09/09/2008 (8:19 am)
Ah, gotcha. Thanks for the quick reply. Unfortunately it looks like I might have a different issue though... No zipped behaviors (though I wish that was that the case). Thanks again.
#7
12/16/2008 (11:31 am)
Found the problem, at this particular point of code

%takesDamage = %this.damageobject.getBehavior("TakesDamageBehavior");

it calls for the regular TakesDamageBehavior

since the advance damage is called

TakesDamageAdvBehavior in the code itself I went ahead and changed it, Bam! it works!!

Thanks for this code its awesome!!!!