Game Development Community

Console.log - Unable to find parent object

by Philip Mansfield · in Torque Game Builder · 01/06/2006 (9:03 am) · 4 replies

I was tidying up my project, deleting a load of .cs files that I don't think I need and generally sliming it all down. I got to the /common/ui directory and deleted all the .cs files apart from:

ConsoleDlg.gui
defaultProfiles.cs
optionsDlg.gui

I've made the relevant changes in the remaining .cs files so that missing files aren't loaded up. However, my console log now tells me:
Loading compiled script common/ui/defaultProfiles.cs.
common/ui/defaultProfiles.cs (0): Unable to find parent object GuiToolWindowProfile for GuiControlProfile.
I'm not entirely sure what this means. I've done a simple text search across my code and a fresh Alpha 2 install and can't find any instances of GuiToolWindowProfile.

Actually, I've just run a quick test, and put an unmolested /common directory into my game, and I still get the same error. And oddly, the Space Scroller demo game gives it as well.

So *phew*, maybe it's not me after all, but if anyone else can confirm it or suggest a fix, I'd appreciate it :)

#1
01/06/2006 (9:18 am)
I get that too although it don't have modified anything relevant. I don't this is something to worry about.
.
#2
01/06/2006 (10:04 am)
On around line 100 of common/ui/defaultProfiles.cs there is this:
if(!isObject(GuiToolboxButtonProfile)) new GuiControlProfile ( GuiToolboxButtonProfile : GuiToolWindowProfile )
That warning is printed because GuiToolWindowProfile doesn't exist. So you can just change it to this:
if(!isObject(GuiToolboxButtonProfile)) new GuiControlProfile ( GuiToolboxButtonProfile : GuiWindowProfile )

It's not important - unless you're anal about console spam like me. This has been fixed since the Alpha2 release.
#3
01/06/2006 (10:13 am)
I didn't figure it was anything too important as my game ran just fine, but if I can cut down on console spam, then all the better.

Thanks for the fix :)
#4
01/06/2006 (11:28 am)
That console spam plus the other stuff got fixed a few days ago. It'll be gone in the next release.

- Melv.