Error Starting SBuilderX
Error Starting SBuilderX
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
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
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
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
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.
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.
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
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
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.
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.
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
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
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.
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.
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.
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.