Game Development Community

Datablock not loading

by Brendan D McLeod · in Torque Game Builder · 01/09/2012 (5:33 pm) · 2 replies

Hello, I'm having trouble getting datablocks to load in the level editor. I'm just going through the basic walkthrough wherein the user first learns about datablocks. I haven't found any issues quite like this in my search of the forums yet.

I'm running TGB Pro 1.7.6 on Windows 7 Home Premium.

I've added the following script to TutorialBase/game/gameScripts/datablocks.cs using the trial edition of Torsion:

Quote:datablock t2dSceneObjectDatablock(TestConfig)
{
Layer = 1;
Size = "100 100";
};

However, when I load the editor, this datablock doesn't appear in the appropriate drop-down menu.

Thanks in advance for any help that you can provide about what I'm doing wrong, or what I need to do in order to get this working correctly.


About the author

Recent Threads


#1
01/10/2012 (12:32 am)
Do you have correct project loaded into editor? It might be better to create new project for your experiments.
#2
01/10/2012 (5:07 am)
Hello:

Based on your suggestion, I tried making a new project, and everything worked perfectly! I was pretty confused, since the instructions said to use TutorialBase, and things had worked fine for me thus far there...

I did some research, and it looks like Win7 makes the files in your Program Files directory (where Torque is installed) read only, and makes you jump through hoops to get at an administrative account in order to edit them. Torsion didn't throw any errors at me that I was editing or not-saving a read-only file, either. An unfortunate hard-to-see kind of problem - one that can be solved by saving all my new projects to My Documents/ but one that I hope not many other people run into!

Thanks for your help.