Game Development Community

Long time error in the editor...

by David Dougher · in Torque Game Engine · 11/16/2004 (12:55 pm) · 1 replies

I happened to be going through the editor code and in objectBuilderGui.gui

And I came across this function...

function ObjectBuilderGui::buildSky(%this)
{
%this.className = "Sky";

%this.addField("materialList", "TypeFile", "Material list", "Lush_l4.dml");
%this.addField("cloudSpeed[0]", "TypePoint2", "Cloud0 Speed", "0.0000003 0.0000003");
...


Since "Lush_l4.dml" (--> That's actually L4 too... not 14 ) does not exist I suspect that the function never adds this field properly.

Any ideas on what should be there?

About the author

Owner - Pariah Games, Adjunct Professor - Bristol Community College, Mentor - Game Design - Met School Newport, Mentor - Game Design - Met School Providence


#1
11/16/2004 (1:50 pm)
Actually, it's not mispelled.

"Lush_l4.dml"
"Desert_l4.dml"
"Badlands_l4.dml"

Are all valid Tribes2 .dml's

That's how long it's been sitting there. The reason it's there is because in order to assign a field you have to have SOME value to put there. Doesn't matter if the .dml doesn't exist because it only needs the field description to get started, not the file. It will of course come up blank in the editor and you will need to add an existing .dml to the field to get it to load a skybox. Basically it's just a nifty way to initialize without forcing a skybox. You could put the name of the Example .dml there if you really want to, and that will be your default .dml for every sky you create.

In the Example/Demo it's "sky_storm.dml"

And in starter.FPS, starter.racing, and Tutorial base it's "sky_day.dml"