Noob ?: re: 'GameBaseData' data block class
by James Anderson · in Technical Issues · 09/12/2008 (10:11 am) · 8 replies
Hi All
I have created a Storm in a .mis file
(As per chapter 18 in Ken Finney's book)
and the storm does not appear.
my console.cs reflects this problem:
Executing control/data/maps/book_ch6.mis.
Object 'HeavyRain' is not a member of the 'GameBaseData' data block class
control/data/maps/book_ch6.mis (0): Register object failed for object RainStorm of class Precipitation.
my .mis document "attempted" this:
new Precipitation(RainStorm)
{
position = "-45.0071 -29.016 224.517";
rotation = "1 0 0 0";
scale = "1 1 1";
nameTag = "rs";
dataBlock = "HeavyRain";
offsetSpeed = ".025";
minVelocity ="1.5";
maxVelocity = "3";
color1 = "1.000000 1.000000 1.000000 1.00000";
color2 = "1.000000 0.000000 0.000000 1.00000";
color3 = "1.000000 0.000000 0.000000 1.00000";
percentage = "1";
maxNumDrops = "5000";
MaxRadius = "60";
};
is there an easy fix for this?
Thanks for any help.
Jinda
I have created a Storm in a .mis file
(As per chapter 18 in Ken Finney's book)
and the storm does not appear.
my console.cs reflects this problem:
Executing control/data/maps/book_ch6.mis.
Object 'HeavyRain' is not a member of the 'GameBaseData' data block class
control/data/maps/book_ch6.mis (0): Register object failed for object RainStorm of class Precipitation.
my .mis document "attempted" this:
new Precipitation(RainStorm)
{
position = "-45.0071 -29.016 224.517";
rotation = "1 0 0 0";
scale = "1 1 1";
nameTag = "rs";
dataBlock = "HeavyRain";
offsetSpeed = ".025";
minVelocity ="1.5";
maxVelocity = "3";
color1 = "1.000000 1.000000 1.000000 1.00000";
color2 = "1.000000 0.000000 0.000000 1.00000";
color3 = "1.000000 0.000000 0.000000 1.00000";
percentage = "1";
maxNumDrops = "5000";
MaxRadius = "60";
};
is there an easy fix for this?
Thanks for any help.
Jinda
#2
http://www.garagegames.com/mg/forums/result.thread.php?qt=27850
you'll note the HeavyRain Data block is included in the weather.cs
the solution was to have the program execute the weather.cs file.
I understand this, but what I cannot understand from the conversation is WHERE I need to add the -
exec("~/server/misc/weather.cs");
I added it to the original datablock declaration (book_ch6.mis) but that just came back as 'gameBaseData' errors for all the other blocks declared in the weather.cs file.
Thanks for any help.
J.
09/12/2008 (12:42 pm)
I found the same discussion here:http://www.garagegames.com/mg/forums/result.thread.php?qt=27850
you'll note the HeavyRain Data block is included in the weather.cs
the solution was to have the program execute the weather.cs file.
I understand this, but what I cannot understand from the conversation is WHERE I need to add the -
exec("~/server/misc/weather.cs");
I added it to the original datablock declaration (book_ch6.mis) but that just came back as 'gameBaseData' errors for all the other blocks declared in the weather.cs file.
Thanks for any help.
J.
#3
exec("~/server/misc/weather.cs");
after of another exec....
thats your problem machine dont know what is the 'HeavyRain' and the others in script 'weather.cs'
and remember any X_new.cs file need to execute
09/12/2008 (1:56 pm)
OK understand :) Open game.cs in server/scripts/ folder and put theexec("~/server/misc/weather.cs");
after of another exec....
thats your problem machine dont know what is the 'HeavyRain' and the others in script 'weather.cs'
and remember any X_new.cs file need to execute
#4
thanks for the help - but alas still a no go.
My Game.cs file consists only of Function definitions
I put exec("~/server/misc/weather.cs");
at the top of the script
but my console returns a
Loading compiled script common/server/game.cs.
Missing file: C:/3DGPAi1/Emaga6/control/server/misc/weather.cs!
Could there be another place I need to exec() the weather.cs?
thanks for any help
J.
09/13/2008 (7:25 am)
Hey Dimitris,thanks for the help - but alas still a no go.
My Game.cs file consists only of Function definitions
I put exec("~/server/misc/weather.cs");
at the top of the script
but my console returns a
Loading compiled script common/server/game.cs.
Missing file: C:/3DGPAi1/Emaga6/control/server/misc/weather.cs!
Could there be another place I need to exec() the weather.cs?
thanks for any help
J.
#5
What is your version of game engine?
09/13/2008 (1:47 pm)
The exec is ok now but the 'weather.cs' is in 'C:/3DGPAi1/Emaga6/control/server/misc/' folder?What is your version of game engine?
#6
Torque v 1.2
which is what the tutorials were written for
again, Im trying to follow along with the Ken Finney book "3d Game Programming all in one"
I got the game.cs file to sucessfully compile the weather.cs file
but the original 'gameBaseData' errors still exist.
Here- from console:
Executing control/data/maps/book_ch6.mis.
Object 'RainStorm' is not a member of the 'GameBaseData' data block class
control/data/maps/book_ch6.mis
Thanks for any help - maybe I just need a better understanding of Data blocks.
J.
09/13/2008 (2:12 pm)
Its an older version:Torque v 1.2
which is what the tutorials were written for
again, Im trying to follow along with the Ken Finney book "3d Game Programming all in one"
I got the game.cs file to sucessfully compile the weather.cs file
but the original 'gameBaseData' errors still exist.
Here- from console:
Executing control/data/maps/book_ch6.mis.
Object 'RainStorm' is not a member of the 'GameBaseData' data block class
control/data/maps/book_ch6.mis
Thanks for any help - maybe I just need a better understanding of Data blocks.
J.
#7
But i think your probled isnt the datablocks (datablocks is a copy of the book!).
Try to check the course of files and folders names. Somethink like this i think is.
09/13/2008 (3:09 pm)
That i say is for TGE 1.5x and TGEA, i dont now what is happen with older versions... But i think your probled isnt the datablocks (datablocks is a copy of the book!).
Try to check the course of files and folders names. Somethink like this i think is.
#8
Im going to just move on and when I have a better understanding of datablocks
I'll circle back and re-evaluate this problem
thanks for your help.
J.
09/15/2008 (9:02 am)
Thanks Dimitris,Im going to just move on and when I have a better understanding of datablocks
I'll circle back and re-evaluate this problem
thanks for your help.
J.
Torque Owner Dimitris Matsouliadis
Dimitris Matsouliadis