Game Development Community

Just added in some code

by Stephen Kelly · in Torque Game Engine · 07/29/2008 (8:59 am) · 42 replies

I just added a new GUI object to the targets.torque.mk file, but I don't know how to recompile the engine. I tried just going into the Torque SDK solution and pressing Build Torque Demo like before, but when I hit debug it said that it could not find the main.cs file. I then went into Torque through TorqueDemo.exe, and my new GUI was not there. Can anyone help me?
Page «Previous 1 2 3 Last »
#1
07/29/2008 (10:05 am)
You have to exec your GUI, not recompile the engine (unless you made C++ changes to the engine).
#2
07/29/2008 (10:08 am)
How do I do that?
#3
07/29/2008 (10:22 am)
If you get an error that it can't find main.cs when you debug, that means you need to set the starting path (in the debug settings) to the same folder as the executable is in.
#4
07/29/2008 (10:27 am)
Debug settings? Where are those?
#5
07/29/2008 (10:40 am)
Stephen,
it sounds like what you might want is a good tutorial.
i would try searching the site a bit for one,
or getting a copy of The Game Programmer's Guide To Torque,
which will walk you through the things you need to add a new GUI to the game.
#6
07/29/2008 (10:50 am)
Unfortunately, the tutorial I need has not gotten to the part I am on yet. It, like all the tutorials on the TDN, is incomplete.
#7
07/29/2008 (1:22 pm)
Why will no one just give me a straight answer?!!
#8
07/29/2008 (1:39 pm)
Stephen, i gave you the best advice i have.
Frankly, there's some fundamental stuff you just don't seem to have learned yet.
That's normal - everyone has a learning curve with torque.
I would recommend backing up, finding a tutorial which does something similar if perhaps simpler,
or getting that book i mentioned.
#9
07/29/2008 (1:59 pm)
Did you check the Getting Started stuff for the GUI on TDN? Can you exec scripts? Have you looked through the script files to see how things are being executed and the logic there?
#10
07/29/2008 (2:16 pm)
I just don't know what you meant by executing the gui. The TDN says nothing about this subject.
#11
07/29/2008 (2:21 pm)
You should have found this in a few minutes of looking at TDN GUI information.

1. Go to the TDN page that I linked you.
2. Click Profiles.
3. Click Introduction to Profiles.

There is information there as well as in many of the GUI articles. GUI's are exec'd like other scripts.
#12
07/29/2008 (2:23 pm)
Ok then. thank you.
#13
07/29/2008 (2:59 pm)
The tutorial you sent me to appears to be for TGB. I was hoping the script would still work, but it did not.
#14
07/29/2008 (3:03 pm)
As long as you put your GUI where you can access it and exec it according to that, you should be able to load it. Unless there is an error with your GUI. Use the console to debug any problems with it.

EDIT:
It's the same as exec'ing a script.
#15
07/29/2008 (3:05 pm)
Ok... But it only seems to be for using GUI elements already coded in. I need to add a new type of GUI control. Where on that page does it say to do that?
#16
07/29/2008 (3:09 pm)
I would read the sections on different types of GUI controls and make use of those. If you are revamping the GUI functionality or adding new C++ GUI classes, then you will need to delve into the source code. But it didn't sound like you were doing that. Just trying to do a basic GUI to try to figure it out.
#17
07/29/2008 (3:11 pm)
No, I downloaded a new GUI control type and I was trying to get it into Torque.
#18
07/29/2008 (3:13 pm)
That's the kind of information that would be extremely helpful in getting people to help you out.

From your post, you seemed to be trying to get a gui to run but were playing with makefiles, which really didn't make any sense. What is your OS? What compiler are you using? Which resource are you implementing?

That information would be kind of helpful.
#19
07/29/2008 (3:19 pm)
I'm sorry if I wasn't clear.

I am running windows vista, with visual studio for a compiler. I am trying to load a resource called guiObjectView.cc to make a character selection screen.
#20
07/29/2008 (3:23 pm)
Is it from this resource?

I haven't used that resource, but you will want to make your changes to the Visual Studio project, not the makefiles. I do not know if it works with TGE 1.5 out of the box or if it will take a bit of C++ heavy lifting on your part.
Page «Previous 1 2 3 Last »