Game Development Community

Dso problem

by Dustin Watson · in Torque Game Engine · 10/12/2006 (12:05 pm) · 13 replies

How do you create a dso file for a script.

#1
10/12/2006 (12:14 pm)
A .dso file is created by the engine automatically when running your game if a .dso for the file does not already exist.
#2
10/12/2006 (12:38 pm)
I get some new shotgun code in the cs file. I ran the engine and it still reads the old shotgun code and it will not create the new dso even when I delete the old one. So I cannot see the new shotgun in action.
#3
10/12/2006 (12:48 pm)
Hm, that's odd. Are there any errors showing up in the console?
#4
10/12/2006 (1:02 pm)
I'm not saying this to be stupid but, be sure to save your .cs file... and also make sure you didnt place that code somewhere else, like in another file. I did that the other day, I had two copies of the same functions and was wondering why it was being called twice.

and sometimes i get into the zone so much i forget to save what i did before i test it.
#5
10/12/2006 (1:06 pm)
That's a good point, I've had stuff like that happen to me as well. I've had cases were I copied and pasted a datablock to make something new from it, only I forgot to rename it.
#6
10/12/2006 (1:09 pm)
Yeh i did that, and then i took that code and made a new file from it but forgot to delete the old code.
thats where 'find in file' comes in handy. :D
#7
10/12/2006 (1:26 pm)
Check to make sure the shotgun.cs is in server/scripts. Make sure it is exec in the game.cs in server/scripts. Then launch the engine and check to see if dso compile if not then there is an error in that script. Like Scott said check the console for errors.
#8
10/13/2006 (10:22 am)
I checked the console for errors and I found one.
it said line 214 syntax error.
#9
10/13/2006 (10:24 am)
I looked at the line and it was just a comment.
kind of like this // stuff ;)
#10
10/13/2006 (10:25 am)
Check the line before that one.
#11
10/13/2006 (10:43 am)
I checked it. I was wondering if the variable isShotGun needs to be loaded into the engine and recompiled or not. because it is getting an error on that line.
#12
10/13/2006 (10:46 am)
Can you post that code section.
#13
10/13/2006 (10:56 am)
Actualy I have solved the problem. I just needed to comment out some code. very stupid.
think you all.