Game Development Community

Starting from scratch - question.

by Ian Smithers · in Torque Game Engine · 01/20/2009 (6:55 pm) · 3 replies

Hi all,

I am trying to create a pretty blank project, without using the "common" directory, but if need be taking functionality from it. I have moved my exe out of the example directory in my own, I've also circumvent the main.cs to create my own and start from there. I've read some "Starting from scratch." tutorials too, but they appear to use the "common" directory shipped with TGE. When I remove this, I get an error from the exe, that says something akin to being unable to find the DefaultGuiProfile. (I am at work currently, and will update it later on with the exact error). But would anyone either know about this, or be able to give a little writeup on what the bare basics are to get your game loading to a main menu, even if that main menu be garbled trash that just represents the current memory contents - which I've had before.

I imagine there may be some things which I must have from common, but I am unsure. I am just working through it slowly currently and have a fairly empty framework, but so far, it's MY framework... which is likely why it crashes. ;)

#1
01/20/2009 (10:02 pm)
not setting a guiprofile will definitely make torque crash. every gui object must have a guiprofile set for it. ive also found that guiprofiles may not load if theyre not defined properly, so be sure to use torques as a template for your own. look in common/ui.

good to hear another person is building their own folder structure. I did this for my game so I know what you're going through. :) keep at it, it definitely makes managing code alot easier.
#2
01/20/2009 (10:28 pm)
Ah thanks for the info Sean. H :) Yeah I went through a few, "How about if I do it this way?" and then got to a point where it really felt like I had a lot of stuff I didn't want/didn't know how it worked. So after... I think 3 tries, this is where I am at currently and it's going much better and is a lot easier to learn from I find. Just you know, having it boot is a small requirement I would like. ;)
#3
01/21/2009 (2:22 am)
Ok so the error I get is:

"GuiControlProfile: unable to find specified profile (GuiDialogProfile) and GuiDefaultProfile does not exist!"

Any pointers would be helpful! :)