Sign in to follow this  
arno

GMAX-API

Recommended Posts

I am VERY new to scenery design, and I have created an object I want to place in FS2k2. I have placed it without a problem. But I want to share it. In order to share it I need to make it into an .API macro. How do I do that in GMAX?Is it possible?

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

You can not make an API macro directly from GMax.But there is a workaround. With FsRegen (http://www.nhreas.com/fsregen.html) you can make a library BGL that contains your object. You can then call that object with an API macro.BTW. You only need to make an API macro if you want to share your object with other scenery designers. To share it with user of the scenery you can also distribute the BGL file.ArnoMember NL2000 Teamhttp://home.wanadoo.nl/arno.gerretsen

Share this post


Link to post
Share on other sites

That is what I want to do. I want to share the object with other scenery designers. So I guess I need a separate program to make API objects to share? So does it serve any purpose to make objects in GMAX? I am comfortable with that environment and I don't want to deal with another learning curve like that. I was told be someone that there is a Freeeware Object Designer. I will look into that.

Share this post


Link to post
Share on other sites

>So I guess I need a separate >program to make API objects to share? So does it serve any >purpose to make objects in GMAX?No not really, you only need to make the library BGL with FsRegen. Then you can make the APi macro that calls it very simple using Notepad or so. I'll put an example below. In principle the only thing you need to change is the ID of the object (you must enter the numbers you gave to FsRegen there).ArnoMember NL2000 Teamhttp://home.wanadoo.nl/arno.gerretsen[tt]Area( 5 %1 %2 22 )PerspectiveCall( :L1 )ShadowCall( :L2 )Jump( : ):L1:L2mif( %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 11111979 27042002 00000000 00000001 ):E1ReturnEndA[/tt]

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