Work-around for "red background" issue in TGB
by Keith Frechette · in Torque Game Builder · 07/09/2009 (5:31 pm) · 5 replies
Since I just hit this issue and I don't see any solutions posted (though I did see others hitting the issue many months ago), I figured I'd post what I found out.
Triggering the problem: For me, the issue hits when I open up the "Preferences" dialog and mess with any of the color settings, regardless of whether I hit Cancel or OK when I'm done. An easy, 100% repro scenario. Clearly a bug in TGB.
Working around the problem: To change colors back to something less, um, irritating, edit the following file. (Note, I'm doing this on a Windows 7 system with the OS installed to the "C" drive. Your mileage may vary. Naturally, substitute your own user name for the <username> designation in the path below.)
C:\Users\<username>\AppData\Roaming\GarageGames\TorqueGameBuilderX\levelEditorPrefs.cs
That's a text file containing various preferences for the level editor. The two settings of immediate interest are $levelEditor::BackgroundColor and $levelEditor::GridColor; however, you may find a few others worth tweaking. Here's how I set the two variables to get back to a gray background and black grid lines.
$levelEditor::BackgroundColor = "0.750000 0.750000 0.750000 0.000000";
$levelEditor::GridColor = "0.000000 0.000000 0.000000 0.000000";
-- Keith
Triggering the problem: For me, the issue hits when I open up the "Preferences" dialog and mess with any of the color settings, regardless of whether I hit Cancel or OK when I'm done. An easy, 100% repro scenario. Clearly a bug in TGB.
Working around the problem: To change colors back to something less, um, irritating, edit the following file. (Note, I'm doing this on a Windows 7 system with the OS installed to the "C" drive. Your mileage may vary. Naturally, substitute your own user name for the <username> designation in the path below.)
C:\Users\<username>\AppData\Roaming\GarageGames\TorqueGameBuilderX\levelEditorPrefs.cs
That's a text file containing various preferences for the level editor. The two settings of immediate interest are $levelEditor::BackgroundColor and $levelEditor::GridColor; however, you may find a few others worth tweaking. Here's how I set the two variables to get back to a gray background and black grid lines.
$levelEditor::BackgroundColor = "0.750000 0.750000 0.750000 0.000000";
$levelEditor::GridColor = "0.000000 0.000000 0.000000 0.000000";
-- Keith
#2
07/16/2009 (1:45 am)
If this fixes the red background bug in Torque X Builder, i'm gonna hug you. That bug has been incredibly elusive for the longest time.
#3
-- Keith
07/16/2009 (12:52 pm)
This is merely a "repair" technique. If you'd like, I could take a look at the sources (I think they're included with the editor, right?) and see if I can track down the problematic code.-- Keith
#4
-- Keith
07/16/2009 (1:25 pm)
Ok, upon looking at my TXB installation directory, I see that my understanding about source code was wrong. I had seen .zip files with .cs files that I presume was C# code, which clearly is not C# code! So much for my offer to examine the sources for you. :-)-- Keith
#5
07/16/2009 (1:28 pm)
Keith, I'm going to send you an email regarding this :)
Torque Owner World-Loom
World LooM
$levelEditor::BackgroundColor = "0.690196 0.690196 0.690196 1.000000";
$levelEditor::GridColor = "0.000000 1.000000 0.615686 1.000000";
if you would like to get "original" ones.
Also when you let someone to go to:
%appdata%\GarageGames\TorqueGameBuilderX
you would assure that regardless windows version one would land in proper place.