Game Development Community

Fix: Terrain Painter only paints white, on mac

by Paul Scott · in Torque Game Engine · 07/31/2004 (10:54 pm) · 8 replies

In the latest HEAD, and for some time now, if you try to use the terrain painter on macs, the terrain is painted white, and a phantom 'grass' texture is added to the palatte.

To fix the problem, add engine/gui/guiBorderButton.cc to your pb or xcode project file.

The following info from the console, when the terrain painter is opened:
common/editor/EditorGui.cs (776): Unable to find object: 'ETerrainMaterialPaint5' attempting to call function 'setActive'
common/editor/EditorGui.cs (788): Unable to find object: 'ETerrainMaterialPaint0' attempting to call function 'performClick'
It says the button that sets the texture doesn't exist.

From further up in the console:
common/editor/EditorGui.gui (0): Unable to instantiate non-conobject class GuiBorderButtonCtrl.
common/editor/EditorGui.gui (0): Unable to instantiate non-conobject class GuiBorderButtonCtrl.
common/editor/EditorGui.gui (0): Unable to instantiate non-conobject class GuiBorderButtonCtrl.
common/editor/EditorGui.gui (0): Unable to instantiate non-conobject class GuiBorderButtonCtrl.
common/editor/EditorGui.gui (0): Unable to instantiate non-conobject class GuiBorderButtonCtrl.
common/editor/EditorGui.gui (0): Unable to instantiate non-conobject class GuiBorderButtonCtrl.
The buttons don't exist, because the engine couldn't create them, because it doesn't have the code that tells it how.

I'm submitting a new project file to GG with this, and few other fixes and goodies.

#1
08/01/2004 (11:19 am)
Thanks, Paul! We'll have Josh look at this ASAP.
#2
08/01/2004 (12:37 pm)
Thanks Paul :) j00 r0x0r
#3
08/05/2004 (5:01 pm)
My painter does not work at all. I cannot paint any of the terrain. It will load the default texture of the mission when the mission starts, and if I change the default texture, anything painted with that texture already, will change. But, if I load a texture and try to paint with it after clicking on the texture picture button, nothing happens.
#4
08/07/2004 (6:52 am)
I've seen this also. One quick workaround was raising and lowering the Terrain Height.
#5
08/08/2004 (5:56 pm)
I recompiled with BorderButton.cc but now it won't let me adjust the height of the terrain. Does anyone have a fix!
#6
08/11/2004 (8:17 pm)
Looking into this...
#7
08/17/2004 (12:50 pm)
I don't have my Mac back yet, will take a look asap. Paul and I have been in contact via email on his project file changes.
#8
08/26/2004 (5:55 am)
This fix has been committed. Should be updateable now, and should appear in the CVS changelist in an hour or so.

Thanks a ton Paul, you rock.

So, yay and stuff: Terrain Texture Painting works on Mac now, thanks to Paul here. :D