Turrets & A Gui problem
by Chris "DiGi" Timberlake · in Torque Game Engine · 04/07/2004 (7:38 pm) · 7 replies
I figuared i'd post both problems i'm having here.
I followed the new Turret resource to a T, I have everything Executed, but they don't show up in the Shapes category, their is no console errors.
My 2nd is a question: How would I make it so their was say an Esc Screen so when you hit esc it poped up (that part is done), but when you had say an irc window open on the esc menu, and you closed the esc menu it would close that one, and when you opened it again the irc window poped up?
I followed the new Turret resource to a T, I have everything Executed, but they don't show up in the Shapes category, their is no console errors.
My 2nd is a question: How would I make it so their was say an Esc Screen so when you hit esc it poped up (that part is done), but when you had say an irc window open on the esc menu, and you closed the esc menu it would close that one, and when you opened it again the irc window poped up?
About the author
#2
On the GUI, i mean like you open a GUI in the ESC Menu, like say an IRC UI, and when you clsoe teh esc menu it closes the IRC UI, then when you open it again it opens the IRC UI, but if the IRC UI isn't open when you close the menu then when you open the menu it wount come back.
04/07/2004 (8:57 pm)
They are being executed, my bad there is an error. Loading compiled script aw/server/scripts/Turrets/execall.cs. Loading compiled script aw/server/scripts/Turrets/aiTurret.cs. Loading compiled script aw/server/scripts/Turrets/anotherAITurret.cs. aw/server/scripts/Turrets/anotherAITurret.cs (0): Unable to instantiate non-conobject class AITurretData. Loading compiled script aw/server/scripts/Turrets/GenericAITurret.cs. aw/server/scripts/Turrets/GenericAITurret.cs (0): Unable to instantiate non-conobject class AITurretData. Loading compiled script aw/server/scripts/Turrets/genericTurret.cs. aw/server/scripts/Turrets/genericTurret.cs (0): Unable to instantiate non-conobject class TurretData. Object 'RifleProjectile' is not a member of the 'ProjectileData' data block class Loading compiled script aw/server/scripts/Turrets/turret.cs.Seems i overlooked the rifle one the first time, i'm going to exec that file, and see what i get
On the GUI, i mean like you open a GUI in the ESC Menu, like say an IRC UI, and when you clsoe teh esc menu it closes the IRC UI, then when you open it again it opens the IRC UI, but if the IRC UI isn't open when you close the menu then when you open the menu it wount come back.
#3
04/08/2004 (2:13 pm)
I changed the projectile to CrossbowProjectile, still no success, same ol' errors and no showing up in the Shapes menu.
#4
On the Gui Issue, you'd probably need to store a variable when the esc menu closes, so it knows what guis need reopened. This probably could be done in the esc menu's onSleep and onWake functions.
Just some ideas.
04/08/2004 (3:57 pm)
From your errors, the engine doesnt know AITurretData or TurretData, I would recheck to make sure you included the files into the project before you compiled. From what I see, my guess is that the engine changes you made need looked over again.On the Gui Issue, you'd probably need to store a variable when the esc menu closes, so it knows what guis need reopened. This probably could be done in the esc menu's onSleep and onWake functions.
Just some ideas.
#5
04/08/2004 (4:48 pm)
Thnx, you just gave me an idea.
#6
04/08/2004 (4:52 pm)
*sighs* thnx you fixed my problem, I was nearly sure I added those bloody files. :\ can't believe I was so dumb. This is what happens when I stop messing with torque for a few weeks lol, I forget everything I have learned.
#7
04/08/2004 (5:53 pm)
HOLY COW THAT AI IS FIERCE, THNX!!!! NOW ALL I GOTTA DO IS ADD IN THE MOUNTING WITH MY SYSTEM.
Associate Paul Dana
You need to be more clear on the second question. I am not sure if you want to toggle between two windows on esc, or...