Game Development Community

Data Block Help?

by jerryg7rk3w · in Game Design and Creative Issues · 02/01/2010 (5:15 am) · 12 replies

Hello im new to torque game builder and am running through some tutorials and im not able to complete the datablock tutorial can someone help me i followed every step slowley and even recorded my screen to show that i follow the instructions but cant get it to work can someone help me?

I have chopped the video in halve so its less then 24m bits enough to be sent through yahoo mail could some one let me know their email mabe and let me send it and show you what im doing so you could give me some advice to what im doing wrong, im a newb but i was for shure i followed every step and i just cant get it to work please help.

#1
02/01/2010 (4:28 pm)
It's probably best to describe your problem and ask the questions here rather than to a single person, as it will help net you more responses. The community is usually very fast and informative :)
#2
02/01/2010 (9:55 pm)
Well thats the problem i dont know what im doing wrong if i was to explain it i would say that i followed the instructions, clearly this would not be much help into understanding my problem since i think im following the instructions correctly.
#3
02/01/2010 (10:01 pm)
if i was to type it out i would just state it as the instructions state it on the documentations tutorial website. Since im useing those instructions and following them i would just state every step that the site has listed and thats no help to anyone on understanding whats my problem.
#4
02/02/2010 (12:31 am)
Tell us what happens when things fail.

Are you familiar with tracing code and debugging in general? If you're newer to coding, chances are high that you mistyped something or misplaced something.

Copy and paste the code you're using in this thread (use the [code][/code] tags), take screenshots of your editor when you try to assign the datablock and show them here.

Bringing more to the thread will help us help you. It's cool that you shot a video, but it'd be easier for us to see some code and screenshots. Your particular problem isn't something that warrants video (Problems with rendering/animation/simulation need videos, things simply not working just need code/screenshot evidence.)

We really DO want to help, so just come back with more stuff we can look at.
#5
02/04/2010 (10:18 am)
Hey i got my video uploaded for anyone to see at vimeo.com just type this in the search option TGB Datablock help and my vid should come up.

Id appreciate the help and you can also discard the last 23 sec of vid its not important.

#6
02/05/2010 (2:49 am)
For the record it would have been way easier to do this with screenshots or just by linking to the tutorial in question and pointing out that it wasn't recognizing your new datablock.

Regardless, I can't see anything you did that wasn't exactly what the tutorial said you should, so my question is, have you tried it with a full TGB restart instead of using the menu to reload?

Other options... you could try deleting the DSO (compiled script) file for main.cs (main.cs.dso). If that doesn't help, you should bring up your console once the game loads (press ~) and see if there are any red lines describing errors in the scripts. Finally, look in your gameScripts directory and see if the engine has created a configs.cs.dso file, because if not, configs.cs is not getting execed. Sorry I can't be more helpful, but it looks like you followed the tutorial instructions to the letter. :P
#7
02/05/2010 (6:12 am)
Yea i wasnt shure if it wasnt recognizing it or if i just was doing something wrong, either way i didnt know why it wasnt working.

But anyways ive tried restarting it and thats not the problem and i brung up the console and there arent any red lines so i decided to just delete it and start a new project then retry the tutorial but i keep running into the same problem.

Now for the last thing you told me to do i looked into the gamescripts folder and all i could find was .cs files there seems to be no configs.cs.dso file?
The only .cs files that are there is: configs which i just created,datablocks,game, and guiprofiles.

So im not shure what to do now but if its any help im running vista premium with all of the updates downloaded from the microsoft website so im shure its not a combatability problem, well id appreciate if you could look alittle more into it for me i dont know what to do.





#8
02/05/2010 (6:18 am)
Also there isnt any main.cs.dso the only file i see is the main.cs file.
#9
02/05/2010 (6:27 am)
It seems that in my new project there is no .dso files at all thats odd.
#10
02/05/2010 (5:05 pm)
DSO files are only generated at run-time; they're compiled scripts, so the compiling process doesn't need to be repeated over and over. I see in the video you have your file extensions hidden, which probably makes it a little confusing... in your case the DSO files will be like "main.cs" with a file type of "DSO," while a script would just be "main" with filetype "CS."

After the game runs once every script that was execed should leave behind a DSO file with the same name, if it doesn't then that script wasn't execed by the game.

Like I said, I don't have TGB, so I can't help you with things as specific as "config datablocks," however if everything else checks out completely then I suppose it's possible the tutorial has an error in it.
#11
02/05/2010 (5:41 pm)
Yea your right i ran it and then closed TGB and then checked the main.cs and it now has a .dso file with it and the confis.cs also has a .dso too, so i decided to launch torque and try the project again but im still encountering the problem.

Well i guess this is going to be harder then i thought to learn torque I origionally was using gamemaker and was doing it all in code but it only supports double buffering, my game needs triple buffering to prevent tearing but now im stumped once again with another problem that i cant fix.

Well if anyone else has found a way to fix this problem let me know because the tutorial makes it sound easy but dosnt state that if you follow the instructions that its possible to run into this problem or how it could be fixed.
#12
02/09/2010 (7:19 am)
Well anyone haveing trouble getting this tutorial to work i just found out how.
Instead of creating a configs.cs file you instead take the following code

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

and add it to your datablocks.cs file in your gamescripts folder and then your datablock will show up in torque.
When i followed the tutorial I thought it was saying to add the code to a new file you had to create called configs.cs but honestly think the tutorial is missleading but anyways if anyone else is haveing problems try this out.