Jump to content
Sign in to follow this  
Guest

Library call macro

Recommended Posts

Guest

I am trying to call typical MS library macro "air_plow" in FSCC and getting this error :Error in macro file C:APT210APIAIR_PLOW.API line 25 -> CallLibObj ( 0 0C545A2A1h 011D2E2ECh 01000849Ch 02AE60C5Ah ) -> invalid operator .. h 011D2E2ECh 0100084 ..Scasm compilation status: error(s) 1here is my entire macro: Area( 5 %1 %2 %3 ) ; Start of library call IfVarRange( : 346 %12 5 ) PerspectiveCall( :Persp ) Jump( : ) :Persp Perspective mif( %11 ) RefPoint (2 :EndC %4 %1 %2 v1= %10 E= %11 %13 %14 ) melse RefPoint (7 :EndC %4 %1 %2 v1= %10 %13 %14 ) mifend RotatedCall( :objcall 0 0 %5 ) ; rotate object to user preset :EndCReturn :objcall CallLibObj ( 0 0C545A2A1h 011D2E2ECh 01000849Ch 02AE60C5Ah ) ; call library object Return EndA What could I be doing wrong? I copied and pasted entire id # from the fsregen library searcher.Aprreciate any help as usual. Ted

Share this post


Link to post
Share on other sites
Guest Cazador

Dear Ted:I think that your error is in the hexadecimal octet, there is 9 digit by octect you are using a extra zero at the beginning of each octet.Try deleting the first zero of each octet.I dont't remeber if scasm recognizes the last h at the end of each octet.Octet in spanish is Octeto = 8 digit like the TCP/IP binary address.Try the following:CallLibObj ( 0 C545A2A1 11D2E2EC 1000849C 2AE60C5A ) Thanks.Alfredo Mendiola LoyolaLima Peru

Share this post


Link to post
Share on other sites
Guest

O yes, how could I miss that. But I guess I did.Thanks a million.Ted

Share this post


Link to post
Share on other sites
Guest

Just as a footnote to this thread I would like to note that if macro ID is copied and pasted using search tool in Fsregen , 0 nd h is appended to each octet on the begining and end. After editing them out as Alfredo kindly pointed out it works perfectly and macro shows in scenery as expected.Ted

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