Game Development Community

Removing terrain

by Andreas Wettl · in Torque Game Engine · 10/06/2002 (1:05 am) · 8 replies

Hi!

I want to remove the terrain.

Searching the forum there was the idea to remove to terrain section in the mission file.

It works, there is no terrain.

But if i want to launch the mission editor (F11) i get the following error:

/torque/engine/gui/guicontrol.cc @ 384
GuiControl::awaken:failed onWake

Can you tell me what's the right way to remove the terrain ?

Thanks
Andreas

#1
10/08/2002 (1:38 am)
No ideas ?
#2
10/08/2002 (3:56 am)
There was a code snipit (or resource can't remember but pretty sure it was a code snipit) about how to do space games in torque. My guess is they had removed the terrain. Just search in the code snippet area and you should find it.

ok got bored :) here's the link to the tutorial (and yes it does have how to remove the terrain).
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=3007

--KallDrexx
#3
10/08/2002 (7:52 am)
Hi!

I had a short look at the resource. It seems that the terrain is very hard wired with the engine and that the torque engine is not designed for games without terrain.

Thanks for reply !

Andreas
#4
10/08/2002 (8:05 am)
There was that multiple terrain block code that could work...

An alternatuve could be to make the terrain invisible. (using one of the brushes)
#5
10/08/2002 (9:14 am)
I have a mission file with no terrain. I don't get any errors when editing.

I will have to update to latest head and see if something is broken, my update is probably 2 months old.
#6
10/08/2002 (10:02 am)
Same here, I can remove the terrain object from the mission file without any consequences.

It is a fairly recent update too.

The error is being forced by a control, is this a custom update perhaps? I must admit it's the first time I've removed the terrain object but it doesn't seem to make a difference, apart from the player falling eternally. ;)

- Melv.
#7
10/08/2002 (1:52 pm)
Hi!

I have tried it again, but the result is the same (also after copying the original source i got from the cvs to my local disc) when i want to remove the terrain.

I get the error desribed above when entering the mission editor.

If i remove the water or sky objects, all works well. Only removing the terrain object ends with the error.

I will try the tips from the resource KallDrexx posted.
Another workaround will be using the terrain during development and removing it in the release version.
But ... if i don't need the terrain it don't want it to be rendered.

Thanks for your help!
Andreas


Here is the cvs/entries file content from the directory /engine/editor. Perhaps i have a file that doesnt work.

/creator.cc/1.5/Sun Oct 07 23:57:55 2001//TRelease_1_1_2
/creator.h/1.5/Sun Oct 07 23:57:55 2001//TRelease_1_1_2
/editTSCtrl.cc/1.5/Fri Mar 29 22:13:44 2002//TRelease_1_1_2
/editTSCtrl.h/1.5/Sun Nov 25 22:50:21 2001//TRelease_1_1_2
/editor.cc/1.3/Thu Jan 03 21:34:58 2002//TRelease_1_1_2
/editor.h/1.3/Sat Oct 06 23:35:11 2001//TRelease_1_1_2
/guiTerrPreviewCtrl.cc/1.5/Sun Nov 25 22:50:21 2001//TRelease_1_1_2
/guiTerrPreviewCtrl.h/1.4/Thu Oct 11 21:02:13 2001//TRelease_1_1_2
/missionAreaEditor.cc/1.9/Sun Nov 25 22:50:21 2001//TRelease_1_1_2
/missionAreaEditor.h/1.5/Sun Nov 25 22:50:21 2001//TRelease_1_1_2
/terraformer.cc/1.5/Sat Oct 06 23:35:11 2001//TRelease_1_1_2
/terraformer.h/1.4/Sat Oct 06 23:35:11 2001//TRelease_1_1_2
/terraformerNoise.cc/1.4/Sat Oct 06 23:35:11 2001//TRelease_1_1_2
/terraformerNoise.h/1.3/Sat Oct 06 23:35:11 2001//TRelease_1_1_2
/terraformerTexture.cc/1.3/Sat Oct 06 23:35:11 2001//TRelease_1_1_2
/terrainActions.cc/1.6/Fri Apr 12 23:44:00 2002//TRelease_1_1_2
/terrainActions.h/1.4/Sun Nov 25 22:50:21 2001//TRelease_1_1_2
/terrainEditor.cc/1.10/Fri Apr 12 23:44:00 2002//TRelease_1_1_2
/terrainEditor.h/1.6/Fri Apr 12 23:44:00 2002//TRelease_1_1_2
/worldEditor.cc/1.19/Mon Apr 29 23:30:46 2002//TRelease_1_1_2
/worldEditor.h/1.5/Sat Dec 01 01:26:33 2001//TRelease_1_1_2
D
#8
10/08/2002 (3:14 pm)
Now it works!

I have tried the tips of the resource of Wendell Brown KallDrexx has me pointed to.
After removing the MissionAreaEditor-Object defined in common/editor/EditorGui.gui (Line 219-242) i am able to launch the mission editor without getting the error.

Thanks to all!

Andreas