Game Development Community

Game/gameScripts/datablocks.cs not running in game

by Chaim Krause · in Torque Game Builder · 11/08/2007 (6:20 pm) · 2 replies

I have a fresh install of 1.5.1 that I used to confirm this.

Create a new project and run it in the level builder. Bring up the console and you will see that ~/gamescripts/game/datablocks.cs is executed.

Now Build Project and run it. Bring up the console and you will see that ~/gamescripts/game/datablocks.cs does *not* get executed.

#1
11/09/2007 (5:27 pm)
I can confirm this issue with 1.5.1 as well.

Built my game to send it out to a friend for some testing and the datablock file was not being run. The managed/datablocks.cs is being called, but gameScripts/datablocks.cs is not.
#2
11/09/2007 (5:31 pm)
Fixed.

in common/gameScripts/projectManagement.cs on line 91 change
if( isFile( %userDatablockFile ) )

to
if( isFile( %userDatablockFile ) || isFile( %userDatablockFile @ ".dso" ) )