Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Gmax and FsRegen api crash detection

Featured Replies

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

  • Commercial Member

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]

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

  • Author
  • Commercial Member

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,

Bill Womack

------------------------------------------------------------------------------------------------------------------------------------------------------

Visit my FS Blog or follow me on Twitter (username: bwomack).

Intel i7-950 OC to 4GHz | 6GB DDR3 RAM | Nvidia GTX460 1gb | 2x 120GB SSDs | Windows 7 Ultimate 64Bit

  • Commercial Member

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]

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

  • Author
  • Commercial Member

Thanks, Arno. I'll give that a try.

Bill Womack

------------------------------------------------------------------------------------------------------------------------------------------------------

Visit my FS Blog or follow me on Twitter (username: bwomack).

Intel i7-950 OC to 4GHz | 6GB DDR3 RAM | Nvidia GTX460 1gb | 2x 120GB SSDs | Windows 7 Ultimate 64Bit

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.