Torque Doesn't Respond to Changes in my scripts
by Conlan Rios · in Technical Issues · 03/16/2006 (5:15 pm) · 14 replies
Hi,
I just got Torque a day ago and started with the basic tutorial. It's going along pretty well, but a problem seems to come up alot. I'll have the Level Editor - Beta running, then use Ultra Edit to change one of the scripts and then I go back to Level Editor and press "Run Game". However, it doesn't seem to respond at all to the changes I made in the scripts! To test if I was wrong I made several drastic, obvious changes and nothing still happened. Thanks for your help!
I just got Torque a day ago and started with the basic tutorial. It's going along pretty well, but a problem seems to come up alot. I'll have the Level Editor - Beta running, then use Ultra Edit to change one of the scripts and then I go back to Level Editor and press "Run Game". However, it doesn't seem to respond at all to the changes I made in the scripts! To test if I was wrong I made several drastic, obvious changes and nothing still happened. Thanks for your help!
#2
03/16/2006 (5:42 pm)
That definitely did something. I deleted the game.cs.dso but then when I pressed "Run Game" nothing happened. It was just the Torque 2D background. I put the dso back in the directory and it "worked" again meaning it still used the old version. When I opened up the dso in ultra edit it was completely different and I assume that's because it's a compiled version like you said. Is there any settings I should change or anything else I should do differently?
#3
I think that you may have an error in your script. If there is an error the script page won't load. Try downloading the original .cs file and add your changes piece by piece until either you spot your error or the script file won't load... and then you can narrow down where your error is. I ran into this the first times I scripted for Torque.
03/16/2006 (6:08 pm)
@ConlanI think that you may have an error in your script. If there is an error the script page won't load. Try downloading the original .cs file and add your changes piece by piece until either you spot your error or the script file won't load... and then you can narrow down where your error is. I ran into this the first times I scripted for Torque.
#4
03/16/2006 (6:12 pm)
Okay, I'll definitely try that. But is there any way to have it write an error log?
#5
I also noticed something, don't know if it's important. When I tried running the game after deleting the game.cs.dso, nothing happened, but I found it had made a new game.cs.dso in the gamescripts directory.
Any more suggestions?
Thanks for your help.
Edit: When I'm running my game and I want to escape out back to the level builder, I've been pressing F9. Is that correct or should I escape using a different key?
03/16/2006 (6:20 pm)
I tried it. I copied the original untouched game.cs and put that in the gamescripts directory instead of mine. When I restarted the level builder and ran game it had ships flying across the screen and firing missiles, meaning it's not even acknowledging what I do with game.cs. It only is opening game.cs.dso. I also noticed something, don't know if it's important. When I tried running the game after deleting the game.cs.dso, nothing happened, but I found it had made a new game.cs.dso in the gamescripts directory.
Any more suggestions?
Thanks for your help.
Edit: When I'm running my game and I want to escape out back to the level builder, I've been pressing F9. Is that correct or should I escape using a different key?
#6
03/16/2006 (6:39 pm)
You can email me your game.cs file with your additions and changes and I'll take a guick look and see if I can spot something wrong. or post it on a webpage and link from here.
#7
Edit: Is there any setting or option that could be set so it only reads the .dso? Because I'm wondering why would it use that file over the .cs file?
03/16/2006 (6:44 pm)
Thanks, I'm emailing it now.Edit: Is there any setting or option that could be set so it only reads the .dso? Because I'm wondering why would it use that file over the .cs file?
#8
03/16/2006 (6:54 pm)
If the .cs file has an error... it won't compile it into a .dso, so that means it uses the old .dso file.
#9
03/16/2006 (8:00 pm)
Just look in the console.log...if there is an error compiling a script, it will tell you there. Just search for "syntax error".
#10

=)
03/16/2006 (8:13 pm)
These problems are so freaking frustrating. I hope i eradicated this in our next release...
#11
03/16/2006 (11:00 pm)
What's a "precomplie" error? :P
#12
03/17/2006 (12:01 am)
Good catch. ;)
#13
03/19/2006 (9:46 am)
I'm still looking at your script page. If you still haven't solved this, could you send me the original script page so I can compare. I haven't seen any syntax errors, but a compare would make it easier to spot logic errors. Also, I am wondering if you are using the old T2D getting started tutorial way of scripting on the new version of T2D/TGB because I was having trouble getting the old scripts to do anything in the new version. I think that might actually be the problem here.
#14
03/19/2006 (11:08 pm)
Guys.. this thread is occuring on the public fourms. I'd recomend taking it to the private fourms.. help keep the warez pirates in the dark :P
Torque 3D Owner Pat Wilson