Jump to content
Sign in to follow this  
arno

Manually editing .API files part 2 help please

Recommended Posts

Guest

Hey guys, I have some api macros created with FSDS that do not use night lighting (*_lm.bmp files). What command should be changed so it uses the night lighting? Thanks, Leandro

Share this post


Link to post
Share on other sites

Find the LoadBitmap command, it will look something like this:[tt]LoadBitmap( 0 6 EF 0 0 0 mybitmap.bmp )[/tt]If you replace it by this you will get night lighting:[tt]LoadBitmap( 0 L6 EF 0 0 0 mybitmap.bmp )[/tt]I am not sure if FSDS always shows the source this way. I remember that it used the Dwx commands first, because SCASM didn't support the new command at that time. I am not sure if that is solved, in that case you might want to replace these commands by the LoadBitmap command.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

Share this post


Link to post
Share on other sites
Guest

Ok got that. Now there is another little prob to deal with. I have this VOD macro that uses .PAT texture. How can I make it load bmp instead and with the night light too? Here is some of the code:Points( 0 -58 0 -71 ; 0 58 0 -71 ; 1 58 0 72 ; 2 -58 0 72 ; 3 -58 0 -71 ; 4 58 0 -71 ; 5 58 0 72 ; 6 -58 0 72 ; 7)Bitmap( APRON1.PAT 0 0 0 0 )ConcavePolyBitmapMode( 1 )Inst_7DTexPoly( a ; External Top 4 128 193 7 128 50 6 244 50 5 244 193 )BitmapMode( 0 )ReturnEndA

Share this post


Link to post
Share on other sites
Guest

"just change .pat to .bmp"Thanks Bob, but I also have to change from Bitmap to LoadBitmap right? What else needs to be changed?

Share this post


Link to post
Share on other sites

Yes, for the night lighting you also need to replace the Bitmap command by the LoadBitmap command, but that's all.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

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