Game Development Community

Simple Melee System Help

by Jared McGarry · in Torque Game Engine · 07/19/2007 (11:03 pm) · 8 replies

I just added the Simple Melee System Resource by James Thompson and I added the necssary files but I can't seem to get it to work. I'm kind of a noob to Torque and I'm not exactly sure how to make the sword file a non-Static Shape and how to alter the collision data.

#1
07/20/2007 (1:44 pm)
I might be able to help you but you will need to provide a few more details.
The more info you give will help me help you. ;)

Are you trying to create a new sword to use with the kork model?
If so, what 3D modeling program are you using?
Did the C++ code compile?

When you say "alter the collision data" do you want to know how to do this in the scripts?

Throw me a bone... =)

Jame's resource is awesome for a beginner and should work with the scripts and assets included in the rar file. Take your time and follow his instructions step by step using the code and assets provided first. Then after you get things working load up Milkshape or whatever and create a new sword or axe.
#2
07/20/2007 (2:42 pm)
After reading this "how to make the sword file a non-Static Shape". Are you trying to make the sword a pickup item in-game?
#3
07/21/2007 (1:01 am)
I'm using the sword that's included with the Simple Melee System Resource and I got it to work as a regular shape so I don't need help with the collision data anymore. However I can't get it to attack.

I know I'm making some stupid mistake. I just added all the scripts and such, is there something else I have to do?

I'm not exactly sure what else to say since I don't know exactly what I'm doing wrong.
#4
07/21/2007 (6:46 am)
Did you replace all of the server scripts with the ones in James resource?
And did you replace the C++ files and do a clean build of the engine?

What I mean by clean build is before you compile the engine do a clean first
and then run a build.

Hope this helps.
#5
07/21/2007 (12:21 pm)
I did replace all the Scripts with the new ones but how exactly do you do a clean build of the engine? I'm just using Notepad to edit the scripts and such so is there some other Script Editor I should be using?
#6
07/21/2007 (1:41 pm)
The Simple Melee System resource requires you to recompile the engine. You will need to get a C++ compiler to do that. I would read up on how to do that or try doing a search on compiling the engine.

You can compile the engine with Visual Studio 6, Visual Studio 7 (2003), Visual Studio 2005 Express or Visual Studio 2005. I think you can still download Visual Studio 2005 Express for free but I'm not sure on that.

Guide to Compiling TGE 1.4 or 1.5 with Visual Studio 2005 Express
tdn.garagegames.com/wiki/Torque/vs2k5

Jared, you own the SDK so you can recompile engine till you turn blue in the face. ;)
Learn up on the C++ code and compiler and you be able to do much more than mod the scripts.
#7
07/22/2007 (2:32 pm)
Alright, I've just downloaded Visual Studio. Thanks for the help Raymond.
#8
07/23/2007 (7:32 am)
Jared, I'm going to do a quick step by step write up on how to recompile the engine and post it in the private forums when I get home from work today. I'll use the Simple Melee System resource as an example.

Btw, I forgot that Jame's didn't include any instructions in his resource, my bad. So now I know why you were having a hard time with it and thats why I plan on doing a write up for this.