api to bgl

gius

Charter Member
hi,
i've forgotten the way to transform api files into bgl objects for the cfs2 MB. Anyone can kindly explain such method to me another time?
thanks in advance,
Gius
 
Hi gius

From an old thread (with apologies in advance to the author whose name I did not record)
===========================

5 easy steps to converting an EOD api to Library source

1/ Remove everything down to the :Begin label

2/ add at the top of the file :-

Header( 1 90 -89 180 -179 )
LibId( xxxxxx xxxxxx xxxxxx xxxxxx )
;(where the xxx`s are 4 32 bit numbers making up a unique ID)

3/ Add just above the :Begin line :-
LibObj(
SCALE 1.0
NAME "the_name_you_want_to_give_the_object" ;eg "cd_dinghy_shed"
}

4/ find the EndA line at the end and change it to EndObj

5/ compile it with scasm (just drop the file onto the scasm.exe icon in explore) to create a bgl file which is your new library.

Then you just need a DP file for OBJECTS_DP. This must have the same name as the object (eg cd_dinghy_shed.dp)

Subsequent api code can be added to the same file to make a multi-object library. For these you don`t need the Header bit. Just do steps 1, 3 and 4 then paste the results in your combined file and compile.

Even in normal BGL scenery library objects are better. Especially if you are using lots of them.



==================


There's also an 18-page tutorial from 2005 - which is probably in the library but I don't know who the original author is since there's no name mentioned in the text.


I hope this helps


Cheers
BuV
 
Back
Top