Jump to content


- - - - -

bgl compiler


  • Please log in to reply
10 replies to this topic

#1 flyingcanuck

flyingcanuck

    Student Pilot

  • Members
  • PipPip
  • 88 posts
  • Location:Calgary, Alberta, Canada (CYYC)

Posted 13 March 2005 - 02:17 AM

I recently downloaded rwy 12 object placer and when I told it to generate the scenery it said it had created to xml file but it failed to compile the bgl file. So now i have to use the bgl compiler from microsofts SDK but when I click on the "bglcomp.exe" program it comes up with the MSDOS prompt for only a few milliseconds and I have no idea how to use it.

Any help with this would be greatly appreciated. It would also be nice if anyone could tell me why rwy 12 can't compile its own xml documents.

Thanks

#2 IBtheSarge

IBtheSarge

    First Class Member

  • Moderator
  • PipPipPipPipPipPipPipPip
  • 10,718 posts
  • Location:Central Florida

Posted 13 March 2005 - 08:34 AM

flyingcanuck, on Mar 13 2005, 03:17 AM, said:

I recently downloaded rwy 12 object placer and when I told it to generate the scenery it said it had created to xml file but it failed to compile the bgl file. So now i have to use the bgl compiler from microsofts SDK but when I click on the "bglcomp.exe" program it comes up with the MSDOS prompt for only a few milliseconds and I have no idea how to use it.

Any help with this would be greatly appreciated. It would also be nice if anyone could tell me why rwy 12 can't compile its own xml documents.

Thanks
Drag-and-drop the XML on top of the bglcomp.exe icon.

#3 flyingcanuck

flyingcanuck

    Student Pilot

  • Members
  • PipPip
  • 88 posts
  • Location:Calgary, Alberta, Canada (CYYC)

Posted 13 March 2005 - 12:22 PM

Thanks sarge!

#4 flyingcanuck

flyingcanuck

    Student Pilot

  • Members
  • PipPip
  • 88 posts
  • Location:Calgary, Alberta, Canada (CYYC)

Posted 13 March 2005 - 01:00 PM

Ok so I did that but now I don't know where it puts the new bgl file.

#5 IBtheSarge

IBtheSarge

    First Class Member

  • Moderator
  • PipPipPipPipPipPipPipPip
  • 10,718 posts
  • Location:Central Florida

Posted 13 March 2005 - 04:05 PM

flyingcanuck, on Mar 13 2005, 02:00 PM, said:

Ok so I did that but now I don't know where it puts the new bgl file.
It creates the BGL file in same directory that you do the drag-and-drop.  If a BGL file doesn't appear, then it didn't create one.

The RWY 12 program should put the BGL into the AddOn Scenery/Scenery directory (if I'm not mistaken; I don't use it, so I'm not sure exactly how its set up as far as placement goes).

Are you sure RWY 12 is using the bglcomp_SDK, or is it using SCASM?

Edited by sarge, 13 March 2005 - 04:06 PM.


#6 flyingcanuck

flyingcanuck

    Student Pilot

  • Members
  • PipPip
  • 88 posts
  • Location:Calgary, Alberta, Canada (CYYC)

Posted 13 March 2005 - 07:17 PM

Quote

Are you sure RWY 12 is using the bglcomp_SDK, or is it using SCASM?

I don't know but I'm pretty sure is uses the bgl comp. I'll search my hard drive for the bgl file later.

#7 IBtheSarge

IBtheSarge

    First Class Member

  • Moderator
  • PipPipPipPipPipPipPipPip
  • 10,718 posts
  • Location:Central Florida

Posted 13 March 2005 - 10:26 PM

flyingcanuck, on Mar 13 2005, 08:17 PM, said:

Quote

Are you sure RWY 12 is using the bglcomp_SDK, or is it using SCASM?

I don't know but I'm pretty sure is uses the bgl comp. I'll search my hard drive for the bgl file later.
The reason I ask is that in my learning process for XML, bglcomp is only used for XML's that place default FS9 objects and XML excludes.  SCASM is used to compile all other object placement XML's.  CreatSign (which I used to use to place taxiway and runway signs) is an XML based program, and it too uses SCASM to compile the XML data to BGL.

#8 flyingcanuck

flyingcanuck

    Student Pilot

  • Members
  • PipPip
  • 88 posts
  • Location:Calgary, Alberta, Canada (CYYC)

Posted 13 March 2005 - 11:58 PM

You were right. I did have to use SCASM.

Now that I've compiled it into a bgl file I have one more question. Where do I put it. I tried putting it in several locations in my addon scenery folder but nothing worked.

#9 IBtheSarge

IBtheSarge

    First Class Member

  • Moderator
  • PipPipPipPipPipPipPipPip
  • 10,718 posts
  • Location:Central Florida

Posted 14 March 2005 - 10:35 AM

flyingcanuck, on Mar 14 2005, 12:58 AM, said:

You were right. I did have to use SCASM.

Now that I've compiled it into a bgl file I have one more question. Where do I put it. I tried putting it in several locations in my addon scenery folder but nothing worked.
Okay, since you've established that it IS SCASM based, here's a couple of things you need to check:

1.  The LibObj file (with RWY 12, you should have the designer's XML and BGL that has all of the objects in them), SCASM.exe, and the XML you created have to be in the same directory.  When SCASM does the compile, it has to get data from the LibObj file; if it isn't in the same directory, you'll get a BGL file, but it will be missing the "build" data.

2.  Check the instructions in RWY 12 .... once the XML has been compiled, you may need to locate the LibObj file and texture files in specific locations for FS9 to access them.

3.  There are only two places to put a scenery BGL file -- Addon Scenery/Scenery, or Addon Scenery/(airport)/Scenery.

Again, I don't use RWY 12 so I can't offer anything more specific.

#10 flyingcanuck

flyingcanuck

    Student Pilot

  • Members
  • PipPip
  • 88 posts
  • Location:Calgary, Alberta, Canada (CYYC)

Posted 14 March 2005 - 08:28 PM

Yahoooooooooooooooooooooooooooooo!!!!!!!!!!!!!!!
It works!

This is the happiest day of my life . . . well sort of :D

Thanks Sarge for all the help!

Sincerely

Scott

#11 IBtheSarge

IBtheSarge

    First Class Member

  • Moderator
  • PipPipPipPipPipPipPipPip
  • 10,718 posts
  • Location:Central Florida

Posted 14 March 2005 - 09:47 PM

flyingcanuck, on Mar 14 2005, 09:28 PM, said:

Yahoooooooooooooooooooooooooooooo!!!!!!!!!!!!!!!
It works!

This is the happiest day of my life . . . well sort of :D

Thanks Sarge for all the help!

Sincerely

Scott
Ask and ye shall receive.
Knock and it shall be opened unto you.
Invite me in and I'll raid the refrigerator and liquor cabinet!   :o