Sign in to follow this  
spotlope

Gmax and FsRegen api crash detection

Recommended Posts

Hi, I have createf a gmax object and converted it to api with fsregen. When I place the gmax object directly, crash detection works fine, but when placed as api with FSSC, no crash detection at all.Any ideas? David

Share this post


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

That's correct, the crash detection is in the *.asm file, while FsRegen reads the object data from the *_0.asm file.Or you can use SCASM code to add the crash detection to the macro or you can paste the BGLC crash code in the *_0.asm file. Of course you need to make sure in that case that all jumps are set correct etc.Arno


Member Netherlands 2000 Scenery Team[a href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a]

Share this post


Link to post
Share on other sites

Hi Arno,Does that method of pasting code from the *.asm into the *_0.asm work for eliminating shadows for ground polys as well? I've got a couple of polys that I'd like to use in airport, but can't get the hang of how to make an API that doesn't have a shadow call.thanks,

Share this post


Link to post
Share on other sites

No, it will not work for the shadow problem, as you want to remove some code there and not add it :).Here is an example of how the API should look for an object without shadowcall:Area( 5 %1 %2 22 )LayerCall( :L1 8 )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 12345678 12345678 12345678 12345678 ):E1ReturnEndAThe parameter 8 in the LayerCall command is the layer and of course you need to add your own ID.Arno


Member Netherlands 2000 Scenery Team[a href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a]

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