Game Development Community

Where at in world editor do i find waterblock ?

by Keith200120022003 · in Torque Game Engine · 08/19/2006 (1:21 pm) · 29 replies

Where?
Page «Previous 1 2
#1
08/19/2006 (1:47 pm)
Under Mission Objects\Environment.
#2
08/19/2006 (2:16 pm)
Ok found it but people are saying to add water u have to go way down under terain to find a small box , they say resize it and bring it above terain ? I went under my terrain and found nothing no XYZ nothing there is a box far up in the sky but i dout thats it
#3
08/19/2006 (5:18 pm)
Can you compile the engine. I am assume you using TGE 1.4. If so here the fix.
Go into engine/terrain/waterBlock.cc at around line 402 and comment these line out.

//if(!mRemoveWetEdges)
//{
// setGlobalBounds();
// }

Save and close waterBlock.cc
Do clean build then rebuild all.
Now go into the world editor and place your water, you should see it
#4
08/20/2006 (12:21 pm)
Yes i have tge1.4

i dont line 402 ? I did find waterblock.cc but in it i cant seem to find line 402
#5
08/20/2006 (12:36 pm)
In an unedit waterblock.cc in engine\terrain, it start on line 399 and stop on line 402.
#6
08/20/2006 (1:07 pm)
Again When i go to engine/terrain i click on waterblock.cc it opens visual C++ and theres a lot of writings with green lines . I scorll up and down I see no numbers saying 402 or 399 at all is there a easyer way to locate 402 or maybe i'm doing something wrong
#7
08/20/2006 (2:04 pm)
You may not have line numbers turned on in your editor, there is an option for that in a menu - but i can't remember where off hand. to find this code, just search for "!mRemoveWetEdges" and it should take you to the block of code listed above. then just comment those 4 lines out (by putting // on each line). then recompile
#8
08/20/2006 (3:29 pm)
You can click on the line then use the down arrow key to scroll down. The line number will show in the bottom left corner. Matt has very good point just use search function.
#9
08/20/2006 (5:32 pm)
In Visual Studio you can press CTRL + G to and then specify the line number that you want to go to.
#10
08/21/2006 (1:34 am)
Did the above how can i build then rebuild when you told me to save and close out
waterblock.cc How do i find build and rebuild?
#11
08/21/2006 (7:30 am)
Once you done editing the waterblock.cc you save and close. Then open the project in the compile you are using. I am using VC6 so for me I would open the VC6 folder. Click on Torque SDK.dsw. Once project open at top menu in VC6 I click on Build then Clean. When that done I Click on Build then Rebuild All.
#12
08/21/2006 (8:46 pm)
I did everything correctly so while in world editor i went to (world creater) enviroment then click on water.
Now nothing happen i see no waterblock where and how can i see my water ? its not under the tarain either
#13
08/22/2006 (9:12 am)
What TGE version you using? If you dont see the waterblock then you missing a step. I just test it with clean install of TGE 1.4 and work perfectly.
#14
08/22/2006 (2:39 pm)
1.4 brought it 4 weeks ago
#15
08/22/2006 (2:50 pm)
You could always just type in a position for where you want the water block in the world editor.
#16
08/22/2006 (3:13 pm)
Give me a exmaple of what to put what numbers ? to put in postion?
#17
08/22/2006 (4:07 pm)
Position your player or camera somewhere and copy their position into the waterblock's position.
#18
08/22/2006 (6:24 pm)
Did you recompile the engine after you comment the four line out? If you cant get it, I can compile and test the exe for your as long as you have no engine changes and email to you. What Matt is talking about is place your player or any dts object where you want the waterblock to be. Look at properties for that dts and copy the position over to the water block. I also remember to keep the crosshair above the terrain when placeing dts. I have had dts to go under terrain because I had the crosshair point down to far on the terrain.
#19
08/22/2006 (8:29 pm)
I got my water but its a little block i wanna mahe it larger making a stream
#20
08/22/2006 (8:31 pm)
Then set the scale in the Properties section.
Page «Previous 1 2