Changes In Script Not Showing?
by Jeremy Tilton · in Torque Game Builder · 03/10/2005 (9:07 pm) · 10 replies
I was playing away with the engine, and covering some ground, when one of the times, I noticed no change after inputting some code. Thinking maybe my code was wrong, or maybe that I didn't save the .cs file, I tried again, and ensured I saved. Still no change in the output. I try giving t2d the benefit of the doubt, maybe my logic is messed up, so I comment out the debug line to turn off collision boxes, still no expected results. Now I'm starting to think there is some weird cache hangup, so I reboot, same thing. Now I'm confused. I'm staring at commented code that is being executed, and I cannot figure out why for the life of me. I end up replacing all files with the original, and overwrite the original client.cs file with my file I've been working on and re-add all the images. Now all I got the original T2D logo. Now I know something is up. all that is showing is T2d Logo, and my client.cs looks like it does after the tutorial. Every time I test for output, I am quitting t2d.exe and restarting it up. Are my dso files not updating? I haven't touched anything but client.cs all night.
About the author
#2
03/10/2005 (10:20 pm)
Did you try deleting the dso's?
#3
03/10/2005 (10:31 pm)
Jeremy I had the same "problem" (just starting, you know) and what was happening was that the script had errors (syntactic or whatever). Look at the log file to see any possible errors.
#4
03/10/2005 (10:32 pm)
Ah. That too.
#5
I was banging my head against a wall wondering why nothing was updating when I learned about this.
03/10/2005 (11:23 pm)
A little hint: Switch the client folder to "detailed" view and look at the time the client dso file was created. It should be the last time you ran your game. If not, you have some bad code in client.cs. T2D won't compile if there are problems with client.cs. Hope that helps!I was banging my head against a wall wondering why nothing was updating when I learned about this.
#6
Maybe you accidentally deleted something?
You should find an error in the console or the output "console.log" though.
Sorry I couldn't help you further.
- Melv.
03/11/2005 (12:38 am)
I would suggest possibly reinstalling the SDK but taking a copy of your work first perhaps?Maybe you accidentally deleted something?
You should find an error in the console or the output "console.log" though.
Sorry I couldn't help you further.
- Melv.
#7
I guess I didn't consider that because I thought my code was rigteous. Now I gotta be a n00b...)C:
How do I say "OR" in torquescript? Is it not:
Forgot to say thanks. This community rules!
03/11/2005 (6:06 am)
How do I say "OR" in torquescript? Is it not:
If (statement1)||(statement2)
{
}Forgot to say thanks. This community rules!
#8
You need to encapsulate your condition in "()". Maybe you did and this was just a typo here?
- Melv.
03/11/2005 (6:13 am)
Yes, the logical OR operator is ||, bitwise is |.You need to encapsulate your condition in "()". Maybe you did and this was just a typo here?
Quote:
if ( (cond1) || (cond2) )
{
}
- Melv.
#9
03/11/2005 (3:29 pm)
LOL, thank melv for schooling me in programming 101 again. Maybe I was up too late last night.
Torque Owner Jeremy Tilton