Jump to content
Sign in to follow this  
arno

Macros from Library Objects

Recommended Posts

Guest

Hi! How do I make a macro for the defualt oil rig in fs2004? I would like to add it in some other spots. Thanks Geoff Sutherland

Share this post


Link to post
Share on other sites

The first thing you need to do is to find the GUID of the object. Once you have that you must copy it into this macro template:[tt]Area( 4 %1 %2 22 )IfVarRange( : 346 %12 5 )PerspectiveCall( :L1 )ShadowCall( :L1 )Jump( : ):L1mif( %11 )RefPoint( 2 :E1 %4 %1 %2 E= %11 v1= %10 %13 %14 )melseRefPoint( 7 :E1 %4 %1 %2 v1= %10 %13 %14 )mifendRotatedCall ( :R1 0 0 %5 )Return:R1CallLibObj( 0 6dc7e21e 4f0c4d73 95488dac 102499a1 ):E1ReturnEndA[/tt]Where you replace the GUID that is there now (6dc7e21e 4f0c4d73 95488dac 102499a1) with the GUID of your object.


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 JonP01

And that's the tricky part. Finding the GUID. Correct me if I'm wrong, but isn't the upcoming SDK the only way to get a complete list of them? (apart from the new autogen and some old object carryovers from earlier versions)?

Share this post


Link to post
Share on other sites

Yes, at the moment it is. For the Fs2002 objects we could just decompile the library and read the GUIDs from the source. But the new format of Fs2004 can not be read yet. So we have to wait for more info from MS I think.


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...