Getting basic scripts to work
by Drew Parker · in Torque Game Engine · 10/23/2003 (1:49 pm) · 3 replies
Hi Everybody,
I'm a UT2003 modder and I just got the Torque engine. It looks really great, but I'm having a little trouble getting my scripts to work.
In one getting started tutorial (I've actually read all the tutorials I can find) there was an example about modifying the players jump height. I modified the script, but can't see the player jumping any higher. I tried it on Realm Wars and the FPS and both don't seem to be working. The docs say it doesn't need a script compile like UT2003 does, but did I read that wrong, do I need a compile? I also tried the debug and release compiles of the source code and get the same thing. Any idea of what I may be doing wrong?
Thanks a lot!
- Drew
I'm a UT2003 modder and I just got the Torque engine. It looks really great, but I'm having a little trouble getting my scripts to work.
In one getting started tutorial (I've actually read all the tutorials I can find) there was an example about modifying the players jump height. I modified the script, but can't see the player jumping any higher. I tried it on Realm Wars and the FPS and both don't seem to be working. The docs say it doesn't need a script compile like UT2003 does, but did I read that wrong, do I need a compile? I also tried the debug and release compiles of the source code and get the same thing. Any idea of what I may be doing wrong?
Thanks a lot!
- Drew
About the author
#2
I noticed the script files are identical in these two places, and when I make changes to the fps directory, nothing happens. Do you know what the purpose is of this? The tutorials I read said to make changes to the fps directory, but it looks like that actually won't work with my current setup, and all the changes need to be made in the starter.fps directory. It looks like the starter.fps directory isn't listed in the install docs, is that created at runtime or compile time?
Thanks again Shay. You saved me a lot of time. :)
- Drew
10/23/2003 (3:07 pm)
Wow, thanks a lot Shay! That was it. I found the .dso files in the example/starter.fps directory, as opposed to the example/fps director.I noticed the script files are identical in these two places, and when I make changes to the fps directory, nothing happens. Do you know what the purpose is of this? The tutorials I read said to make changes to the fps directory, but it looks like that actually won't work with my current setup, and all the changes need to be made in the starter.fps directory. It looks like the starter.fps directory isn't listed in the install docs, is that created at runtime or compile time?
Thanks again Shay. You saved me a lot of time. :)
- Drew
#3
Personally, for testing here in the beginning, I run a batch file that deletes all dso files and then runs the TorqueDemo. I also delete the ML files (the mission lighting files) so that the lighting is recalculated on every run. If you create a batch file, you can do something like (put this in your example folder for instance):
del /s *.dso
del /s *.ml
TorqueDemo -mod starter.fps
You don't really need to specify starter.fps as the mod - that's the default. But I like to be explicit. Also, if you're running the Debug build, change the above to "TorqueDemo_Debug -mod starter.fps".
-Dan
10/23/2003 (5:34 pm)
The docs are just a bit out of date. You should be modifying the starter.fps folder if you're just running the TorqueDemo as-is. If you specify "-mod fps" on the command line, you'll run from the fps folder. It's a smaller version of the starter.fps demo (or so it seems).Personally, for testing here in the beginning, I run a batch file that deletes all dso files and then runs the TorqueDemo. I also delete the ML files (the mission lighting files) so that the lighting is recalculated on every run. If you create a batch file, you can do something like (put this in your example folder for instance):
del /s *.dso
del /s *.ml
TorqueDemo -mod starter.fps
You don't really need to specify starter.fps as the mod - that's the default. But I like to be explicit. Also, if you're running the Debug build, change the above to "TorqueDemo_Debug -mod starter.fps".
-Dan
Torque Owner Shay Arnett