.cs file locations
by Walker Twyman · in Torque 3D Professional · 02/16/2011 (6:09 pm) · 2 replies
Normally, I do my best to figure out a problem on my own. Unfortunately, a solution to a problem as simple as this one has been eluding me for days.
I'm working on making some changes to the weapons/player in my project in T3D. I've looked in scripts/server and core/scripts/server, and I am unable to find the .cs files that contain the weapon and player variables. In TGEA, they were extremely simple to locate. In T3D it is taking me a lot longer to get used to the complex folder structure. Would someone mind filling me in on the location of these files? Thanks so much.
-Walker
I'm working on making some changes to the weapons/player in my project in T3D. I've looked in scripts/server and core/scripts/server, and I am unable to find the .cs files that contain the weapon and player variables. In TGEA, they were extremely simple to locate. In T3D it is taking me a lot longer to get used to the complex folder structure. Would someone mind filling me in on the location of these files? Thanks so much.
-Walker
About the author
#2
02/16/2011 (7:07 pm)
OOOH! Now that you mention it, that is true. Thanks so much for your help, time to start changing :P!
Associate Michael Hall
Distracted...
- Individual weapon properties are found in art/datablocks/weapons/WEAPON NAME.cs
- Common/shared weapon properties are found in art/datablocks/weapon.cs
- Individual weapon methods are found in scripts/server/WEAPON NAME.cs
- Common/shared (namespace) weapon methods are found in scripts/server/weapon.cs
Not really anymore complicated than TGE/TGEa ever was, it's just that datablocks have been separated out from the functions/methods. Keep in mind that just because stock code is like does not mean you cannnot modify locations and directory structure on your own.I believe that the separation stemmed from the inclusion/implementation of the datablock editor - I remember an early early alpha version that would destroy scripts if you used the datablock editor to modify existing datablocks within script script files.