SBX wont compile my map!

This is the Forum to discuss the use of SBuilderX (version 3.10 and above). For previous versions of SBuilder please use the "SBuilder for Flight Simulator FS2004" forum.
Post Reply
diger44
Posts: 13
Joined: Thu Jul 29, 2010 6:29 am

SBX wont compile my map!

Post by diger44 » Mon Nov 15, 2010 10:27 pm

Hello, I recently ran into a problem out of the blue. My Project will no longer compile. I go to Select -> Select All to get my Maps and Polys selected but when I press the green arrow, no checkboxes are selected, no photo scenery/Terrain Vector show up.I tried making a new project and of course I was able to compile by Selecting the map the pressing the arrow, the checkbox appeared. I went back to my project and it still wont compile. I haven't had this problem before. I check Tools/Work and there is an error file generated from this project from a few days ago:

Code: Select all

Index was outside the bounds of the array.

System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at SBuilderX.modulePOLYS.MakePolyAntiClockWise(Int32 P)
   at SBuilderX.modulePOLYS.TryParentPoly(Int32 X1, Int32 Y1)
   at SBuilderX.frmStart.frmStart_MouseDown(Object sender, MouseEventArgs e)
   at System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Name=Randakk 06N
NoOfMaps=1
NoOfLands=0
NoOfLines=0
NoOfPolys=2
NoOfWaters=0
NoOfObjects=0
NoOfExcludes=0
NoOfLWCIs=0
BGLProjectFolder=C:\Program Files (x86)\SBuilderX313\Scenery
LatDispCenter=41.4311436815925
LonDispCenter=-74.3894278965062
Zoom=17
PolyON=True
PolyVIEW=True
LineON=False
LineVIEW=True
MapVIEW=True
TilesToCome=0
NoOfServerTypes=7
TileVIEW=False
ActiveTileFolder=VirtualEarthSatellite
WaterVIEW=True
WaterON=False
LandVIEW=True
LandON=False
ObjectON=False
ObjectVIEW=True
NoOfRwy12Categories=1
NoOfLibCategories=15
LibObjectsIsOn=True
NoOfGenBObjects=110
NoOfMacroCategories=6
MacroAPIIsOn=True
MacroASDIsOn=True
MakeOnMany=1
AllVIEW=True
ViewON=True
AircraftVIEW=False
PointerON=False
ZoomON=False
PanON=False
SelectON=False
MoveON=False
FirstMOVE=False
InsertON=False
DeleteON=False
AskDelete=True
Dirty=True
DecimalDegrees=False
LatDispNorth=41.4323935909934
LatDispSouth=41.4298937721915
LonDispWest=-74.39190350162
LonDispEast=-74.3869522913924

I have not been able to compile since. HELP!

meshman
Posts: 219
Joined: Sun Jan 01, 2006 11:54 pm

Re: SBX wont compile my map!

Post by meshman » Mon Nov 15, 2010 11:00 pm

Your problem project has 1 Map and 2 Polys, correct? What happens if you try to compile just the Map portion and just the Polys portion, does it compile?
Lance

diger44
Posts: 13
Joined: Thu Jul 29, 2010 6:29 am

Re: SBX wont compile my map!

Post by diger44 » Mon Nov 15, 2010 11:23 pm

I took out both polys and left the map, so when I go to File->Properties, The only thing is Maps=1. I select JUST the map, and press compile, STILL, no checkboxes are checked! No error files are generated etheir, I can't press compile because it says "please select items to compile"

User avatar
luisfeliztirado
Posts: 436
Joined: Sun May 15, 2005 9:15 am
Location: Santo Domingo

Re: SBX wont compile my map!

Post by luisfeliztirado » Tue Nov 16, 2010 11:53 am

From the SBuilder X Help file:

If you right-click on the edge of the Map, you can bring up its Properties window. Note that SBuilderX will give the Map a name that begins with "Photo". This is the name that will be given to the final bgl. You can change the name of the Map to anything that you wish, but it must start with "Photo" so that SBuilderX can recognize it as a source for custom ground. And, once the bgl has been created, you can change its name to anything that you wish.


Best regards.
Luis

diger44
Posts: 13
Joined: Thu Jul 29, 2010 6:29 am

Re: SBX wont compile my map!

Post by diger44 » Tue Nov 16, 2010 8:52 pm

Wow, that worked, Thanks! However I still don't see the reason why it *HAS* to start with "photo", seems like a programing glitch, or are there other uses for a Map that I'm not aware of. If anything "Photo_" should be pre-pended to a custom name...

User avatar
luisfeliztirado
Posts: 436
Joined: Sun May 15, 2005 9:15 am
Location: Santo Domingo

Re: SBX wont compile my map!

Post by luisfeliztirado » Tue Nov 16, 2010 11:43 pm

"Photo" is always added to the name of any Map generated by the SBuilderX image server function.

For more information on the various uses of Maps, please read the SBuilderX Help file. As you might imagine, since they are called Maps, the functions and sources are varied.

Best regards.
Luis

Post Reply