Error Starting SBuilderX

General discussion about Scenery Design. Questions about SBuilder for Flight Simulator FS2004.
JoeW
Posts: 42
Joined: Sat Mar 12, 2005 2:05 am
Location: USA

Error Starting SBuilderX

Post by JoeW » Thu Sep 13, 2007 12:13 pm

When I start SBX I get an error message " The Windows Registry indicates that FSX is in the folder: C:\program files\Microsoft Games\Microsoft flight Simulator X
But SBuilder X could not find it. It will go ahead and open and seems to be working right, I can compile scenery with it, but this pops up every tome I start it. I have looked in the ini for a entry for this but it's not one there. Also the Preferences doesn't show anything for this. I have only a c:\ drive so thats not it either.
Thanks
Joe W

User avatar
Luis Sa
Posts: 1736
Joined: Sun May 18, 2003 11:17 am
Location: Portugal
Contact:

Post by Luis Sa » Thu Sep 13, 2007 4:01 pm

Hello,

The test can not be disabled in the INI. You need to fix your registry so that it really points to the location where FSX is really installed. Please make a search in this forum with the words REGISTRY AND REGEDIT.

Regards,

Luis

JoeW
Posts: 42
Joined: Sat Mar 12, 2005 2:05 am
Location: USA

Post by JoeW » Fri Sep 14, 2007 12:48 pm

That is the proper location of FSX.
C:\Program Files\Microsoft Games\Microsoft Flight Simulator X.
What do I change? What do I change it to?
Joe W.

JoeW
Posts: 42
Joined: Sat Mar 12, 2005 2:05 am
Location: USA

Post by JoeW » Wed Sep 19, 2007 4:27 pm

I don't speak spanish. How do you search this forum?
Joe W.

User avatar
Luis Sa
Posts: 1736
Joined: Sun May 18, 2003 11:17 am
Location: Portugal
Contact:

Post by Luis Sa » Wed Sep 19, 2007 11:27 pm

Hi,

With IE the forum is available in English and Portuguese (not Spanish!). With Mozilla Firefox it drops into Portuguese even when you select English (I do not know why this happens). But to make a Serach lool for:

Pesquisa (means Search)

Then enter the Kewywords in the 1st box (Procurar por:)

Sorry,

Luis

JoeW
Posts: 42
Joined: Sat Mar 12, 2005 2:05 am
Location: USA

Post by JoeW » Thu Sep 20, 2007 7:38 pm

I did that and found the other post. Mine is for FSX, is that going to make a difference?
Thanks
Joe W.

JoeW
Posts: 42
Joined: Sat Mar 12, 2005 2:05 am
Location: USA

Post by JoeW » Sat Sep 22, 2007 8:43 pm

The entry in my registry is:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Games\Flight Simulator\10.

(default) REG_SZ Value not set
CDPATH Reg_SZ G:\
LangID REG_DWORD 0x00000409(1033)
PID REG_SZ 83884-104-2182251-70825
SetPath REG_SZ C:\Program Files\Microsoft Games\Microsoft Flight Simulator X

The path is correct, it is the default path. What do I change? What is SBuilder X looking for? The program is running great except for this startup error message.
What do I need to do?
Joe W.

User avatar
Luis Sa
Posts: 1736
Joined: Sun May 18, 2003 11:17 am
Location: Portugal
Contact:

Post by Luis Sa » Wed Sep 26, 2007 1:50 am

Hi Joe,

I hope you can follow the code that SBuilder uses to check for all the ressources that it needs. Then see if your registry is as SBuilder expects it to be.

Regards (and sorry if this is too technical),

Luis

Code: Select all

Private Sub CheckFS10()

        Dim C As String

        FSXExists = False
        FSPath = ""
        FSPath = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft Games\Flight Simulator\10.0", "SetupPath", Nothing)
        If FSPath = "" Then
            MsgBox("FSX could not be found in this computer!", 16, AppTitle)
        Else
            FSTextureFolder = FSPath & "\Scenery\World\Texture\"
            If Not My.Computer.FileSystem.FileExists(FSPath & "terrain.cfg") Then
                C = "The Windows Registry indicates that FSX is in the folder:" & vbCrLf & vbCrLf
                C = C & FSPath & vbCrLf & vbCrLf
                C = C & "but SBuilder could not find it there!"
                MsgBox(C, 16, AppTitle)
            Else
                FSXExists = True
            End If
        End If

    End Sub

    Private Sub CheckFSXTools()

        Dim B, C As String
        Dim ToolsFolder As String

        ToolsFolder = AppPath & "\Tools\"
        FSXTools = False
        If My.Computer.FileSystem.FileExists(ToolsFolder & "shp2vec.exe") _
         And My.Computer.FileSystem.FileExists(ToolsFolder & "resample.exe") _
         And My.Computer.FileSystem.FileExists(ToolsFolder & "bglcomp.exe") _
         And My.Computer.FileSystem.FileExists(ToolsFolder & "bglcomp.xsd") _
         And My.Computer.FileSystem.FileExists(ToolsFolder & "imagetool.exe") Then
            FSXTools = True
            SDKPath = ""
            SDKPath = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft Games\Flight Simulator X SDK", "SetupPath", Nothing)
            If SDKPath <> "" Then
                SDKTerrain = SDKPath & "SDK\Environment Kit\Terrain SDK\"
                SDKBglComp = SDKPath & "SDK\Environment Kit\BGL Compiler SDK\"
            End If
            Exit Sub
        End If

        SDKPath = ""
        SDKPath = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft Games\Flight Simulator X SDK", "SetupPath", Nothing)
        If SDKPath = "" Then
            C = "ImageTool, Shp2Vec, Resample & BGLComp do not exist in the ..\SBuilder\Tools folder and"
            C = C & vbCrLf & "the Terrain SDK could not be found in this computer! Some BGL files can not be generated!"
            MsgBox(C, 16, AppTitle)
        Else
            SDKTerrain = SDKPath & "SDK\Environment Kit\Terrain SDK\"
            SDKBglComp = SDKPath & "SDK\Environment Kit\BGL Compiler SDK\"
            If My.Computer.FileSystem.FileExists(SDKTerrain & "shp2vec.exe") _
            And My.Computer.FileSystem.FileExists(SDKTerrain & "resample.exe") _
            And My.Computer.FileSystem.FileExists(SDKBglComp & "bglcomp.exe") _
            And My.Computer.FileSystem.FileExists(SDKBglComp & "bglcomp.xsd") _
            And My.Computer.FileSystem.FileExists(SDKTerrain & "imagetool.exe") Then

                B = SDKTerrain & "shp2vec.exe"
                C = ToolsFolder & "shp2vec.exe"
                File.Copy(B, C, True)
                B = SDKTerrain & "resample.exe"
                C = ToolsFolder & "resample.exe"
                File.Copy(B, C, True)
                B = SDKTerrain & "imagetool.exe"
                C = ToolsFolder & "imagetool.exe"
                File.Copy(B, C, True)

                B = SDKBglComp & "bglcomp.exe"
                C = ToolsFolder & "bglcomp.exe"
                File.Copy(B, C, True)
                B = SDKBglComp & "bglcomp.xsd"
                C = ToolsFolder & "bglcomp.xsd"
                File.Copy(B, C, True)

                FSXTools = True
            Else
                C = "Shp2Vec, ImageTool, Resample & BGLComp do not exist in the ..\SBuilder\Tools folder and"
                C = C & vbCrLf & "the Terrain SDK could not be found in this computer! Some BGL files can not be generated!"
                MsgBox(C, 16, AppTitle)
            End If
        End If


    End Sub

    Private Sub CheckTerrainCFG()

        If Not FSXExists Then Exit Sub
        If OriginalTerrainCFG Then Exit Sub

        Dim TerrainFile As String = FSPath & "terrain.cfg"
        Dim A As String

        Dim IsOK As Boolean = True
        FileOpen(2, TerrainFile, OpenMode.Input)
        A = LineInput(2)
        FileClose()

        If A <> "//------------------------------------------------------------------------" Then IsOK = False

        If IsOK Then Exit Sub

        A = "The modified FSX terrain.cfg file authored by Richard Ludowise" & vbCrLf
        A = A & "and Luis Féliz-Tirado was not detected in your system! For better" & vbCrLf
        A = A & "results you should install this file. SBuilderX can make a backup" & vbCrLf
        A = A & "of the original terrain.cfg and install the modified file for you." & vbCrLf & vbCrLf
        A = A & "Do you want to install the modified terrain.cfg?" & vbCrLf

        If MsgBox(A, MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
            A = "Enter a filename to store the original terrain.cfg."
            Dim BackUpFile As String = InputBox(A, , "terrain_original.cfg")
            If BackUpFile = "" Then Exit Sub
            BackUpFile = FSPath & BackUpFile
            File.Copy(TerrainFile, BackUpFile, True)
            Dim ModTerrainFile As String = AppPath & "\Tools\terrain.cfg"
            File.Copy(ModTerrainFile, TerrainFile, True)
        Else
            A = "If you want to keep your present terrain.cfg and" & vbCrLf
            A = A & "force SBuilderX to ignore this test, answer YES!"
            If MsgBox(A, MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then
                OriginalTerrainCFG = True
                WriteMainSettings()
            End If
        End If

    End Sub

JoeW
Posts: 42
Joined: Sat Mar 12, 2005 2:05 am
Location: USA

Post by JoeW » Thu Sep 27, 2007 11:20 am

FSPath = My.Computer.Registry.GetValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft Games\Flight Simulator\10.0", <font color="red">"SetupPath", Nothing)</font id="red">
If FSPath = "" Then
MsgBox("FSX could not be found in this computer!", 16, AppTitle)
Else
There is no setup path entry in my register. If I uninstall and re-install SBX will that fix it? It works fine but I just get that annoying message on startup.
Joe W.

User avatar
Luis Sa
Posts: 1736
Joined: Sun May 18, 2003 11:17 am
Location: Portugal
Contact:

Post by Luis Sa » Thu Sep 27, 2007 12:53 pm

Hello,

No. SBX just reads the registry. FSX creates that key in the registry and I have no idea why it was not been created in your system (!!!)

I think that you can create that entry with REGEDIT and put in there the path to location where FSX exists. I have no FSX in my small laptop. In order to run SBX without this error, I create the entry as in the picture below. I hope that will help you.

Regards, Luis

Image

JoeW
Posts: 42
Joined: Sat Mar 12, 2005 2:05 am
Location: USA

Post by JoeW » Sat Sep 29, 2007 9:54 am

I have created that entry and it still displays that error at startup. I think this started when I installed the last update.
Joe W.

Image

User avatar
Luis Sa
Posts: 1736
Joined: Sun May 18, 2003 11:17 am
Location: Portugal
Contact:

Post by Luis Sa » Tue Oct 09, 2007 12:26 am

Hi Joe

Would it be the final / that is missing in your registry?

Also: what is exactly the message?

Regards, Luis

JoeW
Posts: 42
Joined: Sat Mar 12, 2005 2:05 am
Location: USA

Post by JoeW » Wed Oct 10, 2007 12:35 pm

Message is as follows:


Image

Joe W.

JoeW
Posts: 42
Joined: Sat Mar 12, 2005 2:05 am
Location: USA

Post by JoeW » Wed Oct 10, 2007 12:42 pm

OK ...... Luis .....
I just edited the line: C:\Program Files\Microsoft Games\Microsoft Flight Simulator X to read C:\Program Files\Microsoft Games\Microsoft Flight Simulator X<font color="red">\</font id="red">
That did the trick!
Why don't computers read your mind. that really would help!
[8D][:D][8D]
Thanks a bunch for being so paitent.
Joe W.

bananimal
Posts: 3
Joined: Sat Oct 13, 2007 12:39 am

Post by bananimal » Sat Oct 13, 2007 12:44 am

I am having a similar issue. It is extremely frustrating. My path to FSX is E:\FSX. I used the Tweak FS REG utility to check but my paths are all correct. SBuilderX refuses to see my install of FSX.

I gotta say, forcing SBuilder to look for FSX in the default folder is a bad move. Many users install software on drives other than default. So, as a result I cannot use this software. Any ideas? There is no way I'm reinstalling FSX to use this software. Can't do it. I'm in the middle of a scenery project that has 90GB of files associated with it.

Post Reply