[Help] TGEA Questions
by PHG Creator · in Torque Game Engine Advanced · 09/12/2009 (9:48 pm) · 13 replies
Ok so I got TGEA a little while ago but I've been trying to learn by myself because I was nervous to ask the GarageGames community. But I’ve been running into more serious problems as I went learning with my game. I built a game and found my way around TGEA SDK but I’m stuck on some parts. The version I used to work with is a lot older so I need an update on what’s different. First of all I have a problem with my Missions.
===============================
=If you have More to add to =
=solved problems/questions =
=Please add! =
===============================
Problem 1: Mouse won’t go away! (SOLVED: Thanks Scott)
Ok, this is one of the most annoying things ever. I edited the PlayGui, to add a ChatHud(Question 1), but ever since I did that, in my missions, my mouse wont go away, I can turn my view, fire my weapons, and various other things. It just stays on the screen. I can move and Use F10, F11, F8 and F7, but in F8(I have no idea what that’s called) I can turn my De-attached camera! Please help me solve this issue, thanks a lot.
Problem 2: Full screen
This is also really annoying. One day I ran up my game and when I wanted to use full screen to check stuff out and how it looked, It did like a really close zoom. I could only see like 25% of the page. I edited my resolution, and still, then I can only see about 75% of the page, and all the Controls are moved a little. Please solve my problem, it would help a lot.
Question 1: Creating a ChatHud? (SOLVED: Thanks Mike Rowley!)
I tried a lot, and I don’t know how to create a chathud. What do I name the controls, how do I make it so when the Global Chat button is pressed a text that says “Talk:” and allows the client to type after the word “Talk:”, and what do I save it as(If not, do I just save it as a Save to PlayGui)? Thanks.
Question 2: Scroll(PopUp) Lists
Well the game I used to mod had a weird way of doing it that doesn’t seem to work in TGEA V1.8.1! So what is the way to add an Option to a PopUpList? Is it like %this.addOption, or something like that? It would really help.
Question 3: Making Sound!
I have been wondering this for almost 2 months, How do I make sound? What do I use, and how do I use it(Tutorials Please) Thanks if you can help me, or atleast tried.
Help 1: Interior Tutorials(SOLVED: Thanks Mike Rowley!)
I know how to make Interiors, I'm just really bad at it! I need a tutorial, a GOOD tutorial, to help me be the best at creating Interiors I can be! Thanks for helping!
=======================
Because sometimes I recycle topics, I may add more questions later, for now, thanks to anyone who answers my question, even if it’s not what I’m looking for.
Please inform me if this topic/thread is in the wrong place or violates any rules, ect. and I will Remove the topic/correct the issues.
===============================
=If you have More to add to =
=solved problems/questions =
=Please add! =
===============================
Problem 1: Mouse won’t go away! (SOLVED: Thanks Scott)
Ok, this is one of the most annoying things ever. I edited the PlayGui, to add a ChatHud(Question 1), but ever since I did that, in my missions, my mouse wont go away, I can turn my view, fire my weapons, and various other things. It just stays on the screen. I can move and Use F10, F11, F8 and F7, but in F8(I have no idea what that’s called) I can turn my De-attached camera! Please help me solve this issue, thanks a lot.
Problem 2: Full screen
This is also really annoying. One day I ran up my game and when I wanted to use full screen to check stuff out and how it looked, It did like a really close zoom. I could only see like 25% of the page. I edited my resolution, and still, then I can only see about 75% of the page, and all the Controls are moved a little. Please solve my problem, it would help a lot.
Question 1: Creating a ChatHud? (SOLVED: Thanks Mike Rowley!)
I tried a lot, and I don’t know how to create a chathud. What do I name the controls, how do I make it so when the Global Chat button is pressed a text that says “Talk:” and allows the client to type after the word “Talk:”, and what do I save it as(If not, do I just save it as a Save to PlayGui)? Thanks.
Question 2: Scroll(PopUp) Lists
Well the game I used to mod had a weird way of doing it that doesn’t seem to work in TGEA V1.8.1! So what is the way to add an Option to a PopUpList? Is it like %this.addOption, or something like that? It would really help.
Question 3: Making Sound!
I have been wondering this for almost 2 months, How do I make sound? What do I use, and how do I use it(Tutorials Please) Thanks if you can help me, or atleast tried.
Help 1: Interior Tutorials(SOLVED: Thanks Mike Rowley!)
I know how to make Interiors, I'm just really bad at it! I need a tutorial, a GOOD tutorial, to help me be the best at creating Interiors I can be! Thanks for helping!
=======================
Because sometimes I recycle topics, I may add more questions later, for now, thanks to anyone who answers my question, even if it’s not what I’m looking for.
Please inform me if this topic/thread is in the wrong place or violates any rules, ect. and I will Remove the topic/correct the issues.
About the author
I'm not new to TorqueScript but im still learning. I used to mod some of my video games for PC that had Add-On systems and ran on TGE(A) and I was good at that, but those games where on older version. I own TGEA V1.8.1!
#2
09/13/2009 (9:43 am)
I'm not good at details, sorry. Do you mean my page? And if so, where do details need to be added?
#3
The problems you are experiencing, I have no clue about. I'll see if I can answer some of your questions tho.
1. chat hud
The best way would be to look in the stronghold example. Look thru the client scripts and ui folder. (playGui.gui)
2. I don't know the mod, so can't help here.
3. SfxPlay(%musicHandle);
SfxStop(%musicHandle);
There are examples in server/scripts/game.cs
Help 1. interior tutorials
Look/search for constructor tutorials. Torque Constructor makes interiors and I believe there are some really good tutorials for it.
I hope this helps.
09/13/2009 (1:11 pm)
Which version of tgea are you using?The problems you are experiencing, I have no clue about. I'll see if I can answer some of your questions tho.
1. chat hud
The best way would be to look in the stronghold example. Look thru the client scripts and ui folder. (playGui.gui)
2. I don't know the mod, so can't help here.
3. SfxPlay(%musicHandle);
SfxStop(%musicHandle);
There are examples in server/scripts/game.cs
Help 1. interior tutorials
Look/search for constructor tutorials. Torque Constructor makes interiors and I believe there are some really good tutorials for it.
I hope this helps.
#4
I thought this was in the TGEA Forum
I have TGEA V1.8.1, its in my Author Data
I spent all of last night looking for Constructor tutorials, I found only people asking on how to make them, I use Torque Constructor to make my ugly interiors.
Thanks Mike
EDIT: Ok Mike, I search "Constructor Tutorials" instead of "How to make Interiors" and found some things, once again, thanks.
09/13/2009 (1:15 pm)
@Mike RowleyI thought this was in the TGEA Forum
I have TGEA V1.8.1, its in my Author Data
I spent all of last night looking for Constructor tutorials, I found only people asking on how to make them, I use Torque Constructor to make my ugly interiors.
Thanks Mike
EDIT: Ok Mike, I search "Constructor Tutorials" instead of "How to make Interiors" and found some things, once again, thanks.
#5
I can answer a couple of your questions but can't go into great detail since I'm sitting in the airport right now.
First the mouse. There's a variable in the playGui called either showCursor or noCursor and set that to either true or false to show or hide the cursor.
Fullscreen. Sounds like your problem is your GUI elements aren't being displayed correctly right? This happens when you place them while in a different resolution in the editor and don't set them to scale. There's a property that needs to be checked in the editor, I'm afraid I'm having trouble remembering the name off the top of my head right now. It should be fairly obvious, but you need to check that for GUIs to display in the correct positions in different resolutions.
I'll try to revisit this when I get to where I'm going and make it make a little more sense if someone hasn't done so by the time I get there.
09/13/2009 (4:04 pm)
First of all, welcome to the community and don't be afraid of asking questions. Remember, there is no stupid question.I can answer a couple of your questions but can't go into great detail since I'm sitting in the airport right now.
First the mouse. There's a variable in the playGui called either showCursor or noCursor and set that to either true or false to show or hide the cursor.
Fullscreen. Sounds like your problem is your GUI elements aren't being displayed correctly right? This happens when you place them while in a different resolution in the editor and don't set them to scale. There's a property that needs to be checked in the editor, I'm afraid I'm having trouble remembering the name off the top of my head right now. It should be fairly obvious, but you need to check that for GUIs to display in the correct positions in different resolutions.
I'll try to revisit this when I get to where I'm going and make it make a little more sense if someone hasn't done so by the time I get there.
#6
As for the version, your profile, (by clicking your name) just shows tgea.
As for constructor, I remember someone did a series of tutorials for it, but can't remember who. I don't use constructor as it didn't pass the box test. (make a box, subtract the center to make a room)
I use DeleD instead and the torque exporter. You have to be really careful to make interiors tho. Most of my objects are exported to obj, then converted to dts. I then use polysoup for collisions.
I forgot to tell you some things about sound, so I'll give a little example here.
Example taken from "game/scriptsAndAssets/server/scripts/audioProfiles.cs"
09/13/2009 (6:10 pm)
Quote:I thought this was in the TGEA ForumIt is. Did you read my post before I edited it? After posting, I noticed it was indeed in the tgea forum, so edited my comment.
As for the version, your profile, (by clicking your name) just shows tgea.
As for constructor, I remember someone did a series of tutorials for it, but can't remember who. I don't use constructor as it didn't pass the box test. (make a box, subtract the center to make a room)
I use DeleD instead and the torque exporter. You have to be really careful to make interiors tho. Most of my objects are exported to obj, then converted to dts. I then use polysoup for collisions.
I forgot to tell you some things about sound, so I'll give a little example here.
Example taken from "game/scriptsAndAssets/server/scripts/audioProfiles.cs"
//Before you can make a sound work, you need a discription datablock:
// This profile gives a simulated 3d sound that can be heard to "MaxDistance" from your emitter
datablock SFXDescription(AudioClosestLooping3d)
{
volume = 1.0;
isLooping= true;
is3D = true;
ReferenceDistance= 5.0;
MaxDistance= 30.0;
channel = $SimAudioType;
};
// Now we need to make a datablock we can use:
datablock SFXProfile(takeme)
{
filename = "~/data/sound/takeme";
description = "AudioDefaultLooping3d";
preload = false;
};
// In order to use this profile, just call sfxPlay(takeme); from the place you want to use it.Hope that's a bit more discriptive and definately, welcome.
#7
A few things, yes, I read your topic before you edited it, and I meant in the "About the Author" sorry about any confusion I may have caused you.
About the sound, I meant creating the actually sound, not adding it. I meant a program to make sounds.
@scott burns
Ok ill test that stuff out, thanks for helping but I have one thing to say, about fullscreen, its not just certain options, it worked on some TGEA Generated pages when I created the game, but now it doesnt, like I havent touched the OPTIONS menu, but Fullscreen is still messed up there.
09/13/2009 (7:25 pm)
@mike rowleyA few things, yes, I read your topic before you edited it, and I meant in the "About the Author" sorry about any confusion I may have caused you.
About the sound, I meant creating the actually sound, not adding it. I meant a program to make sounds.
@scott burns
Ok ill test that stuff out, thanks for helping but I have one thing to say, about fullscreen, its not just certain options, it worked on some TGEA Generated pages when I created the game, but now it doesnt, like I havent touched the OPTIONS menu, but Fullscreen is still messed up there.
#8
Edit to add:
I went and looked. I do have the resource mirrored Here. (should save a little searching.) (just drag and drop your sounds onto it.)
09/13/2009 (9:01 pm)
Ahh, ok. Do a search here for " theora goodies ". You can use any sound editor to record the sounds. I use Adobe Audition set to mono for sounds, then convert using the tools in the theora goodies resource. Edit to add:
I went and looked. I do have the resource mirrored Here. (should save a little searching.) (just drag and drop your sounds onto it.)
#9
09/13/2009 (9:45 pm)
I can record sounds I have a Microphone, but I cant make a good Laser Explosion with my mouth. . . .
#10
I need a link to get to TDN please and thank you.
09/13/2009 (10:24 pm)
Does TDN still exist? If so, how do you access TDN? I would say "nice new site GG, except what were you thinking regarding the navigation?" I need a link to get to TDN please and thank you.
#11
09/14/2009 (10:00 pm)
Scott, I cant find a that variable in the PlayGui. . .
#12
09/15/2009 (8:54 pm)
Ok nevermind, I found out you have to make one.
#13
That'll get you to tdn. The link is under: "support/documentation" in the very first paragraph.
09/16/2009 (5:20 am)
tdn.garagegames.com/wiki/TDN_Home&needLogin=1That'll get you to tdn. The link is under: "support/documentation" in the very first paragraph.
Torque 3D Owner Edward