Mouse / movement separation
by afharris_83 · in Torque Game Engine · 10/28/2006 (10:37 am) · 5 replies
I seem to encounter a problem where the mouse has "separated" from moving the camera. The mouse cursor that normally appears while you're editing is on screen and moving while the game is running, not editing, so the camera never moves. I have just started with the engine as of a few days ago, so I have to ask...
Am I missing something ridiculously simple?
Am I missing something ridiculously simple?
#2
It appeared as this:
// --- OBJECT WRITE BEGIN ---
new GameTSCtrl(PlayGui) {
canSaveDynamicFields = "0";
Profile = "GuiContentProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "0 0";
Extent = "640 480";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
applyFilterToChildren = "1";
cameraZRot = "0";
forceFOV = "0";
Add noCursor = "1"; immediately after forceFOV, save and load the entire program from scratch. It should resolve your problem.
Please note I have cross-posted this to the thread linked above as well.
10/28/2006 (2:06 pm)
I found the problem. It (at least for me) is in the /client/ui/playGui.gui file. It appears that if you edit the menu for the game while it's running, there is a line omitted from this file once you save it.It appeared as this:
// --- OBJECT WRITE BEGIN ---
new GameTSCtrl(PlayGui) {
canSaveDynamicFields = "0";
Profile = "GuiContentProfile";
HorizSizing = "right";
VertSizing = "bottom";
position = "0 0";
Extent = "640 480";
MinExtent = "8 8";
canSave = "1";
Visible = "1";
hovertime = "1000";
applyFilterToChildren = "1";
cameraZRot = "0";
forceFOV = "0";
Add noCursor = "1"; immediately after forceFOV, save and load the entire program from scratch. It should resolve your problem.
Please note I have cross-posted this to the thread linked above as well.
#3
Is there something we were missing when we saved the playGui from within the game? I wonder if this happens due to a new feature, or a genuine gui editor bug?
10/28/2006 (2:11 pm)
That got it! Many thanks! How did you figure this out? I wouldn't have even known where to look :PIs there something we were missing when we saved the playGui from within the game? I wonder if this happens due to a new feature, or a genuine gui editor bug?
#4
Anywho, I figured it out by starting over with a fresh copy of "starter.fps" and pulling over my data folder. Immediately everything was working, so I set about making changes like I had before. The first change I made was making the blue bar next to the red health bar invisible, as well as the border around it. I did so, saved the game, and came back in only to find the cursor on my screen. So I knew at least which file was the problem.
I opened a backup copy of playGui.gui and started looking through (there were quite a few changes) and found that line to be missing (plus it stood out by name anyway.)
Nothing too fancy, just lucked into making the right change immediately :)
I suspect it's a bug; I haven't yet run across a setting for whether the cursor is visible or not, but I am still new to the engine so I may have just missed it. But at the very least I hope this saves some other people some head-scratching.
10/28/2006 (2:13 pm)
Sorry, dunno why that posted twice.Anywho, I figured it out by starting over with a fresh copy of "starter.fps" and pulling over my data folder. Immediately everything was working, so I set about making changes like I had before. The first change I made was making the blue bar next to the red health bar invisible, as well as the border around it. I did so, saved the game, and came back in only to find the cursor on my screen. So I knew at least which file was the problem.
I opened a backup copy of playGui.gui and started looking through (there were quite a few changes) and found that line to be missing (plus it stood out by name anyway.)
Nothing too fancy, just lucked into making the right change immediately :)
I suspect it's a bug; I haven't yet run across a setting for whether the cursor is visible or not, but I am still new to the engine so I may have just missed it. But at the very least I hope this saves some other people some head-scratching.
#5
10/28/2006 (2:17 pm)
Woohoo! You've saved me much hair pulling :P Thanks again!!
Torque Owner Corey Martin