Jump to content
Sign in to follow this  
arno

Attached Object in BGLCOMP

Recommended Posts

Guest christian

I tried to attach library objects and effects to a library object yesterday, but bglcomp complains. Beacons work fine, but library objects and effects don't seem to compile. (I tried old and new version).It seems as if bglcomp checks if library objects and effects are nested in scenery objects. If they are nested in atteched objects, bglcomp bails out. There seems to be no obvious fix, since the xsd grammar seems to be correct. This is hardcoded.Anyone else got it to work?Cheers, Christian

Share this post


Link to post
Share on other sites

Hi Christian,Do you mean that you have made an empty attachpoint in GMax and are now trying to attach another library object to it? I haven't tried that yet, but I will have a look at it :).


Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Share this post


Link to post
Share on other sites

Hi Christian,Doesn't seem to work indeed. When I use a beacon I can compile it fine, but when I replace the beacon with a library object I get an error. This is the error I get:[tt]Parsing document: test.XMLERROR C2313: LibraryObject MUST be nested inside a SceneryObject!ERROR C2031: Failed element parse ERROR C2032: XML Parse Error! Element tree follows:ERROR: ERROR: ERROR: ERROR: ERROR: ERROR C2328: Mismatch token end (LibraryObject)!ERROR C2024: Failed to process closing element tag near line 9!ERROR C2308: Invalid object type for attached object!ERROR C2153: Failed to prepare attached objects for output!ERROR: Compilation errors detected, compilation failed!Parse complete![/tt]And this is the XML code I was using:[tt]<?xml version="1.0" encoding="ISO-8859-1"?>[/tt]


Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Share this post


Link to post
Share on other sites
Guest christian

Hi Arno,No, I was just using one of the default library objects. I'm glad I didn't make my own gmax model yet, as it clearly doesn't seem to work!The trouble is that the error seems to be hardcoded, so changing the xsd grammar will do nada (actually, it is defined correctly in the xsd).Good to see it doesn't work for you either (good in a sense of 'I'm not the only one').Cheers, Christian

Share this post


Link to post
Share on other sites

I think you are right here. I don't really understand the error message, so I am afraid this is just a thing that is not possible (although the BGLComp SDK says you can use either effects, beacons or library objects within the attachobject command).


Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Share this post


Link to post
Share on other sites

I know it's been awhile, but...I've been playing around with this, and of course, I get teh same error that Arno did. I searched the forums, but again, the only examples which seem to work are the ones with beacons. Has anyone gotten it to work? I ask because I was following the lighting tutorial over at Arno's site, and so I was trying to attach my light objects directly to my scenery.- Martin

Share this post


Link to post
Share on other sites

Hi Martin,Nope, I think this is just something that is not possible at the moment. It is probably a fault in the SDK or maybe a bug in BGLComp.


Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...