Getting Torque to Recognize Changes
by Jarrod Nettles · in Torque Game Builder · 01/26/2006 (11:30 am) · 4 replies
I've been a long time REALbasic game programmer who's put a lot of energy into developing classes and workarounds for their horrible spritesurface, but after so much neglect and ill will toward my lobbying for a new and improved engine, I've abandoned them.
I just bought T2D, and I'm already in love with it. I've had one day with this beauty, and already I've got functionality that I could never have gotten from RB. The graphics are much crisper and clearer, creating user controls is a breeze, adding new sprites to the scene is laughably easy, etc. I have just one problem.
I'm still working through the first tutorial that's in the docs, where you attach the ship and the enemy ship to the scene and move it around, etc. I've been having a little bit of trouble getting the program to recognize changes I'm making to the source file, client.cs. For example, I added a function to make the "w" key move the ship up: works fine. So, I went back into client.cs and added functions for moving it left, right, and down, but now when I start up the program, all I have working is the "w" key! I am saving the file before starting it up and I've done three bug checks and everything is fine, except that when I start it up its like the program isn't recognizing the recently modified file...... Any ideas as to what's wrong, or what I'm doing wrong?
I just bought T2D, and I'm already in love with it. I've had one day with this beauty, and already I've got functionality that I could never have gotten from RB. The graphics are much crisper and clearer, creating user controls is a breeze, adding new sprites to the scene is laughably easy, etc. I have just one problem.
I'm still working through the first tutorial that's in the docs, where you attach the ship and the enemy ship to the scene and move it around, etc. I've been having a little bit of trouble getting the program to recognize changes I'm making to the source file, client.cs. For example, I added a function to make the "w" key move the ship up: works fine. So, I went back into client.cs and added functions for moving it left, right, and down, but now when I start up the program, all I have working is the "w" key! I am saving the file before starting it up and I've done three bug checks and everything is fine, except that when I start it up its like the program isn't recognizing the recently modified file...... Any ideas as to what's wrong, or what I'm doing wrong?
#2
Also, I noticed that you posted this on the public-forums so I'm wondering if you're aware of the private forums where you can find lots of help?
If not, use the gold-coloured menu at the top and select "Developer > Forums". You'll then see a hyperlink at the top of the page "Edit Forum Subscriptions", click this and you'll be presented with a list of forum subscriptions. Select the ones you're interested in but make sure you select the one entitled "Torque 2D Private Forums".
Good luck and see you on the forums. :)
- Melv.
01/26/2006 (11:50 am)
In the latest alpha-releases, there's a batch-file called "cleandso.bat". This will remove all ".dso" files so that you definatley know that T2D isn't using an old one. In all cases it should still report the error though but the batch-file can still be handy.Also, I noticed that you posted this on the public-forums so I'm wondering if you're aware of the private forums where you can find lots of help?
If not, use the gold-coloured menu at the top and select "Developer > Forums". You'll then see a hyperlink at the top of the page "Edit Forum Subscriptions", click this and you'll be presented with a list of forum subscriptions. Select the ones you're interested in but make sure you select the one entitled "Torque 2D Private Forums".
Good luck and see you on the forums. :)
- Melv.
#3
But I'm still having some problems. I tried getting rid of the .dso files and now when I start up Torque nothing happens at all (the main screen does not come up) ..... It just sits there until I force quit...... Should I only be deleting specific ones?
(i would have put this into the private forum, but didn't want to create a new thread)
01/26/2006 (2:06 pm)
Thanks Melv, no I did not know that those were there.But I'm still having some problems. I tried getting rid of the .dso files and now when I start up Torque nothing happens at all (the main screen does not come up) ..... It just sits there until I force quit...... Should I only be deleting specific ones?
(i would have put this into the private forum, but didn't want to create a new thread)
#4
If you click on the little arrow (pointing-right, it'll drop this section down with details on where the error occurred).
Alternately, if you go in and then come out, look for the "console.log" text-file which is a duplicate of everything in the console. Sometimes the console is better because errors/warnings are color-coded so they're much easier to spot.
- Melv.
01/26/2006 (3:13 pm)
Okay then, when you run-up T2D, hit the tilde-key (~). This should bring down the console. At the top of the console, it'll report if any compilation errors occurred. If there aren't any then it'll say "no script compilation errors occurred".If you click on the little arrow (pointing-right, it'll drop this section down with details on where the error occurred).
Alternately, if you go in and then come out, look for the "console.log" text-file which is a duplicate of everything in the console. Sometimes the console is better because errors/warnings are color-coded so they're much easier to spot.
- Melv.
Torque Owner Joe Rossi
Indri Games