scripting and mission problem
by MadMel · in Technical Issues · 03/08/2009 (4:06 pm) · 6 replies
(i did search for another post like this, so dont get mad)
problem 1 - im new to torque, and so far ive been able to make a simple 3d game that lets me pick up objects to increase my score...however, apart from those simple pieces of code NONE of my other codes have worked..ive followed tuts to the letter, but its as if my new lines of code dont even exist..for example, ill try to add other pick-up objects, using similar code, or add an ai player that follows a path..no dice...
2. i noticed that no matter how many times ive saved the mission editor deleted objects will reappear when i reload the mission, unless i delete the shapes altogether..ive checked the game file and the object scripts arent there =\
can anyone help??
problem 1 - im new to torque, and so far ive been able to make a simple 3d game that lets me pick up objects to increase my score...however, apart from those simple pieces of code NONE of my other codes have worked..ive followed tuts to the letter, but its as if my new lines of code dont even exist..for example, ill try to add other pick-up objects, using similar code, or add an ai player that follows a path..no dice...
2. i noticed that no matter how many times ive saved the mission editor deleted objects will reappear when i reload the mission, unless i delete the shapes altogether..ive checked the game file and the object scripts arent there =\
can anyone help??
About the author
About to start a Computer Science/Game Technology course, and is very interested in starting an indie game company with some friends.
Recent Threads
#2
03/08/2009 (6:23 pm)
1) To add to what Michael said, make sure that you don't have any errors for those scripts in the error log. If they run into an error, then they fall back on the existing dso, which can lead to the behavior of the game acting like your changes were never made.
#3
2 - 'save as' did the trick, though im still not sure why i cant just save =\ one of the great mysteries of life i supose..
thanks for your help :D
03/08/2009 (10:45 pm)
1 - working on it now..ill tell you how it went :D2 - 'save as' did the trick, though im still not sure why i cant just save =\ one of the great mysteries of life i supose..
thanks for your help :D
#4
1. how are dso files created??
2. i never had to delete the dso files to use my other code, so why do i suddenly have to do it now??
btw, the code i made before was to make the logo object a pickup (not exactly my code since i just copied and pasted from the tutorial)
this time, im using a different tut to add a rocket launcher to the game...hope that clears this up, since im sure the problem im having is with the dso files :\
03/09/2009 (1:26 am)
2 qeustions...1. how are dso files created??
2. i never had to delete the dso files to use my other code, so why do i suddenly have to do it now??
btw, the code i made before was to make the logo object a pickup (not exactly my code since i just copied and pasted from the tutorial)
this time, im using a different tut to add a rocket launcher to the game...hope that clears this up, since im sure the problem im having is with the dso files :\
#5
You said that you didn't have to delete dso files before, what engine are you using? TGEa has dso creation toggled off by default, but in TGE you definitely have to remove the .dso when you modify your script file.
03/09/2009 (8:26 am)
A .dso is the "compiled" format of the script that is generated at runtime -- If there is not one when it attempts to execute the scripts. If there is an error in your script, then it will not be compiled. If a .dso exists it will not load the script but go directly to the .dso file itself. So that means if that you modify a script file but don't remove the "old" .dso then the engine doesn't know about your changes.You said that you didn't have to delete dso files before, what engine are you using? TGEa has dso creation toggled off by default, but in TGE you definitely have to remove the .dso when you modify your script file.
#6
03/09/2009 (10:41 pm)
im using TGEa...thanks for the info..its helped a lot :D
Associate Michael Hall
Distracted...
2. I've not had that problem. Are you sure that it is saving? Is it actually overwriting the old file? Is it saving to the correct location? Have you tried to "save as" in order to save your mission under a completely new name?