Game Development Community

4004.door resource

by William Shellman · in Torque Game Engine · 05/08/2008 (12:47 pm) · 7 replies

Hello! I recently picked up this resource on the forums "4004.door"! I was reviewing the ReadMe file and I have some questions to ask.

First, at the very beginning, you are instructed to add a set of lines to the fps/client/scripts/default.bind.cs file, but it does not specify where to add them. I attempted to find dialog within the file that corresponded with the new lines, and I did find a match, but I'm not sure as to whether that is the correct location to place them. Can the author of the resource clarify this?

Second, the next step you are told to take is really not clear. The reason I say that is because I have no such file in any of my Torque directories, and I have searched them all! Does this mean that I don't even need to worry about it, or that something may be wrong with my engine configuration?

In fact, all of the "add the following:" instructions do not have a specified placement in the files. I do not want to damage anything, so I humbly request any assistance with this resource that I can get.
I will not continue with the project until I can clear up the confusion. Thanks for any help?

#1
05/08/2008 (1:33 pm)
That's for an older version of Torque, so things may be in different places in the current engine. I haven't used it in a long time.

Have you tried one of the other ones? Like this one?
#2
05/08/2008 (5:10 pm)
O.k., David! I have the resource you recommended and I have a few questions about it. Actually, the question is more about Visual Studio! I was wondering if I could use it to change scripts as well as C++ code? Or would I have to re-compile the engine to do it with VS? And if so, do I simply add the script changes, then save the project? I may have a problem with the program because I get a lot of errors when I attempt to make changes to the TorqueDemo. It compiled the engine, but something must have been changed somehow because now I receive an error message about the SQL Server. I've been told it is of little concern, so I haven't worked of fixing it yet. I just wanted to ask the question about using VS for scripting. Thanks for any help you can provide on this!
#3
05/09/2008 (8:30 am)
You don't actually have to have the SQL server installed at all. If you installed it, it will give you warnings about it not being used and such, but it doesn't actually do anything. Torque makes no use of it whatsoever. You can edit scripts with express, though it will format them as C# and color-code them accordingly. Intellisense will also be off.

You can use notepad, too. Or any text editor. I like Torsion because I can debug my scripts.
#4
05/09/2008 (10:21 am)
Do not use notepad to edit scripts. Notepad has a high tendency to add in binary garbage making the file unusable. If you want a lightweight text editor for editing scripts use Notepad++. The best options are of course Torsion and Codeweaver, but I like using Notepad++ for fast edits and for doing html/php and xml. It supports a pretty broad range of languages.
#5
05/09/2008 (10:22 am)
Excellent, David! Then I could just uninstall the SQL Server so it doesn't cause the error message, without damaging anything?

I also have a question regarding the resource you recommended. I have read through the instructions and was wondering if the referral to "Create 2 joints (1 as the base, and 1 as the slider)", does the term "Joint" refer to an "Armature"? Furthermore, is a "Slider Joint" simply a "Path" or an Armature?

I have been studying Blender's documentation on creating animations and I still haven't really gotten very far into the details, but I haven't let up on my studies. I am ready to start animating my models and the documentation is somewhat confusing, so I have made some bad mistakes thus far. But I corrected the problems and things are normal for now.

If I could use Notepad for the changes to script, then I have been using it, because that's what usually opens those type of files. So I just open the files in Notepad, make the changes, save the changes, then, in Visual Studio, add the files to the TorqueDemo Project Solution! Then Re-Build the solution?
Or can Notepad make the script functional just by saving it? I quess the real question is, do I need to re-build the TorqueDemo in Visual Studio to initiate the changes in the engine?

Thanks for any help with this!
#6
05/09/2008 (10:29 am)
If you're just making changes to scripts then you don't need to recompile the engine. Just make the change, save, and make sure to delete the .dso, otherwise you won't see your changes. The engine handles the compilation of the scripts. The nice thing about Torsion, and I think Codeweaver does this now too, is it allows you to precompile your scripts to see if there are any errors. That way you can fix them before firing up the game.
#7
05/09/2008 (1:18 pm)
Great, Scott! So I should just leave the scripting to my trial version of Torsion, or I do have the TIDE IDE? Could I just use that? And no need to even open Visual Studio? Just write in the changes, and save them, then delete the .dso file for the file that was changed? I think I'm getting it?
This is quite confusing! I have a few different text editors, but I like the Notepad. I have never used any of the others. Anyway, thanks for all your help so far!