TGB Datablock not working
by Deozaan · in Technical Issues · 04/07/2007 (12:14 am) · 8 replies
Hello,
I'm very seriously considering buying TGB so I've downloaded the demo and am following the FishDemo tutorial. I've run into two problems already:
1. in Section 6 - Come in at random position, it shows an example of the current code, then says to change it to the following. But the following is exactly the same as the previous code. I just moved ahead in the tutorial to find the code displayed later on when talking about random speeds.
2. The Fish datablock isn't updating to the dropdown window in TGB. I've saved the game.cs file. I've restarted TGB. I've done these things multiple times but it will never show up in that drop down list. I copied and pasted the code right out of the tutorial to make sure I didn't make any typos. Everything is as it should be, according to the tutorial.
Will someone please tell me how to properly create a datablock or point me to a working example? The reference material doesn't seem to be very helpful in that regard. It just tells me what a t2dSceneObjectDatablock is and the fields it can have. It doesn't show an example of how to create one.
Thank you very much in advance!
I'm very seriously considering buying TGB so I've downloaded the demo and am following the FishDemo tutorial. I've run into two problems already:
1. in Section 6 - Come in at random position, it shows an example of the current code, then says to change it to the following. But the following is exactly the same as the previous code. I just moved ahead in the tutorial to find the code displayed later on when talking about random speeds.
2. The Fish datablock isn't updating to the dropdown window in TGB. I've saved the game.cs file. I've restarted TGB. I've done these things multiple times but it will never show up in that drop down list. I copied and pasted the code right out of the tutorial to make sure I didn't make any typos. Everything is as it should be, according to the tutorial.
Will someone please tell me how to properly create a datablock or point me to a working example? The reference material doesn't seem to be very helpful in that regard. It just tells me what a t2dSceneObjectDatablock is and the fields it can have. It doesn't show an example of how to create one.
Thank you very much in advance!
#2
04/07/2007 (1:30 pm)
Deozaan, sounds like a bug in the parser ...
#3
{} clearly state the block and ; seperate the commands. whitespaces (no mather if spaces or tabs) should be ignored by the parser ...
would be an evil bug actually ...
04/07/2007 (2:53 pm)
Definitely, there is no reason intend should be needed at all.{} clearly state the block and ; seperate the commands. whitespaces (no mather if spaces or tabs) should be ignored by the parser ...
would be an evil bug actually ...
#4
04/09/2007 (2:34 pm)
Thanks guys. Is there some place I should report this?
#5
The best place would be the TGB Public forums (if you end up purchasing the engine there is a private forum as well with a bug sub-forum) :) Thanks!
04/09/2007 (2:53 pm)
Sorry you ran into some difficulty... this might've been a change between versions (various aspects of the engine have changed and sometimes it's hard to predict every tutorial that would be effected). Great find though. The best place would be the TGB Public forums (if you end up purchasing the engine there is a private forum as well with a bug sub-forum) :) Thanks!
#7
I've moved the post:
www.garagegames.com/mg/forums/result.thread.php?qt=60411
04/09/2007 (5:32 pm)
Thanks Matthew!I've moved the post:
www.garagegames.com/mg/forums/result.thread.php?qt=60411
#8
08/13/2008 (7:33 pm)
This isn't helping
Torque Owner Deozaan
I figured it out. Here's what the problem was, just FYI:
This is the code I had:
datablock t2dSceneObjectDatablock(FishDatablock) { Class = "FishClass"; Layer = "16"; WorldLimitMode = "NULL"; WorldLimitMin = "-66.2102 -45"; WorldLimitMax = "66.1003 45"; WorldLimitCallback = "1"; minSpeed = "5"; maxSpeed = "25"; };This is the code I needed:
datablock t2dSceneObjectDatablock(FishDatablock) { Class = "FishClass"; Layer = "16"; WorldLimitMode = "NULL"; WorldLimitMin = "-66.2102 -45"; WorldLimitMax = "66.1003 45"; WorldLimitCallback = "1"; minSpeed = "5"; maxSpeed = "25"; };The difference? The indentation of the two variables. Can anyone explain to me why that's important and why the tutorial doesn't have those two indented? Thanks again!