Sign in to follow this  
Guest

Library call macro

Recommended Posts

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
Help AVSIM continue to serve you!
Please donate today!

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

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